/* ==========================================================================
   Wahriq — Design System
   Dark, precise, technical. Built around the brand palette:
   silver/white "WAHR" + cyan-blue "IQ".
   ========================================================================== */

:root {
  --bg-void:        #05070a;
  --bg-base:        #0b0f14;
  --bg-panel:       #10151c;
  --bg-panel-raise: #151b24;
  --border-soft:    rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.14);

  --text-primary:   #f2f4f7;
  --text-secondary: #9aa4b2;
  --text-muted:     #6b7480;

  --accent:         #1BB4DB;
  --accent-bright:  #3fd4fb;
  --accent-dim:     rgba(27, 180, 219, 0.14);
  --accent-line:    rgba(27, 180, 219, 0.35);

  --success:        #2fd699;
  --warning:        #f5b955;
  --danger:         #f2555a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 0 1px var(--border-soft), 0 20px 60px rgba(0,0,0,0.45);
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  color: var(--text-primary);
}

p { color: var(--text-secondary); margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}

/* ---- Background texture -------------------------------------------- */
.grid-glow {
  position: relative;
  overflow: hidden;
}
.grid-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.grid-glow::after {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(circle, rgba(27,180,219,0.22) 0%, rgba(27,180,219,0) 70%);
  pointer-events: none;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #01161c;
  box-shadow: 0 8px 26px rgba(27,180,219,0.35);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(27,180,219,0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--accent-line); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.btn-danger {
  background: rgba(242,85,90,0.1);
  border-color: rgba(242,85,90,0.4);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) { background: rgba(242,85,90,0.18); border-color: var(--danger); }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Impersonation banner (admin "View As Customer" support mode) ------ */
.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--warning);
  color: #241a02;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  text-align: center;
}
.impersonation-banner strong { font-weight: 800; }
.impersonation-exit {
  display: inline-flex;
  align-items: center;
  background: rgba(4,6,9,0.18);
  border: 1px solid rgba(4,6,9,0.3);
  color: #241a02;
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.impersonation-exit:hover { background: rgba(4,6,9,0.28); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--text-primary); }

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

.nav-toggle {
  display: none;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---- Notification bell -------------------------------------------------
   Deliberately kept OUTSIDE .nav-desktop / .nav-actions (both of which get
   hidden on mobile in favor of the hamburger menu) so the bell — and its
   unread badge — stays visible at every screen size, the same way
   Facebook/Meta never tucks notifications behind a hamburger. */
.notif-bell-wrap { position: relative; margin-left: 4px; flex-shrink: 0; }
.notif-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  cursor: pointer;
}
.notif-bell-btn:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--bg-base);
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 420px;
  background: linear-gradient(160deg, var(--bg-panel-raise), var(--bg-panel));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  flex-direction: column;
  z-index: 300;
}
.notif-dropdown.open { display: flex; }
.notif-dropdown-head {
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.notif-list { overflow-y: auto; max-height: 320px; }
.notif-item {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: inherit;
}
a.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.notif-unread { background: var(--accent-dim); }
.notif-item-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.notif-item-msg { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 5px; }
.notif-item-time { font-size: 11.5px; color: var(--text-muted); }
.notif-empty { padding: 30px 18px; text-align: center; font-size: 13px; color: var(--text-muted); }
.notif-item-full { padding: 16px 4px; }
.notif-item-full .notif-item-title { font-size: 14.5px; }
.notif-item-full .notif-item-msg { font-size: 13.5px; }
.notif-dropdown-footer {
  display: block;
  padding: 12px 18px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-bright);
  border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
}
@media (max-width: 480px) {
  .notif-dropdown { position: fixed; top: 78px; right: 16px; left: 16px; width: auto; max-width: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-base);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .nav-actions { flex-direction: column; padding-top: 12px; gap: 10px; }
.mobile-menu .btn { width: 100%; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  max-width: 900px;
  margin: 22px auto 20px;
}
.hero h1 span { color: var(--accent-bright); }
.hero .lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 17px;
  color: var(--text-secondary);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Sections ------------------------------------------------------------ */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { font-size: 16px; }

/* ---- Steps / How it works ------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) and (min-width: 861px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.step-card h3 { font-size: 19px; margin-bottom: 10px; }
.step-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---- Feature grid --------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; margin-bottom: 0; }

/* ---- Category pills -------------------------------------------------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill {
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
}

/* ---- Trust / disclaimer strip ---------------------------------------------- */
.trust-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.trust-panel h3 {
  font-size: 15px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.trust-panel p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; }
.trust-panel p:last-child { margin-bottom: 0; }

/* ---- CTA band --------------------------------------------------------------- */
.cta-band {
  text-align: center;
  background: linear-gradient(160deg, var(--bg-panel-raise), var(--bg-panel));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 56px 30px;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 480px; margin: 0 auto 28px; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 30px;
  background: var(--bg-base);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-soft); color: var(--text-secondary);
  transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--accent-bright); }

.footer-disclaimer {
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-disclaimer p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent-bright); }

/* ---- Auth pages (login / signup) ---------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: var(--shadow-glow);
}
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-card h1 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
}
.auth-card .sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: border-color .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-error {
  background: rgba(242, 85, 90, 0.1);
  border-color: rgba(242, 85, 90, 0.35);
  color: #ff9498;
}
.alert-success {
  background: rgba(47, 214, 153, 0.1);
  border-color: rgba(47, 214, 153, 0.35);
  color: #7cf0c6;
}

.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.auth-switch a { color: var(--accent-bright); font-weight: 600; }

.auth-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Simple content pages (privacy / tos / disclaimer) ------------------------- */
.legal-page { padding: 60px 0 90px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 6px; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }
.legal-page h2 {
  font-size: 19px;
  margin-top: 40px;
  padding-top: 4px;
}
.legal-page p, .legal-page li { font-size: 15px; color: var(--text-secondary); }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-callout {
  background: var(--bg-panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 26px 0;
}
.legal-callout p { color: var(--text-primary); font-size: 14px; margin-bottom: 0; }

/* ---- Blog ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-base); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-placeholder { display: flex; align-items: center; justify-content: center; padding: 30px; }
.blog-card-img-placeholder img { width: 60%; height: auto; object-fit: contain; opacity: .5; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--text-primary); }
.blog-card-body p { font-size: 13.5px; color: var(--text-secondary); }

.blog-post-meta { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.blog-post-meta span { margin-right: 4px; }
.blog-post-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  margin-bottom: 32px;
}
.blog-post-body { font-size: 16px; color: var(--text-secondary); line-height: 1.75; }
.blog-post-body h2 { font-size: 22px; color: var(--text-primary); margin-top: 40px; margin-bottom: 14px; }
.blog-post-body h3 { font-size: 18px; color: var(--text-primary); margin-top: 30px; margin-bottom: 12px; }
.blog-post-body p { margin-bottom: 18px; }
.blog-post-body ul, .blog-post-body ol { padding-left: 22px; margin-bottom: 18px; }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 20px 0; }
.blog-post-body a { color: var(--accent-bright); }
.blog-post-body blockquote {
  border-left: 3px solid var(--accent-line);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: var(--text-primary);
  font-style: italic;
}
.blog-post-cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.blog-post-cta h3 { font-size: 18px; margin-bottom: 8px; }
.blog-post-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card-body { padding: 16px 18px 20px; }
  .blog-card-body h3 { font-size: 16px; }
  .blog-post-meta { display: flex; flex-wrap: wrap; row-gap: 4px; }
  .blog-post-hero-img { max-height: 220px; margin-bottom: 22px; }
  .blog-post-body { font-size: 15px; line-height: 1.65; }
  .blog-post-body h2 { font-size: 19px; margin-top: 30px; }
  .blog-post-body h3 { font-size: 16.5px; margin-top: 24px; }
  .blog-post-cta { padding: 20px; margin-top: 34px; }
}

/* ---- Dashboard placeholder ------------------------------------------------------ */
.dash-shell { min-height: calc(100vh - 76px); padding: 60px 0; }
.dash-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Dashboard layout (topbar + modal nav) ---------------------------------------- */
.dash-layout {
  display: block;
  min-height: calc(100vh - 76px);
  padding: 0 0 80px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.menu-trigger:hover { box-shadow: 0 0 0 4px var(--accent-dim); }
.menu-trigger:active { transform: translateY(1px); }
.topbar-crumb { font-family: var(--font-display); font-size: 13px; color: var(--text-secondary); letter-spacing: 0.04em; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-email { font-size: 13px; color: var(--text-muted); }
.topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  transition: border-color .15s ease, color .15s ease;
}
.topbar-logout:hover { border-color: rgba(242,85,90,0.4); color: var(--danger); }

.nav-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5,7,10,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.nav-modal-overlay.open { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.nav-modal-panel {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(160deg, var(--bg-panel-raise), var(--bg-panel));
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 0 0 1px rgba(27,180,219,0.08), 0 30px 90px rgba(0,0,0,0.6);
  /* Every modal built on this shared panel (dashboard menu, verdict result,
     add-ons) must always stay fully reachable — including its own footer
     links (e.g. Log Out) — no matter how tall its content gets on a short
     mobile viewport, instead of being clipped with no way to scroll to it. */
}
.nav-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.nav-modal-close {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-modal-close:hover { border-color: var(--accent-line); color: var(--accent-bright); }

.nav-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nav-tile {
  display: block;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-base);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-tile:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(27,180,219,0.15); }
.nav-tile.active { border-color: var(--accent-line); background: var(--accent-dim); }
.nav-tile-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.nav-tile-label { font-family: var(--font-display); font-size: 14px; color: var(--text-primary); margin-bottom: 5px; }
.nav-tile-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.nav-modal-foot { display: flex; justify-content: center; gap: 26px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.foot-link { font-size: 13px; color: var(--text-secondary); }
.foot-link:hover { color: var(--accent-bright); }

@media (max-width: 560px) {
  .nav-tile-grid { grid-template-columns: 1fr; gap: 10px; }
  .topbar-crumb, .topbar-user { display: none; }
  .nav-modal-overlay { padding: 14px; }
  .nav-modal-panel { padding: 22px 18px; max-height: calc(100vh - 28px); border-radius: var(--radius-md); }
  .nav-modal-head { margin-bottom: 16px; }
  .nav-tile { padding: 16px; }
  .nav-tile-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .nav-tile-label { font-size: 13.5px; margin-bottom: 3px; }
  .nav-tile-desc { font-size: 12px; }
  .nav-modal-foot { margin-top: 18px; padding-top: 16px; gap: 20px; }
}
.dash-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 116px;
}
.dash-sidebar .user-chip {
  padding: 10px 10px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.dash-sidebar .user-chip .name { font-weight: 700; font-size: 14.5px; color: var(--text-primary); }
.dash-sidebar .user-chip .email { font-size: 12px; color: var(--text-muted); }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dash-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.dash-nav a.active { background: var(--accent-dim); color: var(--accent-bright); border: 1px solid var(--accent-line); }
.dash-nav a svg { flex-shrink: 0; }
.dash-nav .cta-slot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }

.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-head h1 { font-size: 24px; margin: 0; }
.dash-head p { margin: 4px 0 0; font-size: 14px; }

.dash-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}

/* Notification opt-in banner — dismissible, re-appears next session if
   ignored (see push-notify logic in dashboard.php), never nags mid-session. */
.notify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-bright);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
}
.notify-banner-text { min-width: 240px; flex: 1; }
.notify-banner-text strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.notify-banner-text span { display: block; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.notify-banner-ios-note { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.notify-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .notify-banner { flex-direction: column; align-items: stretch; }
  .notify-banner-actions { justify-content: flex-start; }
}

/* Profile page avatar preview */
.profile-avatar-preview {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel-raise);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-preview span { font-family: var(--font-display); font-size: 30px; color: var(--accent-bright); }

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel-raise);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar-avatar span { font-family: var(--font-display); font-size: 13px; color: var(--accent-bright); }

/* Orders table/cards — flat flex children reordered per breakpoint via
   CSS `order`, so the same markup works as a clean single-line desktop row
   and a stacked, touch-friendly mobile card without any duplication. */
.order-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.order-row:hover { background: rgba(255,255,255,0.02); }
.order-row:last-child { border-bottom: none; }
.order-row.status-line-authentic { border-left-color: var(--success); }
.order-row.status-line-not_authentic { border-left-color: var(--danger); }
.order-row.status-line-pending, .order-row.status-line-in_review { border-left-color: var(--accent); }
.order-row.status-line-unsure { border-left-color: var(--text-muted); }

.order-row-actions { display: flex; flex-shrink: 0; gap: 8px; }
.order-row-actions .btn { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; }
.order-thumb {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-main { flex: 1 1 220px; min-width: 0; }
.order-title { font-weight: 600; font-size: 14.5px; color: var(--text-primary); }
.order-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.order-valuation { margin-top: 6px; }
.valuation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
}
.valuation-pill.valuation-pending {
  background: rgba(245,185,85,0.12);
  color: var(--warning);
  border-color: rgba(245,185,85,0.3);
}
.order-status-badge { flex-shrink: 0; }
.order-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}
.order-id { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.order-date { font-size: 12px; color: var(--text-muted); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-pending { background: rgba(245,185,85,0.12); color: var(--warning); border: 1px solid rgba(245,185,85,0.3); }
.status-in_review { background: var(--accent-dim); color: var(--accent-bright); border: 1px solid var(--accent-line); }
.status-authentic { background: rgba(47,214,153,0.12); color: var(--success); border: 1px solid rgba(47,214,153,0.3); }
.status-not_authentic { background: rgba(242,85,90,0.12); color: var(--danger); border: 1px solid rgba(242,85,90,0.3); }
.status-unsure { background: rgba(154,164,178,0.14); color: var(--text-secondary); border: 1px solid var(--border-strong); }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ---- Orders search + pagination ---- */
.orders-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px 8px 8px 16px;
  margin-bottom: 22px;
}
.orders-search-form svg { color: var(--text-muted); flex-shrink: 0; }
.orders-search-form input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  min-width: 0;
}
.orders-search-form input[type="search"]:focus { outline: none; }
.orders-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.orders-search-form .btn { padding: 8px 16px; font-size: 13px; flex-shrink: 0; }

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.page-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-line);
}
.page-btn:hover { background: var(--accent-dim); }
.page-btn.disabled { pointer-events: none; opacity: 0.35; color: var(--text-muted); border-color: var(--border-strong); }

/* ---- Premium purchase-success confirmation overlay ---- */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(6px);
}
.success-overlay.open { display: flex; animation: fadeIn 0.15s ease; }
.success-panel {
  text-align: center;
  padding: 44px 38px;
  max-width: 360px;
  background: linear-gradient(160deg, var(--bg-panel-raise), var(--bg-panel));
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--accent-line), 0 30px 80px rgba(27,180,219,0.18);
}
.success-panel h3 { font-size: 19px; margin: 18px 0 6px; }
.success-panel p { font-size: 13.5px; margin: 0; }
.success-ring { display: inline-flex; }
.success-ring-circle {
  stroke: var(--success);
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: successRingDraw 0.5s ease forwards;
}
.success-ring-check {
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: successCheckDraw 0.35s ease 0.45s forwards;
}
@keyframes successRingDraw { to { stroke-dashoffset: 0; } }
@keyframes successCheckDraw { to { stroke-dashoffset: 0; } }
.page-info { font-size: 12.5px; color: var(--text-muted); }

/* ---- Add-ons modal ---- */
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.addon-row:last-child { border-bottom: none; }
.addon-label { font-size: 13.5px; color: var(--text-primary); }
.addon-check { color: var(--success); margin-left: 4px; }
.addon-price { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.addon-status-note { font-size: 12px; color: var(--text-muted); text-align: right; max-width: 160px; }
.addon-status-pending { color: var(--warning); display: inline-flex; align-items: center; gap: 6px; }
.addon-status-pending::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
  animation: pendingPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pendingPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.addon-buy-btn { padding: 7px 16px !important; font-size: 12.5px !important; white-space: nowrap; }

/* ---- Verdict modal upsell ---- */
.verdict-upsell {
  text-align: left;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
}
.verdict-upsell-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.verdict-upsell-badge {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px 9px;
}
.verdict-upsell-head strong { font-size: 14.5px; color: var(--text-primary); }
.verdict-upsell p { font-size: 13px; color: var(--text-secondary); margin: 0 0 14px; line-height: 1.5; }

/* ---- Chat support ---- */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding: 6px 4px 18px;
  margin-bottom: 16px;
}
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
}
.chat-bubble-row.mine .chat-bubble {
  background: var(--accent-dim);
  border-color: var(--accent-line);
}
.chat-bubble.ai { border-color: rgba(63,212,251,0.3); }
.chat-sender { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-bright); margin-bottom: 4px; }
.chat-text { font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.chat-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* A photo/video sent in chat — capped so a full-res phone photo never
   blows out the bubble width, rounded to match the bubble it sits in. */
.chat-attachment { margin-bottom: 8px; }
.chat-attachment img,
.chat-attachment video {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-void);
}

/* Outer form is now just a column stack (preview chip, emoji popover, the
   actual input row) — the input row itself carries the old flex layout. */
.chat-input-form { position: relative; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row textarea {
  flex: 1;
  min-height: 54px;
  max-height: 140px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}
.chat-input-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* Emoji + attach icon buttons — same square ghost-button footprint so they
   sit evenly next to the textarea regardless of which page/direction. */
.chat-tool-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.chat-tool-btn:hover { border-color: var(--accent); color: var(--accent-bright); }

/* Selected-file chip shown above the input row before sending. */
.chat-attach-preview {
  /* Same rule as .chat-emoji-picker: display:none by default, only .open
     shows it — an unconditional `display` here silently defeats the
     `hidden` attribute and shows an empty bar with nothing in it. */
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--accent-bright);
}
.chat-attach-preview.open { display: flex; }
.chat-attach-preview button {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* Emoji picker — a small popover anchored above the input row (position:
   relative lives on .chat-input-form above) rather than a full modal, so
   it stays lightweight on both a phone screen and the admin desktop view. */
.chat-emoji-picker {
  /* display:none by default is the whole point — this must stay hidden
     until .open is added by JS. Do NOT add an unconditional `display`
     here (that silently defeats both this and the `hidden` attribute,
     the same bug already fixed once on the bulk-delete modal). */
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  width: min(320px, 100%);
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-panel-raise);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 20;
}
.chat-emoji-picker.open { display: grid; }
.chat-emoji-option {
  background: none;
  border: none;
  font-size: 19px;
  line-height: 1;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
}
.chat-emoji-option:hover { background: rgba(255,255,255,0.06); }

@media (max-width: 640px) {
  .chat-bubble { max-width: 90%; }
  .chat-thread { max-height: 360px; }
  .chat-emoji-picker { width: min(280px, 92vw); grid-template-columns: repeat(6, 1fr); }
}

/* ---- Order add-ons purchase list (order-addons.php) ---- */
.order-row-addon { grid-template-columns: 26px 1fr 90px; align-items: start; }
.order-row-addon-highlight {
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
}
.addon-inline-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}
.addon-blurb { font-size: 12px; line-height: 1.4; margin-top: 3px; max-width: 320px; text-align: left; }
@media (max-width: 640px) {
  .order-row-addon { grid-template-columns: 22px 1fr auto; gap: 10px; }
}

/* Confidence bar graph (AI assessment) */
.confidence-bars { display: flex; flex-direction: column; gap: 14px; }
.confidence-row .cr-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.confidence-row .cr-label span:first-child { color: var(--text-primary); font-weight: 600; }
.confidence-track { height: 10px; border-radius: 999px; background: var(--bg-base); overflow: hidden; border: 1px solid var(--border-soft); }
.confidence-fill { height: 100%; border-radius: 999px; }
.confidence-fill.authentic { background: linear-gradient(90deg, #1f9d72, var(--success)); }
.confidence-fill.not_authentic { background: linear-gradient(90deg, #b8383d, var(--danger)); }
.confidence-fill.unsure { background: linear-gradient(90deg, #6b7480, var(--text-secondary)); }

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
}

@media (max-width: 720px) {
  .order-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 16px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-soft);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, var(--bg-panel-raise), var(--bg-panel));
  }
  .order-row:last-child { margin-bottom: 0; }
  .order-thumb { order: 1; width: 44px; height: 44px; }
  .order-main { order: 2; flex: 1 1 auto; }
  .order-status-badge { order: 3; margin-left: auto; }
  .order-meta {
    order: 4;
    flex: 0 0 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
  }
  .order-row-actions {
    order: 5;
    flex: 0 0 100%;
    /* Column, not a row of equal-width flex items — with up to three
       buttons possible on a row now (View Result / Upload Photos / Add-Ons),
       squeezing them side by side wrapped their labels and looked messy.
       Stacking full-width is legible regardless of how many buttons show. */
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }
  .order-row-actions .btn { width: 100%; justify-content: center; padding: 11px 10px; }
}

/* ---- Authentication submission form ---------------------------------------------- */
.form-section { margin-bottom: 34px; }
.form-section h2 { font-size: 16px; margin-bottom: 4px; }
.form-section .form-section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field select {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa4b2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 80px;
}
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.radio-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill label {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s ease;
}
.radio-pill input:checked + label {
  background: var(--accent-dim);
  border-color: var(--accent-line);
  color: var(--accent-bright);
  font-weight: 600;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.upload-slot {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.upload-slot:hover { border-color: var(--accent-line); background: rgba(27,180,219,0.04); }
.upload-slot.filled { border-style: solid; border-color: var(--success); }
.upload-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-slot .up-icon { color: var(--text-muted); margin-bottom: 10px; }
.upload-slot .up-label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.upload-slot .up-required { font-size: 11px; color: var(--accent-bright); text-transform: uppercase; letter-spacing: .05em; }
.upload-slot .up-preview {
  display: none;
  width: 100%; height: 100px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 8px;
}
.upload-slot.filled .up-preview { display: block; }
.upload-slot.filled .up-icon { display: none; }
.upload-slot .up-check {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #06231a;
  display: none;
  align-items: center;
  justify-content: center;
}
.upload-slot.filled .up-check { display: flex; }

/* ---- Requested Photos (admin-requested extra photos, fulfilled by the
   customer) — a plain itemized list (label + note + a file picker per row),
   with ONE submit button at the bottom of the whole list rather than a
   separate form/button per photo. Deliberately not .upload-grid/.upload-slot:
   those are built around a click-anywhere tile that opens a picker, which
   doesn't fit a list of several distinct named requests sharing one submit. */
.photo-request-section-head {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--text-primary);
}
.photo-request-section-head span { color: var(--text-muted); font-weight: 400; }

.photo-request-list { display: flex; flex-direction: column; }
.photo-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.photo-request-list > .photo-request-row:first-child { padding-top: 0; }
.photo-request-row:last-of-type { border-bottom: none; }
.photo-request-row-info { flex: 1 1 200px; min-width: 200px; }
.photo-request-row-label { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.photo-request-row-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.photo-request-row-file { flex: 0 0 auto; }

/* Native file input, styled to match the rest of the site's controls
   instead of sitting there as a bare, inconsistently-sized OS default —
   which is what made this look sloppy, especially on mobile where the
   default control's proportions vary a lot browser to browser. */
.photo-request-row-file input[type="file"] {
  display: block;
  max-width: 230px;
  font-size: 12px;
  color: var(--text-secondary);
}
.photo-request-row-file input[type="file"]::file-selector-button,
.photo-request-row-file input[type="file"]::-webkit-file-upload-button {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  margin-right: 8px;
  cursor: pointer;
}

.photo-request-uploaded-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.photo-request-uploaded-row:last-child { border-bottom: none; }
.photo-request-uploaded-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}
.photo-request-uploaded-label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); flex: 1; }

@media (max-width: 560px) {
  .photo-request-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .photo-request-row-file input[type="file"] { max-width: none; width: 100%; }
}

/* ---- Guided Capture — full-screen macro-style camera overlay for the
   close-up photo slots (logo/stamp, date code, made-in label). See
   assets/js/guided-capture.js for the sharpness-detection logic. ---- */
.wgc-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
  flex-direction: column;
  background: var(--bg-void);
}
.wgc-overlay.open { display: flex; }
.wgc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
  gap: 10px;
}
.wgc-icon-btn {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(16,21,28,0.85);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.wgc-icon-btn.wgc-torch.active { background: var(--accent); color: #06232b; border-color: var(--accent); }
.wgc-status {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16,21,28,0.85);
  border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap;
}
.wgc-status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-muted);
  flex: 0 0 auto;
  transition: background .15s ease;
}
.wgc-status-dot.bad { background: var(--danger); }
.wgc-status-dot.ok { background: var(--warning); }
.wgc-status-dot.good { background: var(--success); box-shadow: 0 0 10px var(--success); }
.wgc-stage { position: relative; flex: 1; overflow: hidden; background: #000; }
.wgc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .18s ease;
}
.wgc-guide {
  position: absolute; top: 50%; left: 50%;
  width: min(62vw, 62vh); height: min(62vw, 62vh);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
  pointer-events: none;
}
.wgc-guide.bad { border-color: var(--danger); }
.wgc-guide.ok { border-color: var(--warning); }
.wgc-guide.good { border-color: var(--success); box-shadow: 0 0 0 4px rgba(47,214,153,0.18); }
.wgc-corner { position: absolute; width: 26px; height: 26px; color: rgba(255,255,255,0.7); }
.wgc-corner::before, .wgc-corner::after { content: ''; position: absolute; background: currentColor; border-radius: 2px; }
.wgc-corner::before { width: 100%; height: 3px; }
.wgc-corner::after { width: 3px; height: 100%; }
.wgc-corner.tl { top: -3px; left: -3px; }
.wgc-corner.tr { top: -3px; right: -3px; }
.wgc-corner.bl { bottom: -3px; left: -3px; }
.wgc-corner.br { bottom: -3px; right: -3px; }
.wgc-corner.tl::before, .wgc-corner.tl::after { top: 0; left: 0; }
.wgc-corner.tr::before { top: 0; right: 0; }
.wgc-corner.tr::after { top: 0; right: 0; }
.wgc-corner.bl::before { bottom: 0; left: 0; }
.wgc-corner.bl::after { bottom: 0; left: 0; }
.wgc-corner.br::before { bottom: 0; right: 0; }
.wgc-corner.br::after { bottom: 0; right: 0; }
.wgc-guide.bad .wgc-corner { color: var(--danger); }
.wgc-guide.ok .wgc-corner { color: var(--warning); }
.wgc-guide.good .wgc-corner { color: var(--success); }
.wgc-torch-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: 12px; color: var(--text-secondary);
  background: rgba(16,21,28,0.85);
  padding: 6px 14px; border-radius: 999px;
  display: none; white-space: nowrap;
}
.wgc-torch-hint.show { display: block; }
.wgc-bottombar {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 18px 20px 26px;
}
.wgc-instruction { font-size: 13px; color: var(--text-secondary); text-align: center; }
.wgc-shutter {
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 3px solid var(--text-primary);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.wgc-shutter span {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--text-primary);
  transition: background .15s ease, transform .15s ease;
}
.wgc-shutter:active span { transform: scale(0.9); }
.wgc-fallback {
  display: flex; align-items: center; gap: 8px;
  background: rgba(16,21,28,0.85);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.wgc-fallback:hover { border-color: var(--accent-line); color: var(--text-primary); }

/* ---- Upload chooser — "Upload from Gallery" / "Use Macro Lens" sheet,
   shown first on every guided upload box. ---- */
.wgc-chooser-overlay {
  position: fixed; inset: 0; z-index: 2100;
  display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(5,7,10,0.6);
}
.wgc-chooser-overlay.open { display: flex; }
.wgc-chooser-sheet {
  width: 100%; max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-glow);
}
@media (min-width: 640px) {
  .wgc-chooser-overlay { align-items: center; }
  .wgc-chooser-sheet { border-radius: 20px; border-bottom: 1px solid var(--border-strong); }
}
.wgc-chooser-title {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0 14px;
}
.wgc-chooser-opt {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.wgc-chooser-opt:hover { border-color: var(--accent-line); background: rgba(27,180,219,0.06); }
.wgc-chooser-opt svg { flex: 0 0 auto; color: var(--accent-bright); }
.wgc-chooser-cancel {
  width: 100%;
  background: none; border: none;
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  padding: 12px 0 4px;
  cursor: pointer;
}

.microchip-toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.microchip-fields { display: none; }
.microchip-fields.show { display: block; margin-top: 14px; }

.microchip-method-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.method-tab {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.method-tab.active { border-color: var(--accent-line); background: rgba(27,180,219,0.08); color: var(--text-primary); }
.method-tab:disabled { opacity: .45; cursor: not-allowed; }
.microchip-method-panel { margin-top: 14px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg-base); border: 1px solid var(--border-strong);
  border-radius: 999px; transition: .15s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: var(--text-secondary); border-radius: 50%; transition: .15s;
}
.switch input:checked + .slider { background: var(--accent-dim); border-color: var(--accent-line); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--accent-bright); }

.price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 10px;
}
.price-banner .amount { font-family: var(--font-display); font-size: 22px; color: var(--accent-bright); }
.price-banner .was { text-decoration: line-through; color: var(--text-muted); font-size: 14px; margin-right: 8px; }
.price-banner .note { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Responsive ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  /* Scoped to the desktop actions only (direct child of .site-header's
     .container) — a bare ".nav-actions { display:none }" here also matched
     .mobile-menu .nav-actions (same class name, different context), which
     silently hid the Log In / Get Started buttons inside the mobile menu
     for logged-out visitors, since that nested rule never declares its own
     display and had nothing to win the cascade with. */
  .container > .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header .container { height: 80px; }
  /* Was 52px — 44% bigger than the 36px desktop size, which read as
     oversized on Android in particular (Android's system "Display size" /
     Chrome page-zoom accessibility settings, common on several OEM skins,
     can also amplify a flat px value further on top of this). Sized closer
     to desktop instead of jumping up. */
  .brand img { height: 38px; }

  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .hero { padding: 56px 0 50px; }
  section { padding: 54px 0; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ---- Verdict result modal (My Orders) ---- */
.verdict-modal-panel { max-width: 420px; text-align: center; }
.verdict-modal-body { padding: 6px 4px 4px; }
.verdict-photo {
  display: block;
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  margin: 0 auto 16px;
}
.verdict-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.verdict-icon.authentic { background: rgba(47,214,153,0.12); color: var(--success); border: 1px solid rgba(47,214,153,0.35); }
.verdict-icon.not_authentic { background: rgba(242,85,90,0.12); color: var(--danger); border: 1px solid rgba(242,85,90,0.35); }
.verdict-icon.unsure { background: rgba(154,164,178,0.14); color: var(--text-secondary); border: 1px solid var(--border-strong); }
.verdict-item { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.verdict-heading { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.verdict-heading.authentic { color: var(--success); }
.verdict-heading.not_authentic { color: var(--danger); }
.verdict-heading.unsure { color: var(--text-secondary); }
#verdictText { font-size: 13.5px; color: var(--text-secondary); margin: 0; }
