/* ═══════════════════════════════════════════════════
   POOF — Imgur for office files
   ═══════════════════════════════════════════════════ */

:root {
  --bg-landing: #08080d;
  --bg-surface: #111119;
  --bg-elevated: #1a1a26;
  --bg-viewer: #ffffff;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-subtle: #eef2ff;
  --text-primary: #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted: #5a5a72;
  --text-viewer: #1a1a1a;
  --border: #2a2a3e;
  --border-light: #e5e7eb;
  --success: #22c55e;
  --success-bg: #052e16;
  --error: #ef4444;
  --error-bg: #450a0a;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
}

/* ─── Reset ──────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ─── Landing Page ───────────────────────────────── */

body.landing {
  background: var(--bg-landing);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Logo */

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.logo .sparkle {
  color: var(--accent);
  font-size: 4rem;
}

.logo-small {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-viewer);
  text-decoration: none;
}

.logo-small .sparkle { color: var(--accent); }

.tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

/* Dropzone */

.dropzone {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  transition: all var(--transition);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.dropzone:hover::before,
.dropzone.dragover::before {
  opacity: 1;
}

.dropzone-content { position: relative; z-index: 1; }

.dropzone-icon {
  margin-bottom: 16px;
}

.dropzone-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--transition);
}

.dropzone:hover .dropzone-icon svg,
.dropzone.dragover .dropzone-icon svg {
  stroke: var(--accent);
}

.dropzone p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
}

.dropzone-or {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropzone-formats {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  color: var(--text-primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Expiry Selector */

.expiry-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.expiry-selector span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.expiry-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.expiry-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.expiry-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Progress */

.progress {
  width: 100%;
  text-align: center;
  padding: 40px 0;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

.progress-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.progress-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Result */

.result {
  width: 100%;
}

.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.result-card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--success);
}

.result-summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.result-link {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.result-link input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-landing);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.result-expiry {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-new {
  margin-top: 16px;
}

/* Error */

.error-msg {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: #fca5a5;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

/* Privacy Footer */

.privacy-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.privacy-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.privacy-footer .lock-icon {
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

/* Features Section */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 48px;
  margin-bottom: 20px;
}

.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature h3 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Viewer Page ────────────────────────────────── */

body.viewer-page {
  background: #f8f9fb;
  color: var(--text-viewer);
  min-height: 100vh;
}

.viewer-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.viewer-nav .viewer-actions {
  display: flex;
  gap: 8px;
}

.viewer-nav .btn-sm {
  background: white;
  color: var(--text-viewer);
  border: 1px solid var(--border-light);
}
.viewer-nav .btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.viewer-nav .btn-sm.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.viewer-nav .btn-sm.btn-primary:hover {
  background: var(--accent-hover);
}

/* Viewer States */

.viewer-loading,
.viewer-expired {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

.viewer-expired h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-viewer);
}

.viewer-expired p {
  color: #6b7280;
  margin-bottom: 24px;
}

/* Viewer Content */

.viewer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.doc-header {
  margin-bottom: 24px;
}

.doc-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.doc-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.file-type {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.expiry-tag {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Document Body Styles */

.doc-body {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  overflow-x: auto;
}

/* Summary Box (viewer context) */

.doc-body .summary-box,
.doc-summary .summary-card {
  background: #f0f4ff;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin-bottom: 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.doc-body .summary-box h3,
.doc-summary .summary-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-body .summary-box p,
.doc-summary .summary-card p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}

.key-points {
  margin: 12px 0 0;
  padding-left: 20px;
}

.key-points li {
  margin: 6px 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.tone-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Enhanced document content */

.doc-content {
  line-height: 1.8;
  color: #1f2937;
}

.doc-content h1 { font-size: 1.6rem; margin: 28px 0 12px; color: #111; border-bottom: 2px solid #e5e7eb; padding-bottom: 6px; }
.doc-content h2 { font-size: 1.3rem; margin: 24px 0 10px; color: #1f2937; }
.doc-content h3 { font-size: 1.1rem; margin: 20px 0 8px; color: #374151; }
.doc-content p { margin: 8px 0; }
.doc-content ul, .doc-content ol { margin: 8px 0; padding-left: 24px; }
.doc-content li { margin: 4px 0; }
.doc-content img { max-width: 100%; height: auto; border-radius: var(--radius-xs); margin: 12px 0; }

.doc-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.9rem;
}
.doc-content th, .doc-content td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
}
.doc-content th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}
.doc-content tr:nth-child(even) { background: #fafbfc; }

.doc-content blockquote {
  border-left: 3px solid #d1d5db;
  margin: 12px 0;
  padding: 8px 16px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.doc-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: var(--font-mono);
}

/* XLSX Specific Styles */

.xlsx-enhanced h2 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  color: #111;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.xlsx-enhanced h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: #374151;
}

.xlsx-enhanced h4 {
  font-size: 0.9rem;
  margin: 14px 0 6px;
  color: #4b5563;
  font-weight: 600;
}

.chart-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 16px 0;
}

.chart-container canvas {
  max-height: 400px;
}

.table-wrapper {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
}

.table-wrapper table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  margin: 0;
}

.table-wrapper th, .table-wrapper td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

.table-wrapper th {
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
}

.table-wrapper tr:nth-child(even) { background: #fafbfc; }
.table-wrapper tr:hover { background: #f0f4ff; }

.trunc-note {
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: italic;
  margin-top: 8px;
}

.report-section {
  line-height: 1.7;
  color: #374151;
}
.report-section p { margin: 8px 0; }
.report-section ul { padding-left: 20px; margin: 8px 0; }
.report-section li { margin: 4px 0; }
.report-section strong { color: #111; }

.insight-badge {
  display: inline-block;
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}

/* ─── Copy Toast ─────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ─── Upload Counter ─────────────────────────────── */

.upload-counter {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Rate Limit Reached ────────────────────────── */

.limit-reached {
  width: 100%;
}

.limit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}

.limit-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.limit-card h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.limit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.limit-reset-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px !important;
}

.limit-card .btn-primary {
  margin-bottom: 12px;
}

.limit-subtext {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* ─── Pro Page ───────────────────────────────────── */

.logo-back {
  align-self: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
}
.logo-back:hover {
  color: var(--text-secondary);
}

.pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
}

.pro-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a855f7, var(--accent));
}

.pro-status {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-hover);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.pro-price {
  margin-bottom: 32px;
}

.pro-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pro-period {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.pro-features {
  list-style: none;
  text-align: left;
  max-width: 320px;
  margin: 0 auto 32px;
}

.pro-features li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-features li:last-child {
  border-bottom: none;
}

.pro-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pro-notify {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pro-notify h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.pro-email-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.pro-email-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-landing);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.pro-email-input:focus {
  border-color: var(--accent);
}

.pro-email-input::placeholder {
  color: var(--text-muted);
}

.pro-email-success {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 12px;
}

.pro-free-tier {
  margin-top: 32px;
  text-align: center;
}

.pro-free-tier p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pro-free-tier strong {
  color: var(--text-secondary);
}

/* Subscribe button */
.btn-subscribe {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.btn-subscribe:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-subscribe:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pro-fine-print {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Pro success state */
.pro-success {
  background: var(--success-bg);
  color: var(--success);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 16px;
}

/* Active pro user state */
.pro-active {
  text-align: center;
  padding: 20px 0;
}
.pro-active-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ─── Auth Modal (Pro Page) ──────────────────────── */

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-elevated);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.auth-icon svg {
  stroke: var(--accent);
}

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

.auth-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  text-align: left;
}

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  stroke: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  background: var(--bg-landing);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-input-wrap input::placeholder {
  color: var(--text-muted);
}

.auth-toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.auth-toggle-pw svg {
  stroke: var(--text-muted);
  transition: stroke var(--transition);
}

.auth-toggle-pw:hover svg {
  stroke: var(--text-secondary);
}

.auth-error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  text-align: center;
}

.btn-auth {
  width: 100%;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
  border-radius: var(--radius-sm);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.auth-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

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

/* Pro features grid below card */

.pro-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin-top: 32px;
}

.pro-feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.pro-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pro-feature-item h3 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pro-feature-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Price tag below features */

.pro-price-tag {
  margin-top: 24px;
  text-align: center;
}

.pro-price-tag .pro-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pro-price-tag .pro-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pro-fine-print-inline {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Pro active email display */

.pro-active-email {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

/* ─── Utility ────────────────────────────────────── */

.hidden { display: none !important; }

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 640px) {
  .logo { font-size: 2.5rem; }
  .logo .sparkle { font-size: 3rem; }
  .tagline { font-size: 1rem; }
  .dropzone { padding: 40px 24px; }
  .hero { padding: 24px 16px; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .result-link { flex-direction: column; }
  .viewer-content { padding: 20px 16px 60px; }
  .doc-body { padding: 24px 16px; }
  .result-card { padding: 24px 16px; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .pro-card { padding: 32px 20px; }
  .pro-email-form { flex-direction: column; }
  .pro-amount { font-size: 2.5rem; }
  .limit-card { padding: 32px 20px; }
  .auth-row { grid-template-columns: 1fr; }
  .pro-features-grid { grid-template-columns: 1fr; }
  .pro-price-tag .pro-amount { font-size: 1.8rem; }
}
