/* ─────────────────────────────────────────────
   Merado Design System
   Fonts: Onest + JetBrains Mono (Google Fonts)
   ───────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Onest', system-ui, sans-serif; color: #1b211d; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }
::selection { background: #cdeadb; }

/* ── Tokens ── */
:root {
  --accent:      #2f7d5b;
  --accent-l:    #7fcaa3;
  --accent-d:    #21603f;
  --text:        #1b211d;
  --muted:       #6a716b;
  --dim:         #9aa09a;
  --border:      #e4e3dc;
  --border-l:    #e6e5de;
  --bg-public:   #eceae4;
  --bg-cabinet:  #152019;
  --bg-main:     #f4f4f0;
  --radius-card: 26px;
  --radius-inp:  12px;
  --radius-btn:  13px;
  --shadow-card: 0 40px 90px rgba(20,40,30,.16);
  --shadow-btn:  0 10px 24px rgba(47,125,91,.26);
  --mono:        'JetBrains Mono', monospace;
}

/* ── Logo mark ── */
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(160deg, #37936b, #27684c);
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2.5px; padding: 8px 7px; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(39,104,76,.26);
}
.logo-mark b { display: block; background: #fff; border-radius: 2px; }
.logo-mark b:nth-child(1) { width: 4.5px; height: 8px;  opacity: .55; }
.logo-mark b:nth-child(2) { width: 4.5px; height: 12px; opacity: .80; }
.logo-mark b:nth-child(3) { width: 4.5px; height: 17px; }
.logo-mark.sm { width: 30px; height: 30px; border-radius: 9px; padding: 7px 6px; gap: 2px; }
.logo-mark.sm b:nth-child(1) { width: 3.5px; height: 6px; }
.logo-mark.sm b:nth-child(2) { width: 3.5px; height: 10px; }
.logo-mark.sm b:nth-child(3) { width: 3.5px; height: 14px; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* ── Inputs ── */
.inp {
  display: block; width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-inp);
  background: #fff; font-family: 'Onest', sans-serif;
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp::placeholder { color: #a7aca6; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,125,91,.13); }
.inp-wrap { position: relative; }
.inp-wrap .inp { padding-right: 52px; }
.inp-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 36px; height: 32px; border: none; background: transparent;
  font-size: 16px; color: #8a908a;
  display: flex; align-items: center; justify-content: center;
}

/* ── Logo link color fix ── */
a.logo-link, a.logo-link:visited { color: var(--text); }
a.logo-link .logo-text { color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: var(--radius-btn);
  font-family: 'Onest', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { width: 100%; padding: 15px; background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover:not(:disabled) { background: #277051; }

/* ── Field ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 600; color: #3f463f; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row label { font-size: 13.5px; font-weight: 600; color: #3f463f; }
.label-row a { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── Check ── */
.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.check-row span { font-size: 13.5px; color: var(--muted); }

/* ── Divider ── */
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #ecebe5; }
.divider span { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }

/* ── Social buttons ── */
.soc-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.soc-btn {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; border: none;
  transition: transform .1s, box-shadow .15s;
}
.soc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,30,25,.14); }

/* ── Form feedback ── */
.form-err { color: #d94f3d; font-size: 14px; text-align: center; min-height: 18px; }
.form-ok  { color: var(--accent-d); font-size: 14px; text-align: center; }

/* ═══════════════════════════════════════════
   PUBLIC PAGES (login / register / forgot)
   ═══════════════════════════════════════════ */

.pub-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 100% 0%, #e4efe8 0%, var(--bg-public) 55%);
}

/* navbar desktop */
.pub-nav { background: rgba(251,251,249,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-l); }
.pub-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px clamp(18px,5vw,32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
a.logo-link { display: flex; align-items: center; gap: 11px; }
.pub-nav-links { display: flex; align-items: center; gap: 32px; }
.pub-nav-links a { color: #4a514b; font-size: 15px; font-weight: 500; }
.pub-nav-links a:hover { color: var(--text); }
.pub-nav-cta { font-size: 15px; font-weight: 600; color: var(--text); }

/* navbar mobile */
.mob-nav {
  display: none;
  background: rgba(251,251,249,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-l);
  padding: 12px 16px; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.mob-nav-home {
  justify-self: start; width: 40px; height: 40px;
  border: 1px solid var(--border); background: #fff;
  border-radius: 11px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.mob-nav-burger {
  justify-self: end; width: 40px; height: 40px;
  border: 1px solid var(--border); background: #fff;
  border-radius: 11px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.mob-nav-burger span { width: 17px; height: 2px; background: var(--text); border-radius: 2px; }

/* mobile slide menu */
.mob-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 262px;
  background: #152019; z-index: 120;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: 20px 16px; gap: 4px;
}
.mob-menu.open { transform: translateX(0); }
.mob-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 16px; }
.mob-menu-head .logo-text { color: #fff; }
.mob-menu-close {
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); border-radius: 9px;
  color: #fff; font-size: 16px; line-height: 1;
}
.mob-menu a { padding: 12px; border-radius: 10px; color: #cdd8d1; font-size: 15px; font-weight: 500; }
.mob-menu a:hover { background: rgba(255,255,255,.06); }
.mob-menu a.cta {
  margin-top: 8px; padding: 13px; border-radius: 11px;
  text-align: center; color: #152019; background: var(--accent-l); font-weight: 700;
}
.mob-ovl { display: none; position: fixed; inset: 0; background: rgba(20,30,25,.4); z-index: 110; }
.mob-ovl.open { display: block; }

/* auth card */
.pub-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(16px,4vw,48px); }
.auth-card {
  width: 100%; max-width: 1040px;
  display: grid; grid-template-columns: 1.04fr .96fr;
  background: #fff; border: 1px solid var(--border-l);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.auth-form { padding: clamp(28px,4vw,46px); display: flex; flex-direction: column; }
.auth-form h1 { font-size: clamp(26px,4vw,31px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; color: #161a17; }
.auth-form .sub { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 26px; }
.auth-form form { display: flex; flex-direction: column; gap: 16px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 26px; }
.auth-foot a { color: var(--accent); font-weight: 700; }

.auth-aside {
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(155deg, #2f7d5b, #1c4a36);
  padding: 46px; color: #fff; position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06);
}
.auth-aside::after {
  content: ''; position: absolute; bottom: -110px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.05);
}
.aside-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a8d6bf; margin-bottom: 18px; }
.auth-aside h2 { font-size: 30px; line-height: 1.18; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.aside-perks { position: relative; display: flex; flex-direction: column; gap: 15px; margin: 32px 0; }
.aside-perk { display: flex; align-items: center; gap: 13px; }
.perk-check {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  color: #bfe6d2; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.aside-perk span { font-size: 15px; color: #e3f1ea; }
.aside-quote {
  position: relative; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: 24px; backdrop-filter: blur(4px);
  font-size: 20px; line-height: 1.32; font-weight: 800; letter-spacing: -.01em; text-wrap: balance;
}

/* forgot card */
.forgot-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(16px,4vw,48px); }
.forgot-card {
  width: 100%; max-width: 440px; background: #fff;
  border: 1px solid var(--border-l); border-radius: var(--radius-card);
  padding: clamp(28px,5vw,48px); box-shadow: var(--shadow-card);
}
.forgot-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; color: #161a17; }
.forgot-card .sub { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 26px; }
.forgot-card form { display: flex; flex-direction: column; gap: 16px; }
.back-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.back-link a { color: var(--accent); font-weight: 600; }

/* public footer */
.pub-footer { border-top: 1px solid #ecebe6; background: #f6f6f2; }
.pub-footer-grid { max-width: 1200px; margin: 0 auto; padding: 48px clamp(18px,5vw,32px) 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px; }
.pub-footer-copy { max-width: 1200px; margin: 0 auto; padding: 22px clamp(18px,5vw,32px); border-top: 1px solid #e8e7e1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pub-footer-copy span { font-size: 13.5px; color: var(--dim); }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-links span { color: #4a514b; font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); }
.mob-footer { display: none; border-top: 1px solid var(--border-l); background: #f6f6f2; padding: 24px 18px; text-align: center; }
.mob-footer span { font-size: 13.5px; color: var(--dim); line-height: 1.7; }

/* ═══════════════════════════════════════════
   DASHBOARD / CABINET
   ═══════════════════════════════════════════ */

.cab-layout { display: flex; height: 100vh; overflow: hidden; background: var(--bg-main); }

/* sidebar */
.cab-side {
  width: 248px; flex-shrink: 0; background: var(--bg-cabinet);
  display: flex; flex-direction: column; padding: 16px 14px; gap: 2px;
  overflow: hidden; position: relative; height: 100vh; max-height: 100vh;
}
.cab-logo { display: flex; align-items: center; gap: 11px; padding: 6px 8px 14px; }
.cab-logo .logo-text { color: #fff; }
.cab-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 11px; font-size: 13px;
  color: #7e9488; font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.cab-nav-link:hover { background: rgba(255,255,255,.06); color: #c5d5cc; }
.cab-nav-link.active { background: rgba(47,125,91,.22); color: #fff; font-weight: 600; }
.cab-nav-link .icon { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.cab-badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #152019; background: var(--accent-l); padding: 2px 7px; border-radius: 999px; }
.cab-subs { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 2px 31px; border-left: 1px solid rgba(255,255,255,.10); padding-left: 10px; }
.cab-sub-link { display: block; padding: 6px 10px; border-radius: 8px; color: #6a8a7a; font-size: 13px; transition: background .15s, color .15s; }
.cab-sub-link:hover { color: #c5d5cc; background: rgba(255,255,255,.05); }
.cab-sub-link.active { color: #fff; }
.cab-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: flex; align-items: center; gap: 11px; }
.cab-avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.cab-user-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-user-plan { font-size: 12px; color: #7e9488; }
.cab-close-btn { display: none; position: absolute; top: 16px; right: 14px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); border-radius: 9px; color: #fff; font-size: 18px; line-height: 1; align-items: center; justify-content: center; }

/* main area */
.cab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.cab-topbar { position: sticky; top: 0; z-index: 40; background: rgba(244,244,240,.85); backdrop-filter: blur(12px); border-bottom: 1px solid #e5e4dd; padding: 14px clamp(16px,3vw,30px); display: flex; align-items: center; gap: 16px; }
.cab-topbar h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: #161a17; }
.cab-topbar .sub { font-size: 13px; color: #8a908a; margin-top: 2px; }
.cab-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cab-shop-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 9px 14px; font-family: 'Onest',sans-serif; font-size: 13.5px; font-weight: 600; color: #2a2f2b; }
.shop-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.topbar-user-pill { display:flex; align-items:center; gap:6px; background:#fff; border-radius:20px; padding:6px 12px; box-shadow:0 1px 4px rgba(0,0,0,0.1); font-size:14px; font-weight:500; cursor:pointer; color:#161a17; border:none; font-family:'Onest',sans-serif; }
.topbar-dot { width:8px; height:8px; border-radius:50%; background:#2f7d5b; flex-shrink:0; }
#_deskAvatar { border-radius:8px !important; background:#7C3AED !important; }
.cab-content { flex: 1; overflow-y: auto; padding: clamp(16px,2.5vw,28px) clamp(16px,3vw,30px); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; }
.kpi-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #161a17; margin-bottom: 8px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 8px; }
.kpi-delta.up { color: #21603f; background: #d4f0e0; }
.kpi-delta.dn { color: #b53a2c; background: #fde8e6; }

/* KPI — compact variant for "Все показатели" grid only (heroKpi's top-4 cards keep .kpi-card/.kpi-label/.kpi-value as-is) */
.kpi-grid-sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi-card-sm { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; min-height: 153px; }
.kpi-label-sm { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.kpi-value-sm { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #161a17; margin-bottom: 4px; }

/* dashboard panels */
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.dash-panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.dash-panel h2 { font-size: 15px; font-weight: 700; color: #161a17; margin-bottom: 4px; }
.dash-panel .sub { font-size: 13px; color: var(--muted); }

/* bar chart */
.chart-wrap { display: flex; gap: 14px; margin-top: 20px; align-items: flex-end; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chart-bars { height: 180px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 7px; }
.bar { border-radius: 6px 6px 0 0; }
.bar-r { background: #cfe6d9; }
.bar-p { background: linear-gradient(#37936b, #2f7d5b); }
.chart-lbl { font-family: var(--mono); font-size: 11px; color: #a7aca6; }
.chart-legend { display: flex; gap: 16px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* breakdown */
.bkd-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 18px; }
.bkd-rows { display: flex; flex-direction: column; gap: 11px; }
.bkd-row { display: flex; align-items: center; gap: 10px; }
.bkd-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.bkd-label { font-size: 13px; color: #4a514b; }
.bkd-pct { margin-left: auto; font-size: 13px; font-weight: 700; color: #161a17; font-variant-numeric: tabular-nums; }

/* mobile cabinet */
.cab-overlay { display: none; position: fixed; inset: 0; background: rgba(20,30,25,.4); z-index: 110; }
.cab-overlay.open { display: block; }
.cab-mob-bar { display: none; position: sticky; top: 0; z-index: 40; background: rgba(244,244,240,.90); backdrop-filter: blur(12px); border-bottom: 1px solid #e5e4dd; padding: 0 16px; height: 56px; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 0; }
.cab-mob-logo { display: flex; align-items: center; gap: 8px; justify-self: center; text-align: center; text-decoration: none; }
.cab-mob-home { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); text-decoration: none; }
.cab-hamburger { width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cab-hamburger span { width: 17px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Empty state ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; }
.empty-icon { font-size: 52px; margin-bottom: 20px; }
.empty-state h2 { font-size: 20px; font-weight: 700; color: #161a17; margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--muted); max-width: 380px; line-height: 1.6; margin-bottom: 24px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-family: 'Onest',sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(47,125,91,.22); transition: background .15s, transform .1s; }
.btn-cta:hover { background: #277051; }
.btn-cta:active { transform: translateY(1px); }

/* ── Page section header ── */
.page-section { margin-bottom: 20px; }
.page-section h2 { font-size: 17px; font-weight: 700; color: #161a17; margin-bottom: 4px; }
.page-section .sub { font-size: 13px; color: var(--muted); }

/* ── Info card ── */
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; }
.info-card + .info-card { margin-top: 16px; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.pricing-card.popular { border: 2px solid var(--accent); box-shadow: 0 8px 32px rgba(47,125,91,.14); }
.pricing-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.pricing-name { font-size: 18px; font-weight: 700; color: #161a17; margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 800; color: #161a17; line-height: 1; margin-bottom: 4px; }
.pricing-period { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3a4039; }
.pricing-feat-check { width: 18px; height: 18px; border-radius: 6px; background: #d4f0e0; color: var(--accent-d); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pricing-btn { width: 100%; padding: 13px; border: none; border-radius: 12px; font-family: 'Onest',sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; }
.pricing-btn.primary { background: var(--accent); color: #fff; }
.pricing-btn.primary:hover { background: #277051; }
.pricing-btn.secondary { background: #f0f0eb; color: #2a2f2b; }
.pricing-btn.secondary:hover { background: #e6e6e0; }
.pricing-btn.current { background: #d4f0e0; color: var(--accent-d); cursor: default; }

/* ── Settings ── */
.settings-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; max-width: 860px; }
.settings-nav { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 14.5px; color: #3a4039; border-bottom: 1px solid #f0f0eb; transition: background .12s; }
.settings-nav a:last-child { border-bottom: none; }
.settings-nav a:hover { background: #f8f8f4; }
.settings-nav a.active { color: var(--accent); font-weight: 600; background: #f2faf6; }
.settings-form { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 30px; }
.settings-form h2 { font-size: 17px; font-weight: 700; color: #161a17; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border-l); }
.settings-form .fields { display: flex; flex-direction: column; gap: 18px; }
.settings-foot { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-l); gap: 12px; }
.settings-save { padding: 11px 28px; background: var(--accent); color: #fff; border: none; border-radius: 11px; font-family: 'Onest',sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; }
.settings-save:hover { background: #277051; }
.danger-zone { background: #fff8f7; border: 1px solid #f5c6c0; border-radius: 18px; padding: 24px 28px; margin-top: 16px; }
.danger-zone h3 { font-size: 15px; font-weight: 700; color: #c0392b; margin-bottom: 8px; }
.danger-zone p { font-size: 14px; color: #7a6a68; line-height: 1.6; margin-bottom: 16px; }
.btn-danger { padding: 10px 20px; background: transparent; border: 1.5px solid #e74c3c; color: #e74c3c; border-radius: 10px; font-family: 'Onest',sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #fde8e6; }

/* ── Referral ── */
.referral-link-box { background: #f4f4f0; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.referral-link-box code { flex: 1; font-family: var(--mono); font-size: 14px; color: #3a4039; word-break: break-all; }
.copy-btn { flex-shrink: 0; padding: 8px 16px; background: var(--accent); color: #fff; border: none; border-radius: 9px; font-family: 'Onest',sans-serif; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.ref-stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.ref-stat-val { font-size: 28px; font-weight: 800; color: #161a17; }
.ref-stat-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Support ── */
.support-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.contact-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-card h3 { font-size: 15px; font-weight: 700; color: #161a17; margin-bottom: 2px; }
.contact-card p { font-size: 13.5px; color: var(--muted); }
.contact-card a { font-size: 14px; color: var(--accent); font-weight: 600; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.faq-q { width: 100%; text-align: left; padding: 16px 20px; background: none; border: none; font-family: 'Onest',sans-serif; font-size: 15px; font-weight: 600; color: #161a17; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q:hover { background: #f9f9f5; }
.faq-a { display: none; padding: 0 20px 16px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-arr { transform: rotate(180deg); }
.faq-arr { font-size: 11px; color: #a7aca6; transition: transform .2s; }

/* ── Onboarding wizard ── */
.wizard-wrap { max-width: 660px; margin: 0 auto; }
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.wizard-step { display: flex; align-items: center; gap: 10px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step-num.done { background: var(--accent); color: #fff; }
.step-num.active { background: #161a17; color: #fff; }
.step-num.todo { background: #e8e8e2; color: #9aa09a; }
.step-label { font-size: 13.5px; font-weight: 600; }
.step-label.active { color: #161a17; }
.step-label.done  { color: var(--accent); }
.step-label.todo  { color: #9aa09a; }
.step-connector { flex: 1; height: 2px; background: #e8e8e2; margin: 0 12px; }
.step-connector.done { background: var(--accent); }
.mp-cards { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.mp-card { flex: 1; min-width: 140px; border: 2px solid var(--border); border-radius: 16px; padding: 20px 16px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.mp-card:hover { border-color: #b8d9c8; background: #f8fdf9; }
.mp-card.active { border-color: var(--accent); background: #f2faf6; }
.mp-card-logo { font-size: 28px; margin-bottom: 10px; }
.mp-card-name { font-size: 14px; font-weight: 700; color: #2a2f2b; }
.mp-card-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ── Reports ── */
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.report-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.report-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.report-card h3 { font-size: 15px; font-weight: 700; color: #161a17; }
.report-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.report-gen-btn { margin-top: auto; padding: 11px; border: 1.5px solid var(--border); border-radius: 11px; background: none; font-family: 'Onest',sans-serif; font-size: 14px; font-weight: 600; color: #2a2f2b; cursor: pointer; transition: border-color .15s, background .15s; }
.report-gen-btn:hover { border-color: var(--accent); background: #f2faf6; color: var(--accent); }

/* ── Connect page ── */
.mp-connected { background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.mp-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #f0f0eb; }
.mp-row:last-child { border-bottom: none; }
.mp-logo { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mp-info h3 { font-size: 15px; font-weight: 700; color: #161a17; }
.mp-info p { font-size: 13px; color: var(--muted); }
.mp-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mp-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.mp-status-dot.ok { background: var(--accent); }
.mp-status-dot.err { background: #e74c3c; }
.mp-remove { margin-left: 12px; width: 30px; height: 30px; border: 1px solid #eee; background: none; border-radius: 8px; color: #c0c0b8; font-size: 13px; cursor: pointer; }
.mp-remove:hover { border-color: #e74c3c; color: #e74c3c; }

/* ── Responsive pricing/settings ── */
@media (max-width: 840px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .settings-grid { grid-template-columns: 1fr; }
  .referral-stats { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .referral-stats { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .pub-nav, .pub-footer { display: none; }
  .mob-nav { display: grid; }
  .mob-footer { display: block; }
}
@media (max-width: 880px) {
  .auth-aside { display: none; }
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 960px) {
  .cab-side { position: fixed; right: 0; top: 0; bottom: 0; z-index: 120; transform: translateX(100%); transition: transform .25s ease; }
  .cab-side.open { transform: translateX(0); }
  .cab-close-btn { display: flex !important; }
  .cab-topbar { display: none; }
  .cab-mob-bar { display: grid; }
}
@media (max-width: 840px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .kpi-grid { grid-template-columns: 1fr; } }
