/* ==========================================================================
   TitleForge AI — Modern Modular Theme (Matching eBay Wranker)
   ========================================================================== */

:root {
  /* Geometry & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Luxury Gold & Metallic Brass Accents */
  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c07b;
  --accent-gold-light: #f5e6c8;
  --accent-gold-subtle: rgba(212, 175, 55, 0.12);
  --accent-gold-border: rgba(212, 175, 55, 0.28);
  --accent-gold-glow: rgba(212, 175, 55, 0.35);

  /* Default Light Palette (Clean Studio) */
  --bg-app: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-inset: #eef2f7;
  --bg-surface-hover: #e5ebf3;

  /* Accents & Brand */
  --brand-blue: #0969da;
  --brand-cyan: #0284c7;
  --brand-emerald: #10b981;
  --brand-amber: #d97706;

  --accent-blue: #0969da;
  --accent-blue-hover: #0860ca;
  --accent-blue-subtle: rgba(9, 105, 218, 0.08);

  --accent-green: #10b981;
  --accent-green-subtle: rgba(16, 185, 129, 0.12);

  --accent-amber: #d97706;
  --accent-amber-subtle: rgba(217, 119, 6, 0.12);

  --accent-red: #cf222e;
  --accent-red-subtle: rgba(207, 34, 46, 0.1);

  /* Typography */
  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;

  /* Borders */
  --border-subtle: #e5e7eb;
  --border-medium: #d1d5db;
  --border-focus: #d4af37;
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.3);
  --shadow-modal: 0 24px 48px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);

  --nav-bg: rgba(255, 255, 255, 0.94);
  --dropzone-bg: #f8fafc;
  --dropzone-border: #cbd5e1;

  color-scheme: light;
}

/* ==========================================================================
   Ultra-Luxury Dark Theme (Obsidian Vault & Champagne Gold)
   ========================================================================== */
:root[data-theme="dark"] {
  --bg-app: #06090f;
  --bg-surface: #0d1322;
  --bg-surface-elevated: #131b2e;
  --bg-surface-inset: #080c16;
  --bg-surface-hover: #19233a;

  --brand-blue: #38bdf8;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  --brand-amber: #fbbf24;

  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c07b;
  --accent-gold-light: #f5e6c8;
  --accent-gold-subtle: rgba(212, 175, 55, 0.14);
  --accent-gold-border: rgba(212, 175, 55, 0.32);
  --accent-gold-glow: rgba(212, 175, 55, 0.35);

  --accent-blue: #38bdf8;
  --accent-blue-hover: #0ea5e9;
  --accent-blue-subtle: rgba(56, 189, 248, 0.12);

  --accent-green: #10b981;
  --accent-green-subtle: rgba(16, 185, 129, 0.14);

  --accent-amber: #f59e0b;
  --accent-amber-subtle: rgba(245, 158, 11, 0.14);

  --accent-red: #ef4444;
  --accent-red-subtle: rgba(239, 68, 68, 0.14);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8e9bb0;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: #d4af37;
  --border-gold: rgba(212, 175, 55, 0.35);

  --shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 18px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.4);
  --shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.3);

  --nav-bg: rgba(9, 13, 23, 0.92);
  --dropzone-bg: rgba(13, 19, 34, 0.7);
  --dropzone-border: rgba(212, 175, 55, 0.35);

  color-scheme: dark;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

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

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title .part-title {
  color: var(--text-main);
}

.brand-title .part-forge {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="dark"] .brand-title .part-forge {
  background: linear-gradient(135deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-ai-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #04121a;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

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

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.nav-link.active {
  color: var(--accent-blue);
  background: var(--accent-blue-subtle);
}

/* Theme Switch */
.theme-flick-switch {
  display: inline-flex;
  background: var(--bg-surface-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.theme-flick-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-flick-opt:hover {
  color: var(--text-main);
}

.theme-flick-opt.active {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-sm {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(9, 105, 218, 0.25);
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.btn-success {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-outline-blue {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-outline-blue:hover {
  background: var(--accent-blue-subtle);
}

/* ==========================================================================
   Main Layout & Cards
   ========================================================================== */
.main-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  overflow: hidden;
}

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

.card-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quota Pill */
.quota-box {
  background: var(--accent-blue-subtle);
  border: 1px solid rgba(9, 105, 218, 0.25);
  color: var(--accent-blue);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

:root[data-theme="dark"] .quota-box {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

/* Limit Hit Banner */
.limit-hit-card {
  background: linear-gradient(135deg, rgba(207, 34, 46, 0.08), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(207, 34, 46, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.limit-hit-left {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.limit-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.limit-hit-info {
  flex: 1;
}

.limit-hit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.limit-hit-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-red);
}

.limit-reset-pill {
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-main);
}

/* ==========================================================================
   Drop Zone & Photo Upload
   ========================================================================== */
.dropzone {
  border: 2px dashed var(--dropzone-border);
  background: var(--dropzone-bg);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

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

.dropzone-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--accent-blue);
}

.dropzone-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dropzone-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* File previews grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-chip {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-inset);
  aspect-ratio: 1;
}

.preview-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-chip-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

/* Mode Switchers */
.mode-toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.mode-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-surface);
}

.mode-card.active {
  border-color: var(--accent-blue);
  background: var(--accent-blue-subtle);
}

.mode-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

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

/* Options Box */
.options-box {
  background: var(--bg-surface-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.custom-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* ==========================================================================
   Generated Results Table & Cards
   ========================================================================== */
.results-table-container {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.results-table th {
  background: var(--bg-surface-inset);
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.results-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.results-table tr:hover td {
  background: var(--bg-surface-hover);
}

.table-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: zoom-in;
  border: 1px solid var(--border-subtle);
}

.inline-edit-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.inline-edit-input:hover {
  border-color: var(--border-subtle);
  background: var(--bg-surface);
}

.inline-edit-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 2px var(--accent-blue-subtle);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-success {
  background: var(--accent-green-subtle);
  color: var(--accent-green);
}

.badge-warning {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 440px;
  padding: 28px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.modal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.modal-tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-blue-subtle);
}

.policy-callout {
  background: var(--accent-blue-subtle);
  border: 1px solid rgba(9, 105, 218, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 14px 0 18px;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* Toast */
.system-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

/* Spinner & Loading Feedback */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes progressPulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.progress-pulsing {
  animation: progressPulse 1.2s infinite ease-in-out;
}

/* ==========================================================================
   Google OAuth Styles (Matching eBay Wranker)
   ========================================================================== */
.google-auth-wrapper {
  margin-bottom: 16px;
}

.btn-google-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background-color: #ffffff;
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-sign-in:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 12px;
}


/* ==========================================================================
   Ultra-Luxury Styling & Dark Theme Elevation
   ========================================================================== */

:root[data-theme="dark"] body {
  background: radial-gradient(circle at 50% -10%, #151f36 0%, #060910 50%, #030508 100%) fixed;
}

:root[data-theme="dark"] .card {
  background: rgba(13, 19, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .brand-title .part-forge {
  background: linear-gradient(135deg, #f5e6c8 0%, #d4af37 50%, #aa820a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

:root[data-theme="dark"] .brand-ai-badge {
  background: linear-gradient(135deg, #f6e6b4, #d4af37);
  color: #070a10;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

:root[data-theme="dark"] .nav-link.active {
  color: var(--accent-gold);
  background: var(--accent-gold-subtle);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

:root[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #996515 100%);
  color: #070a10;
  font-weight: 800;
  border: 1px solid #f6e6b4;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #e5c07b 0%, #d4af37 50%, #aa7c19 100%);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.55);
  transform: translateY(-1.5px);
}

:root[data-theme="dark"] .btn-secondary {
  background: rgba(18, 25, 42, 0.85);
  border-color: rgba(212, 175, 55, 0.22);
  color: #f0f6fc;
  backdrop-filter: blur(8px);
}

:root[data-theme="dark"] .btn-secondary:hover {
  background: rgba(26, 36, 60, 0.95);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-1px);
}

:root[data-theme="dark"] .quota-box {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: #f3e5ab;
}

:root[data-theme="dark"] .dropzone {
  background: rgba(10, 15, 26, 0.7);
  border: 2px dashed rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .dropzone:hover,
:root[data-theme="dark"] .dropzone.dragover {
  border-color: var(--accent-gold);
  background: rgba(18, 26, 44, 0.85);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   Plain-English Layman's Guide Card
   ========================================================================== */
.layman-guide-card {
  background: linear-gradient(135deg, rgba(13, 19, 34, 0.95) 0%, rgba(18, 26, 46, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.layman-guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, #f5e6c8, transparent);
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.guide-step-item {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.2s ease;
}

.guide-step-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(14, 20, 36, 0.85);
  transform: translateY(-2px);
}

.guide-step-num {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-step-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.guide-step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.guide-badge-example {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin: 2px 2px 2px 0;
}

/* ==========================================================================
   Archive Dedicated Page Styles
   ========================================================================== */
.archive-nav-banner {
  background: linear-gradient(135deg, rgba(13, 19, 34, 0.95), rgba(20, 28, 48, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

.thumb-cell {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: zoom-in;
  border: 1px solid var(--border-gold);
  transition: transform 0.15s ease;
}

.thumb-cell:hover {
  transform: scale(1.08);
}

.table-input {
  width: 100%;
  background: rgba(6, 9, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  transition: all 0.15s ease;
}

.table-input:focus {
  outline: none;
  background: rgba(9, 13, 24, 0.95);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold-subtle);
}

.val-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-gold);
  color: var(--text-main);
}
