/* ==========================================================
   altos — Professional dizayn tizimi
   Brend: violet purple (#8B5CF6) — tog' cho'qqilari ramzi
   ========================================================== */

:root {
  /* Brendlash — altos violet palette (logoga moslashtirilgan) */
  --primary: #8B5CF6;
  --primary-50: #F5F3FF;
  --primary-100: #EDE9FE;
  --primary-200: #DDD6FE;
  --primary-300: #C4B5FD;
  --primary-500: #A78BFA;
  --primary-600: #8B5CF6;
  --primary-700: #7C3AED;
  --primary-800: #6D28D9;
  --primary-light: #A78BFA;
  --primary-tint: #EDE9FE;
  --primary-soft: #F5F3FF;

  /* Brand qora — logo foni, hero accent uchun */
  --brand-black: #0A0612;
  --brand-black-soft: #1A1133;

  /* Accent — yorqinroq violet (logo'ning tog' rangi) */
  --accent: #A78BFA;
  --accent-soft: #EDE9FE;

  /* Neytral */
  --ink: #0F1226;
  --ink-2: #1A1A2E;
  --text: #2A2A40;
  --text-soft: #4F4F6E;
  --text-muted: #8888A6;
  --line: #E8E2EE;
  --line-soft: #F1ECF6;

  /* Foon */
  --bg: #FFFFFF;
  --bg-soft: #FBF9FD;
  --bg-tint: #F4EEFA;
  --surface: #FFFFFF;

  /* Status */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --warn: #F59E0B;
  --info: #3B82F6;

  /* Soyalar — altos violet asoslangan */
  --shadow-xs: 0 1px 2px rgba(15, 18, 38, 0.04);
  --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.08);
  --shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 20px 48px rgba(139, 92, 246, 0.18);
  --shadow-xl: 0 28px 64px rgba(139, 92, 246, 0.22);

  /* Yumaloqlik */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-height: 72px;

  /* O'tishlar */
  --t-fast: 0.15s ease;
  --t: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================
   Reset
   ========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-700); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ==========================
   Tipografiya
   ========================== */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-soft); }
.lead { font-size: 1.125rem; color: var(--text-soft); }

/* ==========================
   Layout yordamchilari
   ========================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 64px;
  line-height: 1.55;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow.center {
  display: flex;
  width: fit-content;
}

.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }
.bg-dark { background: var(--ink); color: #fff; }
.bg-dark p, .bg-dark .section-subtitle { color: rgba(255,255,255,0.72); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }

/* ==========================
   Tugmalar
   ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1.5px solid transparent;
  line-height: 1;
  letter-spacing: -0.005em;
}
.btn .icon, .btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.40);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-100); }

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.20); color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { display: flex; width: 100%; }

/* ==========================
   Header
   ========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px;
  background: radial-gradient(circle at 30% 30%, var(--brand-black-soft) 0%, var(--brand-black) 70%);
  border: 2px solid var(--primary-light);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--primary-light);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4), inset 0 0 12px rgba(139, 92, 246, 0.15);
  flex-shrink: 0;
}
.logo-mark svg { display: block; }
.logo > span:last-child {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.375rem;
}
/* Footer logo (oq fonda) */
.site-footer .logo-mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-light);
  color: var(--primary-light);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.5);
}

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 14.5px;
  border-radius: 8px;
  transition: all var(--t-fast);
}
.nav a:hover { color: var(--primary); background: var(--primary-100); }
.nav a.active { color: var(--primary); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 1.125rem;
  align-items: center;
  justify-content: center;
}

/* ==========================
   Hero
   ========================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 800px 600px at 90% -10%, rgba(139, 92, 246, 0.20), transparent 50%),
    radial-gradient(ellipse 600px 500px at 5% 100%, rgba(167, 139, 250, 0.15), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 18, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 18, 38, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--primary-200);
  box-shadow: var(--shadow-xs);
}
.hero-eyebrow .badge-dot {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.1875rem; color: var(--text-soft); margin-bottom: 32px; max-width: 560px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.hero-trust-item .num {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.hero-trust-item .num span { color: var(--primary); }
.hero-trust-item .label { color: var(--text-muted); font-size: 13.5px; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1.05;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 159, 28, 0.35), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.20), transparent 50%);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 18, 38, 0.18);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  z-index: 2;
}
.hero-card-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-card-icon.success { background: var(--success-bg); color: var(--success); }
.hero-card-icon.warning { background: var(--accent-soft); color: var(--accent); }
.hero-card-icon.primary { background: var(--primary-100); color: var(--primary); }
.hero-card-icon svg { width: 22px; height: 22px; }
.hero-card .label { font-size: 12px; color: var(--text-muted); display: block; font-weight: 500; }
.hero-card .value { font-size: 16px; color: var(--ink); }
.hero-card .value.green { color: var(--success); }

.hero-card.fc-1 { top: 28px; left: 24px; animation: float1 4s ease-in-out infinite; }
.hero-card.fc-2 { bottom: 32px; right: 24px; animation: float2 5s ease-in-out infinite; }
.hero-card.fc-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 28px 32px; animation: pulse 3s ease-in-out infinite; }

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

/* Hero brand chips */
.hero-clients {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.hero-clients-label { color: var(--text-muted); font-size: 13.5px; margin-bottom: 24px; font-weight: 500; }
.hero-clients-row { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; opacity: 0.65; }
.hero-clients-row span { font-weight: 800; font-size: 1.25rem; color: var(--text-muted); letter-spacing: -0.02em; }

/* ==========================
   Feature kartochkalari
   ========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  transition: all var(--t);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-200);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: all var(--t);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; line-height: 1.6; }

/* ==========================
   Process / Steps
   ========================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--t);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step-num {
  position: absolute;
  top: -16px; left: 24px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}
.step-card h3 { margin: 12px 0 8px; font-size: 1.0625rem; }
.step-card p { font-size: 14px; }

/* ==========================
   Paketlar
   ========================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.package-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--t);
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}
.package-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, #fff 0%, var(--primary-50) 100%);
  box-shadow: var(--shadow);
}
.package-card.popular::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.package-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
  white-space: nowrap;
}
.package-name { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; letter-spacing: -0.01em; }
.package-tagline { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.package-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.package-price small { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.package-price-label { color: var(--text-muted); font-size: 14px; margin: 4px 0 28px; }
.package-features {
  margin-bottom: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-features li {
  display: flex;
  gap: 10px;
  align-items: start;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.package-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--success-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  margin-top: 2px;
}

/* ==========================
   Statistika
   ========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid var(--line-soft);
}
.stat-num {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-soft); font-weight: 500; font-size: 14.5px; }

/* ==========================
   Sharhlar
   ========================== */
.reviews-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.review-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary-100);
  line-height: 1;
  font-family: Georgia, serif;
}
.review-stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; font-size: 16px; }
.review-stars .empty { opacity: 0.25; }
.review-text {
  color: var(--text);
  margin-bottom: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.review-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-500));
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.review-shop { color: var(--text-muted); font-size: 12.5px; }
.review-result {
  margin-left: auto;
  background: linear-gradient(135deg, var(--success-bg), #fff);
  color: var(--success);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #A7F3D0;
  white-space: nowrap;
}

/* ==========================
   CTA blok
   ========================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 60%, var(--ink) 100%);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 159, 28, 0.30), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.10), transparent 50%);
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cta-section .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.20); }
.cta-section .btn-primary:hover { background: var(--accent); color: #fff; }

/* ==========================
   Formalar
   ========================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
  transition: all var(--t-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-100);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.quick-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--line-soft);
}
.quick-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================
   Footer
   ========================== */
.site-footer {
  background: var(--ink);
  color: #B8B8D0;
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.site-footer h4 { color: #fff; margin-bottom: 18px; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em; }
.site-footer a { color: #B8B8D0; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #6F6F8C;
  font-size: 13.5px;
}
.footer-tagline { color: #B8B8D0; font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; max-width: 320px; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: all var(--t-fast);
  color: #B8B8D0 !important;
}
.social-links a:hover { background: var(--primary); color: #fff !important; transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

/* ==========================
   Page header (sub-pages)
   ========================== */
.page-header {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, var(--primary-100), transparent 70%),
    var(--bg);
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.breadcrumbs {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: 0.4; }
.page-header p { max-width: 640px; margin: 14px auto 0; color: var(--text-soft); font-size: 1.0625rem; }

/* ==========================
   Taqqoslash jadvali
   ========================== */
.compare-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.compare-table thead th {
  background: var(--primary-50);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--primary-200);
}
.compare-table thead th:first-child { color: var(--text-muted); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--bg-soft); }
.compare-table td.center { text-align: center; }
.compare-table .yes {
  color: var(--success);
  font-weight: 700;
}
.compare-table .yes::before { content: "✓ "; }
.compare-table .no { color: var(--text-muted); font-size: 1.125rem; }

/* ==========================
   FAQ
   ========================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-fast);
}
.faq-item:hover { border-color: var(--primary-200); }
.faq-item.open { border-color: var(--primary-200); background: var(--primary-50); }
.faq-q {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '';
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B2CBF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center / 14px no-repeat;
  flex-shrink: 0;
  transition: transform var(--t);
}
.faq-item.open .faq-q::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B2CBF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>");
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--text-soft);
  line-height: 1.6;
}
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 600px; }

/* ==========================
   Kalkulyator (Modulli)
   ========================== */

/* Kategoriya grid */
.calc-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.calc-cat-skeleton { grid-column:1/-1; padding:40px; text-align:center; color:var(--text-muted); }

.calc-cat-tile {
  display:flex; align-items:center; gap:14px;
  padding:18px 20px;
  background:var(--surface);
  border:2px solid var(--line);
  border-radius:16px;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
  transition:all var(--t-fast);
  position:relative;
  overflow:hidden;
}
.calc-cat-tile::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg, var(--accent-c, var(--primary-50)) 0%, transparent 60%);
  opacity:0;
  transition:opacity var(--t-fast);
  pointer-events:none;
}
.calc-cat-tile:hover { border-color:var(--accent-b, var(--primary-300)); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.calc-cat-tile:hover::before { opacity:0.5; }
.calc-cat-tile.active {
  border-color:var(--accent-b, var(--primary));
  box-shadow:0 8px 24px var(--accent-shadow, rgba(139,92,246,0.18));
  background:linear-gradient(135deg, var(--accent-c, var(--primary-50)) 0%, var(--surface) 70%);
}
.calc-cat-tile.active::before { opacity:1; }

.calc-cat-icon {
  flex-shrink:0;
  width:48px; height:48px;
  border-radius:12px;
  display:grid; place-items:center;
  background:var(--accent-c, var(--primary-100));
  color:var(--accent-b, var(--primary));
  position:relative; z-index:1;
}
.calc-cat-tile.active .calc-cat-icon {
  background:linear-gradient(135deg, var(--accent-a, var(--primary)) 0%, var(--accent-b, var(--primary-700)) 100%);
  color:#fff;
  box-shadow:0 6px 14px var(--accent-shadow, rgba(139,92,246,0.3));
}
.calc-cat-body { flex:1; min-width:0; line-height:1.3; position:relative; z-index:1; }
.calc-cat-body strong { display:block; font-size:14.5px; color:var(--ink); margin-bottom:3px; }
.calc-cat-body span { display:block; font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.calc-cat-arrow { color:var(--text-muted); position:relative; z-index:1; transition:transform var(--t-fast); }
.calc-cat-tile:hover .calc-cat-arrow { transform:translateX(3px); color:var(--accent-b, var(--primary)); }

/* Aksent ranglari */
.accent-purple { --accent-a:#8B5CF6; --accent-b:#A78BFA; --accent-c:#EDE9FE; --accent-shadow:rgba(139,92,246,0.22); }
.accent-blue   { --accent-a:#2563EB; --accent-b:#3B82F6; --accent-c:#DBEAFE; --accent-shadow:rgba(37,99,235,0.2); }
.accent-orange { --accent-a:#EA580C; --accent-b:#F97316; --accent-c:#FFEDD5; --accent-shadow:rgba(234,88,12,0.2); }
.accent-red    { --accent-a:#DC2626; --accent-b:#EF4444; --accent-c:#FEE2E2; --accent-shadow:rgba(220,38,38,0.2); }
.accent-green  { --accent-a:#059669; --accent-b:#10B981; --accent-c:#D1FAE5; --accent-shadow:rgba(5,150,105,0.2); }
.accent-indigo { --accent-a:#4F46E5; --accent-b:#6366F1; --accent-c:#E0E7FF; --accent-shadow:rgba(79,70,229,0.2); }
.accent-teal   { --accent-a:#0D9488; --accent-b:#14B8A6; --accent-c:#CCFBF1; --accent-shadow:rgba(13,148,136,0.2); }
.accent-yellow { --accent-a:#D97706; --accent-b:#F59E0B; --accent-c:#FEF3C7; --accent-shadow:rgba(217,119,6,0.2); }

/* Empty state illust */
.empty-illust {
  width:100px; height:100px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display:grid; place-items:center;
  margin:0 auto 24px;
  box-shadow:0 12px 32px rgba(139,92,246,0.15);
}
.calc-features-row {
  display:flex; gap:14px; flex-wrap:wrap; justify-content:center;
}
.calc-feature-mini {
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text-soft);
  padding:10px 16px;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:100px;
  box-shadow:var(--shadow-xs);
}

/* Faol kalkulyator wrapper */
.calc-active-wrapper {
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap:24px;
  align-items:start;
  position:relative;
}

/* Kalkulyator forma */
.calc-form-pro {
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-xs);
  overflow:hidden;
  position:relative;
}
.calc-form-pro::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:5px;
  background:linear-gradient(90deg, var(--accent-a, var(--primary)) 0%, var(--accent-b, var(--primary-light)) 100%);
}
.calc-form-head {
  display:flex; align-items:flex-start; gap:16px;
  padding:28px;
  border-bottom:1px solid var(--line-soft);
  background:linear-gradient(135deg, var(--accent-c, var(--primary-50)) 0%, transparent 70%);
  position:relative;
}
.calc-form-icon {
  flex-shrink:0;
  width:56px; height:56px;
  border-radius:14px;
  background:linear-gradient(135deg, var(--accent-a, var(--primary)) 0%, var(--accent-b, var(--primary-700)) 100%);
  color:#fff;
  display:grid; place-items:center;
  box-shadow:0 8px 20px var(--accent-shadow, rgba(139,92,246,0.3));
}
.calc-form-head > div:nth-child(2) { flex:1; }
.calc-form-head h2 { margin:0 0 6px; font-size:1.375rem; color:var(--ink); }
.calc-form-head p { margin:0; color:var(--text-soft); font-size:13.5px; line-height:1.55; }
.calc-close-btn {
  flex-shrink:0;
  width:36px; height:36px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text-muted);
  cursor:pointer;
  display:grid; place-items:center;
  transition:all var(--t-fast);
}
.calc-close-btn:hover { background:var(--danger); border-color:var(--danger); color:#fff; }

/* Calc section (har bir bo'lim) */
.calc-section {
  padding:28px;
  border-bottom:1px dashed var(--line);
}
.calc-section:last-child { border-bottom:none; }
.calc-section-head {
  display:flex; gap:14px; align-items:flex-start;
  margin-bottom:20px;
}
.calc-section-num {
  flex-shrink:0;
  width:32px; height:32px;
  border-radius:10px;
  background:var(--accent-c, var(--primary-100));
  color:var(--accent-a, var(--primary));
  display:grid; place-items:center;
  font-weight:800; font-size:14px;
}
.calc-section-head h3 { margin:0 0 4px; font-size:1.0625rem; color:var(--ink); }
.calc-section-head p { margin:0; font-size:13px; color:var(--text-muted); }

/* Item rows */
.calc-items-grid { display:grid; gap:10px; }
.calc-item-row {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  transition:all var(--t-fast);
}
.calc-item-row:hover { border-color:var(--accent-b, var(--primary-300)); }
.calc-item-row.has-value {
  border-color:var(--accent-b, var(--primary));
  background:linear-gradient(180deg, var(--accent-c, var(--primary-50)) 0%, var(--surface) 80%);
}
.calc-item-info { display:flex; gap:12px; align-items:center; flex:1; min-width:0; }
.calc-item-icon {
  flex-shrink:0;
  width:38px; height:38px;
  border-radius:10px;
  background:var(--accent-c, var(--primary-100));
  color:var(--accent-a, var(--primary));
  display:grid; place-items:center;
}
.calc-item-text { line-height:1.3; min-width:0; }
.calc-item-text strong { display:block; font-size:14px; color:var(--ink); margin-bottom:2px; }
.calc-item-text small { display:block; font-size:12px; color:var(--text-muted); }
.calc-item-controls { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.calc-item-price { text-align:right; line-height:1.2; min-width:90px; }
.calc-item-price strong { display:block; font-size:13.5px; color:var(--accent-a, var(--primary)); font-weight:700; }
.calc-item-price small { font-size:11px; color:var(--text-muted); }

/* Quantity stepper pro */
.qty-stepper-pro {
  display:inline-flex; align-items:center;
  border:1.5px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:var(--surface);
}
.qty-step-btn {
  width:36px; height:36px;
  border:none; background:transparent;
  font-size:18px; font-weight:600;
  cursor:pointer;
  color:var(--text);
  transition:all var(--t-fast);
  font-family:inherit;
}
.qty-step-btn:hover { background:var(--accent-c, var(--primary-50)); color:var(--accent-a, var(--primary)); }
.qty-step-input {
  width:54px; height:36px;
  border:none; border-left:1px solid var(--line); border-right:1px solid var(--line);
  text-align:center;
  font-weight:700; font-size:14px;
  font-family:inherit;
  -moz-appearance:textfield;
}
.qty-step-input::-webkit-outer-spin-button,
.qty-step-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.qty-step-input:focus { outline:none; background:var(--accent-c, var(--primary-50)); }

/* Tier (radio cards) */
.calc-tier-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}
.calc-tier-card {
  display:block;
  padding:16px;
  border:2px solid var(--line);
  border-radius:14px;
  cursor:pointer;
  background:var(--surface);
  transition:all var(--t-fast);
}
.calc-tier-card:hover { border-color:var(--accent-b, var(--primary-300)); }
.calc-tier-card.selected {
  border-color:var(--accent-a, var(--primary));
  background:var(--accent-c, var(--primary-50));
}
.calc-tier-card input { display:none; }
.tier-card-head {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:6px;
}
.tier-card-head strong { font-size:14.5px; color:var(--ink); }
.tier-mult {
  font-size:11px; font-weight:700;
  padding:3px 8px;
  background:var(--bg-soft);
  border-radius:100px;
  color:var(--text-muted);
}
.calc-tier-card.selected .tier-mult {
  background:var(--accent-a, var(--primary));
  color:#fff;
}
.tier-card-desc { display:block; font-size:12.5px; color:var(--text-muted); line-height:1.4; }

/* Modifiers */
.modifiers-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.modifier-card {
  display:flex; align-items:center; gap:12px;
  padding:14px;
  border:2px solid var(--line);
  border-radius:12px;
  cursor:pointer;
  background:var(--surface);
  transition:all var(--t-fast);
}
.modifier-card input { display:none; }
.modifier-card:hover { border-color:var(--warning); }
.modifier-card.checked { border-color:var(--warning); background:#FFFBEB; }
.modifier-icon {
  flex-shrink:0;
  width:36px; height:36px;
  border-radius:10px;
  background:#FEF3C7; color:#B45309;
  display:grid; place-items:center;
}
.modifier-body { flex:1; line-height:1.3; min-width:0; }
.modifier-body strong { display:block; font-size:14px; color:var(--ink); margin-bottom:2px; }
.modifier-body small { font-size:12px; color:var(--text-muted); }
.modifier-mult {
  flex-shrink:0;
  background:#FEF3C7;
  color:#B45309;
  font-weight:700; font-size:13px;
  padding:6px 10px;
  border-radius:8px;
}

/* Sticky summary panel (PRO) */
.calc-summary-pro {
  background:var(--surface);
  border-radius:var(--radius-lg);
  border:1px solid var(--line-soft);
  box-shadow:var(--shadow-xs);
  position:sticky;
  top:calc(var(--header-height) + 20px);
  padding:24px;
  display:flex; flex-direction:column;
}
.summary-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.summary-head h3 { margin:0 0 2px; }
.summary-sub { font-size:12px; color:var(--primary); margin:0; font-weight:600; }
.summary-close-mobile { display:none; background:transparent; border:none; cursor:pointer; color:var(--text-muted); padding:4px; }

.summary-list-pro { margin-bottom:16px; min-height:120px; max-height:340px; overflow-y:auto; padding-right:4px; }
.summary-list-pro::-webkit-scrollbar { width:4px; }
.summary-list-pro::-webkit-scrollbar-thumb { background:var(--line); border-radius:2px; }

.summary-empty-pro {
  text-align:center; padding:30px 16px;
  color:var(--text-muted);
}
.summary-empty-pro p { margin:12px 0 4px; color:var(--text); font-size:14px; }
.summary-empty-pro small { font-size:12px; }

.summary-item-pro {
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 0;
  border-bottom:1px dashed var(--line-soft);
}
.summary-item-pro:last-child { border-bottom:none; }
.summary-item-icon {
  flex-shrink:0;
  width:24px; height:24px;
  border-radius:6px;
  background:var(--primary-100); color:var(--primary);
  display:grid; place-items:center;
}
.summary-item-info { flex:1; min-width:0; line-height:1.3; }
.summary-item-name { display:block; font-size:13px; font-weight:600; color:var(--ink); }
.summary-item-meta { display:block; font-size:11.5px; color:var(--text-muted); margin-top:2px; }
.summary-item-amount { font-size:13px; font-weight:700; color:var(--ink); white-space:nowrap; }

/* Discount banner */
.discount-banner {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  background:linear-gradient(135deg, #FFF3D6 0%, #FFE7A0 100%);
  border:1px solid #F5C95A;
  border-radius:12px;
  margin-bottom:16px;
}
.discount-banner.discount-pending {
  background:linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  border-color:var(--primary-300);
}
.discount-banner > span:first-child { color:#B45309; flex-shrink:0; }
.discount-banner.discount-pending > span:first-child { color:var(--primary); }
.discount-banner > div { flex:1; line-height:1.3; }
.discount-banner strong { display:block; font-size:13px; color:var(--ink); }
.discount-banner small { font-size:11.5px; color:var(--text-muted); }
.discount-pct {
  font-weight:800; font-size:15px;
  color:#B45309;
  background:#fff;
  padding:6px 10px; border-radius:8px;
}
.discount-banner.discount-pending .discount-pct { color:var(--primary); }

.summary-totals { padding:8px 0; }
.summary-row {
  display:flex; justify-content:space-between;
  padding:6px 0;
  font-size:13px; color:var(--text-soft);
}
.summary-row.summary-discount { color:#16A34A; font-weight:600; }

.calc-total-pro {
  margin-top:8px;
  padding:16px 0 12px;
  border-top:2px solid var(--line);
  display:flex; justify-content:space-between; align-items:baseline;
}
.calc-total-pro .label { font-weight:600; color:var(--ink); font-size:15px; }
.calc-total-pro .value {
  font-size:1.75rem; font-weight:800;
  color:var(--accent-a, var(--primary));
  letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;
}

.summary-trust { margin-top:16px; padding-top:16px; border-top:1px dashed var(--line-soft); display:flex; flex-direction:column; gap:6px; }
.trust-row { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-muted); }

/* Mobile floating bar */
.calc-mobile-bar {
  display:none;
  position:fixed; bottom:0; left:0; right:0;
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:12px 16px;
  z-index:50;
  box-shadow:0 -8px 24px rgba(0,0,0,0.08);
  justify-content:space-between; align-items:center; gap:12px;
}
.mobile-bar-info { line-height:1.2; }
.mobile-bar-label { display:block; font-size:11px; color:var(--text-muted); }
.mobile-bar-total { display:block; font-size:18px; font-weight:800; color:var(--accent-a, var(--primary)); }

@keyframes shake {
  0%, 100% { transform:translateX(0); }
  25% { transform:translateX(-6px); }
  75% { transform:translateX(6px); }
}

@media (max-width: 1100px) {
  .calc-categories { grid-template-columns: repeat(2, 1fr); }
  .calc-active-wrapper { grid-template-columns: 1fr; }
  .calc-summary-pro { position:static; }
}
@media (max-width: 768px) {
  .calc-categories { grid-template-columns: 1fr; gap:10px; }
  .calc-cat-tile { padding:14px 16px; }
  .calc-cat-icon { width:42px; height:42px; }
  .calc-form-head { padding:20px; flex-wrap:wrap; }
  .calc-form-head h2 { font-size:1.125rem; }
  .calc-section { padding:20px; }
  .calc-item-row { flex-direction:column; align-items:stretch; gap:10px; }
  .calc-item-controls { justify-content:space-between; }
  .modifiers-grid { grid-template-columns:1fr; }
  .calc-tier-grid { grid-template-columns:1fr; }
  .calc-mobile-bar { display:flex; }
  body.calc-page { padding-bottom:80px; }
  .calc-summary-pro {
    position:fixed; top:0; right:-100%; left:auto; bottom:0;
    width:100%; max-width:420px;
    z-index:100;
    border-radius:0;
    transition:right 0.3s;
    overflow-y:auto;
    box-shadow:-12px 0 32px rgba(0,0,0,0.15);
  }
  .calc-summary-pro.mobile-open { right:0; }
  .summary-close-mobile { display:block; }
}


/* ==========================
   Portfolio
   ========================== */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-tab {
  padding: 9px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-tab:hover { border-color: var(--primary-300); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.portfolio-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: grid; place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 159, 28, 0.25), transparent 60%);
}
.portfolio-image svg { width: 56px; height: 56px; opacity: 0.85; position: relative; z-index: 1; }
.portfolio-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.portfolio-cat {
  display: inline-block;
  background: var(--primary-100);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.portfolio-title { margin-bottom: 8px; font-size: 1.125rem; }
.portfolio-summary { color: var(--text-soft); font-size: 14.5px; margin-bottom: 18px; flex: 1; line-height: 1.55; }
.portfolio-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  align-items: center;
}
.portfolio-result { color: var(--success); font-weight: 700; font-size: 14.5px; }
.portfolio-meta .duration { color: var(--text-muted); }

/* ==========================
   Kurslar
   ========================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.course-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.course-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 159, 28, 0.30), transparent 60%);
}
.course-thumb svg { position: relative; z-index: 1; opacity: 0.92; }
.course-badge-free, .course-badge-pro {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
}
.course-badge-free { background: rgba(255, 255, 255, 0.95); color: var(--success); }
.course-badge-pro { background: linear-gradient(135deg, var(--accent), #FF6B1C); color: #fff; box-shadow: 0 4px 12px rgba(255, 159, 28, 0.4); }
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.course-cat {
  background: var(--primary-100);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}
.course-level {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
}
.course-level-boshlovchi { background: var(--success-bg); color: #047857; }
.course-level-rta { background: #FEF3C7; color: #92400E; }
.course-level-professional { background: #FEE2E2; color: #B91C1C; }
.course-title {
  margin-bottom: 10px;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
}
.course-desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.course-stats {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.course-stats span { display: inline-flex; align-items: center; gap: 5px; }
.course-btn { font-size: 14px; padding: 12px 18px; }

/* ==========================
   Modal
   ========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 38, 0.55);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: modalIn 0.25s ease;
}
.modal-overlay.open { display: flex; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: var(--primary-100);
  color: var(--text-soft);
  border-radius: 50%;
  font-size: 16px;
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--primary); color: #fff; }

/* ==========================
   Blog
   ========================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.blog-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-300));
  display: grid; place-items: center;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.blog-image svg { width: 48px; height: 48px; opacity: 0.7; }
.blog-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.20) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; }
.blog-meta .dot { opacity: 0.4; }
.blog-meta .cat { background: var(--primary-100); color: var(--primary); padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 600; font-size: 11.5px; }
.blog-title { margin-bottom: 10px; font-size: 1.125rem; line-height: 1.35; }
.blog-title a { color: var(--ink); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { color: var(--text-soft); font-size: 14.5px; flex: 1; line-height: 1.55; margin-bottom: 16px; }
.blog-readmore {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t-fast);
}
.blog-readmore:hover { gap: 8px; }

/* ==========================
   Article
   ========================== */
.article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  padding: 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
}
.article h1 { margin-bottom: 16px; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { color: var(--text-soft); line-height: 1.75; font-size: 16.5px; }
.article-body h2 { margin: 36px 0 14px; font-size: 1.5rem; color: var(--ink); }
.article-body h3 { margin: 28px 0 10px; font-size: 1.25rem; color: var(--ink); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--primary); border-bottom: 1px solid var(--primary-200); }
.article-body strong { color: var(--ink); }

/* ==========================
   Aloqa sahifasi
   ========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
}
.contact-info h3 { margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-item:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.contact-item .icon-box {
  width: 44px; height: 44px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.contact-item:hover .icon-box { background: var(--primary); color: #fff; }
.contact-item .icon-box svg { width: 20px; height: 20px; }
.contact-item .label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 3px; font-weight: 500; }
.contact-item .value { font-weight: 600; color: var(--ink); font-size: 15px; }
.contact-item .value a { color: var(--ink); }
.contact-item .value a:hover { color: var(--primary); }

.map-wrap {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line-soft);
}
.map-wrap iframe { border-radius: var(--radius); }

/* ==========================
   Alerts
   ========================== */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  align-items: flex-start;
}
.alert-success { background: var(--success-bg); color: #065F46; border-color: #A7F3D0; }
.alert-danger { background: var(--danger-bg); color: #991B1B; border-color: #FECACA; }

/* ==========================
   Animatsiyalar
   ========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ==========================
   Responsive
   ========================== */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
}
@media (max-width: 968px) {
  .section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
  .features-grid, .packages-grid, .portfolio-grid, .blog-grid, .courses-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .quick-form-grid { grid-template-columns: 1fr; }
  .article { padding: 36px 28px; }
  .cta-section { padding: 48px 28px; }
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a:hover { background: transparent; }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: grid; }
  .header-cta .btn:not(.menu-toggle):not(.auth-login-btn) { display: none; }
  .auth-nav-name { display: none; }
  .auth-nav-chip { font-size: 0; }
  .auth-nav-avatar { width: 30px; height: 30px; font-size: 11px; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .quick-form { padding: 24px; }
  .features-grid { gap: 16px; }
  .packages-grid { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 24px 16px; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }
}

/* ==========================================================
   AUTH — Kirish / Ro'yxatdan o'tish sahifalari
   ========================================================== */

.auth-page { background: var(--bg-soft); }

.auth-wrap {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.auth-card {
  padding: 48px 52px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  align-self: center;
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.logo-mark-lg {
  width: 64px; height: 64px;
  font-size: 26px;
  margin: 0 auto 18px;
}

.auth-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}

.auth-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
  background: transparent;
}

.auth-tab.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Identifikator toggle buttons */
.identifier-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ident-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t-fast);
}

.ident-type-btn.active {
  color: var(--primary);
  border-color: var(--primary-200);
  background: var(--primary-100);
}

/* Input with icon */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-control.with-icon {
  padding-left: 42px;
}

.input-toggle-pwd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--t-fast);
}

.input-toggle-pwd:hover { color: var(--primary); }

/* Password strength */
.pwd-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.pwd-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.pwd-strength-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease, background 0.3s ease;
}

.pwd-strength-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Forgot btn */
.auth-forgot-btn {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-fast);
}

.auth-forgot-btn:hover { color: var(--primary-700); }

/* Submit btn */
.auth-submit-btn {
  margin-top: 4px;
}

/* Agree text */
.auth-agree {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 4px;
  line-height: 1.5;
}

.auth-agree a { color: var(--primary); font-weight: 500; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Switch text */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-link-btn {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast);
}

.auth-link-btn:hover { color: var(--primary-700); }

/* Spinner */
.auth-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── OTP Tasdiqlash paneli ── */
.otp-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.otp-big-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-50, #ede9fe);
  color: var(--primary);
}
.otp-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--text);
}
.otp-desc {
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.otp-digit {
  width: 46px; height: 54px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  caret-color: var(--primary);
}
.otp-digit:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.otp-digit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 8px;
  min-height: 24px;
}
.otp-timer {
  font-size: 13px;
  color: var(--text-muted);
}
.otp-back-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13.5px;
  padding: 8px 0 0;
  color: var(--text-muted);
}
.otp-back-btn:hover { color: var(--text); }

@media (max-width: 400px) {
  .otp-inputs { gap: 7px; }
  .otp-digit { width: 40px; height: 48px; font-size: 20px; }
}

/* Right promo panel */
.auth-promo {
  background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-soft) 50%, #1e0f3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 52px;
  position: relative;
  overflow: hidden;
}

.auth-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 80% 20%, rgba(139,92,246,0.3), transparent 60%),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(167,139,250,0.2), transparent 60%);
}

.auth-promo-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
  color: #fff;
}

.auth-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #E0D7FF;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.auth-promo-inner h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.auth-promo-inner p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth-promo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.auth-promo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
}

.auth-promo-list li [data-icon] { color: #A78BFA; flex-shrink: 0; }

.auth-promo-stats {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.auth-promo-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-promo-stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-promo-stats span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

/* Nav auth chip */
.auth-nav-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.auth-nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  flex-shrink: 0;
}

.auth-nav-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-fast);
}

.auth-nav-chip:hover .auth-nav-dropdown,
.auth-nav-chip.open .auth-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-nav-dropdown a,
.auth-nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all var(--t-fast);
  text-decoration: none;
  background: none;
  cursor: pointer;
}

.auth-nav-dropdown a:hover,
.auth-nav-dropdown button:hover {
  background: var(--primary-100);
  color: var(--primary);
}

.auth-nav-dropdown .dropdown-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 6px 0;
}

/* ==========================================================
   KABINET sahifasi
   ========================================================== */

.kabinet-hero {
  background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-soft) 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.kabinet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 80% 50%, rgba(139,92,246,0.25), transparent 60%);
}

.kabinet-profile-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.kabinet-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(139,92,246,0.4);
  letter-spacing: -0.01em;
}

.kabinet-profile-info { flex: 1; min-width: 180px; }

.kabinet-greeting {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.kabinet-name {
  font-size: 1.625rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.kabinet-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.kabinet-contact [data-icon] { opacity: 0.6; }

.kabinet-profile-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.kabinet-profile-actions .btn {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.kabinet-profile-actions .btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Tabs */
.kabinet-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 36px;
  width: fit-content;
}

.kabinet-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: calc(var(--radius-md) - 4px);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  background: none;
  white-space: nowrap;
}

.kabinet-tab.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Order cards */
.order-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
  transition: box-shadow var(--t-fast);
}

.order-card:hover { box-shadow: var(--shadow-sm); }

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.order-id {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}

.order-date { font-size: 13px; color: var(--text-muted); }

.order-status-badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}

.order-card-body {
  padding: 14px 22px;
}

.order-comment {
  font-size: 14px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 10px;
}

.order-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-service-tag {
  padding: 4px 10px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.order-card-foot {
  padding: 10px 22px 14px;
}

.order-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* Profil forma kartlari */
.kabinet-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.kabinet-form-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}

/* Sharh qoldirish kartasi */
.kab-stars { display: flex; gap: 4px; }
.kab-star {
  font-size: 30px; line-height: 1; padding: 2px;
  color: var(--line); background: none; border: none;
  cursor: pointer; transition: color .12s, transform .12s;
}
.kab-star:hover { transform: scale(1.12); }
.kab-star.on { color: #FF9F1C; }
.kab-review-note {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412;
  font-size: 14px;
}
.kab-review-note-ok {
  background: #ECFDF5; border-color: #A7F3D0; color: #065F46;
}

/* Empty state */
.empty-state-card {
  text-align: center;
  padding: 64px 32px;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state-card h3 { margin-bottom: 0; }
.empty-state-card p { color: var(--text-muted); max-width: 360px; }

/* Alert info variant */
.alert-info {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

/* Mobile responsive — auth pages */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-promo { display: none; }
  .auth-card { padding: 40px 28px; max-width: 100%; }
}

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .kabinet-profile-row { flex-direction: column; align-items: flex-start; }
  .kabinet-profile-actions { width: 100%; }
  .kabinet-panel-grid { grid-template-columns: 1fr; }
  .kabinet-tabs { width: 100%; }
  .kabinet-tab { flex: 1; justify-content: center; }
  .auth-nav-name { display: none; }
}

/* ==========================================================
   KABINET PRO — yangi kuchaytirilgan kabinet dizayni
   ========================================================== */

.cabinet-page { background: var(--bg-soft); }

/* Spinner */
.cab-spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* HERO */
.kabinet-hero-pro {
  background: linear-gradient(135deg, var(--brand-black) 0%, #1a0f3a 50%, #2a1a4d 100%);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.kabinet-hero-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(139,92,246,0.35), transparent 60%),
    radial-gradient(ellipse 500px 300px at 20% 80%, rgba(167,139,250,0.20), transparent 60%);
  pointer-events: none;
}

.kab-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Profil */
.kab-profile {
  display: flex;
  align-items: center;
  gap: 24px;
}

.kab-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.kabinet-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  font-size: 1.875rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 12px 28px rgba(139,92,246,0.45);
  letter-spacing: -0.01em;
}

.kab-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid var(--brand-black);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.kab-profile-text { flex: 1; min-width: 0; }

.kab-greeting {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.kab-name {
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.kab-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.kab-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.kab-contact-item [data-icon] { color: rgba(255,255,255,0.5); }

.kab-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kab-meta strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* Quick actions */
.kab-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.kab-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  transition: all var(--t-fast);
  backdrop-filter: blur(8px);
}

.kab-quick-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(167,139,250,0.4);
}

.kab-quick-card [data-icon] { color: var(--primary-light); flex-shrink: 0; }

.kab-quick-card div { display: flex; flex-direction: column; gap: 2px; }
.kab-quick-card strong { font-size: 14px; font-weight: 700; color: #fff; }
.kab-quick-card span { font-size: 12px; color: rgba(255,255,255,0.6); }

.kab-quick-card.kab-quick-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  border-color: rgba(255,255,255,0.2);
}
.kab-quick-card.kab-quick-primary [data-icon] { color: #fff; }
.kab-quick-card.kab-quick-primary span { color: rgba(255,255,255,0.85); }

/* Stats section */
.kab-stats-section {
  margin-top: -32px;
  position: relative;
  z-index: 5;
  margin-bottom: 0;
}

.kab-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kab-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(15, 18, 38, 0.08);
  border: 1px solid var(--line-soft);
  transition: all var(--t-fast);
}

.kab-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 18, 38, 0.12);
}

.kab-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.kab-stat-blue   .kab-stat-icon { background: #DBEAFE; color: #2563EB; }
.kab-stat-orange .kab-stat-icon { background: #FED7AA; color: #EA580C; }
.kab-stat-green  .kab-stat-icon { background: #D1FAE5; color: #059669; }
.kab-stat-purple .kab-stat-icon { background: #EDE9FE; color: #7C3AED; }

.kab-stat-body { flex: 1; min-width: 0; }

.kab-stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kab-stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.kab-stat-trend {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Tabs (already exist, slightly adjusted) */
.kab-tab-badge {
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.kabinet-tab.active .kab-tab-badge { background: var(--primary); color: #fff; }

/* Order filters */
.kab-order-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.kab-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.kab-filter:hover { border-color: var(--primary-200); color: var(--primary); }
.kab-filter.active { background: var(--primary-100); border-color: var(--primary); color: var(--primary); }

.kab-filter .count {
  padding: 1px 8px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.kab-filter.active .count { background: var(--primary); color: #fff; }

.kab-filter .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.kab-filter .dot-new       { background: #3B82F6; }
.kab-filter .dot-contacted { background: #F59E0B; }
.kab-filter .dot-done      { background: #10B981; }
.kab-filter .dot-cancel    { background: #EF4444; }

/* Order Card Pro */
.order-card-pro {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast);
  overflow: hidden;
}

.order-card-pro:hover { box-shadow: var(--shadow-sm); }

.order-card-pro-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 14px;
}

.order-head-left { flex: 1; min-width: 0; }

.order-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.order-id-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-100);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.order-date-text { font-size: 12.5px; color: var(--text-muted); }

.order-summary-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.order-head-right {
  text-align: right;
  flex-shrink: 0;
}

.order-status-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.order-total-mini {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
}

/* Progress bar */
.order-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 16px;
}

.order-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
}

.order-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.order-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  min-width: 36px;
  text-align: right;
}

/* Toggle button */
.order-toggle-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--bg-soft);
  border: none;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--t-fast);
}

.order-toggle-btn:hover { background: var(--primary-100); color: var(--primary); }

.order-toggle-btn [data-icon] { transition: transform var(--t-fast); }
.order-card-pro.expanded .order-toggle-btn [data-icon] { transform: rotate(180deg); }

.order-toggle-btn .toggle-text-hide { display: none; }
.order-card-pro.expanded .order-toggle-btn .toggle-text-show { display: none; }
.order-card-pro.expanded .order-toggle-btn .toggle-text-hide { display: inline; }

/* Expandable */
.order-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.order-card-pro.expanded .order-expandable {
  max-height: 2000px;
  border-top: 1px solid var(--line-soft);
}

/* Order Steps Timeline */
.order-steps {
  padding: 24px 24px 16px;
  position: relative;
}

.order-step {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.order-step:last-child { padding-bottom: 0; }

.order-step-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--line-soft);
  color: var(--text-muted);
  z-index: 2;
  border: 3px solid var(--surface);
}

.order-step.step-done .order-step-icon { background: #10B981; color: #fff; box-shadow: 0 0 0 3px #ECFDF5; }
.order-step.step-active .order-step-icon { background: #F59E0B; color: #fff; box-shadow: 0 0 0 3px #FFFBEB; animation: pulseIcon 1.5s infinite; }
.order-step.step-pending .order-step-icon { background: #F3F4F6; color: #9CA3AF; }
.order-step.step-cancelled .order-step-icon { background: #EF4444; color: #fff; }

@keyframes pulseIcon {
  0%, 100% { box-shadow: 0 0 0 3px #FFFBEB; }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,0.25); }
}

.order-step-line {
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
  z-index: 1;
}

.order-step.step-done .order-step-line { background: #10B981; }

.order-step-body { flex: 1; padding-top: 4px; }

.order-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.order-step.step-pending .order-step-title { color: var(--text-muted); }
.order-step.step-cancelled .order-step-title { color: #EF4444; }

.order-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.order-step-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Order items */
.order-items {
  padding: 16px 24px;
  background: var(--bg-soft);
  margin: 0 0 0;
  border-top: 1px solid var(--line-soft);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft);
}

.order-item-row:last-child { border-bottom: none; }
.order-item-row span { color: var(--text-soft); }
.order-item-row strong { color: var(--ink); font-weight: 700; }

.order-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.order-addon-tag {
  padding: 3px 10px;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

/* Detail block */
.order-detail-block {
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft);
}

.order-detail-block h5 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-detail-block p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

.order-mgr-block {
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
}

.order-mgr-block h5 { color: var(--primary); }
.order-mgr-block p { color: var(--ink); font-style: italic; }

.order-actions-row {
  padding: 16px 24px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}

/* Loyalty Tab */
.kab-loyalty-hero {
  margin-bottom: 24px;
}

.kab-loyalty-tier-card {
  background: linear-gradient(135deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-xs);
}

.kab-loyalty-icon-big {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.kab-loyalty-text { flex: 1; }

.kab-loyalty-pre {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.kab-loyalty-text h2 {
  font-size: 2.25rem;
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}

.kab-loyalty-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.kab-loyalty-stat {
  text-align: center;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.kab-loyalty-stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1;
}

.kab-loyalty-stat span {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.kab-loyalty-next {
  background: linear-gradient(135deg, var(--primary-50), var(--bg));
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.kab-loyalty-next-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink);
}

.kab-loyalty-next-head strong { color: var(--primary); font-size: 13.5px; }

.kab-progress-bar {
  height: 10px;
  background: rgba(139,92,246,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.kab-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 99px;
  transition: width 0.5s ease;
}

.kab-loyalty-next p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Tier Cards Grid */
.kab-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.kab-tier-card {
  background: var(--surface);
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--t-fast);
  position: relative;
}

.kab-tier-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-50), var(--surface));
  box-shadow: 0 8px 24px rgba(139,92,246,0.15);
}

.kab-tier-card.active::after {
  content: 'Joriy';
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.kab-tier-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.kab-tier-card h4 {
  margin-bottom: 4px;
  font-weight: 800;
  color: var(--ink);
}

.kab-tier-req {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.kab-tier-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kab-tier-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.kab-tier-perks li [data-icon] { color: #10B981; flex-shrink: 0; }

/* Profile completeness */
.kab-profile-completeness {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.kab-completeness-circle {
  position: relative;
  flex-shrink: 0;
}

.kab-completeness-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

/* Danger card */
.kab-danger-card { border-color: #FEE2E2; }

/* Mobile */
@media (max-width: 900px) {
  .kab-hero-grid { grid-template-columns: 1fr; }
  .kab-stats-grid { grid-template-columns: 1fr 1fr; }
  .kab-loyalty-tier-card { flex-direction: column; text-align: center; }
  .kab-loyalty-stat { padding-left: 0; padding-top: 24px; border-left: none; border-top: 1px solid var(--line); width: 100%; }
}

@media (max-width: 600px) {
  .kabinet-hero-pro { padding: 32px 0 56px; }
  .kab-profile { flex-direction: column; align-items: flex-start; gap: 16px; }
  .kabinet-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .kab-name { font-size: 1.5rem; }
  .kab-quick-actions { grid-template-columns: 1fr; gap: 8px; }
  .kab-stats-grid { grid-template-columns: 1fr; }
  .kab-stat-value { font-size: 1.5rem; }
  .order-card-pro-head { flex-direction: column; align-items: stretch; }
  .order-head-right { text-align: left; }
  .order-actions-row .btn { flex: 1; justify-content: center; }
}

/* Telegram link card (kabinet) */
.tg-link-card {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE) !important;
  border: 1px solid #BFDBFE !important;
}
.tg-link-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tg-link-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0088cc, #2AABEE);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.30);
}
.tg-link-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  flex-wrap: wrap;
}
.tg-link-status-row.tg-linked {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.tg-link-info { flex: 1; min-width: 200px; }
.tg-link-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #BFDBFE;
}
.tg-link-perks > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
}
.tg-link-perks [data-icon] { color: #10B981; }

/* Telegram bot button */
.btn-tg-bot {
  background: linear-gradient(135deg, #0088cc, #2AABEE);
  color: #fff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px !important;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.30);
  transition: all var(--t-fast);
}
.btn-tg-bot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 136, 204, 0.42);
  color: #fff;
}
.btn-tg-bot [data-icon] { color: #fff; flex-shrink: 0; }
.btn-tg-bot svg { color: #fff; }

/* Toast notification */
.kab-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15,18,38,0.15);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 400px;
}
.kab-toast.show { transform: translateX(0); }
.kab-toast-success { border-color: #10B981; }
.kab-toast-success [data-icon] { color: #10B981; }
.kab-toast-danger { border-color: #EF4444; }
.kab-toast-danger [data-icon] { color: #EF4444; }
@media (max-width: 600px) {
  .kab-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ═══════════════════════════════════════════════════════════
   YAGONA DROPDOWN (altSelect) — admin panel bilan bir xil uslub
   assets/js/altselect.js native <select>ni shu tuzilmaga o'raydi
   ═══════════════════════════════════════════════════════════ */
.alt-sel { position: relative; display: block; max-width: 100%; }
/* Native select ko'rinmaydi, lekin o'lchami bor va display:none emas —
   shuning uchun `required` validatsiyasi ishlaydi */
.alt-sel-native {
  position: absolute !important; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0; appearance: none;
}
.alt-sel-btn {
  display: inline-flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 15px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.alt-sel-btn:hover { border-color: var(--primary); }
.alt-sel.open .alt-sel-btn { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.alt-sel-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-sel.is-placeholder .alt-sel-label { color: var(--text-muted); }
.alt-sel-caret { color: var(--text-muted); font-size: 12px; flex-shrink: 0; transition: transform .15s; }
.alt-sel.open .alt-sel-caret { transform: rotate(180deg); }

.alt-sel-menu {
  position: fixed; z-index: 900; display: none;
  min-width: 200px; max-width: min(94vw, 420px); max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,18,38,0.16); padding: 6px;
}
.alt-sel.open .alt-sel-menu { display: block; }
/* Yopishqoq qidiruv: top:-6px da ro'yxat uning USTIDAN o'tib ko'rinib
   qolardi. top:0 + to'liq fon + z-index bilan hech narsa sizmaydi. */
.alt-sel-search {
  /* top:-6px — menyuda 6px padding bor, top:0 bo'lsa qidiruv o'sha
     6px pastga yopishib, tepasida tirqish qolardi va ro'yxat o'sha
     tirqishdan sizib ko'rinardi. Manfiy margin + o'z padding'i bilan
     u menyuning eng chetigacha cho'ziladi. */
  position: sticky; top: -6px; z-index: 2;
  background: var(--surface); padding: 6px; margin: -6px -6px 4px;
  border-bottom: 1px solid var(--line-soft);
}
/* <optgroup> sarlavhasi */
.alt-sel-group {
  padding: 8px 12px 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
}
.alt-sel-search input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; outline: none; }
.alt-sel-search input:focus { border-color: var(--primary); }
.alt-sel-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px 12px; border: none; background: none; border-radius: 9px;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.alt-sel-opt:hover { background: var(--primary-tint); color: var(--primary); }
.alt-sel-opt.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.alt-sel-opt.active::after { content: '✓'; margin-left: auto; font-weight: 800; }

/* Menyu ichidagi scroll sahifaga o'tib ketmasin */
.alt-sel-menu { overscroll-behavior: contain; }

/* SANA MAYDONI — dropdownlar bilan bir xil uslub */
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
  appearance: none; -webkit-appearance: none;
  padding: 13px 15px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  cursor: pointer; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input[type="date"]:hover, input[type="datetime-local"]:hover,
input[type="month"]:hover, input[type="time"]:hover { border-color: var(--primary); }
input[type="date"]:focus, input[type="datetime-local"]:focus,
input[type="month"]:focus, input[type="time"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.55; padding: 3px; border-radius: 6px;
  transition: opacity .15s, background .15s;
  filter: invert(38%) sepia(72%) saturate(3000%) hue-rotate(248deg) brightness(94%) contrast(96%);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--primary-soft); }

/* O'Z KALENDARIMIZ (altDate) — admin bilan bir xil til */
.alt-date { position: relative; display: block; max-width: 100%; }
.alt-date-native { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0; }
.alt-date-btn {
  display: inline-flex; align-items: center; gap: 9px; width: 100%;
  padding: 13px 15px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.alt-date-btn:hover { border-color: var(--primary); }
.alt-date.open .alt-date-btn { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.alt-date.empty .alt-date-label { color: var(--text-muted); }
.alt-date-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-date-ic { display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.alt-date-panel {
  position: fixed; z-index: 900; display: none; width: 290px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(15,18,38,0.18); padding: 12px;
}
.alt-date.open .alt-date-panel { display: block; }
.alt-date-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.alt-date-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.alt-date-nav { width: 30px; height: 30px; border-radius: 9px; border: none; cursor: pointer; background: var(--bg-soft); color: var(--text-soft); font-size: 18px; line-height: 1; font-family: inherit; }
.alt-date-nav:hover { background: var(--primary-tint); color: var(--primary); }
.alt-date-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.alt-date-w { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; padding: 4px 0 6px; }
.alt-date-d { aspect-ratio: 1; border: none; background: none; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.alt-date-d:hover:not(:disabled) { background: var(--primary-tint); color: var(--primary); }
.alt-date-d.out { color: var(--line); font-weight: 500; }
.alt-date-d.today { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.alt-date-d.sel { background: var(--primary); color: #fff; font-weight: 800; }
.alt-date-d.off, .alt-date-d:disabled { opacity: 0.3; cursor: not-allowed; }
.alt-date-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.alt-date-foot button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.alt-date-clear { color: var(--text-muted); }
.alt-date-clear:hover { background: var(--bg-soft); color: #B91C1C; }
.alt-date-today { color: var(--primary); }
.alt-date-today:hover { background: var(--primary-tint); }

/* ═══════════════════════════════════════════════════════════
   RAQAMLAR — admin bilan bir xil uslub
   Manfiy letter-spacing katta raqamlarni yopishtirib yuborardi;
   endi tabular raqamlar + aniq minglik oralig'i.
   ═══════════════════════════════════════════════════════════ */
.hero-trust-item .num, .stat-num, .kab-stat-value, .kab-balance-amt,
.bill-txn-amt, .bill-batch-sum b, .bill-batch-owe, .bill-batch-ok,
.order-item-row strong, .package-price, .calc-total, .calc-line-sum,
.ff-row2 b, .ff-ptable td, .ff-ptable th {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.hero-trust-item .num, .stat-num, .kab-stat-value, .kab-balance-amt,
.bill-txn-amt, .bill-batch-sum b, .package-price, .calc-total {
  letter-spacing: 0 !important;
  word-spacing: 0.14em;
  white-space: nowrap;
}

/* Kabinet: xizmat kartasidagi ish hajmi qatorlari */
.sv-lines {
  margin-top: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 5px;
}
.sv-line {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; font-size: 13px;
}
.sv-line > span:first-child { color: var(--text-soft); }
.sv-line-sum { font-weight: 600; white-space: nowrap; }
