@tailwind base;
@tailwind components;
@tailwind utilities;

/* ══════════════════════════════════════════════════════════════════
   THE UNSAID — ما لم تقوله
   Global Design System

   Architecture:
     — Background is always a full-screen image (never a flat color)
     — All UI surfaces are glass panels floating over the image
     — Two context colors drive the entire visual language:
         Blue  → في وجود الناس  (public context)
         Honey → لو كنت لوحدك   (private context)
     — Two layouts:
         Mobile  : full width, single column, bottom nav
         Desktop : max-width 1250px centered, side nav

   Variable prefix: --us-  (UNSAID System)
   Tailwind handles spacing/sizing utilities.
   Custom classes handle all UNSAID-specific components.
══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
══════════════════════════════════════════════════════════════════ */

:root {

  /* ── Background Image Layer ──────────────────────────────────
     The actual image is set per-page via inline style or JS.
     These overlays sit on top of every background image.      */
  --us-bg-overlay-primary:   rgba(8, 18, 38, 0.52);
  --us-bg-overlay-blue:      rgba(12, 32, 72, 0.42);
  --us-bg-overlay-honey:     rgba(55, 25, 5, 0.38);

  /* ── Glass Surface System ────────────────────────────────────
     Three levels of glass opacity for visual hierarchy.
     Light = secondary info, Mid = main cards, Strong = nav/modals */
  --us-glass-light:          rgba(255, 255, 255, 0.06);
  --us-glass-mid:            rgba(255, 255, 255, 0.10);
  --us-glass-strong:         rgba(10, 22, 48, 0.55);

  --us-glass-blur:           blur(20px) saturate(1.5);
  --us-glass-blur-heavy:     blur(28px) saturate(1.6);
  --us-glass-blur-light:     blur(12px) saturate(1.3);

  /* ── Blue — Public Context (في وجود الناس) ──────────────────
     Pulled from the cool window light in the café image.      */
  --us-blue:                 rgba(100, 165, 255, 0.90);
  --us-blue-mid:             rgba(60,  130, 220, 0.65);
  --us-blue-dim:             rgba(25,  65,  140, 0.40);
  --us-blue-glass:           rgba(30,  70,  150, 0.22);
  --us-blue-border:          rgba(110, 175, 255, 0.28);
  --us-blue-border-active:   rgba(130, 195, 255, 0.65);
  --us-blue-text:            rgba(175, 215, 255, 0.97);
  --us-blue-text-muted:      rgba(140, 190, 255, 0.65);
  --us-blue-badge-bg:        rgba(40,  95,  200, 0.38);
  --us-blue-selected-bg:     rgba(50,  110, 215, 0.28);
  --us-blue-selected-border: rgba(120, 185, 255, 0.65);
  --us-blue-hover-bg:        rgba(70,  135, 225, 0.18);

  /* ── Honey — Private Context (لو كنت لوحدك) ─────────────────
     Pulled from the warm pendant lamp glow in the café image. */
  --us-honey:                rgba(240, 185, 75,  0.95);
  --us-honey-mid:            rgba(200, 140, 38,  0.65);
  --us-honey-dim:            rgba(90,  52,  8,   0.40);
  --us-honey-glass:          rgba(100, 58,  10,  0.22);
  --us-honey-border:         rgba(205, 155, 52,  0.28);
  --us-honey-border-active:  rgba(225, 175, 68,  0.65);
  --us-honey-text:           rgba(245, 192, 82,  0.97);
  --us-honey-text-muted:     rgba(210, 165, 62,  0.65);
  --us-honey-badge-bg:       rgba(155, 95,  15,  0.40);
  --us-honey-selected-bg:    rgba(165, 102, 18,  0.32);
  --us-honey-selected-border:rgba(222, 168, 58,  0.68);
  --us-honey-hover-bg:       rgba(180, 112, 22,  0.20);

  /* ── Neutral Text ────────────────────────────────────────────*/
  --us-text-primary:         rgba(245, 240, 228, 0.97);
  --us-text-secondary:       rgba(210, 205, 192, 0.75);
  --us-text-muted:           rgba(175, 170, 158, 0.55);
  --us-text-disabled:        rgba(150, 145, 135, 0.38);

  /* ── Neutral Glass Borders ───────────────────────────────────*/
  --us-border:               rgba(200, 210, 230, 0.14);
  --us-border-mid:           rgba(200, 210, 230, 0.24);
  --us-border-strong:        rgba(200, 210, 230, 0.38);

  /* ── Gap Score Colors ────────────────────────────────────────
     Low gap = calm blue, High gap = intense honey/amber        */
  --us-gap-low:              rgba(100, 175, 255, 0.85);
  --us-gap-mid:              rgba(200, 155, 50,  0.85);
  --us-gap-high:             rgba(235, 120, 60,  0.90);

  /* ── Status Colors ───────────────────────────────────────────*/
  --us-success:              rgba(52,  211, 153, 0.90);
  --us-success-bg:           rgba(16,  90,  60,  0.30);
  --us-success-border:       rgba(52,  211, 153, 0.25);
  --us-danger:               rgba(248, 113, 113, 0.90);
  --us-danger-bg:            rgba(100, 20,  20,  0.35);
  --us-danger-border:        rgba(248, 113, 113, 0.25);

  /* ── Shadows ─────────────────────────────────────────────────*/
  --us-shadow-card:          0 8px 40px rgba(4, 12, 30, 0.38);
  --us-shadow-nav:           0 -4px 24px rgba(4, 12, 30, 0.45);
  --us-shadow-modal:         0 20px 60px rgba(4, 12, 30, 0.65);

  /* ── Border Radius ───────────────────────────────────────────*/
  --us-radius-sm:            0.5rem;     /*  8px — badges, chips      */
  --us-radius-md:            0.875rem;   /* 14px — inputs, small cards */
  --us-radius-lg:            1.125rem;   /* 18px — main cards          */
  --us-radius-xl:            1.5rem;     /* 24px — bottom sheet, modal */
  --us-radius-pill:          9999px;     /* pills, context labels       */

  /* ── Typography ──────────────────────────────────────────────
     Tajawal is the only font — Arabic-first, clean at all weights */
  --us-font:                 'Tajawal', sans-serif;

  /* ── Transitions ─────────────────────────────────────────────*/
  --us-transition-fast:      0.15s ease;
  --us-transition-mid:       0.22s ease;
  --us-transition-slow:      0.38s ease;

  /* ── Layout ──────────────────────────────────────────────────*/
  --us-desktop-max:          1250px;
  --us-mobile-max:           480px;
  --us-nav-height-top:       60px;
  --us-nav-height-bottom:    64px;
  --us-desktop-sidebar:      240px;
}


/* ══════════════════════════════════════════════════════════════════
   2. GLOBAL BASE
══════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  direction: rtl;
  lang: ar;
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  font-family: var(--us-font);
  background: #0a1220;
  color: var(--us-text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ───────────────────────────────────────────────────*/
::-webkit-scrollbar         { width: 3px; height: 3px; }
::-webkit-scrollbar-track   { background: transparent; }
::-webkit-scrollbar-thumb   { background: rgba(130, 180, 255, 0.18); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(130, 180, 255, 0.35); }


/* ══════════════════════════════════════════════════════════════════
   3. BACKGROUND IMAGE SYSTEM
   The image and the overlays are always separate layers.
   .us-bg-image is set via inline style per page/component.
══════════════════════════════════════════════════════════════════ */

.us-bg-fixed {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.8s ease;
}

/* Primary overlay — darkens the image uniformly */
.us-bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(6, 14, 30, 0.58) 0%,
      rgba(4, 10, 20, 0.32) 45%,
      rgba(18, 8, 3, 0.52) 100%
    ),
    radial-gradient(ellipse at 15% 50%, rgba(10, 30, 75, 0.42) 0%, transparent 62%),
    radial-gradient(ellipse at 85% 65%, rgba(70, 38, 6, 0.32) 0%, transparent 55%);
  z-index: 1;
}

/* App shell sits above both layers */
.us-app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ══════════════════════════════════════════════════════════════════
   4. LAYOUT — MOBILE (default, full width)
══════════════════════════════════════════════════════════════════ */

/* The scrollable content column */
.us-content {
  width: 100%;
  max-width: var(--us-mobile-max);
  margin: 0 auto;
  padding: var(--us-nav-height-top) 0 calc(var(--us-nav-height-bottom) + 16px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Inner padding for page sections */
.us-page {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}


/* ══════════════════════════════════════════════════════════════════
   5. LAYOUT — DESKTOP (≥ 1024px, max 1250px)
══════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {

  .us-content {
    max-width: var(--us-desktop-max);
    padding-top: var(--us-nav-height-top);
    padding-bottom: 40px;
    padding-right: calc(var(--us-desktop-sidebar) + 32px);
    padding-left: 32px;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .us-page {
    flex: 1;
    max-width: 680px;
    padding: 28px 0 0;
    gap: 18px;
  }

  /* On desktop the bottom nav becomes a side nav */
  .us-bottom-nav {
    display: none;
  }

  .us-side-nav {
    display: flex;
  }
}


/* ══════════════════════════════════════════════════════════════════
   6. GLASS CARD SYSTEM
   Base glass + two context variants (blue / honey)
══════════════════════════════════════════════════════════════════ */

/* Base glass card */
.us-card {
  background: var(--us-glass-mid);
  backdrop-filter: var(--us-glass-blur);
  -webkit-backdrop-filter: var(--us-glass-blur);
  border-radius: var(--us-radius-lg);
  border: 1px solid var(--us-border);
  box-shadow: var(--us-shadow-card), inset 0 1px 0 rgba(200, 215, 255, 0.08);
  transition: border-color var(--us-transition-mid);
}

/* Blue variant — public context */
.us-card-blue {
  background: var(--us-glass-mid);
  backdrop-filter: var(--us-glass-blur);
  -webkit-backdrop-filter: var(--us-glass-blur);
  border-radius: var(--us-radius-lg);
  border: 1px solid var(--us-blue-border);
  box-shadow: var(--us-shadow-card), inset 0 1px 0 rgba(160, 210, 255, 0.10);
}

/* Honey variant — private context */
.us-card-honey {
  background: rgba(80, 42, 5, 0.18);
  backdrop-filter: var(--us-glass-blur);
  -webkit-backdrop-filter: var(--us-glass-blur);
  border-radius: var(--us-radius-lg);
  border: 1px solid var(--us-honey-border);
  box-shadow: var(--us-shadow-card), inset 0 1px 0 rgba(225, 175, 70, 0.10);
}

/* Hover state — only on interactive cards */
.us-card-interactive:hover {
  border-color: var(--us-border-mid);
  cursor: pointer;
}

/* Standard card padding */
.us-card-body {
  padding: 18px 20px;
}

.us-card-body-lg {
  padding: 22px 24px;
}


/* ══════════════════════════════════════════════════════════════════
   7. TOP NAV
══════════════════════════════════════════════════════════════════ */

.us-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--us-nav-height-top);
  z-index: 100;
  background: rgba(8, 18, 35, 0.15);;
  backdrop-filter: var(--us-glass-blur-heavy);
  -webkit-backdrop-filter: var(--us-glass-blur-heavy);
  border-bottom: 0.5px solid var(--us-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  overflow: visible;
}

@media (min-width: 1024px) {
  .us-top-nav {
    max-width: 100%;
  }
}



/* Logo */
.us-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--us-blue-text);
  line-height: 1;
}

.us-logo-accent {
  color: var(--us-honey-text);
}

.us-logo-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--us-text-muted);
  margin-top: 2px;
  display: block;
}

/* Nav avatar */
.us-nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--us-blue-dim);
  border: 1px solid var(--us-blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--us-blue-text);
  cursor: pointer;
  transition: border-color var(--us-transition-fast);
  flex-shrink: 0;
}

.us-nav-avatar:hover {
  border-color: var(--us-blue-border-active);
}


/* ══════════════════════════════════════════════════════════════════
   8. BOTTOM NAV (mobile)
══════════════════════════════════════════════════════════════════ */

.us-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--us-nav-height-bottom);
  z-index: 100;
  background: var(--us-glass-strong);
  backdrop-filter: var(--us-glass-blur-heavy);
  -webkit-backdrop-filter: var(--us-glass-blur-heavy);
  border-top: 0.5px solid var(--us-border);
  box-shadow: var(--us-shadow-nav);
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.us-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  opacity: 0.45;
  color: var(--us-blue-text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity var(--us-transition-fast);
  user-select: none;
}

.us-nav-item:hover {
  opacity: 0.75;
}

.us-nav-item.active {
  opacity: 1;
}

.us-nav-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.us-nav-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--us-radius-pill);
  background: var(--us-blue-text);
  margin-top: -1px;
  opacity: 0;
  transition: opacity var(--us-transition-fast);
}

.us-nav-item.active .us-nav-dot {
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════════
   9. SIDE NAV (desktop only — hidden on mobile)
══════════════════════════════════════════════════════════════════ */

.us-side-nav {
  display: none;  /* shown via media query above */
  flex-direction: column;
  gap: 4px;
  width: var(--us-desktop-sidebar);
  position: sticky;
  top: calc(var(--us-nav-height-top) + 28px);
  padding-top: 28px;
  flex-shrink: 0;
}

.us-side-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--us-radius-md);
  color: var(--us-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--us-transition-fast);
  text-decoration: none;
}

.us-side-nav-item:hover {
  background: var(--us-glass-light);
  color: var(--us-text-primary);
  border-color: var(--us-border);
}

.us-side-nav-item.active {
  background: var(--us-blue-glass);
  color: var(--us-blue-text);
  border-color: var(--us-blue-border);
}

.us-side-nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════
   10. DATE / CASE STRIP
══════════════════════════════════════════════════════════════════ */

.us-date-strip {
  background: rgba(18, 42, 90, 0.38);
  backdrop-filter: var(--us-glass-blur-light);
  -webkit-backdrop-filter: var(--us-glass-blur-light);
  border-radius: var(--us-radius-md);
  border: 1px solid rgba(90, 150, 255, 0.18);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.us-date-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--us-blue-text-muted);
  white-space: nowrap;
}

.us-date-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--us-blue-text);
}

.us-case-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(130, 185, 255, 0.55);
  background: rgba(35, 78, 165, 0.30);
  border: 1px solid rgba(90, 150, 255, 0.20);
  padding: 3px 10px;
  border-radius: var(--us-radius-pill);
  white-space: nowrap;
}


/* ══════════════════════════════════════════════════════════════════
   11. SITUATION CARD
══════════════════════════════════════════════════════════════════ */

.us-track-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--us-blue-text-muted);
  margin-bottom: 14px;
}

.us-track-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--us-blue-text-muted);
  animation: us-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes us-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.us-situation {
  font-size: 16px;
  font-weight: 500;
  color: var(--us-text-primary);
  line-height: 1.85;
}

@media (min-width: 1024px) {
  .us-situation {
    font-size: 17px;
  }
}


/* ══════════════════════════════════════════════════════════════════
   12. CONTEXT PILLS  (في وجود الناس / لو كنت لوحدك)
══════════════════════════════════════════════════════════════════ */

.us-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: var(--us-radius-pill);
  margin-bottom: 14px;
}

.us-pill-blue {
  background: var(--us-blue-dim);
  border: 1px solid rgba(100, 162, 255, 0.35);
  color: var(--us-blue-text);
}

.us-pill-honey {
  background: var(--us-honey-dim);
  border: 1px solid rgba(200, 150, 48, 0.35);
  color: var(--us-honey-text);
}

.us-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.us-pill-blue  .us-pill-dot { background: var(--us-blue-text); }
.us-pill-honey .us-pill-dot { background: var(--us-honey-text); }


/* ══════════════════════════════════════════════════════════════════
   13. ANSWER OPTIONS
   Number badge uses Arabic numerals: ١ ٢ ٣
══════════════════════════════════════════════════════════════════ */

.us-answers {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Single answer row */
.us-answer {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--us-radius-md);
  border: 1px solid var(--us-blue-border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    background    var(--us-transition-fast),
    border-color  var(--us-transition-fast),
    transform     var(--us-transition-fast);
  text-align: right;
  user-select: none;
}

.us-answer:hover {
  background: var(--us-blue-hover-bg);
  border-color: rgba(120, 182, 255, 0.42);
  transform: translateX(-3px);
}

/* Honey variant rows */
.us-answer-honey {
  border-color: var(--us-honey-border);
}

.us-answer-honey:hover {
  background: var(--us-honey-hover-bg);
  border-color: rgba(215, 162, 58, 0.45);
}

/* Selected states */
.us-answer.selected {
  background: var(--us-blue-selected-bg);
  border-color: var(--us-blue-selected-border);
  box-shadow: inset 0 1px 0 rgba(160, 210, 255, 0.14);
}

.us-answer-honey.selected {
  background: var(--us-honey-selected-bg);
  border-color: var(--us-honey-selected-border);
  box-shadow: inset 0 1px 0 rgba(240, 192, 80, 0.14);
}

/* Disabled after submission */
.us-answer.disabled {
  pointer-events: none;
  opacity: 0.62;
}

/* Number badge — Arabic numerals (١ ٢ ٣) */
.us-answer-num {
  min-width: 26px;
  height: 26px;
  border-radius: var(--us-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--us-transition-fast), border-color var(--us-transition-fast);
}

.us-answer-num-blue {
  background: var(--us-blue-badge-bg);
  color: var(--us-blue-text);
  border: 1px solid rgba(100, 162, 255, 0.32);
}

.us-answer-num-honey {
  background: var(--us-honey-badge-bg);
  color: var(--us-honey-text);
  border: 1px solid rgba(200, 148, 48, 0.32);
}

/* Answer text */
.us-answer-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(228, 222, 210, 0.92);
  line-height: 1.70;
  flex: 1;
}

/* Check circle */
.us-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 182, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  transition: all var(--us-transition-fast);
}

.us-answer-honey .us-check {
  border-color: rgba(200, 148, 48, 0.45);
}

.us-answer.selected .us-check {
  background: rgba(110, 175, 255, 0.90);
  border-color: rgba(150, 205, 255, 0.92);
}

.us-answer-honey.selected .us-check {
  background: rgba(210, 158, 45, 0.90);
  border-color: rgba(238, 182, 68, 0.92);
}

.us-check::after {
  content: '';
  width: 5px;
  height: 8px;
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity var(--us-transition-fast);
}

.us-answer.selected .us-check::after {
  opacity: 1;
}

/* None option */
.us-none-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: var(--us-radius-md);
  border: 1px dashed rgba(140, 192, 255, 0.18);
  background: transparent;
  cursor: pointer;
  color: rgba(160, 196, 240, 0.42);
  font-family: var(--us-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition:
    color         var(--us-transition-fast),
    border-color  var(--us-transition-fast);
  margin-top: 2px;
}

.us-none-option:hover {
  color: rgba(160, 196, 240, 0.80);
  border-color: rgba(140, 192, 255, 0.36);
}

.us-none-option-honey {
  border-color: rgba(198, 145, 44, 0.18);
  color: rgba(218, 168, 65, 0.42);
}

.us-none-option-honey:hover {
  color: rgba(218, 168, 65, 0.80);
  border-color: rgba(198, 145, 44, 0.36);
}

.us-none-option.selected,
.us-none-option-honey.selected {
  color: var(--us-text-secondary);
  border-style: solid;
}


/* ══════════════════════════════════════════════════════════════════
   14. GAP SCORE CARD
══════════════════════════════════════════════════════════════════ */

.us-gap-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--us-honey-text-muted);
  margin-bottom: 6px;
}

.us-gap-score {
  font-size: 44px;
  font-weight: 800;
  color: var(--us-honey-text);
  line-height: 1;
}

.us-gap-denom {
  font-size: 16px;
  font-weight: 400;
  color: rgba(210, 165, 62, 0.50);
}

.us-gap-insight {
  font-size: 13px;
  font-weight: 400;
  color: rgba(232, 188, 80, 0.82);
  line-height: 1.80;
  font-style: italic;
}

/* Gap bar */
.us-gap-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.us-gap-bar-label {
  font-size: 11px;
  color: var(--us-honey-text-muted);
  min-width: 50px;
  text-align: center;
}

.us-gap-bar-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.us-gap-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to left, rgba(228, 178, 55, 0.92), rgba(195, 135, 28, 0.55));
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Low / high gap color overrides */
.us-gap-bar-fill.low  { background: linear-gradient(to left, rgba(100, 175, 255, 0.85), rgba(60, 130, 210, 0.45)); }
.us-gap-bar-fill.high { background: linear-gradient(to left, rgba(235, 120, 58, 0.92), rgba(190, 80, 30, 0.55)); }

/* Dimension chips grid */
.us-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.us-dim-chip {
  padding: 9px 11px;
  border-radius: var(--us-radius-md);
  background: rgba(95, 55, 8, 0.32);
  border: 1px solid rgba(192, 142, 44, 0.20);
}

.us-dim-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--us-honey-text-muted);
  margin-bottom: 3px;
}

.us-dim-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--us-honey-text);
}


/* ══════════════════════════════════════════════════════════════════
   15. BUTTONS
══════════════════════════════════════════════════════════════════ */

/* Primary — submit / main CTA */
.us-btn-primary {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--us-radius-md);
  background: rgba(35, 88, 190, 0.55);
  border: 1px solid rgba(100, 165, 255, 0.45);
  color: rgba(185, 220, 255, 0.97);
  font-family: var(--us-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: var(--us-glass-blur-light);
  -webkit-backdrop-filter: var(--us-glass-blur-light);
  box-shadow: 0 4px 22px rgba(18, 58, 155, 0.28);
  transition: all var(--us-transition-mid);
  text-align: center;
}

.us-btn-primary:hover {
  background: rgba(50, 108, 215, 0.70);
  border-color: rgba(130, 192, 255, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(18, 58, 155, 0.42);
}

.us-btn-primary:active {
  transform: translateY(0);
}

.us-btn-primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

/* Secondary — ghost */
.us-btn-secondary {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--us-radius-md);
  background: transparent;
  border: 1px solid var(--us-border);
  color: var(--us-text-muted);
  font-family: var(--us-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--us-transition-fast);
  text-align: center;
}

.us-btn-secondary:hover {
  color: var(--us-text-secondary);
  border-color: var(--us-border-mid);
}

/* Honey CTA — for report generation */
.us-btn-honey {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--us-radius-md);
  background: rgba(145, 88, 14, 0.48);
  border: 1px solid rgba(205, 152, 50, 0.45);
  color: rgba(245, 195, 85, 0.97);
  font-family: var(--us-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: var(--us-glass-blur-light);
  -webkit-backdrop-filter: var(--us-glass-blur-light);
  box-shadow: 0 4px 22px rgba(80, 42, 5, 0.32);
  transition: all var(--us-transition-mid);
  text-align: center;
}

.us-btn-honey:hover {
  background: rgba(170, 108, 20, 0.62);
  border-color: rgba(228, 175, 65, 0.65);
  transform: translateY(-1px);
}

/* Small icon action button */
.us-btn-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--us-radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--us-text-muted);
  cursor: pointer;
  transition: all var(--us-transition-fast);
}

.us-btn-icon:hover {
  color: var(--us-blue-text);
  background: var(--us-blue-glass);
  border-color: var(--us-blue-border);
}


/* ══════════════════════════════════════════════════════════════════
   16. BADGES & TAGS
══════════════════════════════════════════════════════════════════ */

.us-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--us-radius-pill);
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.us-badge-blue {
  background: var(--us-blue-dim);
  color: var(--us-blue-text);
  border-color: var(--us-blue-border);
}

.us-badge-honey {
  background: var(--us-honey-dim);
  color: var(--us-honey-text);
  border-color: var(--us-honey-border);
}

.us-badge-success {
  background: var(--us-success-bg);
  color: var(--us-success);
  border-color: var(--us-success-border);
}

.us-badge-danger {
  background: var(--us-danger-bg);
  color: var(--us-danger);
  border-color: var(--us-danger-border);
}

.us-badge-neutral {
  background: rgba(100, 100, 100, 0.18);
  color: var(--us-text-muted);
  border-color: rgba(150, 150, 150, 0.22);
}


/* ══════════════════════════════════════════════════════════════════
   17. INPUTS & FORM ELEMENTS
══════════════════════════════════════════════════════════════════ */

.us-input,
.us-select,
.us-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--us-border-mid);
  border-radius: var(--us-radius-md);
  color: var(--us-text-primary);
  font-family: var(--us-font);
  font-size: 14px;
  font-weight: 400;
  padding: 11px 14px;
  transition: border-color var(--us-transition-fast), box-shadow var(--us-transition-fast);
  backdrop-filter: var(--us-glass-blur-light);
  -webkit-backdrop-filter: var(--us-glass-blur-light);
}

.us-input::placeholder,
.us-textarea::placeholder {
  color: var(--us-text-muted);
}

.us-input:focus,
.us-select:focus,
.us-textarea:focus {
  outline: none;
  border-color: var(--us-blue-border-active);
  box-shadow: 0 0 0 3px rgba(80, 145, 255, 0.12);
}

.us-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--us-text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
}

.us-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


/* ══════════════════════════════════════════════════════════════════
   18. MODALS
══════════════════════════════════════════════════════════════════ */

.us-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 1024px) {
  .us-modal-backdrop {
    align-items: center;
  }
}

.us-modal {
  width: 100%;
  max-width: var(--us-mobile-max);
  background: rgba(10, 22, 50, 0.82);
  backdrop-filter: var(--us-glass-blur-heavy);
  -webkit-backdrop-filter: var(--us-glass-blur-heavy);
  border: 1px solid var(--us-border-mid);
  border-radius: var(--us-radius-xl) var(--us-radius-xl) 0 0;
  box-shadow: var(--us-shadow-modal);
  padding: 24px 20px 32px;
}

@media (min-width: 1024px) {
  .us-modal {
    border-radius: var(--us-radius-xl);
    max-width: 520px;
  }
}

.us-modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--us-border-strong);
  margin: 0 auto 20px;
}

.us-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--us-text-primary);
  margin-bottom: 8px;
}

/* Transitions */
.us-modal-enter-active { transition: opacity var(--us-transition-mid), transform var(--us-transition-mid); }
.us-modal-leave-active { transition: opacity var(--us-transition-fast), transform var(--us-transition-fast); }
.us-modal-enter-from  { opacity: 0; transform: translateY(24px); }
.us-modal-leave-to    { opacity: 0; transform: translateY(12px); }


/* ══════════════════════════════════════════════════════════════════
   19. DIVIDERS & SPACING HELPERS
══════════════════════════════════════════════════════════════════ */

.us-divider {
  height: 0.5px;
  background: var(--us-border);
  border: none;
  margin: 4px 0;
}

.us-spacer { flex: 1; }


/* ══════════════════════════════════════════════════════════════════
   20. PAGE ENTER ANIMATIONS
   Staggered fade-up for cards on mount.
   Apply .us-fade-item to direct children of .us-page.
══════════════════════════════════════════════════════════════════ */

.us-fade-item {
  opacity: 0;
  transform: translateY(14px);
  animation: usFadeUp 0.45s ease forwards;
}

.us-fade-item:nth-child(1) { animation-delay: 0.04s; }
.us-fade-item:nth-child(2) { animation-delay: 0.10s; }
.us-fade-item:nth-child(3) { animation-delay: 0.16s; }
.us-fade-item:nth-child(4) { animation-delay: 0.22s; }
.us-fade-item:nth-child(5) { animation-delay: 0.28s; }
.us-fade-item:nth-child(6) { animation-delay: 0.34s; }

@keyframes usFadeUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════════════
   21. UTILITIES
══════════════════════════════════════════════════════════════════ */

/* Text */
.us-text-primary   { color: var(--us-text-primary); }
.us-text-secondary { color: var(--us-text-secondary); }
.us-text-muted     { color: var(--us-text-muted); }
.us-text-blue      { color: var(--us-blue-text); }
.us-text-honey     { color: var(--us-honey-text); }
.us-text-success   { color: var(--us-success); }
.us-text-danger    { color: var(--us-danger); }

/* Font weight */
.us-fw-400 { font-weight: 400; }
.us-fw-500 { font-weight: 500; }
.us-fw-700 { font-weight: 700; }
.us-fw-800 { font-weight: 800; }

/* Flex helpers */
.us-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.us-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.us-flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* Visibility */
.us-hidden   { display: none !important; }
.us-sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
