:root {
  --bg: #0b0b0f;
  --surface: #14141a;
  --surface-2: #1c1c24;
  --border: #26262f;
  --border-focus: #7c5cff;
  --text: #e7e7ee;
  --muted: #8a8a99;
  --accent: #7c5cff;
  --accent-hover: #6a4ce0;
  --success: #10b981;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Navbar */
.navbar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge {
  background: #6e4cf0;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.count-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Ad slots (collapsed by default) */
.ad-slot {
  display: none;
  width: 100%;
  max-width: 900px;
  margin: 16px auto;
  text-align: center;
  overflow: hidden;
}

/* Main Layout */
.main-content {
  width: 100%;
  max-width: 900px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.card-header {
  margin-bottom: 24px;
  text-align: center;
}

.card-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 6px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.05);
}

.drop-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.drop-text {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

.browse-link {
  color: #9d85ff;
  text-decoration: underline;
  font-weight: 600;
}

.drop-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

kbd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--text);
}

/* Selected File Box inside Dropzone */
.file-selected-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: left;
}

.file-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.file-meta {
  flex: 1;
  overflow: hidden;
}

.file-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.btn-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-remove:hover {
  color: var(--danger);
}

/* Options Grid */
.options-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .options-panel {
    grid-template-columns: 1fr;
  }
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
}

.form-control.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
}

/* Checkbox */
.checkbox-group {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✓";
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkbox-text {
  font-size: 0.9rem;
}

.checkbox-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 4px;
}

/* Turnstile */
.turnstile-container {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Progress Bar */
.progress-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  background-size: 100% 100%;
  transition: width 0.2s cubic-bezier(0.2, 0.6, 0.35, 1);
}

.progress-bar.active {
  background: linear-gradient(90deg, var(--accent), #a78bfa, var(--accent));
  background-size: 200% 100%;
  animation: progressPulse 2.2s ease-in-out infinite;
}

@keyframes progressPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.progress-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-row {
  margin-top: 20px;
}

.error-box {
  margin-top: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

/* Success Card */
.success-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.success-preview-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.success-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.success-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.success-filename {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-all;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

.opt-badge {
  color: var(--success);
}

.opt-badge.neutral {
  color: var(--muted);
}

.embed-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.embed-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-label {
  width: 80px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.embed-field .form-control {
  flex: 1;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.qr-container {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.qr-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Recent Uploads Drawer */
.history-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 520px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-history {
  color: var(--muted);
  text-align: center;
  padding: 40px 10px;
  font-size: 0.9rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.history-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.history-info {
  flex: 1;
  overflow: hidden;
}

.history-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-time {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Trust & Highlights Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 10px;
  max-width: 900px;
  padding: 0;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trust-pill:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-1px);
}

.trust-pill strong {
  color: var(--text);
  font-weight: 600;
}

/* Section Shared Headers */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* How It Works Steps */
.steps-section {
  width: 100%;
  max-width: 900px;
  margin: 48px auto 20px;
  padding: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.2rem;
  font-weight: 900;
  color: #7066a2;
  line-height: 1;
  pointer-events: none;
  font-family: inherit;
  user-select: none;
}

.step-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.step-desc kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.75rem;
  color: var(--text);
  font-family: inherit;
}

/* Features Showcase */
.features-section {
  width: 100%;
  max-width: 900px;
  margin: 48px auto 30px;
  padding: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.08);
}

.feature-icon-wrap {
  width: 46px;
  height: 46px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Professional Footer */
.footer {
  width: 100%;
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 60px;
  padding: 40px 20px 28px;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  font-family: inherit;
}

.footer-link-btn:hover {
  color: var(--accent);
}

/* Modal Backdrop & Card */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 1.8rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 65vh;
  overflow-y: auto;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 3px;
}

.about-feature p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

.about-story {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-story p {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.6;
}

.about-links-row {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

.about-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Full-Viewport Drag & Drop Overlay */
.viewport-drop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.viewport-drop-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.viewport-drop-box {
  width: 100%;
  max-width: 540px;
  height: 300px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: 0 0 50px rgba(124, 92, 255, 0.25), inset 0 0 30px rgba(124, 92, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  animation: pulseDropBorder 2s infinite ease-in-out;
}

.viewport-drop-box * {
  pointer-events: none; /* Prevents dragenter/dragleave flicker on child elements */
}

@keyframes pulseDropBorder {
  0%, 100% {
    border-color: rgba(124, 92, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 92, 255, 0.15), inset 0 0 20px rgba(124, 92, 255, 0.05);
  }
  50% {
    border-color: rgba(124, 92, 255, 1);
    box-shadow: 0 0 60px rgba(124, 92, 255, 0.4), inset 0 0 40px rgba(124, 92, 255, 0.12);
  }
}

.drop-overlay-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: bounceDropIcon 1.5s infinite ease-in-out;
}

@keyframes bounceDropIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.drop-overlay-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.drop-overlay-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Legal / Content Pages (Privacy Policy & Terms of Service) */
.legal-main {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  flex: 1 0 auto;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.legal-back-link:hover {
  color: var(--accent);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-badge {
  display: inline-block;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
}

.legal-callout {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-callout.warning {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.legal-callout strong {
  color: #fff;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 8px;
}

.legal-section p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  margin: 10px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.legal-section li strong {
  color: var(--text);
}

.legal-contact-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-contact-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.legal-contact-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
  /* Layout & Containers */
  .main-content {
    padding: 16px 12px;
    gap: 18px;
  }

  .nav-container {
    padding: 12px 14px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  /* Uploader Card */
  .card {
    padding: 18px 14px;
    border-radius: var(--radius-sm);
  }

  .card-header {
    margin-bottom: 18px;
  }

  .card-header h1 {
    font-size: 1.35rem;
    letter-spacing: -0.01em;
  }

  .card-header h2 {
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 0.86rem;
  }

  /* Dropzone */
  .dropzone {
    padding: 24px 12px;
    border-radius: var(--radius-sm);
  }

  .drop-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  .drop-text {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .drop-hint {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* Selected File Box inside Dropzone */
  .file-selected-box {
    padding: 10px 12px;
    gap: 10px;
  }

  .file-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .file-title {
    font-size: 0.88rem;
  }

  .file-sub {
    font-size: 0.76rem;
  }

  /* Options Panel */
  .options-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .option-label {
    font-size: 0.8rem;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* Checkbox Group */
  .checkbox-group {
    margin-top: 12px;
    padding: 10px 12px;
  }

  .checkbox-label {
    align-items: flex-start;
    gap: 8px;
  }

  .custom-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
  }

  .checkbox-text {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .checkbox-sub {
    display: block;
    margin-left: 0;
    margin-top: 2px;
    font-size: 0.78rem;
  }

  .submit-row {
    margin-top: 14px;
  }

  .btn-block {
    padding: 12px;
    font-size: 0.96rem;
  }

  /* Success Screen */
  .success-preview-wrap {
    padding: 12px;
    gap: 12px;
    align-items: center;
  }

  .success-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .success-filename {
    font-size: 0.92rem;
  }

  .timer-badge {
    font-size: 0.78rem;
    padding: 4px 8px;
  }

  /* Embed Fields - Full Width Responsive Layout */
  .embed-stack {
    gap: 10px;
    margin-bottom: 18px;
  }

  .embed-field {
    flex-wrap: wrap;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
  }

  .embed-label {
    width: 100%;
    font-size: 0.74rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }

  .embed-field .form-control {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .embed-field .btn-copy {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Success Action Buttons - 2x2 Grid */
  .success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .success-actions .btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  /* QR Modal on Mobile */
  .qr-container {
    padding: 16px 12px;
    margin-top: 16px;
  }

  #qr-canvas {
    max-width: 100%;
    height: auto;
  }

  /* Trust Strip */
  .trust-strip {
    margin: 16px auto 4px;
    gap: 6px;
    padding: 0;
  }

  .trust-pill {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 5px;
    border-radius: 16px;
  }

  /* Steps Section */
  .steps-section {
    margin: 28px 0 10px;
    padding: 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-tag {
    font-size: 0.72rem;
  }

  .section-title {
    font-size: 1.4rem;
    letter-spacing: -0.015em;
  }

  .section-subtitle {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .step-card {
    padding: 18px 16px;
  }

  .step-num {
    font-size: 1.8rem;
    top: 12px;
    right: 14px;
  }

  .step-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .step-title {
    font-size: 0.98rem;
  }

  .step-desc {
    font-size: 0.82rem;
  }

  /* Features Section */
  .features-section {
    margin: 28px 0 10px;
    padding: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 18px 16px;
  }

  .feature-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .feature-title {
    font-size: 0.98rem;
  }

  .feature-desc {
    font-size: 0.82rem;
  }

  /* Footer */
  .footer {
    margin-top: 36px;
    padding: 28px 16px 20px;
  }

  .footer-container {
    gap: 18px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-brand {
    font-size: 1.15rem;
  }

  .footer-tagline {
    font-size: 0.8rem;
  }

  .footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  .footer-link {
    font-size: 0.82rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    font-size: 0.74rem;
  }

  /* Drawer on Mobile */
  .history-drawer {
    max-width: 100%;
    border-top-right-radius: var(--radius);
    height: 65vh;
  }

  /* Full-Viewport Drop Overlay Mobile */
  .viewport-drop-box {
    max-width: 92%;
    height: 240px;
    padding: 20px 14px;
  }

  .drop-overlay-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
  }

  .drop-overlay-title {
    font-size: 1.2rem;
  }

  .drop-overlay-subtitle {
    font-size: 0.8rem;
  }

  /* Legal Pages Mobile */
  .legal-main {
    padding: 20px 12px 36px;
  }

  .legal-card {
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }

  .legal-title {
    font-size: 1.6rem;
  }

  .legal-section h2 {
    font-size: 1.18rem;
  }

  .legal-contact-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
  }
}

@media (max-width: 380px) {
  .success-actions {
    grid-template-columns: 1fr;
  }

  .trust-pill {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
}
