/* FileDost AI design system */
:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 36, 56, 0.9);
  --border-subtle: rgba(var(--ink), 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --ink: 255, 255, 255;            /* tint for overlays, borders and hovers */
  --text-strong: #ffffff;
  --sunken: rgba(0, 0, 0, 0.32);   /* inputs and wells */
  --surface-nav: rgba(11, 15, 25, 0.72);
  --surface-modal: #111827;
  --surface-strip: rgba(18, 24, 38, 0.6);
  --hero-grad: linear-gradient(135deg, #fff, #94a3b8, var(--accent-cyan));
  --soft-indigo: #a5b4fc;
  --soft-red: #fecaca;
  --soft-green: #bbf7d0;
  --body-glow-1: rgba(99, 102, 241, 0.12);
  --body-glow-2: rgba(6, 182, 212, 0.08);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg-main: #f4f6fb;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.94);
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-accent: rgba(99, 102, 241, 0.35);
  --primary-light: rgba(99, 102, 241, 0.12);
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow-card: 0 12px 32px -14px rgba(15, 23, 42, 0.22);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.14);
  --ink: 15, 23, 42;
  --text-strong: #0f172a;
  --sunken: rgba(15, 23, 42, 0.05);
  --surface-nav: rgba(255, 255, 255, 0.72);
  --surface-modal: #ffffff;
  --surface-strip: rgba(255, 255, 255, 0.7);
  --hero-grad: linear-gradient(135deg, #312e81, #6366f1, #0891b2);
  --soft-indigo: #4f46e5;
  --soft-red: #b91c1c;
  --soft-green: #047857;
  --body-glow-1: rgba(99, 102, 241, 0.10);
  --body-glow-2: rgba(6, 182, 212, 0.10);
  color-scheme: light;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  background-image: 
    radial-gradient(at 0% 0%, var(--body-glow-1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--body-glow-2) 0px, transparent 50%);
  transition: background-color 0.4s ease, color 0.4s ease;
  background-attachment: fixed;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--surface-nav);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-strong);
}

.brand-title strong {
  color: var(--accent-cyan);
}

.brand-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-weight: 600;
}

.nav-center {
  flex: 1;
  max-width: 460px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(var(--ink), 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 16px;
  gap: 10px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--primary);
  background: rgba(var(--ink), 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(var(--ink), 0.06);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(var(--ink), 0.12);
  border-color: rgba(var(--ink), 0.2);
}

.btn-xs {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(var(--ink), 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
}

.btn-xs:hover {
  color: var(--text-strong);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft-indigo);
  margin-bottom: 24px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--hero-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.stats-strip {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strip);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  gap: 24px;
  backdrop-filter: blur(8px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-strong);
  font-family: var(--font-mono);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(var(--ink), 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-strong);
  background: rgba(var(--ink), 0.08);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(var(--ink), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(var(--ink), 0.06);
  color: var(--text-dim);
}

.card-badge.badge-ai {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-badge.badge-sec {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.runs-on {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  margin: 10px 0 4px;
}

.runs-on.runs-device {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.runs-on.runs-server {
  background: rgba(var(--ink), 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.tool-card:hover .card-footer {
  color: var(--accent-cyan);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--surface-modal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.25s ease-out;
}

.modal-wide {
  max-width: 1040px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(10deg) translateY(24px) translateZ(-80px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateX(0) translateY(0) translateZ(0);
  }
}

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

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

.modal-icon {
  font-size: 26px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-strong);
}

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

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(var(--ink), 0.02);
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(var(--ink), 0.15);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(var(--ink), 0.02);
  position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.drop-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.browse-link {
  color: var(--primary);
  text-decoration: underline;
}

.drop-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.selected-files-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--ink), 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.file-name {
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input, .form-select {
  background: rgba(var(--ink), 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.checkbox-group input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Spinner & Processing State */
.processing-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(var(--ink), 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Result Box / AI Intelligence Display */
.result-box {
  background: var(--sunken);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ai-card {
  background: rgba(var(--ink), 0.04);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.ai-card-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.ai-card-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ai-summary-list {
  padding-left: 18px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--soft-indigo);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

/* Pipeline UI */
.pipeline-workflow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pipeline-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(var(--ink), 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.step-num {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.step-badge {
  background: rgba(99, 102, 241, 0.2);
  color: var(--soft-indigo);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 90px;
  text-align: center;
}

.input-sm, .select-sm {
  flex: 1;
  background: var(--sunken);
  border: 1px solid var(--border-subtle);
  color: var(--text-strong);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.btn-remove-step {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: #1f2937;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.2s ease-out;
}

.toast.success {
  border-left: 4px solid var(--accent-emerald);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-dim);
}

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

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

/* Tool cards are links so each tool has its own address */
a.tool-card {
  color: inherit;
  text-decoration: none;
}

a.tool-card:focus-visible, .page-card:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.selected-files-list {
  position: relative;
  z-index: 2;
}

.file-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 18px;
}

.privacy-note {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin: 0;
}

.privacy-note.runs-device {
  background: rgba(16, 185, 129, 0.08);
  color: var(--soft-green);
}

.privacy-note.runs-server {
  background: rgba(var(--ink), 0.04);
  color: var(--text-muted);
}

.grid-2, .grid-3 {
  display: grid;
  gap: 12px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 2fr 1fr 1fr; }

.form-group + .form-group, .grid-2 + .form-group {
  margin-top: 12px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.input-error {
  border-color: #ef4444 !important;
}

/* Page grid */
.board-area:empty {
  display: none;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.board-toolbar .drop-hint {
  margin: 0 auto 0 0;
}

.board-loading {
  color: var(--text-muted);
  font-size: 13px;
}

.page-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 4px;
}

.page-card {
  background: rgba(var(--ink), 0.03);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.mode-organize .page-card { cursor: grab; }
.mode-select .page-card, .mode-remove .page-card, .mode-rotate .page-card { cursor: pointer; }
.page-card:hover { border-color: var(--border-accent); }
.page-card.is-dragging { opacity: 0.4; }
.page-card.drop-target { border-color: var(--accent-cyan); }
.page-card.is-selected { border-color: var(--primary); background: var(--primary-light); }
.page-card.is-removed { border-color: #ef4444; opacity: 0.45; }
.page-card.is-removed .page-thumb::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ef4444;
}

.page-thumb {
  position: relative;
  width: 124px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-thumb canvas {
  max-width: 120px;
  max-height: 156px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.page-thumb[data-file]::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 1;
}

.page-thumb[data-file="0"]::before { background: #6366f1; }
.page-thumb[data-file="1"]::before { background: #06b6d4; }
.page-thumb[data-file="2"]::before { background: #10b981; }
.page-thumb[data-file="3"]::before { background: #f59e0b; }
.page-thumb[data-file="4"]::before { background: #ec4899; }
.page-thumb[data-file="5"]::before { background: #a855f7; }
.page-thumb[data-file="6"]::before { background: #ef4444; }
.page-thumb[data-file="7"]::before { background: #84cc16; }

.page-label {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-tools {
  display: flex;
  gap: 2px;
}

.page-tool-btn {
  background: rgba(var(--ink), 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.page-tool-btn:hover:not(:disabled) { background: var(--primary-light); }
.page-tool-btn:disabled { opacity: 0.3; cursor: default; }

/* Sign */
.sign-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.sign-tab {
  background: rgba(var(--ink), 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sign-tab.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--text-strong);
  font-weight: 600;
}

.sig-pad {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3 / 1;
  background: #fff;
  border-radius: var(--radius-sm);
  touch-action: none;
  cursor: crosshair;
  display: block;
}

.sign-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sign-place {
  margin-top: 16px;
}

.sign-preview {
  position: relative;
  display: inline-block;
  margin: 8px 0;
  max-width: 100%;
}

.sign-preview canvas {
  display: block;
  max-width: 100%;
  cursor: crosshair;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.sign-preview img {
  position: absolute;
  pointer-events: none;
  outline: 1px dashed var(--accent-cyan);
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .stats-strip {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .stat-divider {
    display: none;
  }
  .nav-center {
    display: none;
  }
  .nav-container {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .brand-badge {
    display: none;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .page-board {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .modal-backdrop {
    padding: 0;
  }
  .modal-card {
    max-height: 100vh;
    border-radius: 0;
  }
}

#sigSize {
  width: 140px;
  accent-color: var(--primary);
}


/* ---------- 3D ---------- */

/* Hero: text on the left, a floating stack of PDF pages on the right. */
.hero {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "badge scene"
    "title scene"
    "sub scene"
    "stats stats";
  column-gap: 32px;
  align-items: center;
  text-align: left;
}
.hero-badge { grid-area: badge; justify-self: start; }
.hero-title { grid-area: title; }
.hero-subtitle { grid-area: sub; margin-left: 0; }
.stats-strip { grid-area: stats; justify-self: center; margin-top: 12px; }

.hero-scene {
  grid-area: scene;
  position: relative;
  height: 380px;
  perspective: 1100px;
  perspective-origin: 50% 30%;
}

.scene-rig {
  --look-x: 0deg;
  --look-y: 0deg;
  position: absolute;
  left: 50%;
  top: 52%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(56deg + var(--look-x))) rotateZ(calc(-34deg + var(--look-y)));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-floor {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -210px;
  top: -210px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(6, 182, 212, 0.12) 38%, transparent 68%);
  border: 1px solid rgba(129, 140, 248, 0.18);
  box-shadow: inset 0 0 60px rgba(99, 102, 241, 0.25);
}

.paper {
  --i: 0;
  --accent: var(--primary);
  position: absolute;
  width: 150px;
  height: 196px;
  left: -75px;
  top: -98px;
  padding: 16px 14px;
  border-radius: 6px;
  background: linear-gradient(160deg, #ffffff 0%, #eef2f7 60%, #dfe5ee 100%);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * 14px + 6px));
  animation: paperFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.35s);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
/* Paper thickness: a darker sheet just underneath. */
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #94a3b8;
  transform: translateZ(-3px);
}
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 45%);
  pointer-events: none;
}
.paper i {
  display: block;
  height: 7px;
  margin-bottom: 9px;
  border-radius: 4px;
  background: #cbd5e1;
}
.paper i.short { width: 62%; }
.paper i.paper-head {
  height: 14px;
  width: 70%;
  margin-bottom: 16px;
  background: var(--accent);
}
.paper.p1 { --i: 0; --accent: #10b981; }
.paper.p2 { --i: 1; --accent: #f59e0b; }
.paper.p3 { --i: 2; --accent: #06b6d4; }
.paper.p4 { --i: 3; --accent: #6366f1; }

/* Pages lift apart and settle back, like a document being merged. */
@keyframes paperFloat {
  0%, 100% {
    transform: translateZ(calc(var(--i) * 14px + 6px)) translateX(0) rotateZ(0deg);
  }
  50% {
    transform: translateZ(calc(var(--i) * 44px + 24px)) translateX(calc(var(--i) * 10px - 15px)) rotateZ(calc(var(--i) * 4deg - 6deg));
  }
}

/* The badge always faces the viewer. */
.scene-chip {
  position: absolute;
  left: 70px;
  top: -10px;
  padding: 10px 16px;
  border-radius: 12px;
  font: 800 20px/1 var(--font-mono);
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 6px 0 #9a3412, 0 18px 30px -8px rgba(239, 68, 68, 0.6);
  transform: translateZ(150px) rotateZ(34deg) rotateX(-56deg);
  animation: chipBob 4.5s ease-in-out infinite;
}
@keyframes chipBob {
  0%, 100% { transform: translateZ(150px) rotateZ(34deg) rotateX(-56deg) translateY(0); }
  50% { transform: translateZ(170px) rotateZ(34deg) rotateX(-56deg) translateY(-10px); }
}

.scene-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #a5b4fc 25%, #6366f1 60%, #312e81 100%);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.7);
  animation: orbFloat 6s ease-in-out infinite;
}
.scene-orb.o1 { width: 26px; height: 26px; left: -170px; top: 40px; --z: 120px; }
.scene-orb.o2 {
  width: 16px; height: 16px; left: 120px; top: 110px; --z: 70px;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #67e8f9 25%, #06b6d4 60%, #164e63 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.7);
  animation-delay: -2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateZ(var(--z)) rotateZ(34deg) rotateX(-56deg); }
  50% { transform: translateZ(calc(var(--z) + 40px)) rotateZ(34deg) rotateX(-56deg); }
}

/* Tool cards tilt toward the pointer (depth.js sets the angles). */
.tool-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.tool-card:hover {
  --lift: -4px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}
.tool-card.is-tilting { transition: transform 0.08s linear, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(var(--ink), 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tool-card.is-tilting::after { opacity: 1; }

/* Chunky, raised icons and buttons. */
.card-icon {
  background: linear-gradient(145deg, rgba(var(--ink), 0.12), rgba(var(--ink), 0.02));
  border: 1px solid rgba(var(--ink), 0.08);
  box-shadow: inset 0 1px 0 rgba(var(--ink), 0.15), 0 4px 0 rgba(0, 0, 0, 0.35), 0 10px 18px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-card:hover .card-icon { transform: translateY(-3px) scale(1.06); }

.btn-primary { box-shadow: 0 4px 0 #312e81, 0 10px 22px -6px rgba(99, 102, 241, 0.55); }
.btn-primary:hover { box-shadow: 0 5px 0 #312e81, 0 14px 26px -6px rgba(99, 102, 241, 0.65); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #312e81, 0 4px 10px -4px rgba(99, 102, 241, 0.5); }
.btn-secondary { box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }

.stats-strip { box-shadow: 0 1px 0 rgba(var(--ink), 0.06) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.8); }

/* Page grid: pages sit like sheets of paper and lift when pointed at. */
.page-card {
  transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.page-card:hover {
  transform: perspective(700px) rotateX(7deg) translateY(-4px);
  box-shadow: 0 16px 26px -14px rgba(0, 0, 0, 0.9);
}
.page-card.is-dragging { transform: none; }
.page-thumb canvas {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 3px 3px 0 -1px #cbd5e1, 3px 3px 0 0 rgba(0, 0, 0, 0.25), 0 10px 18px -8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "scene" "badge" "title" "sub" "stats";
    text-align: center;
  }
  .hero-badge { justify-self: center; }
  .hero-subtitle { margin-left: auto; }
  .hero-scene { height: 240px; margin-bottom: 8px; }
  .scene-rig { top: 50%; scale: 0.72; }
}

@media (max-width: 768px) {
  .hero { padding-top: 24px; }
  .hero-scene { height: 200px; }
  .scene-rig { scale: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .paper, .scene-chip, .scene-orb { animation: none; }
  .paper { transform: translateZ(calc(var(--i) * 30px + 12px)) translateX(calc(var(--i) * 8px - 12px)); }
  .scene-rig, .tool-card, .page-card, .card-icon { transition: none; }
  .tool-card:hover, .page-card:hover, .tool-card:hover .card-icon { transform: none; }
  .modal-card { animation: none; }
}

/* ---------- Crop ---------- */
.crop-stage {
  position: relative;
  display: inline-block;
  margin: 10px auto;
  touch-action: none;
  cursor: crosshair;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.crop-wrap { display: flex; flex-direction: column; align-items: stretch; }
.crop-wrap .crop-stage { align-self: center; }
.crop-stage canvas { display: block; max-width: 100%; }
.crop-box {
  position: absolute;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.6);
  cursor: move;
}
.crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-cyan);
}
.crop-handle.h-nw { left: 0; top: 0; cursor: nwse-resize; }
.crop-handle.h-n { left: 50%; top: 0; cursor: ns-resize; }
.crop-handle.h-ne { left: 100%; top: 0; cursor: nesw-resize; }
.crop-handle.h-e { left: 100%; top: 50%; cursor: ew-resize; }
.crop-handle.h-se { left: 100%; top: 100%; cursor: nwse-resize; }
.crop-handle.h-s { left: 50%; top: 100%; cursor: ns-resize; }
.crop-handle.h-sw { left: 0; top: 100%; cursor: nesw-resize; }
.crop-handle.h-w { left: 0; top: 50%; cursor: ew-resize; }
@media (pointer: coarse) { .crop-handle { width: 24px; height: 24px; margin: -12px 0 0 -12px; } }

.hf-row { gap: 8px; }

/* ---------- Compare ---------- */
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.cmp-cols canvas { width: 100%; height: auto; border-radius: 4px; background: #fff; }
.cmp-head { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-text {
  height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.55;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.cmp-text del { background: rgba(239, 68, 68, 0.28); color: var(--soft-red); text-decoration: line-through; border-radius: 3px; }
.cmp-text ins { background: rgba(16, 185, 129, 0.28); color: var(--soft-green); text-decoration: none; border-radius: 3px; }
.cmp-view { width: 100%; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) { .cmp-cols { grid-template-columns: 1fr; } .cmp-text { height: 220px; } }

/* ---------- Read aloud ---------- */
.tts-text {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}
.tts-text span { cursor: pointer; border-radius: 3px; }
.tts-text span:hover { background: rgba(var(--ink), 0.06); }
.tts-text span.on { background: rgba(99, 102, 241, 0.35); color: #fff; }

/* ---------- Ratings and feedback ---------- */
.rate-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.rate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rate-stars { display: inline-flex; gap: 2px; }
.rate-stars button {
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: #475569; padding: 2px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.rate-stars button.on { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.45); }
.rate-stars button:hover { transform: translateY(-2px) scale(1.12); }
.rate-close { margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; }
.rate-more { display: flex; gap: 8px; align-items: flex-end; }
.rate-more textarea { flex: 1; resize: vertical; }
.rate-thanks { color: var(--soft-green); }
.card-rating { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.card-rating .stars { color: #fbbf24; letter-spacing: 1px; }
.card-rating .count { color: var(--text-dim); font-weight: 500; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-strong); text-decoration: underline; }

/* ---------- Privacy check ---------- */
.pv-head { display: flex; align-items: center; gap: 16px; }
.pv-score {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(var(--ink), 0.08) 0);
}
.pv-score span {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-modal); font: 800 20px var(--font-mono); color: var(--c);
}
.pv-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; }
.pv-list li { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(var(--ink), 0.03); border: 1px solid var(--border-subtle); }
.pv-list p { color: var(--text-muted); font-size: 12px; margin-top: 2px; word-break: break-word; }
.pv-sev { font-size: 11px; font-weight: 800; text-transform: uppercase; min-width: 56px; padding-top: 2px; }
.pv-fixes { flex-wrap: wrap; }

/* ---------- Progress bar (replaces the spinner) ---------- */
.processing-state { align-items: stretch; gap: 10px; padding: 18px 4px; }
.progress-head { display: flex; align-items: center; gap: 10px; }
.progress-head .processing-label {
  flex: 1; font-size: 13.5px; color: var(--text-main);
  background: linear-gradient(90deg, var(--text-muted) 0%, var(--text-strong) 45%, var(--text-muted) 90%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.progress-spark {
  width: 14px; height: 14px; flex-shrink: 0; border-radius: 3px;
  background: conic-gradient(from 0deg, var(--primary), var(--accent-cyan), var(--accent-emerald), var(--primary));
  animation: spin 1.6s linear infinite;
}
.progress-pct { font: 600 13px var(--font-mono); color: var(--accent-cyan); min-width: 40px; text-align: right; }
.progress-track { height: 8px; border-radius: 99px; background: rgba(var(--ink), 0.07); overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  position: relative; transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent) 0 0 / 60px 100% no-repeat;
  animation: sweep 1.3s linear infinite;
}
@keyframes sweep { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.progress-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-dim); }
.progress-steps li { display: flex; align-items: center; gap: 6px; }
.progress-steps li.done { color: var(--accent-emerald); }
.progress-steps li.now { color: var(--text-main); }
.progress-steps .mark { width: 12px; text-align: center; }
.progress-steps li.now .mark::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan); animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { transform: scale(0.5); opacity: 0.5; } }
.progress-foot { display: flex; justify-content: space-between; align-items: center; font: 12px var(--font-mono); color: var(--text-dim); }

/* ---------- Tool cards with 3D scenes ---------- */
.card-top { align-items: center; }
.card-keywords { display: none; }

/* ---------- Photo & signature resizer ---------- */
.pt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; margin-bottom: 12px; }
.pt-stage { display: inline-block; max-width: 100%; }
.pt-stage canvas { display: block; max-width: 100%; height: auto; }
.pt-preview-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pt-preview { max-width: 220px; background: #fff; border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.pt-result { font-size: 13px; text-align: center; }
.pt-result.ok { color: var(--accent-emerald); }
.pt-result.bad { color: #f87171; }
@media (max-width: 640px) { .pt-wrap { grid-template-columns: 1fr; } }
.form-range { width: 100%; accent-color: var(--accent-cyan); }

/* ---------- Donate / sponsor ---------- */
.support { padding: 40px 0 10px; }
.support-card {
  border-radius: var(--radius-lg); padding: 28px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.12) 50%, rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.25);
  display: grid; gap: 18px;
}
.support-text h2 { font-size: 22px; margin-bottom: 6px; }
.support-text p { color: var(--text-muted); font-size: 14px; max-width: 640px; }
.support-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.support-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--sunken); border: 1px solid var(--border-subtle); color: var(--text-main);
  text-decoration: none; transition: transform 0.2s, border-color 0.2s;
}
.support-btn:hover { transform: translateY(-2px); border-color: rgba(236, 72, 153, 0.5); }
.support-btn strong { display: block; font-size: 14px; }
.support-btn small { color: var(--text-muted); font-size: 12px; }
.support-icon { font-size: 22px; }
.support-sponsor { font-size: 13px; color: var(--text-muted); }
.support-sponsor a { color: var(--accent-cyan); }
