/* Art direction: Market research intelligence firm → authoritative, editorial, premium
   Palette: Deep teal primary (#13343B), muted teal accent (#20808D), warm off-white (#FCFAF6),
            gold callouts (#FFC553), terra highlights (#A84B2F)
   Typography: Cormorant Garamond (display) + DM Sans (body) — serif research authority + modern clarity
   Density: Spacious, editorial feel with generous whitespace */

/* ===== BASE RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
::selection { background: oklch(from var(--color-primary) l c h / 0.25); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
a, button, [role="button"], [role="link"], input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ===== DESIGN TOKENS ===== */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 720px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== LIGHT MODE ===== */
:root, [data-theme="light"] {
  --color-bg:             #FCFAF6;
  --color-surface:        #F5F2EC;
  --color-surface-2:      #EFEBE4;
  --color-surface-offset: #E8E4DC;
  --color-surface-offset-2: #DDD8CF;
  --color-surface-dynamic: #D4CFC6;
  --color-divider:        #D0CCC4;
  --color-border:         #C5C0B7;

  --color-text:           #13343B;
  --color-text-muted:     #5A6B6F;
  --color-text-faint:     #96A3A6;
  --color-text-inverse:   #FCFAF6;

  --color-primary:        #20808D;
  --color-primary-hover:  #1A6B76;
  --color-primary-active: #13343B;
  --color-primary-highlight: #D4ECEF;

  --color-gold:           #FFC553;
  --color-gold-hover:     #E5AD3E;
  --color-gold-active:    #C4922D;
  --color-gold-highlight: #FFF4DC;

  --color-terra:          #A84B2F;
  --color-terra-hover:    #8C3D26;
  --color-terra-active:   #6F2F1C;
  --color-terra-highlight: #F4E0D9;

  --color-error:          #B5303F;
  --color-error-hover:    #932636;
  --color-error-highlight: #F5D9DC;

  --color-success:        #3D7A3A;
  --color-success-highlight: #D8EBDA;

  --color-warning:        #C48520;
  --color-warning-highlight: #F5ECD6;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 200 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 200 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 200 / 0.12);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:             #0D1F23;
  --color-surface:        #122A2F;
  --color-surface-2:      #17343A;
  --color-surface-offset: #1C3E45;
  --color-surface-offset-2: #214850;
  --color-surface-dynamic: #2A5860;
  --color-divider:        #253F45;
  --color-border:         #305058;

  --color-text:           #E8E5DF;
  --color-text-muted:     #97AAB0;
  --color-text-faint:     #5E7278;
  --color-text-inverse:   #13343B;

  --color-primary:        #3BA8B7;
  --color-primary-hover:  #2D8F9D;
  --color-primary-active: #20808D;
  --color-primary-highlight: #1C3F45;

  --color-gold:           #FFC553;
  --color-gold-hover:     #FFD27A;
  --color-gold-active:    #FFE0A3;
  --color-gold-highlight: #2A2518;

  --color-terra:          #D47050;
  --color-terra-hover:    #C45E3D;
  --color-terra-highlight: #2A1F1A;

  --color-error:          #E04F5E;
  --color-error-hover:    #C83D4C;
  --color-error-highlight: #2C1A1D;

  --color-success:        #5DA65A;
  --color-success-highlight: #1A2C1A;

  --color-warning:        #E0A040;
  --color-warning-highlight: #2A2218;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0D1F23; --color-surface: #122A2F; --color-surface-2: #17343A;
    --color-surface-offset: #1C3E45; --color-surface-offset-2: #214850;
    --color-surface-dynamic: #2A5860; --color-divider: #253F45; --color-border: #305058;
    --color-text: #E8E5DF; --color-text-muted: #97AAB0; --color-text-faint: #5E7278;
    --color-text-inverse: #13343B; --color-primary: #3BA8B7; --color-primary-hover: #2D8F9D;
    --color-primary-active: #20808D; --color-primary-highlight: #1C3F45;
    --color-gold: #FFC553; --color-terra: #D47050; --color-error: #E04F5E;
    --color-success: #5DA65A; --color-warning: #E0A040;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2); --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container-narrow {
  max-width: var(--content-narrow);
}

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}
.section-alt {
  background: var(--color-surface);
}
.section-dark {
  background: var(--color-primary-active);
  color: var(--color-text-inverse);
}
.section-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: var(--space-8) 0;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo-link {
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-svg {
  width: 180px;
  height: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.nav-link:hover { color: var(--color-text); background: oklch(from var(--color-text) l c h / 0.04); }
.nav-link.active { color: var(--color-primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover { color: var(--color-text); background: oklch(from var(--color-text) l c h / 0.06); }

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: oklch(from var(--color-bg) l c h / 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  transition: color var(--transition-interactive);
}
.mobile-nav-link:hover { color: var(--color-primary); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(from #13343B l c h / 0.92) 0%, oklch(from #13343B l c h / 0.75) 60%, oklch(from #13343B l c h / 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(var(--space-12), 10vw, var(--space-32)) 0;
  color: #FCFAF6;
}
.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: #FCFAF6;
}
.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(252, 250, 246, 0.8);
  max-width: 600px;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.hero-stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(252, 250, 246, 0.6);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-tag-gold { color: var(--color-gold); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}
.section-header-light .section-title { color: #FCFAF6; }
.section-header-light .section-desc { color: rgba(252, 250, 246, 0.7); }

/* ===== VALUE CARDS ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}
.value-card {
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.value-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ===== STEPS ===== */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  justify-content: center;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  flex: 1;
  max-width: 320px;
  text-align: center;
}
.step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-3);
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.step-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: var(--space-10);
}
@media (max-width: 768px) {
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); padding-top: 0; }
}

/* ===== REPORT PREVIEW ===== */
.report-preview-card {
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 800px;
  margin-inline: auto;
}
.report-preview-header {
  background: var(--color-primary-active);
  color: #FCFAF6;
  padding: var(--space-8);
}
.report-preview-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-primary-active);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.report-preview-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.report-preview-header p {
  color: rgba(252, 250, 246, 0.6);
  font-size: var(--text-sm);
}
.report-preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.stat-card-mini {
  background: var(--color-bg);
  padding: var(--space-4);
  text-align: center;
}
.stat-mini-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.stat-mini-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.report-preview-fade {
  position: relative;
}
.report-preview-content {
  padding: var(--space-6) var(--space-8);
}
.report-preview-content h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}
.report-preview-content p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.report-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, oklch(from var(--color-bg) l c h / 0), var(--color-bg) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-6);
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.testimonial-stars {
  color: var(--color-gold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}
.testimonial-author span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  max-width: 1000px;
  margin-inline: auto;
}
.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}
@media (max-width: 600px) {
  .pricing-grid-2 { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
}
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .section-dark .pricing-card {
  background: var(--color-surface);
}
.pricing-card-featured {
  border-color: var(--color-gold);
  border-width: 2px;
  box-shadow: 0 8px 32px oklch(from var(--color-gold) l c h / 0.15);
}
.pricing-popular {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-primary-active);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.section-dark .pricing-tier { color: var(--color-text); }
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.section-dark .pricing-price { color: var(--color-primary); }
.pricing-currency {
  font-size: var(--text-xl);
  vertical-align: super;
}
.pricing-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.pricing-features {
  flex: 1;
  margin-bottom: var(--space-6);
}
.pricing-features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  padding-left: var(--space-6);
  position: relative;
}
.section-dark .pricing-features li {
  color: var(--color-text);
  border-bottom-color: oklch(from var(--color-text-inverse) l c h / 0.1);
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.pricing-cta { width: 100%; text-align: center; }

.pricing-faq {
  max-width: 700px;
  margin: var(--space-16) auto 0;
}
.pricing-faq h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
  text-align: center;
}
.faq-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}
.faq-item h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.faq-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--color-primary-active);
  color: #FCFAF6;
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
}
.page-hero-sm {
  padding: var(--space-12) 0;
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.page-subtitle {
  font-size: var(--text-lg);
  color: rgba(252, 250, 246, 0.7);
  max-width: 600px;
}
.page-hero .section-tag {
  color: var(--color-gold);
}

/* ===== SAMPLE REPORT ===== */
.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
}
.report-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.report-meta-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.report-meta-value {
  font-size: var(--text-sm);
  font-weight: 600;
}
.badge-inline {
  display: inline-block;
  background: var(--color-terra-highlight);
  color: var(--color-terra);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.report-section {
  margin-bottom: var(--space-12);
  position: relative;
}
.report-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.report-section-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.report-section p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.report-stat-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.report-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.report-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.report-table-wrapper {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}
.report-table {
  font-size: var(--text-sm);
  min-width: 500px;
}
.report-table thead {
  background: var(--color-surface);
}
.report-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.report-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  color: var(--color-text);
}
.report-table tbody tr:last-child td { border-bottom: none; }

.signal-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.signal-high {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.signal-medium {
  background: var(--color-warning-highlight);
  color: var(--color-warning);
}

/* Blurred section */
.report-section-blurred {
  position: relative;
  overflow: hidden;
}
.blurred-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.initiative-card-blurred {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.initiative-card-blurred h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.initiative-card-blurred p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.blur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 20%;
  background: linear-gradient(to bottom, oklch(from var(--color-bg) l c h / 0) 0%, var(--color-bg) 40%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-8);
}
.blur-cta-box {
  text-align: center;
  max-width: 400px;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.blur-cta-box svg {
  margin: 0 auto var(--space-3);
  color: var(--color-primary);
}
.blur-cta-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.blur-cta-box p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  margin-inline: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background var(--transition-interactive), color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-highlight); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

.btn-gold {
  background: var(--color-gold);
  color: #13343B;
  font-weight: 600;
}
.btn-gold:hover { background: var(--color-gold-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold:active { transform: translateY(0); }

.btn-outline-light {
  background: transparent;
  color: #FCFAF6;
  border: 1px solid rgba(252, 250, 246, 0.3);
}
.btn-outline-light:hover { background: rgba(252, 250, 246, 0.1); border-color: rgba(252, 250, 246, 0.5); }

.btn-link {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--color-primary);
  font-size: var(--text-sm);
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-interactive);
}
.btn-link:hover { text-decoration-color: var(--color-primary); }

.link-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  font-size: inherit;
  padding: 0;
  transition: text-decoration-color var(--transition-interactive);
}
.link-btn:hover { text-decoration-color: var(--color-accent); }
.link-btn:disabled { opacity: 0.6; cursor: default; }

.verification-container {
  text-align: center;
  padding: var(--space-4) 0;
}
.verification-container .auth-form {
  text-align: left;
}

.custom-topics-section {
  margin-top: var(--space-4);
}
.form-label-subtle {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.custom-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 640px) {
  .custom-input-grid { grid-template-columns: 1fr; }
}
.custom-topic-input,
.custom-role-input {
  font-size: var(--text-sm) !important;
  padding: var(--space-2) var(--space-3) !important;
}

/* ===== AUTH FORMS ===== */
.auth-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.auth-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.auth-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.auth-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.auth-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.auth-footer a:hover { text-decoration: underline; }

.auth-success {
  text-align: center;
  padding: var(--space-6) 0;
}
.auth-success h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2);
}
.auth-success p {
  color: var(--color-text-muted);
  margin-inline: auto;
}
.success-icon { display: flex; justify-content: center; }
.success-icon svg { display: inline-block; }

/* ===== FORM ELEMENTS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
  outline: none;
}
.form-group input.error,
.form-group select.error {
  border-color: var(--color-error);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 1.2em;
}
.form-hint {
  font-weight: 400;
  color: var(--color-text-muted);
}
.required { color: var(--color-terra); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Password strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.password-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--color-divider);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  transition: width 0.3s, background 0.3s;
}
.password-strength-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.password-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.password-requirements .req {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.password-requirements .req.met {
  color: var(--color-success);
  background: var(--color-success-highlight);
}

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-2);
}
.checkbox-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.checkbox-label:hover {
  border-color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.04);
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

/* Request form */
.request-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.form-section {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.form-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.form-section-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.form-actions {
  text-align: center;
}
.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* Request success */
.request-success {
  text-align: center;
  padding: var(--space-8) 0;
}
.request-success h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2);
}
.request-success > p {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-6);
}
.success-icon-lg { display: flex; justify-content: center; }
.success-icon-lg svg { display: inline-block; }

.request-summary {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
  margin: var(--space-4) 0;
}
.request-summary .summary-row {
  display: flex;
  padding: var(--space-2) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  gap: var(--space-4);
}
.request-summary .summary-row:last-child { border-bottom: none; }
.request-summary .summary-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 140px;
  flex-shrink: 0;
}
.request-summary .summary-value {
  font-size: var(--text-sm);
  font-weight: 500;
}

.payment-placeholder {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-gold-highlight);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: left;
  margin-top: var(--space-4);
}
.payment-placeholder svg { flex-shrink: 0; color: var(--color-gold-active); margin-top: var(--space-1); }
.payment-placeholder strong { font-size: var(--text-sm); display: block; margin-bottom: var(--space-1); }
.payment-placeholder p { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; }

/* ===== PAYMENT PAGE ===== */
.payment-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
  width: 100%;
}
.payment-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.payment-icon svg { display: inline-block; }
.stripe-placeholder {
  margin-top: var(--space-6);
  padding: var(--space-8);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.stripe-logo { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.stripe-logo svg { display: inline-block; }
.stripe-placeholder h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.stripe-placeholder p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-inline: auto;
}
.stripe-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-4);
}
.stripe-features span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.stripe-features span svg { display: inline-block; flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary-active);
  color: #FCFAF6;
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
.footer-brand { }
.footer-logo {
  width: 180px;
  height: 32px;
  margin-bottom: var(--space-4);
}
.footer-tagline {
  color: rgba(252, 250, 246, 0.6);
  font-size: var(--text-sm);
}
.footer-links h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(252, 250, 246, 0.5);
  margin-bottom: var(--space-4);
}
.footer-links a {
  display: block;
  color: rgba(252, 250, 246, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-interactive);
}
.footer-links a:hover { color: var(--color-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(252, 250, 246, 0.1);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(252, 250, 246, 0.4);
}
.footer-attribution {
  font-size: var(--text-xs);
  color: rgba(252, 250, 246, 0.4);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-attribution:hover { color: rgba(252, 250, 246, 0.7); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ===== PAGE TRANSITIONS ===== */
.page { opacity: 1; transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.page.page-hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-stats { gap: var(--space-6); }
  .hero-stat-value { font-size: var(--text-xl); }
  .auth-card { padding: var(--space-6); }
  .report-preview-header { padding: var(--space-4); }
  .report-preview-content { padding: var(--space-4); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* =============================================================================
   ADMIN DASHBOARD — Premium Redesign
   ============================================================================= */

/* --- Buttons: small variant --- */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

/* --- Admin Lock Icon --- */
.admin-lock-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.admin-login-error {
  text-align: center;
  padding: var(--space-3);
  background: var(--color-error-highlight);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: var(--text-sm);
}

/* --- Admin Header Bar --- */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #13343B 0%, #0D262C 100%);
  color: #FCFAF6;
  border-bottom: none;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.admin-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, #FFC553 40%, var(--color-primary) 100%);
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  gap: var(--space-4);
}
.admin-header-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #FCFAF6;
  margin: 0;
  letter-spacing: 0.01em;
}
.admin-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.admin-user-badge {
  font-size: var(--text-xs);
  color: #13343B;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.admin-header .btn-secondary {
  border-color: rgba(252, 250, 246, 0.2);
  color: #FCFAF6;
  backdrop-filter: blur(4px);
  background: rgba(252, 250, 246, 0.06);
}
.admin-header .btn-secondary:hover {
  background: rgba(252, 250, 246, 0.14);
  border-color: rgba(252, 250, 246, 0.4);
}

/* --- Stats Cards --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.admin-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  transition: background var(--transition-interactive);
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19, 52, 59, 0.08);
}
.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  background: var(--color-surface-offset);
}
.admin-stat-icon svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.admin-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.admin-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.admin-stat-card--total::before { background: var(--color-text); }
.admin-stat-card--total .admin-stat-icon { background: var(--color-surface-offset-2); }
.admin-stat-card--total .admin-stat-icon svg { stroke: var(--color-text); }
.admin-stat-card--pending::before { background: var(--color-primary); }
.admin-stat-card--pending .admin-stat-value { color: var(--color-primary); }
.admin-stat-card--pending .admin-stat-icon { background: var(--color-primary-highlight); }
.admin-stat-card--pending .admin-stat-icon svg { stroke: var(--color-primary); }
.admin-stat-card--progress::before { background: var(--color-gold); }
.admin-stat-card--progress .admin-stat-value { color: var(--color-warning); }
.admin-stat-card--progress .admin-stat-icon { background: var(--color-gold-highlight); }
.admin-stat-card--progress .admin-stat-icon svg { stroke: var(--color-warning); }
.admin-stat-card--delivered::before { background: var(--color-success); }
.admin-stat-card--delivered .admin-stat-value { color: var(--color-success); }
.admin-stat-card--delivered .admin-stat-icon { background: var(--color-success-highlight); }
.admin-stat-card--delivered .admin-stat-icon svg { stroke: var(--color-success); }

/* --- Filters Bar --- */
.admin-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.admin-filter-select {
  padding: var(--space-2) var(--space-4);
  padding-right: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A6B6F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.admin-filter-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
  outline: none;
}
.admin-filter-search { flex: 1; min-width: 200px; }
.admin-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  padding-left: var(--space-10);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.admin-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
  outline: none;
}
.admin-filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.admin-filter-search::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

/* --- Orders Table --- */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.admin-table thead {
  background: var(--color-surface-2);
}
.admin-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.admin-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.4);
  vertical-align: middle;
}
.admin-table tbody tr {
  transition: background var(--transition-interactive);
}
.admin-table tbody tr:hover {
  background: oklch(from var(--color-primary) l c h / 0.03);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table .cell-company {
  font-weight: 600;
  color: var(--color-text);
}
.admin-table .cell-email {
  color: var(--color-text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table .cell-date {
  white-space: nowrap;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.admin-table .cell-urgency {
  text-transform: capitalize;
  font-weight: 500;
}
.admin-table .btn-view {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-interactive);
}
.admin-table .btn-view:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 2px 8px oklch(from var(--color-primary) l c h / 0.3);
}

/* --- Status Badges --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge--pending_payment {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}
.status-badge--pending_payment::before { background: var(--color-text-muted); }
.status-badge--paid {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.status-badge--paid::before { background: var(--color-primary); }
.status-badge--in_progress {
  background: var(--color-gold-highlight);
  color: #8B6914;
}
.status-badge--in_progress::before { background: #C48520; }
[data-theme="dark"] .status-badge--in_progress {
  color: var(--color-gold);
}
[data-theme="dark"] .status-badge--in_progress::before { background: var(--color-gold); }
.status-badge--review {
  background: var(--color-terra-highlight);
  color: var(--color-terra);
}
.status-badge--review::before { background: var(--color-terra); }
.status-badge--delivered {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.status-badge--delivered::before { background: var(--color-success); }

/* --- Empty / Loading States --- */
.admin-empty,
.admin-loading {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-faint);
}
.admin-empty svg,
.admin-loading svg {
  margin: 0 auto var(--space-4);
  opacity: 0.5;
}
.admin-empty p,
.admin-loading p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.admin-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  animation: admin-spin 0.8s linear infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }

/* --- Pagination --- */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}
.admin-page-info {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* --- Order Detail --- */
.admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.admin-back-btn:hover {
  color: var(--color-primary-hover);
  background: var(--color-primary-highlight);
}
.admin-back-btn svg { flex-shrink: 0; }

.admin-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.admin-order-company {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.admin-order-id {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: monospace;
  background: var(--color-surface-offset);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* --- Two-Column Detail Layout --- */
.admin-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.admin-detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.admin-detail-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.admin-detail-title svg {
  display: inline-block;
  flex-shrink: 0;
}

/* Detail Grid */
.admin-detail-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.admin-detail-row {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-divider) l c h / 0.5);
}
.admin-detail-row:last-child {
  border-bottom: none;
}
.admin-detail-label {
  flex: 0 0 140px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-detail-value {
  color: var(--color-text);
  word-break: break-word;
  font-weight: 500;
}

/* --- Actions Card --- */
.admin-action-section {
  margin-bottom: var(--space-5);
}
.admin-action-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.admin-action-row {
  display: flex;
  gap: var(--space-3);
}
.admin-action-row .admin-filter-select { flex: 1; }
.admin-action-msg {
  display: block;
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  min-height: 1.2em;
  font-weight: 500;
}
.admin-action-msg.success { color: var(--color-success); }
.admin-action-msg.error { color: var(--color-error); }

.admin-divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: var(--space-5) 0;
}

/* --- Existing Report Info --- */
.admin-existing-report {
  background: var(--color-success-highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  border: 1px solid oklch(from var(--color-success) l c h / 0.2);
}
.admin-report-file {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.admin-report-file svg { flex-shrink: 0; display: inline-block; }
.admin-report-actions {
  display: flex;
  gap: var(--space-2);
}

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive), transform var(--transition-interactive);
}
.upload-zone:hover {
  border-color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.04);
  transform: translateY(-1px);
}
.upload-zone.dragover {
  border-color: var(--color-gold);
  background: var(--color-gold-highlight);
  border-style: solid;
  transform: scale(1.01);
}
.upload-zone svg {
  margin: 0 auto var(--space-3);
  display: inline-block;
}
.upload-zone-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.upload-zone-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.upload-zone-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

/* --- File Preview --- */
.admin-file-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-3);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
}
.admin-file-preview svg { flex-shrink: 0; display: inline-block; }
.admin-file-remove {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1;
  padding: 0 var(--space-1);
  transition: color var(--transition-interactive);
}
.admin-file-remove:hover { color: var(--color-error); }

/* --- Upload Progress --- */
.upload-progress {
  margin-top: var(--space-4);
}
.upload-progress-bar {
  height: 8px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-gold) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease;
}
.upload-progress-text {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* --- Admin Responsive --- */
@media (max-width: 900px) {
  .admin-detail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-header-title {
    font-size: var(--text-base);
  }
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) {
    display: none;
  }
  .admin-filters {
    padding: var(--space-3);
  }
}
@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-filter-search { min-width: 0; }
  .admin-order-header {
    flex-direction: column;
  }
}

/* --- Admin Dark Mode Overrides --- */
[data-theme="dark"] .admin-header {
  background: linear-gradient(135deg, #0D1F23 0%, #081418 100%);
}
[data-theme="dark"] .admin-stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .admin-login-error {
  background: var(--color-error-highlight);
  color: var(--color-error);
}
[data-theme="dark"] .admin-existing-report {
  background: var(--color-success-highlight);
}
[data-theme="dark"] .upload-zone {
  border-color: var(--color-border);
}
[data-theme="dark"] .upload-zone:hover {
  border-color: var(--color-primary);
}
[data-theme="dark"] .upload-zone.dragover {
  border-color: var(--color-gold);
  background: var(--color-gold-highlight);
}
[data-theme="dark"] .admin-filter-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2397AAB0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="dark"] .admin-filter-search::before {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2397AAB0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* ===================================================================
   ADMIN NAV TABS
   =================================================================== */
.admin-nav-tabs {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
}
.admin-nav-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(252, 250, 246, 0.55);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
}
.admin-nav-tab:hover {
  color: rgba(252, 250, 246, 0.85);
}
.admin-nav-tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
  font-weight: 600;
}

/* Admin test order button */
.admin-test-order-btn {
  white-space: nowrap;
}

/* ===================================================================
   ADMIN MESSAGES SECTION
   =================================================================== */
.admin-messages-section {
  margin-top: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* ===================================================================
   MESSAGES (SHARED — admin + user)
   =================================================================== */
.messages-container {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: var(--space-5);
  padding: var(--space-3);
  overscroll-behavior: contain;
}
.messages-empty {
  text-align: center;
  color: var(--color-text-faint);
  padding: var(--space-10) 0;
  font-size: var(--text-sm);
}
.messages-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.message-bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.message-bubble--admin {
  align-self: flex-start;
  background: var(--color-primary-highlight);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}
.message-bubble--user {
  align-self: flex-end;
  background: var(--color-gold-highlight);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.2);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}
.message-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-1);
  gap: var(--space-3);
}
.message-sender {
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.message-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}
.message-bubble-body {
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.message-input-bar {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
}
.message-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
  min-height: 48px;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.message-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

/* ===================================================================
   USER PROFILE PAGE
   =================================================================== */
.profile-page-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.profile-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.profile-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.profile-field {
  margin-bottom: var(--space-4);
}
.profile-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.profile-value {
  font-size: var(--text-base);
  color: var(--color-text);
}
.profile-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}
.profile-section-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.profile-form .form-group {
  margin-bottom: var(--space-4);
}
.profile-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}
.profile-form input {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
  box-sizing: border-box;
}
.profile-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-success {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-highlight);
  color: var(--color-success);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* Profile order history */
.profile-orders {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.profile-orders-loading,
.profile-orders-empty {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.profile-order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform 0.15s ease;
}
.profile-order-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.profile-order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}
.profile-order-left {
  flex: 1;
  min-width: 0;
}
.profile-order-right {
  flex-shrink: 0;
}
.profile-order-company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.profile-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.profile-order-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-order-meta-item svg {
  opacity: 0.5;
}
.profile-order-report {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(46, 125, 50, 0.08);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 500;
}
.profile-order-action {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===================================================================
   USER ORDER DETAIL PAGE
   =================================================================== */
.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}
.order-detail-company {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}
.order-detail-id {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: 0;
  font-family: monospace;
  letter-spacing: 0.02em;
}
.order-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.order-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.order-detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.order-detail-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.order-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-4);
}
.order-info-row:last-child {
  border-bottom: none;
}
.order-info-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 110px;
}
.order-info-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

/* Status timeline */
.status-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}
.timeline-step::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.timeline-step:first-child::before {
  display: none;
}
.timeline-step--completed::before {
  background: var(--color-success);
}
.timeline-step--current::before {
  background: var(--color-success);
}
.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-2);
}
.timeline-step--completed .timeline-dot {
  background: var(--color-success);
  border-color: var(--color-success);
}
.timeline-step--current .timeline-dot {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px var(--color-gold-highlight);
}
.timeline-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.3;
}
.timeline-step--completed .timeline-label {
  color: var(--color-success);
}
.timeline-step--current .timeline-label {
  color: var(--color-gold-active);
  font-weight: 600;
}
.timeline-time {
  font-size: 10px;
  color: var(--color-text-faint);
  margin-top: 2px;
  line-height: 1.2;
}
.timeline-step--completed .timeline-time {
  color: var(--color-success);
  opacity: 0.7;
}
.timeline-step--current .timeline-time {
  color: var(--color-gold-active);
  opacity: 0.8;
}

/* Download card */
.order-download-card {
  border-color: var(--color-success);
  background: var(--color-success-highlight);
}
.order-report-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.order-report-info span {
  flex: 1;
  font-weight: 500;
}

/* Order messages card */
.order-messages-card {
  height: fit-content;
}

/* ===================================================================
   ADMIN ANALYTICS PAGE
   =================================================================== */
.analytics-filters {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.analytics-filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.analytics-filter-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.analytics-date-input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--color-bg);
  color: var(--color-text);
}
.analytics-date-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.analytics-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.analytics-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.analytics-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.analytics-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Bar chart */
.analytics-chart-card,
.analytics-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.analytics-chart-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.analytics-chart {
  min-height: 200px;
}
.analytics-chart-empty {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.analytics-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 200px;
  padding-top: var(--space-4);
}
.analytics-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}
.analytics-bar-value {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
}
.analytics-bar {
  width: 100%;
  max-width: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}
.analytics-bar-label {
  font-size: 9px;
  color: var(--color-text-faint);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===================================================================
   RESPONSIVE — NEW SECTIONS
   =================================================================== */
@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .order-detail-layout {
    grid-template-columns: 1fr;
  }
  .order-detail-header {
    flex-direction: column;
  }
  .analytics-stats {
    grid-template-columns: 1fr;
  }
  .analytics-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .status-timeline {
    flex-direction: column;
    gap: var(--space-3);
  }
  .timeline-step {
    flex-direction: row;
    gap: var(--space-3);
    text-align: left;
  }
  .timeline-step::before {
    top: auto;
    left: 9px;
    right: auto;
    bottom: 100%;
    width: 2px;
    height: 12px;
  }
  .timeline-step:first-child::before {
    display: none;
  }
  .message-bubble {
    max-width: 95%;
  }
  .admin-nav-tabs {
    margin-top: var(--space-1);
  }
  .admin-nav-tab {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }
}

/* ===================================================================
   DARK MODE — NEW SECTIONS
   =================================================================== */
[data-theme="dark"] .profile-card,
[data-theme="dark"] .profile-orders-loading,
[data-theme="dark"] .profile-orders-empty,
[data-theme="dark"] .profile-order-card,
[data-theme="dark"] .order-detail-card,
[data-theme="dark"] .analytics-stat-card,
[data-theme="dark"] .analytics-chart-card,
[data-theme="dark"] .analytics-table-card,
[data-theme="dark"] .admin-messages-section {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .profile-form input,
[data-theme="dark"] .message-input,
[data-theme="dark"] .analytics-date-input {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .message-bubble--admin {
  background: rgba(32, 128, 141, 0.15);
  border-color: var(--color-primary);
}
[data-theme="dark"] .message-bubble--user {
  background: rgba(255, 197, 83, 0.1);
  border-color: var(--color-gold);
}
[data-theme="dark"] .order-download-card {
  background: rgba(61, 122, 58, 0.1);
  border-color: var(--color-success);
}
[data-theme="dark"] .timeline-dot {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="dark"] .analytics-bar {
  background: var(--color-primary);
}
[data-theme="dark"] .admin-nav-tab {
  color: var(--color-text-faint);
}
[data-theme="dark"] .admin-nav-tab:hover {
  color: var(--color-text);
}
[data-theme="dark"] .admin-nav-tab.active {
  color: var(--color-gold);
}

/* ============================================================
   DISCOUNT CODE STYLES
   ============================================================ */

/* Report form — discount code row */
.discount-code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.discount-code-row input {
  flex: 1;
}
.discount-code-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Discount validation status */
.discount-status {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.discount-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.discount-error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.discount-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* Admin — panel header */
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.admin-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin: 0;
}

/* Admin — discount create form */
.discount-create-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 20px;
}

/* Extra small button */
.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  line-height: 1.4;
}

/* Danger button for delete */
.btn-danger {
  background: #c62828;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-danger:hover {
  background: #b71c1c;
}

/* Badge styles for discount table */
.badge-success {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-muted {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f5f5f5;
  color: #999;
}

/* Dark mode overrides for discount */
[data-theme="dark"] .discount-success {
  background: #1b3d1f;
  color: #81c784;
  border-color: #388e3c;
}
[data-theme="dark"] .discount-error {
  background: #3d1b1b;
  color: #ef9a9a;
  border-color: #c62828;
}
[data-theme="dark"] .discount-info {
  background: #1b2d3d;
  color: #90caf9;
  border-color: #1565c0;
}
[data-theme="dark"] .badge-success {
  background: #1b3d1f;
  color: #81c784;
}
[data-theme="dark"] .badge-muted {
  background: #2a2a2a;
  color: #777;
}
[data-theme="dark"] .discount-create-form {
  background: var(--color-surface-raised);
  border-color: var(--color-border);
}
