/* =====================================================================
   Boost — dizayn tizimi
   Ads Manager uslubidagi toza interfeys + TgTraffic brend ranglari.
   Build talab qilmaydi (Node yo'q) — bitta CSS fayl.
   ===================================================================== */

:root {
  --brand-1: #2AABEE;
  --brand-2: #1466D8;
  --brand-3: #0B3C8C;
  --brand-grad: linear-gradient(135deg, #2AABEE 0%, #1466D8 100%);
  --primary: #1466D8;
  --primary-hover: #0F56BA;
  --primary-soft: #E8F1FD;

  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --border: #E1E6ED;
  --border-strong: #CBD3DE;
  --ink: #0E1726;
  --text: #1C2434;
  --muted: #667085;
  --faint: #98A2B3;

  --success: #12A150;
  --success-soft: #E7F7EE;
  --warning: #C77700;
  --warning-soft: #FFF4E0;
  --danger: #D92D20;
  --danger-soft: #FDECEA;
  --meta: #0866FF;
  --ig: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 50px -12px rgba(11, 60, 140, .25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --sidebar-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Brend belgisi ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -6px rgba(20, 102, 216, .6); }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { font-family: var(--font); font-weight: 500; font-size: 12px; color: var(--muted); display: block; margin-top: -2px; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; max-width: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-grad { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(20, 102, 216, .7); }
.btn-grad:hover { filter: brightness(1.05); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--surface); border-color: #F3C5C1; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-meta { background: var(--meta); color: #fff; }
.btn-meta:hover { background: #0558E0; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Formalar ---------- */
.field { margin-bottom: 16px; }
.label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: var(--surface); font: 400 15px var(--font); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20, 102, 216, .14); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }
.input-code { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 600; font-family: var(--font-display); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Bildirishnomalar ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-error { background: var(--danger-soft); color: #A1251B; border-color: #F6CBC6; }
.alert-success { background: var(--success-soft); color: #0B7A3B; border-color: #BFE8CF; }
.alert-warning { background: var(--warning-soft); color: #8A5300; border-color: #F7DDAE; }
.alert-info { background: var(--primary-soft); color: #0B4BA6; border-color: #C9DDFA; }

/* ---------- Kartochka va belgilar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 16px; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: #EEF1F5; color: var(--muted); }
.badge-pro { background: var(--brand-grad); color: #fff; }

/* =====================================================================
   OCHIQ SAHIFA (landing)
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; background: #EEF1F5; border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.hero { position: relative; overflow: hidden; padding: 72px 0 40px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(42, 171, 238, .18), transparent 60%),
  radial-gradient(700px 360px at -5% 10%, rgba(20, 102, 216, .12), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; margin-bottom: 18px; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); }

/* Mahsulot ko'rinishi (CSS bilan chizilgan kabinet) */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: #E1E6ED; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.mock-side b { height: 26px; border-radius: 7px; background: #EEF1F5; }
.mock-side b.on { background: var(--primary-soft); }
.mock-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.mock-kpi small { display: block; color: var(--muted); font-size: 11px; }
.mock-kpi strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.mock-kpi em { font-style: normal; font-size: 11px; color: var(--success); font-weight: 600; }
.mock-chart { border: 1px solid var(--border); border-radius: 10px; height: 110px; padding: 10px; display: flex; align-items: flex-end; gap: 6px; }
.mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand-grad); opacity: .85; }
.mock-rows { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 18px 1fr 60px 50px; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--border); font-size: 12px; }
.mock-row:first-child { border-top: 0; }
.mock-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.mock-row .bar { height: 7px; border-radius: 4px; background: #EEF1F5; }

.section { padding: 80px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 24px; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .price { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; font-family: var(--font); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.cta-band { background: var(--brand-grad); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--brand-2); }

.site-footer { padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* =====================================================================
   KIRISH SAHIFASI
   ===================================================================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::after { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-aside .brand { color: #fff; }
.auth-aside .brand-mark { background: rgba(255, 255, 255, .18); box-shadow: none; }
.auth-aside .brand small { color: rgba(255, 255, 255, .75); }
.auth-box .top .lang-switch { margin-left: auto; }
.auth-aside h2 { color: #fff; font-size: 32px; max-width: 420px; }
.auth-aside ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.auth-aside li { display: flex; gap: 12px; align-items: center; font-size: 16px; opacity: .95; }
.auth-aside li svg { width: 22px; height: 22px; flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 26px; }
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-social { background: #fff; border: 1px solid var(--border-strong); color: var(--ink); height: 48px; }
.btn-social:hover { background: var(--surface-2); }
.btn-social svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; font-weight: 600; color: var(--ink); }
.who button { border: 0; background: none; color: var(--primary); font: 600 14px var(--font); cursor: pointer; }
.link-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; }
.link-btn { border: 0; background: none; color: var(--primary); font: 600 14px var(--font); cursor: pointer; padding: 0; }
.link-btn:disabled { color: var(--faint); cursor: default; }
.auth-legal { font-size: 12px; color: var(--faint); margin-top: 26px; text-align: center; }
.tg-widget-wrap { display: flex; justify-content: center; min-height: 40px; }

/* =====================================================================
   KABINET (dashboard)
   ===================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; }
.sidebar .brand { padding: 4px 8px 18px; }
.nav-group { margin-top: 10px; }
.nav-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 10px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: 15px; }
.nav-link svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.nav-link:hover { background: var(--surface-2); text-decoration: none; }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-link.active svg { color: var(--primary); }
.nav-link .badge { margin-left: auto; height: 20px; padding: 0 8px; font-size: 11px; }
.sidebar-foot { margin-top: auto; }
.upsell { padding: 16px; border-radius: var(--radius); background: linear-gradient(160deg, #EEF5FF, #F6F0FF); border: 1px solid #DCE6F8; }
.upsell h4 { font-size: 15px; margin-bottom: 4px; }
.upsell p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.topbar .menu-btn { display: none; width: 40px; padding: 0; color: var(--ink); }
.topbar .menu-btn svg { width: 22px; height: 22px; }
.account-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); max-width: 320px; }
.account-pill img, .account-pill .ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.account-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ph { background: #E8EDF3; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 12px; }

.user-menu { position: relative; }
.user-menu > button { border: 0; background: none; padding: 0; cursor: pointer; display: flex; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown .who-mini { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown .who-mini b { display: block; color: var(--ink); }
.dropdown .who-mini small { color: var(--muted); }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 0; background: none; font: 500 14px var(--font); color: var(--text); cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown svg { width: 18px; height: 18px; color: var(--muted); }

.content { padding: 28px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0 0 4px; }
.page-head p { color: var(--muted); margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; }
.kpi .k-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .k-label svg { width: 16px; height: 16px; }
.kpi .k-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.kpi .k-sub { font-size: 13px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.grid-2 > *, .kpis > * { min-width: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: 11px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-main img, .cell-main .ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.cell-main b { display: block; color: var(--ink); font-weight: 600; }
.cell-main small { color: var(--muted); font-size: 12px; }
.ig-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.ig-chip img { width: 24px; height: 24px; border-radius: 50%; }
.ig-ring { padding: 2px; border-radius: 50%; background: var(--ig); }
.ig-ring img { border: 2px solid #fff; }

.empty { text-align: center; padding: 48px 24px; }
.empty .e-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty .e-icon svg { width: 30px; height: 30px; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* Meta ulash sahifasi */
.connect-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; }
.connect-hero .left { padding: 36px; }
.connect-hero .right { background: linear-gradient(160deg, #F0F6FF, #F7F2FF); border-left: 1px solid var(--border); padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.connect-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.connect-logos .logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.connect-logos .logo svg { width: 26px; height: 26px; }
.connect-logos .plus { color: var(--faint); font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 1px; }
.perm { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .7); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.perm svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 2px; }
.perm b { display: block; color: var(--ink); font-size: 14px; }
.perm span { color: var(--muted); font-size: 13px; }

.settings-list { display: flex; flex-direction: column; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); }
.settings-row:first-child { border-top: 0; }
.settings-row b { color: var(--ink); display: block; }
.settings-row small { color: var(--muted); }

.backdrop { display: none; }

/* =====================================================================
   MOSLASHUVCHAN (telefon / planshet)
   ===================================================================== */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .connect-hero { grid-template-columns: 1fr; }
  .connect-hero .right { border-left: 0; border-top: 1px solid var(--border); }

  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(14, 23, 38, .35); z-index: 40; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 20px 16px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 24px; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .k-value { font-size: 22px; }
  .header-actions .btn-outline { display: none; }
  .account-pill { max-width: 170px; }
  .account-pill .badge { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .table th, .table td { padding: 12px 14px; }
}

/* Kirish usullari (kartalar) */
.method-q { font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.methods { display: flex; flex-direction: column; gap: 12px; }
.methods .divider { margin: 6px 0; text-transform: uppercase; font-weight: 600; letter-spacing: .06em; }
.method { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; font: 600 16px var(--font); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.method:hover { text-decoration: none; border-color: #B9D3F7; background: #FBFDFF; box-shadow: 0 4px 14px -6px rgba(20, 102, 216, .25); }
.method:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; background: #fff; border-color: var(--border); }
.m-ic { position: relative; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.m-ic svg { width: 22px; height: 22px; }
.m-sub { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: #2AABEE; color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.m-sub svg { width: 11px; height: 11px; }
.m-tx { flex: 1; min-width: 0; }
.m-tx small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.m-go { width: 18px; height: 18px; color: var(--faint); flex: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }

/* Sidebar: asosiy harakat tugmasi */
.create-btn { margin: 4px 0 6px; height: 46px; }
/* Tablar (Meta akkaunt bo'limi) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* Bloklangan kabinet ogohlantirishi */
.blocked-card { background: #FFF8F7; border: 1px solid #F6CBC6; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.blocked-card .b-head { display: flex; gap: 12px; }
.blocked-card .b-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; flex: none; }
.blocked-card .b-ic svg { width: 20px; height: 20px; }
.blocked-card b { color: var(--ink); font-size: 16px; }
.blocked-card p { margin: 4px 0 0; color: #5B3B37; font-size: 14px; }
.blocked-card .b-steps { margin: 12px 0 14px 48px; padding-left: 18px; color: #344054; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.blocked-card .b-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: 48px; }
@media (max-width: 640px) { .blocked-card .b-steps, .blocked-card .b-actions { margin-left: 0; } }

/* Bloklangan kabinet: qatorda faqat havola, tushuntirish — modal oynada */
.reason-link { border: 0; background: none; padding: 0; margin-left: 8px; color: var(--primary); font: 600 13px var(--font); cursor: pointer; }
.reason-link:hover { text-decoration: underline; }
.modal { border: 0; border-radius: 16px; padding: 22px 24px; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
.modal::backdrop { background: rgba(14, 23, 38, .45); }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal .b-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; flex: none; }
.modal .b-ic svg { width: 20px; height: 20px; }
.modal-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--faint); cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: var(--ink); }
.modal-reason { color: #475467; font-size: 14px; margin: 0 0 12px; }
.modal-steps { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #344054; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* =====================================================================
   REKLAMA YARATISH — Ads Manager uslubi (Kampaniya / Ad set / Reklama)
   ===================================================================== */
.am { padding-bottom: 84px; }
.am-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.am-top h1 { margin: 0 0 4px; font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.am-top p { margin: 0; }
.am-account { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 4px 4px 12px; max-width: 100%; }
.am-account svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.am-account select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 8px 6px; width: 260px; max-width: 100%; }
.am-account select:focus { outline: none; }

.am-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.am-tree { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.am-node { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 10px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--text); position: relative; min-width: 0; }
.am-node + .am-node { margin-left: 14px; }
.am-node + .am-node + .am-node { margin-left: 28px; }
.am-node:hover { background: var(--surface-2); }
.am-node.active { background: var(--primary-soft); color: var(--primary); }
.am-node .n-ic { width: 30px; height: 30px; border-radius: 8px; background: #EEF1F5; display: grid; place-items: center; flex: none; }
.am-node.active .n-ic { background: var(--primary); color: #fff; }
.am-node .n-ic svg { width: 16px; height: 16px; }
.am-node .n-tx { min-width: 0; flex: 1; }
.am-node small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.am-node b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-node .n-ok { display: none; }

.am-form { min-width: 0; }
.am-level { display: none; }
.am-level.active { display: block; animation: fade .2s ease; }
.am-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.am-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
.am-card > .field:last-child, .am-card .row-2:last-child .field { margin-bottom: 0; }

.obj-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.obj-list { display: flex; flex-direction: column; gap: 2px; }
.obj-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.obj-row:hover { background: var(--surface-2); }
.obj-row:has(input:checked) { background: var(--primary-soft); }
.obj-row input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; margin: 0; }
.obj-row .o-ic { width: 30px; height: 30px; border-radius: 8px; background: #EEF1F5; color: var(--muted); display: grid; place-items: center; flex: none; }
.obj-row:has(input:checked) .o-ic { background: var(--primary); color: #fff; }
.obj-row .o-ic svg { width: 16px; height: 16px; }
.obj-row b { font-weight: 600; font-size: 14px; color: var(--ink); flex: 1; }
.obj-row.disabled { cursor: not-allowed; opacity: .55; }
.obj-row .badge { font-size: 11px; }
.obj-desc { background: var(--surface-2); border-radius: 12px; padding: 16px; font-size: 14px; }
.obj-desc b { color: var(--ink); }
.obj-desc p { margin: 6px 0 0; color: #475467; line-height: 1.5; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--text); }
.check input { accent-color: var(--primary); width: 17px; height: 17px; flex: none; margin: 0; }
.check:has(input:disabled) { opacity: .5; cursor: default; }

.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.toggle-row .hint { margin-top: 2px; }
.switch { position: relative; flex: none; width: 44px; height: 24px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(20, 102, 216, .2); }
.budget-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.budget-box .hint { margin: 0 0 4px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: auto; }

.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff; }
.choice:hover { border-color: #B9D3F7; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.choice img, .choice .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.choice b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.choice small { color: var(--muted); font-size: 12px; }

.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.obj { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; background: #fff; }
.obj input { position: absolute; opacity: 0; }
.obj:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 102, 216, .12); background: #FBFDFF; }
.obj .o-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; }
.obj .o-ic svg { width: 20px; height: 20px; }
.obj b { color: var(--ink); }
.obj small { color: var(--muted); font-size: 13px; }

.seg { display: inline-flex; background: #EEF1F5; border-radius: 10px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 13px; }
.chip small { color: #5B83C8; font-weight: 500; }
.chip button { border: 0; background: rgba(20, 102, 216, .12); color: var(--primary); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.search-box { position: relative; }
.dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; }
.dd button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; cursor: pointer; font: inherit; }
.dd button:hover { background: var(--surface-2); }
.dd b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.dd small { color: var(--muted); font-size: 12px; }
.dd-empty { padding: 10px 14px; margin: 0; font-size: 14px; }

.manual { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pf-group { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.pf-head { margin-bottom: 8px; }
.pos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding-left: 25px; }
.pos-grid .check { font-size: 13px; }

.money { position: relative; max-width: 260px; }
.money .input { padding-right: 64px; font-size: 18px; font-weight: 600; }
.money span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }

.dropzone { position: relative; display: grid; place-items: center; min-height: 170px; border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 600; cursor: pointer; overflow: hidden; text-align: center; padding: 12px; }
.dropzone.over, .dropzone:hover { border-color: var(--primary); color: var(--primary); }
.dz-empty { display: inline-flex; gap: 8px; align-items: center; }
.dz-empty svg { width: 20px; height: 20px; }
.dropzone img { max-height: 260px; max-width: 100%; border-radius: 10px; }
.dz-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--primary); }

.cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cc { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.cc-img { width: 110px; height: 110px; border-radius: 10px; background: var(--surface-2); border: 2px dashed var(--border-strong); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; }
.cc-img span { font-size: 28px; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-f b { font-size: 13px; color: var(--ink); }
.cc-f .input { height: 36px; font-size: 13px; }
.cc-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; color: var(--faint); cursor: pointer; }
.cc-x:hover { color: var(--danger); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.post { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border); border-radius: 12px; padding: 8px; cursor: pointer; background: #fff; }
.post input { position: absolute; opacity: 0; }
.post:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 102, 216, .14); }
.post.off { opacity: .5; cursor: not-allowed; }
.post img, .post-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #EEF1F5; display: block; }
.post-tx { font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post small { font-size: 11px; color: var(--muted); }

.am-preview { position: sticky; top: 84px; }
.am-preview .card { padding: 0; overflow: hidden; }
.am-preview .card-head { padding: 14px 16px 0; margin: 0; }
.pv-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tabs button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pv-tabs button.active { background: var(--primary-soft); color: var(--primary); }
.pv-stage { background: #F0F2F5; padding: 16px; display: grid; place-items: center; }
.pv-meta { padding: 12px 16px 16px; }
.pv-meta .mp { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: auto; background: #fff; max-height: 640px; }
.pv-meta iframe { display: block; border: 0; max-width: 100%; }

.mk { width: 100%; max-width: 300px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; font-size: 13px; }
.mk-head { display: flex; gap: 8px; align-items: center; padding: 10px; }
.mk-head img, .mk-head .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.mk-head b { display: block; color: var(--ink); font-size: 13px; }
.mk-head small { color: var(--muted); font-size: 11px; }
.mk-text { padding: 0 10px 10px; margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.mk-img + .mk-text, .mk-foot + .mk-text { padding-top: 10px; }
.mk-img { aspect-ratio: 1 / 1; background: #E4E6EB; overflow: hidden; }
.mk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-car { display: flex; gap: 6px; overflow-x: auto; padding: 0 10px; scrollbar-width: none; }
.mk-cc { flex: none; width: 72%; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mk-cc img, .mk-cc:not(:has(img))::before { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #E4E6EB; content: ''; }
.mk-cc b { display: block; padding: 6px 8px; font-size: 12px; min-height: 28px; }
.mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #F7F8FA; padding: 10px; }
.mk-foot > div { min-width: 0; }
.mk-foot small { display: block; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-foot b { display: block; color: var(--ink); font-size: 13px; }
.mk-cta { background: #E4E6EB; color: var(--ink); padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.mk-story { position: relative; max-width: 220px; aspect-ratio: 9 / 16; background: #1C1E21; color: #fff; }
.mk-story .mk-img { position: absolute; inset: 0; aspect-ratio: auto; background: #3A3B3C; }
.mk-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 60%, rgba(0,0,0,.6)); }
.mk-over .mk-head b, .mk-over .mk-head small { color: #fff; }
.mk-over p { margin: auto 12px 8px; font-size: 12px; }
.mk-over .mk-cta { margin: 0 12px 14px; text-align: center; background: #fff; }

.am-bar { position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 28px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
.am-bar-r { display: flex; gap: 10px; }

.modal-wide { width: min(640px, calc(100vw - 32px)); }
.summary { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0 0 20px; padding: 16px; background: var(--surface-2); border-radius: 12px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; }

/* 1-bosqich: istisnolar, radius, jadval, variantlar */
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.loc-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.loc-row select { flex: 1; min-width: 0; }
.sub-field { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.chips-x .chip { background: var(--danger-soft); color: var(--danger); }
.chips-x .chip button { background: rgba(217, 45, 32, .12); color: var(--danger); }
.chip-r { border: 0; background: rgba(20, 102, 216, .1); color: var(--primary); border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 4px; cursor: pointer; }
.chips-x .chip-r { background: rgba(217, 45, 32, .1); color: var(--danger); }
.dp { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.dp-body { margin: 12px 0 0 25px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dp-days { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.dp-days label { cursor: pointer; }
.dp-days input { display: none; }
.dp-days span { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.dp-days input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.dp-hours { display: inline-flex; align-items: center; gap: 8px; }
.dp-hours .input { width: 110px; }
.variants { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.variants:empty { display: none; }
.variant { position: relative; }
.variant .input { padding-right: 32px; }
.variants .hint { margin: 0; }

/* Reklamalarim */
.budget-cell { display: inline-flex; align-items: center; gap: 4px; }
.icon-btn { border: 0; background: none; padding: 4px; border-radius: 6px; color: var(--faint); cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--primary); }
.icon-btn { width: 30px; height: 30px; flex: none; }
.icon-btn svg { width: 16px; height: 16px; min-width: 16px; flex: none; }
.icon-btn-danger:hover { color: var(--danger); background: var(--danger-soft); }
.budget-cell { white-space: nowrap; }
.row-actions { white-space: nowrap; }
.row-actions > * { vertical-align: middle; }
.row-actions form { display: inline-block; }

@media (max-width: 1280px) {
  .am-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .am-tree { grid-column: 1 / -1; position: static; flex-direction: row; overflow-x: auto; }
  .am-node, .am-node + .am-node, .am-node + .am-node + .am-node { margin-left: 0; flex: 1; min-width: 160px; }
}
@media (max-width: 1100px) {
  .am-body { grid-template-columns: 1fr; }
  .am-preview { position: static; }
}
@media (max-width: 960px) {
  .am-bar { left: 0; padding: 10px 16px; }
}
@media (max-width: 1600px) {
  .table th, .table td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 640px) {
  .am-account, .am-account select { width: 100%; }
  .obj-grid, .row-2, .obj-pick, .check-grid, .pos-grid { grid-template-columns: 1fr; }
  .am-card { padding: 16px; }
  .am-node { min-width: 120px; }
  .am-node .n-ic { display: none; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 8px; }
  .am-bar .btn { padding-left: 12px; padding-right: 12px; }
  .cc { grid-template-columns: 80px minmax(0, 1fr); }
  .cc-img { width: 80px; height: 80px; }
}
.am-card .field .seg { display: flex; width: 100%; }
.am-card .field .seg label { flex: 1; min-width: 0; text-align: center; }
.am-card .field .seg span { padding: 7px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   AI YORDAMCHI
   ===================================================================== */
.ai { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.ai-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; }
.ai-side-h { margin: 12px 4px 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ai-hist { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 220px); overflow-y: auto; }
.ai-hist a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.ai-hist a:hover { background: var(--surface); }
.ai-hist a.active { background: var(--primary-soft); color: var(--primary); }
.ai-hist span { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-hist small { font-size: 11px; color: var(--muted); }
.ai-main { min-width: 0; max-width: 860px; }
.ai-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ai-head h1 { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ai-head p { margin: 2px 0 0; }
.ai-badge { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7C3AED, #1466D8); }
.ai-badge svg { width: 24px; height: 24px; }
.ai-del { margin-left: auto; }
.ai-thread { display: flex; flex-direction: column; gap: 16px; padding-bottom: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-user { justify-content: flex-end; }
.msg-av { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7C3AED, #1466D8); }
.msg-av svg { width: 17px; height: 17px; }
.msg-body { min-width: 0; max-width: 100%; font-size: 15px; line-height: 1.6; color: var(--text); }
.msg-ai .msg-body { background: var(--surface); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 12px 16px; box-shadow: var(--shadow-sm); flex: 1; }
.msg-user .msg-body { background: var(--primary); color: #fff; border-radius: 16px 4px 16px 16px; padding: 10px 14px; max-width: 80%; }
.msg-body p { margin: 0 0 8px; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-body ul, .msg-body ol { margin: 4px 0 8px; padding-left: 20px; }
.msg-body li { margin: 2px 0; }
.msg-body h1, .msg-body h2, .msg-body h3 { font-size: 15px; margin: 10px 0 4px; }
.msg-body strong { color: var(--ink); }
.msg-err { color: var(--danger); }
.typing { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-examples button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; }
.ai-examples button:hover { border-color: var(--primary); color: var(--primary); }
.opts { display: grid; gap: 12px; margin-top: 12px; }
.opt { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #FBFCFE; }
.opt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-top b { font-size: 15px; color: var(--ink); }
.opt-n { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7C3AED; background: #F3EBFF; border-radius: 999px; padding: 2px 8px; }
.opt-why { margin: 6px 0 0 !important; font-size: 14px; color: #475467; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.opt-chips span { font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 4px 10px; }
.opt-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; font-size: 13px; }
.opt-dl dt { color: var(--muted); }
.opt-dl dd { margin: 0; }
.opt-dl small { color: var(--muted); }
.opt-dl q { display: block; quotes: none; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; white-space: pre-wrap; }
.ai-composer { position: sticky; bottom: 12px; display: flex; gap: 8px; align-items: flex-end; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); margin-top: 8px; }
.ai-composer textarea { flex: 1; border: 0; resize: none; font: inherit; font-size: 15px; padding: 8px 10px; background: transparent; color: var(--text); max-height: 200px; line-height: 1.5; }
.ai-composer textarea:focus { outline: none; }
.ai-composer .btn { flex: none; }
.ai-disc { text-align: center; margin-top: 8px; }
@media (max-width: 960px) {
  .ai { grid-template-columns: 1fr; }
  .ai-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .ai-side .btn-block { width: auto; }
  .ai-side-h, .ai-hist { display: none; }
}
@media (max-width: 640px) {
  .ai-composer .btn span { display: none; }
  .opt-dl { grid-template-columns: 1fr; gap: 2px; }
  .opt-dl dd { margin-bottom: 6px; }
  .msg-user .msg-body { max-width: 90%; }
}
.opt-post { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.opt-post img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.opt-post span { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opt-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* AI v2: bo'limlar, avtopilot, fayllar, qadamlar, karta ko'rinishi */
.ai-tabs { display: inline-flex; gap: 4px; background: #EEF1F5; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.ai-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.ai-tabs button svg { width: 16px; height: 16px; }
.ai-tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.ai-auto { padding: 20px 22px; }
.ai-auto-head { margin-bottom: 16px; }
.ai-auto-head b { font-size: 17px; color: var(--ink); }
.ai-auto-head p { margin: 4px 0 0; font-size: 14px; }
.dropzone.dz-sm { min-height: 64px; padding: 10px; font-size: 14px; }
.dropzone.dz-sm svg { width: 18px; height: 18px; }
.ai-files { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ai-files:empty { display: none; }
.ai-file { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 4px 26px 4px 4px; max-width: 220px; }
.ai-file img, .ai-file-ic { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; flex: none; display: grid; place-items: center; background: #1C1E21; color: #fff; font-size: 13px; }
.ai-file small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-file.busy { opacity: .7; }
.ai-file.busy small { color: var(--primary); }
.ai-file button { position: absolute; top: 2px; right: 4px; border: 0; background: none; color: var(--faint); font-size: 16px; cursor: pointer; }
.ai-composer { display: block; }
.ai-composer .ai-files { padding: 4px 4px 0; }
.ai-composer-row { display: flex; gap: 8px; align-items: flex-end; }
.ai-attach { width: 42px; height: 42px; cursor: pointer; flex: none; }
.ai-attach svg { width: 20px; height: 20px; }
.ai-side-set { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; font-size: 13px; color: var(--muted); text-decoration: none; border-radius: 10px; }
.ai-side-set:hover { background: var(--surface); color: var(--primary); }
.ai-side-set svg { width: 16px; height: 16px; }
.ai-auto-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7C3AED; background: #F3EBFF; border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.msg-user .ai-auto-badge { color: #fff; background: rgba(255, 255, 255, .2); }
.msg-media { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-media img, .msg-media .ai-file-ic { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.ai-steps { margin: 0 0 10px; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.ai-steps summary { cursor: pointer; font-weight: 600; color: #475467; }
.ai-steps ul { margin: 6px 0 0; padding-left: 18px; }
.ai-steps li { margin: 3px 0; }
.opt { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.opt-mock { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 12px; box-shadow: var(--shadow-sm); }
.opt-mock .mk-head { padding: 8px; }
.opt-mock .mk-head .ph { width: 26px; height: 26px; }
.opt-mock .mk-text { padding: 0 8px 8px; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.opt-mock .mk-img { position: relative; display: grid; place-items: center; }
.mk-noimg { color: var(--faint); font-size: 12px; padding: 12px; text-align: center; }
.mk-count { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.mk-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 28px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.opt-mock .mk-foot { padding: 8px; }
.opt-mock .mk-cta { font-size: 11px; padding: 5px 8px; }
.opt-info { min-width: 0; }
.opt-actions .btn span { pointer-events: none; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.label-row .label { margin: 0; }
.ai-write { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #E4D7FB; background: #F7F2FF; color: #6D28D9; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-write:hover { background: #EFE5FF; }
.ai-write:disabled { opacity: .7; cursor: progress; }
.ai-write svg { width: 15px; height: 15px; }
.toggle-line { cursor: pointer; }
.settings-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 760px) {
  .opt { grid-template-columns: 1fr; }
  .opt-mock { max-width: 320px; }
}

/* =====================================================================
   SIDEBAR (topshiriq menyusi) va bildirishnomalar
   ===================================================================== */
.nav-scroll { overflow-y: auto; flex: 1 1 auto; min-height: 0; margin-right: -6px; padding-right: 6px; }
.nav-link .nav-tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-soon { opacity: .62; }
.nav-soon:hover { opacity: 1; }
.badge-count { background: #EF4444; color: #fff; min-width: 20px; justify-content: center; padding: 0 6px; }
.nav-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.notif-menu { margin-right: 4px; }
.notif-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; color: var(--muted); }
.notif-btn:hover { background: var(--surface-2); color: var(--ink); }
.notif-btn svg { width: 20px; height: 20px; }
.notif-dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #EF4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.notif-dd { width: 340px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-head form { margin: 0; }
.notif-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: #F5F9FF; }
.notif-item b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.notif-item small { display: block; font-size: 12px; color: var(--muted); }
.notif-time { font-size: 11px; color: var(--faint); }
.notif-empty { padding: 20px 14px; margin: 0; color: var(--muted); font-size: 14px; text-align: center; }

/* =====================================================================
   BOSH SAHIFA (dashboard)
   ===================================================================== */
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hello h1 { margin: 0; font-family: var(--font-display); font-size: 30px; color: var(--ink); }
.dash-hello p { margin: 4px 0 0; color: var(--muted); }
.ai-banner { display: flex; align-items: center; gap: 14px; min-width: 340px; max-width: 520px; flex: 1; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #5B5BF7 0%, #7C3AED 60%, #9F67FF 100%); box-shadow: 0 10px 30px -12px rgba(91, 91, 247, .7); }
.ai-banner-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.ai-banner-ic svg { width: 26px; height: 26px; }
.ai-banner-tx { flex: 1; min-width: 0; }
.ai-banner-tx b { display: block; font-size: 16px; }
.ai-banner-tx small { color: rgba(255, 255, 255, .85); font-size: 13px; }
.ai-banner-go { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.ai-banner-go svg { width: 18px; height: 18px; }
.money-note { position: relative; padding-right: 40px; }
.money-note .modal-x { position: absolute; top: 8px; right: 10px; font-size: 20px; }
.dash-period { display: inline-flex; gap: 4px; background: #EEF1F5; border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.dash-period a { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.dash-period a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi2 { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 0; }
.kpi2-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.kpi2-ic svg { width: 22px; height: 22px; }
.kpi2 small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi2 b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--ink); line-height: 1.25; }
.kpi2-d { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.kpi2-d svg { width: 14px; height: 14px; }
.kpi2-d.good { color: var(--success); }
.kpi2-d.bad { color: var(--danger); }
.kpi-blue { background: linear-gradient(160deg, #EEF5FF, #fff 70%); } .kpi-blue .kpi2-ic { background: #1466D8; }
.kpi-green { background: linear-gradient(160deg, #EAF8F0, #fff 70%); } .kpi-green .kpi2-ic { background: #12A150; }
.kpi-purple { background: linear-gradient(160deg, #F3EEFF, #fff 70%); } .kpi-purple .kpi2-ic { background: #7C3AED; }
.kpi-orange { background: linear-gradient(160deg, #FFF4E5, #fff 70%); } .kpi-orange .kpi2-ic { background: #F59E0B; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash-card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-card .card-head h3 { display: flex; align-items: center; gap: 6px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.lg-spend::before { background: #1466D8; } .lg-res::before { background: #12A150; }
.chart-box { position: relative; height: 270px; padding: 0 16px 16px; }
.recs { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.recs-empty { padding: 4px 16px 16px; margin: 0; font-size: 14px; }
.rec { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.rec-good { background: linear-gradient(160deg, #F0FBF5, #fff); border-color: #CDEFD9; }
.rec-warn { background: linear-gradient(160deg, #FFF5F5, #fff); border-color: #F9D5D3; }
.rec-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.rec-good .rec-ic { background: var(--success); color: #fff; }
.rec-warn .rec-ic { background: #EF4444; color: #fff; }
.rec-ic svg { width: 17px; height: 17px; }
.rec-body { min-width: 0; flex: 1; }
.rec-body b { display: block; font-size: 14px; color: var(--ink); }
.rec-body p { margin: 3px 0 8px; font-size: 13px; color: #475467; line-height: 1.45; }
.rec-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rec-actions form { margin: 0; }
.act-row { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); }
.act-row:first-of-type { border-top: 0; }
.act-row img, .act-row .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.act-main { min-width: 0; flex: 1; }
.act-main > b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-main > small { color: var(--muted); font-size: 12px; }
.act-nums { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.act-nums b { color: var(--ink); margin-right: 2px; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 12px; font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; min-height: 78px; }
.quick svg { width: 20px; height: 20px; }
.q-blue { background: var(--primary); color: #fff; }
.q-purple { background: #F3EBFF; color: #6D28D9; }
.q-orange { background: #FFF4E0; color: #B45309; }
.q-green { background: #E7F7EE; color: #0F7A3D; }
.q-gray { background: var(--surface-2); color: #475467; }
.quick a:hover { filter: brightness(.97); }

/* AutoPilot */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pilot-side { display: flex; flex-direction: column; gap: 20px; }
.pilot-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 20px 20px; }
.pmode { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; }
.pmode input { position: absolute; opacity: 0; }
.pmode:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 102, 216, .12); background: #FBFDFF; }
.pmode-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 4px; }
.pmode:has(input:checked) .pmode-ic { background: var(--primary); color: #fff; }
.pmode-ic svg { width: 18px; height: 18px; }
.pmode b { color: var(--ink); }
.pmode small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.how ol { margin: 0; padding: 0 20px 18px 38px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #475467; }
.is-busy { opacity: .7; cursor: progress; }

@media (max-width: 1280px) {
  .dash-grid, .pilot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi2 { padding: 12px; gap: 10px; }
  .kpi2-ic { width: 36px; height: 36px; }
  .kpi2 b { font-size: 20px; }
  .ai-banner { min-width: 0; }
  .pilot-modes { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-hello h1 { font-size: 24px; }
}
.settings-link { text-decoration: none; color: inherit; }
.settings-link:hover { background: var(--surface-2); }
.auto-only-head { background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
.auto-only-head b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted) !important; }
