/* ═══════════════════════════════════════════════════════════════
   AutoPick — Apple / iPhone Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Apple palette */
  --blue:        #35949e;
  --blue-dark:   #2a7880;
  --blue-light:  #e6f5f6;
  --green:       #34C759;
  --orange:      #FF9500;
  --red:         #FF3B30;

  /* Neutrals */
  --black:       #1d1d1f;
  --gray-1:      #3a3a3c;
  --gray-2:      #636366;
  --gray-3:      #8e8e93;
  --gray-4:      #aeaeb2;
  --gray-5:      #d1d1d6;
  --gray-6:      #e5e5ea;
  --gray-7:      #f2f2f7;
  --white:       #ffffff;

  /* Semantic */
  --primary:     var(--blue);
  --primary-dark: var(--blue-dark);
  --text:        var(--black);
  --text-muted:  var(--gray-2);
  --border:      var(--gray-6);
  --bg:          var(--white);
  --bg-light:    var(--gray-7);

  /* Spacing */
  --container:   1120px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  /* Fonts */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:   0 24px 64px rgba(0,0,0,.18);

  /* Transitions */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --spring:      cubic-bezier(.34, 1.56, .64, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER / NAVBAR ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 90px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 90px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

/* Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--blue); }
/* Reverse Prompt 47: img width="2510"/height="1664" (intrinsic attrs, CLS fix
   v119) were rendered as real box size because no CSS width was set — logo
   stretched full-width and pushed .nav/.nav-actions out of the header row.
   width:auto lets the browser scale from the height while keeping the
   intrinsic attributes for aspect-ratio/CLS. */
.logo img {
  height: 96px;
  width: auto;
  display: block;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 20px;
  padding: 4px;
  background: rgba(17,24,39,.045);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.nav a {
  display: inline-block;
  padding: 6px 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-1);
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
  background: rgba(0,122,255,.08);
}
.nav a.active {
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nbu-rate-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  cursor: help;
  white-space: nowrap;
}
.nbu-rate-badge-label { opacity: .8; }

@media (max-width: 900px) {
  .header-brand { gap: 8px; }
  .nbu-rate-badge { font-size: .64rem; padding: 2px 7px; }
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  margin-left: auto;
  transition: background .2s;
}
.hamburger:hover { background: var(--gray-7); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .2s;
}
.mobile-nav a:hover { background: var(--gray-7); }
.mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.mobile-nav .btn { width: 100%; text-align: center; margin-top: 4px; }

/* Push content below fixed header */
main { padding-top: 90px; flex: 1; }
main.hero-page { padding-top: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  border-radius: 980px; /* Apple pill shape */
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background .2s var(--ease),
    color .2s var(--ease),
    transform .15s var(--spring),
    box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.96) translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,122,255,.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(0,122,255,.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.btn-ghost {
  background: rgba(0,0,0,.06);
  color: var(--black);
}
.btn-ghost:hover { background: rgba(0,0,0,.10); }

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 7px 16px;
  font-size: .82rem;
}

/* ── MESSAGES ── */
.messages { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.message {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-left: 4px solid var(--blue);
}
.message.success { background: #f0fdf4; color: #166534; border-color: var(--green); }
.message.error   { background: #fff1f1; color: #9b1c1c; border-color: var(--red); }
.message.warning { background: #fff7ed; color: #92400e; border-color: var(--orange); }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 80px;
  text-align: center;
  background: linear-gradient(160deg, #f5f7ff 0%, #eef4ff 40%, #fafafa 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,122,255,.12) 0%, transparent 70%);
  top: -200px; right: -150px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(52,199,89,.08) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px;
  border-radius: 980px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--black);
}
.hero-stat span {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── SECTION ── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--black);
  margin-bottom: 12px;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── PACKAGES ── */
#packages { background: var(--bg-light); padding: 80px 0; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.package-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform .3s var(--spring),
    box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.package-card-featured {
  background: linear-gradient(135deg, #35949e 0%, #2a7880 100%);
  border-color: transparent;
  color: #fff;
  transform: scale(1.03);
}
.package-card-featured:hover {
  transform: scale(1.03) translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(53,148,158,.4);
}
.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 980px;
  white-space: nowrap;
}
.package-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  color: inherit;
}
.package-card-featured h3 { color: #fff; }
.package-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--blue);
  margin-bottom: 4px;
  line-height: 1;
}
.package-card-featured .price { color: rgba(255,255,255,.9); }
.package-card .price span {
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.package-card-featured .price span { color: rgba(255,255,255,.65); }

/* Бейдж "курс НБУ" у цены пакета (2026-07-05) */
.package-card .price .nbu-price-badge {
  display: inline-block;
  vertical-align: middle;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  cursor: help;
  margin: 0 2px;
}
.package-card-featured .price .nbu-price-badge {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.package-card ul {
  list-style: none;
  margin: 20px 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-card ul li {
  font-size: .9rem;
  padding-left: 22px;
  position: relative;
  color: var(--gray-1);
  line-height: 1.4;
}
.package-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
}
.package-card ul li.feat-excluded { opacity: .45; }
.package-card ul li.feat-excluded::before { content: '✗' !important; }

.package-card-featured ul li { color: rgba(255,255,255,.88); }
.package-card-featured ul li::before { color: rgba(255,255,255,.7); }
.package-card .btn { width: 100%; margin-top: auto; }

/* ── Disabled package card (Coming Soon) ─────────────────────────────────── */
.package-card-disabled {
  background: var(--surface, #f8f9fa);
  border-color: #e0e0e0;
  box-shadow: none;
  pointer-events: none;        /* блокируем все клики внутри */
  position: relative;
  overflow: hidden;
}
.package-card-disabled:hover {
  transform: none;
  box-shadow: none;
}
.package-coming-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #9e9e9e;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
}

.package-card-featured .btn {
  background: rgba(255,255,255,.95);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.package-card-featured .btn:hover {
  background: #fff;
  color: var(--blue-dark);
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.step-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 52px; height: 52px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}
.step-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── FOOTER ── */
.site-footer {
  background: #2e2e2e;
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .logo { color: #fff; font-size: 1.15rem; display: inline-block; margin-bottom: 12px; }
.site-footer .logo span { color: var(--blue); }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 260px; }
.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  max-width: 240px;
}
.footer-tagline span,
.footer-legal span {
  display: block;
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-requisites {
  padding: 18px 0;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  text-align: center;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-legal {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}
/* Reverse Prompt 48: same bug as .logo img (Reverse Prompt 47) — footer logo
   img width="2510"/height="1664" (intrinsic attrs, CLS fix v119) had no CSS
   width, so the browser rendered it at the HTML attribute width instead of
   the intended ~72px. width:auto scales it from the fixed height. */
.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ── AUTH FORMS ── */
.auth-wrap {
  max-width: 440px;
  margin: 60px auto 80px;
  padding: 0 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-card h1,
.auth-card .auth-title {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px;
}
.auth-card .auth-sub,
.auth-card p.subtitle {
  color: var(--text-muted); font-size: .9rem; margin-bottom: 24px;
}
.auth-card .auth-sub a,
.auth-card p.subtitle a { color: var(--blue); font-weight: 500; }
.auth-card .auth-hint {
  text-align: center; margin-top: 16px; font-size: .875rem;
}
.auth-card .auth-hint a { color: var(--blue); }

/* Labels: .field label OR p > label (allauth renders label as <p>) */
.auth-card .field,
.auth-card .auth-field { margin-bottom: 18px; }

.auth-card .field label,
.auth-card .auth-field label,
.auth-card label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Target ALL inputs inside auth-card (allauth renders without classes) */
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"],
.auth-card input[type="number"],
.auth-card input.form-input,
.auth-card select,
.auth-card textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: .95rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="text"]:focus,
.auth-card input[type="number"]:focus,
.auth-card input.form-input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,122,255,.12);
}
.auth-card .errorlist { list-style: none; margin-top: 5px; }
.auth-card .errorlist li { font-size: .8rem; color: var(--red); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-links { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--text-muted); }
.auth-links a { color: var(--blue); font-weight: 500; }

.auth-card .auth-checkbox-field { margin-top: -4px; }
.auth-card .auth-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.auth-card .auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

/* Verify email page */
.verify-icon { color: var(--blue); margin-bottom: 16px; }
.verify-code-input {
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: .3em !important;
  text-align: center !important;
  padding: 16px !important;
}
.resend-link { font-size: .85rem; color: var(--text-muted); text-align: center; margin-top: 12px; }
.resend-link a { color: var(--blue); font-weight: 500; }

/* Email verified banner */
.verify-banner {
  background: linear-gradient(90deg, #fff7ed, #fff);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: .9rem;
}
.verify-banner a { color: var(--blue); font-weight: 600; }

/* ── CONTACT PAGE ── */
.contact-wrap {
  max-width: 960px;
  margin: 56px auto 80px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 0 24px;
}
.contact-info h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.contact-info > .muted { color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }
.contact-detail {
  display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid var(--border); padding: 20px 0;
}
.contact-detail:first-of-type { border-top: none; padding-top: 0; }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-detail strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.contact-detail p { margin: 0; font-size: .875rem; color: var(--text-muted); line-height: 1.5; }
.contact-detail a { color: var(--blue); }
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 7px;
}
.field input.form-input,
.field textarea.form-input,
.field select.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: .95rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input.form-input:focus,
.field textarea.form-input:focus,
.field select.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,122,255,.10);
}
.field textarea.form-input { min-height: 120px; resize: vertical; }
.field .errorlist { list-style: none; margin-top: 5px; }
.field .errorlist li { font-size: .8rem; color: var(--red); }

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: 760px;
  margin: 48px auto 80px;
  padding: 0 24px;
  line-height: 1.8;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--black);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.legal-page h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.legal-page p { margin: 0 0 14px; color: var(--gray-1); }
.legal-page ul { margin: 0 0 14px; padding-left: 24px; color: var(--gray-1); }
.legal-page ul li { margin-bottom: 8px; }
.legal-page a { color: var(--blue); }
.legal-page a:hover { text-decoration: underline; }
.legal-page code { background: var(--bg-light); padding: 2px 7px; border-radius: 6px; font-size: .85rem; }
.legal-date { color: var(--text-muted); font-size: .875rem; margin-bottom: 36px; display: block; }

/* cookie table */
.cookie-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .875rem; }
.cookie-table th {
  text-align: left; background: var(--bg-light);
  padding: 10px 14px; border: 1px solid var(--border);
  font-weight: 600; color: var(--black);
}
.cookie-table td { padding: 10px 14px; border: 1px solid var(--border); color: var(--gray-1); vertical-align: top; }

/* ── CABINET / ORDERS ── */
.cabinet-wrap { max-width: 980px; margin: 40px auto 80px; padding: 0 24px; }
.cabinet-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.cabinet-header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; }
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: transform .2s var(--spring), box-shadow .2s var(--ease);
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.order-card-info { flex: 1; min-width: 0; }
.order-card-info strong { display: block; font-size: 1rem; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.order-card-info span { font-size: .85rem; color: var(--text-muted); }
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}


/* ── ORDER FORM UTILITIES ── */
.text-muted { color: var(--text-muted); }
.form-hint {
  background: rgba(0,122,255,.07);
  border: 1px solid rgba(0,122,255,.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--gray-1);
  line-height: 1.5;
  margin-bottom: 20px;
}
.field-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}
.field-error {
  font-size: .8rem;
  color: #e53e3e;
  margin-top: 5px;
  font-weight: 500;
}
.field { margin-bottom: 18px; }

/* ── ORDER FORMS ── */
.order-form-wrap { max-width: 680px; margin: 40px auto 80px; padding: 0 24px; }
.order-form-wrap h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 28px; }
.order-form-wrap .card { padding: 36px 40px; border-radius: var(--radius-xl); }
.form-section-title {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.order-form-wrap input,
.order-form-wrap textarea,
.order-form-wrap select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.order-form-wrap input:focus,
.order-form-wrap textarea:focus,
.order-form-wrap select:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(0,122,255,.10);
}
.order-form-wrap textarea { min-height: 100px; resize: vertical; }
.order-form-wrap label {
  display: block; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--gray-2); margin-bottom: 7px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── ORDER DETAIL ── */
.order-detail-wrap { max-width: 860px; margin: 40px auto 80px; padding: 0 24px; }
.order-detail-header { margin-bottom: 28px; }
.order-detail-header h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-card { padding: 24px 28px; border-radius: var(--radius-lg); }
.detail-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.detail-value { font-size: .95rem; color: var(--black); }

/* ── STATUS TIMELINE ── */
.status-timeline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0; margin: 28px 0; overflow-x: auto; padding-bottom: 4px;
}
.timeline-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px; left: 50%; right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-step.done:not(:last-child)::after { background: var(--blue); }
.timeline-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  color: var(--text-muted);
  position: relative; z-index: 1;
  transition: background .3s, color .3s;
}
.timeline-step.done .timeline-dot { background: var(--blue); color: #fff; }
.timeline-step.active .timeline-dot {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 6px rgba(0,122,255,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(0,122,255,.18); }
  50% { box-shadow: 0 0 0 10px rgba(0,122,255,.08); }
}
.timeline-label { font-size: .72rem; margin-top: 8px; color: var(--text-muted); text-align: center; max-width: 70px; line-height: 1.3; }
.timeline-step.active .timeline-label { color: var(--blue); font-weight: 600; }

/* ── CRM PANEL ── */
.panel-wrap { max-width: 1160px; margin: 40px auto 80px; padding: 0 24px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.panel-header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 36px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform .2s var(--spring), box-shadow .2s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.stat-card strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; color: var(--black); margin-bottom: 4px; }
.stat-card span { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.crm-table-wrap { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.crm-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.crm-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.crm-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--gray-1); }
.crm-table tr:last-child td { border-bottom: none; }
.crm-table tr:hover td { background: var(--bg-light); }
.crm-table a { color: var(--blue); font-weight: 500; text-decoration: none; }
.crm-table a:hover { text-decoration: underline; }
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.filter-bar select, .filter-bar input {
  padding: 9px 14px; font-size: .875rem; font-family: var(--font);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--text);
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,122,255,.10);
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 680px;
  background: rgba(30,30,30,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.12);
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-inner p { flex: 1; font-size: .85rem; line-height: 1.5; margin: 0; }
.cookie-inner p a { color: #60a5fa; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }

/* ── SCROLL-TO-TOP ── */
#scroll-top {
  position: fixed;
  bottom: 32px; right: 28px;
  width: 46px; height: 46px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,122,255,.45);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition:
    opacity .3s var(--ease),
    transform .3s var(--spring),
    box-shadow .2s var(--ease);
  z-index: 998;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#scroll-top:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 22px rgba(0,122,255,.55);
  transform: translateY(-2px) scale(1.05);
}
#scroll-top:active { transform: scale(.94); }

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── DASHBOARD STATS ── */
.dashboard-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 36px; }
.dashboard-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
}
.dashboard-stat strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.dashboard-stat span { font-size: .85rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .package-card-featured { transform: none; }
  .package-card-featured:hover { transform: translateY(-6px); }
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .stat-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 30px 0 56px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 28px; }
  .auth-card { padding: 28px 24px; }
  .auth-wrap { margin: 32px auto 60px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .order-form-wrap .card { padding: 24px 20px; }
  #scroll-top { bottom: 88px; right: 16px; }
  .crm-table-wrap { overflow-x: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 1.6rem; }
}


/* ═══════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════════ */

.lang-flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}

/* Desktop dropdown */
.lang-dd {
  position: relative;
  list-style: none;
}
.lang-dd > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  transition: background .15s;
  user-select: none;
  list-style: none;
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary:hover { background: var(--bg-light); }
.lang-caret {
  font-size: .65rem;
  color: var(--text-muted);
  transition: transform .2s;
}
.lang-dd[open] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 6px;
  min-width: 150px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeDown .15s ease;
}
.lang-menu-right { right: 0; left: auto; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-lg) - 4px);
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  color: var(--text);
  text-align: left;
  transition: background .15s;
  white-space: nowrap;
}
.lang-opt:hover { background: var(--bg-light); }
.lang-opt.active {
  background: rgba(0, 122, 255, .08);
  color: var(--blue);
  font-weight: 600;
}

/* Mobile lang row */
.mobile-lang-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0 8px;
}
.lang-mob-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-mob-btn:hover { background: var(--bg-light); }
.lang-mob-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
  background: rgba(0, 122, 255, .07);
}

/* ── intl-tel-input overrides ──────────────────────────────────────────────── */
.iti { width: 100%; display: block; }
.iti__flag-container { z-index: 20; }
.iti__selected-flag {
  background: var(--bg-light, #f8fafc);
  border-right: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 8px) 0 0 var(--radius, 8px);
  padding: 0 8px 0 12px;
  outline: none;
}
.iti__selected-flag:hover,
.iti__selected-flag:focus { background: var(--gray-1, #f1f5f9); }
.iti--separate-dial-code .iti__selected-flag { background: var(--bg-light, #f8fafc); }
.iti--separate-dial-code input[type=tel] {
  border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
}
.iti__country-list {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
  background: #fff;
  min-width: 280px;
}
.iti__search-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--border, #e5e7eb);
  font-size: .875rem;
  outline: none;
  background: var(--bg-light, #f8fafc);
  border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
}
.iti__country-name { font-size: .875rem; }
.iti__dial-code { font-size: .8rem; color: var(--text-muted, #6b7280); }
.iti__country.iti__highlight { background: var(--blue-light, #e6f5f6); }
.iti__divider { border-top: 1px solid var(--border, #e5e7eb); margin: 4px 0; }
.iti__flag { box-shadow: 0 0 1px rgba(0,0,0,.3); }

/* ═══════════════════════════════════════════════════════════════════════════
   CABINET 2.0 — Sidebar layout, chat, timeline, badges, bottom nav
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────────────────── */
.cab-layout {
  display: flex;
  min-height: calc(100vh - 70px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 0;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.cab-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 24px 0 80px;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.cab-sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.cab-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #5b8fdb 100%);
  color: #fff;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cab-sidebar-name { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.cab-sidebar-email { font-size: .72rem; color: var(--text-muted); margin-top: 2px; word-break: break-all; }

.cab-nav { list-style: none; padding: 0 10px; }
.cab-nav li { margin-bottom: 2px; }
.cab-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .875rem; font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
}
.cab-nav a:hover { background: var(--bg-light); color: var(--blue); }
.cab-nav a.active { background: rgba(0,122,255,.1); color: var(--blue); font-weight: 600; }
.cab-nav .nav-icon { font-size: 1.05rem; width: 20px; text-align: center; }
.cab-nav .nav-label { flex: 1; }
.cab-nav .nav-divider { height: 1px; background: var(--border); margin: 8px 2px; }

.cab-badge {
  background: #ef4444;
  color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px; text-align: center;
  animation: badge-pop .2s ease;
}
@keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

.cab-sidebar-logout {
  margin: 16px 10px 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .875rem; font-weight: 500;
  color: #ef4444;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: background .15s;
}
.cab-sidebar-logout:hover { background: #fee2e2; }

/* ── Main content ────────────────────────────────────────────────────────── */
.cab-main {
  flex: 1;
  min-width: 0;
  padding: 28px 28px 80px;
}
.cab-page-title {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.cab-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.cab-stat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
}
.cab-stat-val { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue); }
.cab-stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* ── Filter tabs ─────────────────────────────────────────────────────────── */
.cab-tabs {
  display: flex; gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cab-tab {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.cab-tab:hover { border-color: var(--blue); color: var(--blue); }
.cab-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Order cards list ────────────────────────────────────────────────────── */
.cab-order-list { display: flex; flex-direction: column; gap: 10px; }
.cab-order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--text);
  transition: box-shadow .18s, transform .18s;
  position: relative;
  overflow: hidden;
}
.cab-order-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--status-color, var(--border));
  border-radius: 4px 0 0 4px;
}
.cab-order-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-1px); }
.cab-order-num { font-weight: 800; font-size: 1rem; color: var(--blue); min-width: 36px; }
.cab-order-info { flex: 1; min-width: 0; }
.cab-order-pkg { font-weight: 600; font-size: .9rem; }
.cab-order-date { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.cab-order-car { font-size: .8rem; color: var(--text); font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.cab-order-vin { font-size: .7rem; color: var(--text-muted); font-family: monospace; margin-top: 1px; }

/* ── Contact history (cabinet) ──────────────────────────────────────────── */
.cab-page-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.contacts-list { display:flex; flex-direction:column; gap:12px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  border-left: 4px solid var(--border);
}
.contact-card--new  { border-left-color: var(--blue); }
.contact-card--read { border-left-color: #e2e8f0; }
.contact-card--replied { border-left-color: #10b981; }
.contact-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
.contact-card-subject { font-weight: 700; font-size: .95rem; flex: 1; }
.contact-card-meta { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.contact-card-date { font-size: .75rem; color: var(--text-muted); }
.contact-status-badge { font-size:.7rem; font-weight:700; padding:2px 8px; border-radius:20px; }
.contact-status--new      { background:#fef9c3; color:#92400e; }
.contact-status--accepted { background:#dbeafe; color:#1d4ed8; }
.contact-status--replied  { background:#d1fae5; color:#065f46; }
.contact-status--resolved { background:#f1f5f9; color:#475569; }
.contact-card-body { font-size:.875rem; color:var(--text); line-height:1.6; white-space:pre-wrap; }
.contact-card-reply {
  margin-top:14px;
  padding:12px 14px;
  background:#f0fdf4;
  border-radius:8px;
  border-left:3px solid #10b981;
}
.contact-reply-label { font-size:.75rem; font-weight:700; color:#065f46; margin-bottom:6px; display:flex; align-items:center; gap:5px; }
.contact-reply-text { font-size:.875rem; color:var(--text); line-height:1.6; white-space:pre-wrap; }
.cab-order-status {
  font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.cab-order-unread {
  background: #ef4444; color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.cab-order-arrow { color: var(--text-muted); font-size: .875rem; }

/* ── Status timeline ─────────────────────────────────────────────────────── */
.cab-timeline {
  display: flex; align-items: center;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cab-tl-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 70px;
  position: relative;
}
.cab-tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px; left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 2px;
  background: var(--border);
}
.cab-tl-step.done:not(:last-child)::after { background: #10b981; }
.cab-tl-step.active:not(:last-child)::after { background: var(--blue); }
.cab-tl-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; z-index: 1;
  transition: all .2s;
}
.cab-tl-step.done .cab-tl-dot { background: #10b981; border-color: #10b981; color: #fff; }
.cab-tl-step.active .cab-tl-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(0,122,255,.15); }
.cab-tl-step.cancelled .cab-tl-dot { background: #6b7280; border-color: #6b7280; color: #fff; }
.cab-tl-label { font-size: .67rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; text-align: center; line-height: 1.2; }
.cab-tl-step.done .cab-tl-label,
.cab-tl-step.active .cab-tl-label { color: var(--text); }

/* ── Chat bubbles ────────────────────────────────────────────────────────── */
.cab-chat-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.cab-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
}
.cab-chat-messages {
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #f9fafb;
}
.cab-chat-empty { text-align: center; color: var(--text-muted); font-size: .875rem; padding: 40px 0; }
.cab-msg {
  display: flex; flex-direction: column;
  max-width: 78%;
}
.cab-msg.from-analyst { align-self: flex-start; align-items: flex-start; }
.cab-msg.from-client  { align-self: flex-end;   align-items: flex-end;   }
.cab-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .875rem; line-height: 1.55;
}
.cab-msg.from-analyst .cab-msg-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
}
.cab-msg.from-client .cab-msg-bubble {
  background: var(--blue);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}
.cab-msg-meta { font-size: .68rem; color: var(--text-muted); margin-top: 3px; }
.cab-msg.from-client .cab-msg-meta { color: rgba(255,255,255,.65); }
.cab-chat-input {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-end;
  background: var(--white);
}
.cab-chat-input textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font); font-size: .875rem;
  resize: none; outline: none;
  transition: border-color .2s;
  max-height: 120px;
}
.cab-chat-input textarea:focus { border-color: var(--blue); }
.cab-chat-send {
  background: var(--blue); color: #fff;
  border: none; border-radius: 10px;
  padding: 10px 18px; cursor: pointer;
  font-weight: 600; font-size: .875rem;
  transition: opacity .15s;
  white-space: nowrap;
}
.cab-chat-send:hover { opacity: .85; }

/* ── Info card ───────────────────────────────────────────────────────────── */
.cab-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.cab-card-title {
  font-weight: 700; font-size: .95rem;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.cab-info-grid { display: grid; gap: 10px; }
.cab-info-row {
  display: grid; grid-template-columns: 150px 1fr;
  font-size: .875rem; gap: 8px;
}
.cab-info-label { color: var(--text-muted); }

/* ── Report card ─────────────────────────────────────────────────────────── */
.cab-report-card {
  background: var(--white);
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.cab-report-rec {
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 700; font-size: .95rem;
  margin-bottom: 18px;
}
.cab-report-rec.buy     { background: #d1fae5; color: #065f46; }
.cab-report-rec.not_buy { background: #fee2e2; color: #991b1b; }
.cab-report-rec.discuss { background: #fef3c7; color: #92400e; }

/* ── Notification toggles ────────────────────────────────────────────────── */
.cab-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cab-toggle-row:last-child { border-bottom: none; }
.cab-toggle-info { flex: 1; }
.cab-toggle-label { font-size: .875rem; font-weight: 600; }
.cab-toggle-desc  { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.cab-toggle {
  position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-left: 16px;
}
.cab-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cab-toggle-slider {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 999px;
  cursor: pointer; transition: background .2s;
}
.cab-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cab-toggle input:checked + .cab-toggle-slider { background: var(--blue); }
.cab-toggle input:checked + .cab-toggle-slider::before { transform: translateX(20px); }

/* ── Password change form ────────────────────────────────────────────────── */
.cab-password-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 440px;
}
.cab-code-inputs {
  display: flex; gap: 8px; margin: 20px 0;
}
.cab-code-input {
  width: 44px; height: 54px;
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem; font-weight: 700;
  outline: none;
  transition: border-color .2s;
}
.cab-code-input:focus { border-color: var(--blue); }

/* ── Mobile bottom navigation ────────────────────────────────────────────── */
.cab-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.cab-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0;
}
.cab-bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .65rem; font-weight: 600;
  border-radius: 10px;
  position: relative;
  min-width: 56px;
  transition: color .15s;
}
.cab-bnav-item.active { color: var(--blue); }
.cab-bnav-item .cab-bnav-icon { font-size: 1.3rem; }
.cab-bnav-badge {
  position: absolute; top: 2px; right: 8px;
  background: #ef4444; color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 1px 5px; border-radius: 999px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cab-sidebar { display: none; }
  .cab-bottom-nav { display: block; }
  .cab-layout { padding: 0; }
  .cab-main { padding: 16px 16px 80px; }
  .cab-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cab-stat-val { font-size: 1.5rem; }
  .cab-info-row { grid-template-columns: 1fr; gap: 2px; }
  .cab-info-label { font-size: .75rem; }
  .cab-timeline { gap: 0; }
  .cab-tl-label { font-size: .6rem; }
  .cab-chat-messages { max-height: 320px; }
  .cab-order-card { padding: 12px 16px; }
  .cab-page-title { font-size: 1.25rem; }
}
@media (min-width: 769px) {
  .cab-bottom-nav { display: none !important; }
}

/* ═══════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════ */

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 48px;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* Post card */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .8rem;
}
.blog-tag {
  display: inline-block;
  background: rgba(53,148,158,.1);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}
.blog-tag:hover { background: rgba(53,148,158,.2); }
.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.blog-card-title a {
  color: var(--text);
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--blue); }
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0 0 14px;
  line-height: 1.55;
}
.blog-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.blog-read-more:hover { text-decoration: underline; }

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.blog-sidebar-card h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.blog-sidebar-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.blog-sidebar-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.blog-sidebar-list a:hover { background: var(--bg-light); }
.blog-sidebar-list a.active { color: var(--blue); font-weight: 600; }
.blog-sidebar-cta {
  background: linear-gradient(135deg, var(--blue) 0%, #1a7a85 100%);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
}
.blog-sidebar-cta-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.blog-sidebar-cta-sub {
  font-size: .85rem;
  opacity: .88;
  margin: 0 0 16px;
  line-height: 1.5;
}
.blog-sidebar-cta .btn {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}
.blog-sidebar-cta .btn:hover { background: rgba(255,255,255,.9); }

/* Detail */
.blog-detail-wrap { max-width: 860px; margin: 0 auto; }
.blog-detail { margin-bottom: 48px; }
.blog-detail-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; font-size: .82rem;
}
.blog-detail h1 {
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}
.blog-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.blog-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}
.blog-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2em 0 .6em; letter-spacing: -.02em; }
.blog-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 .5em; }
.blog-content p  { margin: 0 0 1.1em; }
.blog-content ul, .blog-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.blog-content li { margin-bottom: .4em; }
.blog-content a  { color: var(--blue); }
.blog-content blockquote {
  border-left: 4px solid var(--blue);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: rgba(53,148,158,.07);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-content img { max-width: 100%; border-radius: 12px; margin: 1em 0; }

/* Related */
.blog-related { margin: 48px 0 32px; }
.blog-related h2 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 20px;
  letter-spacing: -.02em;
}
.blog-related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 16px; }
/* ── Dashboard: compact metrics row ──────────────────────── */
.dash-metrics-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.dash-metric { background:var(--white); border:1px solid var(--border); border-radius:10px; padding:12px 18px; display:flex; flex-direction:column; align-items:center; min-width:100px; flex:1; }
.dash-metric-val { font-size:1.6rem; font-weight:800; color:var(--text); line-height:1.1; }
.dash-metric-val--yellow { color:#d97706; }
.dash-metric-val--purple { color:#7c3aed; }
.dash-metric-val--green  { color:#059669; }
.dash-metric-val--blue   { color:#2563eb; }
.dash-metric-val--red    { color:#dc2626; }
.dash-metric-lbl { font-size:.72rem; color:var(--text-muted); margin-top:4px; text-align:center; white-space:nowrap; }

/* ── Dashboard: range switcher ──────────────────────────── */
.dash-range-bar { display:flex; gap:6px; margin-bottom:16px; }
.dash-range-btn { border:1px solid var(--border); background:var(--white); color:var(--text-muted); font-size:.8rem; font-weight:600; padding:5px 14px; border-radius:20px; cursor:pointer; transition:background .15s,color .15s; }
.dash-range-btn:hover { background:var(--bg); color:var(--text); }
.dash-range-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ── Dashboard: charts grid ─────────────────────────────── */
.dash-charts-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; margin-bottom:24px; }
.dash-chart-card { background:var(--white); border:1px solid var(--border); border-radius:12px; padding:18px 20px; }
.dash-chart-title { font-size:.85rem; font-weight:700; color:var(--text-muted); margin-bottom:14px; text-transform:uppercase; letter-spacing:.04em; }
.dash-chart-wrap { position:relative; height:200px; }

/* ── Staff Notifications page ────────────────────────────── */
.sn-list { display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.sn-item { background:var(--white); border:1px solid var(--border); border-radius:10px; padding:14px 16px; display:flex; align-items:flex-start; gap:14px; border-left:4px solid transparent; transition:border-color .15s; }
.sn-item--unread { border-left-color:var(--primary); background:#fafbff; }
.sn-icon { font-size:1.4rem; flex-shrink:0; line-height:1; }
.sn-body { flex:1; min-width:0; }
.sn-title { font-weight:700; font-size:.9rem; color:var(--text); margin-bottom:3px; }
.sn-link { color:var(--primary); text-decoration:none; }
.sn-link:hover { text-decoration:underline; }
.sn-text { font-size:.82rem; color:var(--text-muted); margin-bottom:6px; }
.sn-meta { display:flex; gap:10px; align-items:center; }
.sn-type { font-size:.7rem; font-weight:700; background:var(--bg); color:var(--text-muted); padding:2px 7px; border-radius:20px; }
.sn-date { font-size:.72rem; color:var(--text-muted); }
.sn-actions { flex-shrink:0; }
.sn-read-btn { background:none; border:1px solid var(--border); color:var(--text-muted); border-radius:50%; width:26px; height:26px; cursor:pointer; font-size:.8rem; display:flex; align-items:center; justify-content:center; }
.sn-read-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.sn-read-label { color:#10b981; font-size:.9rem; }

/* ════ Home: sources row ════ */
.home-sources-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hs-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: box-shadow .15s, transform .15s;
}
.hs-badge:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.hs-flag { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.hs-badge strong { display: block; font-size: .83rem; font-weight: 700; color: var(--text); }
.hs-badge span { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }
@media(max-width:900px){ .home-sources-row { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .home-sources-row { grid-template-columns: 1fr 1fr; gap:8px; } }
