/* ── ServiceHub 'Hecta' design system — copied VERBATIM from servicehub/src/index.css ── */
/* ── DESIGN TOKENS ── */
:root {
  --font:         'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', sans-serif;

  /* Background layers */
  --bg:        #1A1A1A;
  --surface:   #222222;
  --surface-2: #2A2A2A;
  --surface-3: #303030;
  --mid:       #2A2A2A;
  --panel:     #2E2E2E;

  /* Brand accents */
  --teal:       #31BCAB;
  --teal-dark:  #27A091;
  --teal-glow:  rgba(49,188,171,0.22);
  --teal-tint:  rgba(49,188,171,0.12);
  --teal-border:rgba(49,188,171,0.25);
  --leaf:       #31BCAB;
  --leaf-light: #27A091;

  /* Semantic brand colours */
  --oker:  #F9C86F;
  --blue:  #6587A5;
  --pink:  #F3849B;
  --green:      #31BCAB;
  --green-dark: #27A091;
  --green-glow: rgba(49,188,171,0.22);
  --green-tint: rgba(49,188,171,0.12);

  /* Glass */
  --glass:        rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);

  /* Text */
  --text:   #FFFFFF;
  --text-2: rgba(255,255,255,0.45);
  --text-3: rgba(255,255,255,0.20);

  --border: rgba(255,255,255,0.10);
  --shadow: 0 8px 32px rgba(0,0,0,0.40);

  --r-xl: 28px;
  --r-lg: 22px;
  --r:    18px;
  --r-sm: 14px;

  /* ── THEME TOKENS ── */
  --bg-gradient:   radial-gradient(circle at 78% -5%, #1e3937 0%, #1c1c1c 45%, #111111 100%);
  --c-g-card:      rgba(182, 182, 182, 0.26);
  --c-g-border:    rgba(255,255,255,0.10);
  --c-g-shadow:    0 8px 32px rgba(0,0,0,0.38);
  --c-sidebar:     rgba(0,0,0,0.62);
  --c-topbar:      rgba(0,0,0,0.42);
  --c-nav:         rgba(14,14,14,0.92);
  --c-stripe:      rgba(0,0,0,0.28);
}

/* ── LIGHT THEME ── */
:root[data-theme="light"] {
  --bg-gradient:   radial-gradient(circle at 78% -5%, #a8dfd8 0%, #dcdcdc 50%, #f2f2f2 100%);
  --c-g-card:      rgba(10,10,10,0.68);
  --c-g-border:    rgba(255,255,255,0.18);
  --c-g-shadow:    0 8px 32px rgba(0,0,0,0.30);
  --c-sidebar:     rgba(255,255,255,0.90);
  --c-topbar:      rgba(0,0,0,0.42);
  --c-nav:         rgba(6,6,6,0.90);
  --c-stripe:      rgba(49,188,171,0.10);
}

/* ===================== HX — editorial "Hecta" design system ===================== */
/* Used across the active-driver pages. Page bg stays transparent so the body
   --bg-gradient shows through. Cards are fixed light/charcoal regardless of theme. */
.hx-page { max-width: 1100px; margin: 0 auto; padding: 22px; font-family: 'Inter', sans-serif; color: #1A1A1A; display: flex; flex-direction: column; gap: 18px; background: transparent; }
.hx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.hx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.hx-full { grid-column: 1 / -1; }

.hx-card { display: flex; flex-direction: column; border-radius: 28px; padding: 28px; box-sizing: border-box; }
.hx-light { background: #fff; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 34px rgba(0,0,0,0.10); }
.hx-dark { background: #1A1A1A; color: #fff; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 10px 34px rgba(0,0,0,0.18); }
.hx-soft { background: #f4f6f3; border: 1px solid rgba(0,0,0,0.05); }

.hx-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.hx-badge { align-self: flex-start; background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.08); color: rgba(0,0,0,0.55); border-radius: 50px; padding: 6px 14px; font-size: 11px; font-weight: 600; }
.hx-badge-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }

.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-chip { background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08); border-radius: 50px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.6); cursor: pointer; }
.hx-chip.on { background: rgba(49,188,171,0.12); border-color: rgba(49,188,171,0.40); color: #1f8a7d; }

.hx-h1 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 0.98; letter-spacing: -2px; margin: 0; }
.hx-twotone { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.15; letter-spacing: -0.8px; margin: 0; }
.hx-muted { color: rgba(0,0,0,0.32); }
.hx-h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; margin: 0; }
.hx-sub { font-size: 14.5px; color: rgba(0,0,0,0.5); line-height: 1.65; margin: 0; }
.hx-dark .hx-sub { color: rgba(255,255,255,0.6); }
.hx-dark .hx-muted { color: rgba(255,255,255,0.38); }

.hx-bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.hx-bigstat-val { font-family: 'Sora', sans-serif; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.hx-bigstat-lbl { font-size: 13px; color: rgba(0,0,0,0.45); margin-top: 7px; }

.hx-accent { background: #31BCAB; color: #062e2a; border-radius: 22px; padding: 24px; }
.hx-accent-num { font-family: 'Sora', sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.hx-accent-num span { font-size: 19px; font-weight: 700; }
.hx-accent-lbl { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; margin-top: 14px; }
.hx-accent-sub { font-size: 12px; color: rgba(6,46,42,0.7); margin-top: 6px; line-height: 1.5; }

.hx-darkbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: #1A1A1A; color: #fff; text-decoration: none; border-radius: 50px; padding: 13px 22px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; transition: background .2s; border: none; cursor: pointer; }
.hx-darkbtn:hover { background: #31BCAB; }
.hx-dark .hx-darkbtn { background: #31BCAB; }
.hx-dark .hx-darkbtn:hover { background: #6DDDD0; color: #062e2a; }
.hx-btn-sq { width: 24px; height: 24px; border-radius: 7px; background: #31BCAB; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hx-dark .hx-btn-sq { background: rgba(255,255,255,0.18); }
.hx-arrow { width: 46px; height: 46px; border-radius: 50%; background: #31BCAB; color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; box-shadow: 0 6px 16px rgba(49,188,171,0.4); }

.hx-list { display: flex; flex-direction: column; }
.hx-list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); width: 100%; text-align: left; background: none; }
.hx-list-row:last-child { border-bottom: none; }
.hx-ico-tile { width: 42px; height: 42px; border-radius: 12px; background: #f4f6f3; border: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.hx-status-pill { padding: 4px 12px; border-radius: 50px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* hero banner (full width, horizontal) */
.hx-hero { display: flex; gap: 30px; align-items: stretch; }
.hx-hero-main { flex: 1; display: flex; flex-direction: column; }
.hx-hero-side { width: 340px; flex-shrink: 0; display: flex; }
.hx-hero-side > * { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* product card + carousel dots */
.hx-product { position: relative; background: #f4f6f3; border: 1px solid rgba(0,0,0,0.05); border-radius: 22px; padding: 18px; }
.hx-product-km { position: absolute; top: 16px; left: 16px; z-index: 1; background: #fff; border-radius: 50px; padding: 5px 13px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.hx-product-img { height: 150px; border-radius: 14px; background-size: cover; background-position: center; margin: 8px 0 16px; }
.hx-dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
.hx-dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(0,0,0,0.15); cursor: pointer; padding: 0; transition: all .2s; }
.hx-dot.on { width: 22px; border-radius: 50px; background: #31BCAB; }

/* hero car showcase (giant brand word behind + PNG in front, slideshow) */
.hx-show { position: relative; flex: 1; align-self: stretch; min-height: 270px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hx-show-brand { position: absolute; z-index: 0; right: -4px; top: 50%; transform: translateY(-50%); font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(64px, 9vw, 150px); letter-spacing: -6px; color: rgba(255,255,255,0.07); line-height: 0.8; white-space: nowrap; pointer-events: none; user-select: none; }
.hx-show-car { position: relative; z-index: 2; width: 100%; max-height: 240px; object-fit: contain; object-position: center; filter: drop-shadow(0 26px 38px rgba(0,0,0,0.55)); animation: hxFade .55s ease; }
.hx-show-cap { position: absolute; left: 2px; bottom: 8px; z-index: 2; }
.hx-show-cap b { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: #fff; display: block; }
.hx-show-cap span { font-size: 12px; color: rgba(255,255,255,0.5); }
.hx-show-dots { position: absolute; right: 2px; bottom: 14px; z-index: 2; display: flex; gap: 7px; }
.hx-show-dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,0.25); cursor: pointer; padding: 0; transition: all .2s; }
.hx-show-dots button.on { width: 22px; border-radius: 50px; background: #31BCAB; }
@keyframes hxFade { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@media (min-width: 921px) {
  /* desktop: align the car + brand word toward the top, level with the headline */
  .hx-show { align-items: flex-start; padding-top: 8px; }
  .hx-show-brand { top: 32%; }
}
@media (max-width: 920px) {
  /* mobile: lift the brand word up, drop the car down so the left text stays clear */
  .hx-show { min-height: 250px; margin-top: 4px; }
  .hx-show-brand { font-size: clamp(58px, 18vw, 110px); top: 32%; }
  .hx-show-car { max-height: 185px; margin-top: 38px; }
}

/* OfferAccept hero — stays the dark (hx-dark) banner, but lays the car + brand
   on the right and stays side-by-side down to 760px (not the global 920px). */
.oa-hero { display: flex; flex-direction: row; gap: 30px; align-items: stretch; }
.oa-hero .hx-hero-main { flex: 1; display: flex; flex-direction: column; }
.oa-hero .hx-hero-side { width: 440px; flex-shrink: 0; display: flex; align-self: stretch; }
.oa-hero .hx-show { align-items: flex-end; min-height: 300px; }
/* full brand word, centered & higher; car sits lower so the word reads above it */
.oa-hero .hx-show-brand { top: 14%; left: 0; right: 0; transform: none; text-align: center; font-size: clamp(40px, 6vw, 78px); letter-spacing: -2px; }
.oa-hero .hx-show-car { margin-top: 50px; max-height: 220px; }
@media (max-width: 760px) {
  .oa-hero { flex-direction: column; gap: 14px; }
  .oa-hero .hx-hero-side { width: auto; }
  .oa-hero .hx-show-brand { font-size: clamp(40px, 14vw, 80px); }
}
@media (min-width: 761px) {
  /* desktop: bigger brand word, car raised to overlap it (word sits behind the car) */
  .oa-hero .hx-show { align-items: center; }
  .oa-hero .hx-show-brand { top: 34%; transform: translateY(-50%); font-size: clamp(54px, 8vw, 104px); letter-spacing: -3px; }
  .oa-hero .hx-show-car { margin-top: 0; max-height: 240px; }
}

/* App background — white with a soft blue/teal gradient behind every page/section */
body { background: radial-gradient(circle at 78% -5%, #a9e0e6 0%, #dfeaec 48%, #f5f9fa 100%) fixed; }

/* Flow top bar (brand + sign-out) for standalone onboarding pages */
.hx-flowbar { display: flex; align-items: center; justify-content: space-between; }
.hx-flowbar-brand { display: inline-flex; align-items: center; gap: 8px; }
.hx-flowbar-brand b { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px; color: #1A1A1A; letter-spacing: -0.3px; }
.hx-flowbar-name { font-size: 13px; color: rgba(0,0,0,0.55); font-weight: 600; }
.hx-flowbar-logout { width: 38px; height: 38px; border-radius: 50%; background: rgba(243,132,155,0.10); border: 1px solid rgba(243,132,155,0.22); color: #F3849B; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.hx-flowbar-logout:hover { background: rgba(243,132,155,0.18); }

@media (max-width: 920px) {
  .hx-grid, .hx-grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .hx-bigstats { grid-template-columns: repeat(2, 1fr); }
  .hx-hero { flex-direction: column; gap: 20px; }
  .hx-hero-side { width: auto; }
}
@media (max-width: 680px) {
  .hx-page { padding: 14px; gap: 14px; }
  .hx-card { padding: 22px; border-radius: 24px; }
}
