/* ============================================================
 * FILE: css/base.css
 * JOB : Shared layout + components (buttons, cards, tables…).
 * HOW TO EDIT: Colors yahan NAHI hain (theme files me hain).
 *              Sirf structure/spacing yahan badlo.
 * ============================================================ */

/* ---------- Reset & tokens ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
  --topbar-h: 68px;
  --sidebar-w: 264px;
  /* fallback colors (themes override) */
  --bg: #F4F5F7;
  --card-bg: #FFFFFF;
  --text: #1B1B2F;
  --muted: #6B7280;
  --border: #E7E8EE;
  --primary: #673DE6;
  --primary-contrast: #FFFFFF;
  --sidebar-bg: #FFFFFF;
  --sidebar-text: #3A3A55;
  --topbar-bg: #FFFFFF;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;
}

html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.icon { width: 19px; height: 19px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.small-mono { font-family: var(--mono); font-size: 12.5px; }
.ta-right { text-align: right; }
.ok-text { color: var(--success); font-weight: 600; }
.err-text { color: var(--danger); font-weight: 600; }
.boot { padding: 60px; text-align: center; color: var(--muted); font-family: var(--font); }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-root { flex: 1; overflow-y: auto; }
.page-inner { padding: 22px 26px 60px; max-width: 1240px; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  z-index: 30;
}
.brand-block {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--primary); color: var(--primary-contrast);
  display: flex; align-items: center; justify-content: center;
}
.brand-logo .icon { width: 21px; height: 21px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .2px; color: inherit; }
.brand-pill {
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary); text-transform: uppercase;
}
.account-card {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 12px 10px; padding: 11px 12px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: var(--radius-sm); cursor: pointer;
}
.ac-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary); color: var(--primary-contrast);
  display: flex; align-items: center; justify-content: center;
}
.ac-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ac-info b { font-size: 12.5px; color: inherit; }
.ac-info span { font-size: 11px; color: var(--muted); }
.ac-caret { width: 15px; height: 15px; opacity: .6; }

.nav { flex: 1; padding: 6px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-size: 13.8px; font-weight: 500;
  cursor: pointer; transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.nav-item.active {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary); font-weight: 700;
}
.nav-item.active .icon { color: var(--primary); }
.nav-label { flex: 1; }
.nav-badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 7px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--primary-contrast);
}
.nav-caret { width: 14px; height: 14px; opacity: .5; transition: transform .15s ease; }
.nav-sub {
  display: flex; flex-direction: column; gap: 1px;
  margin: 1px 0 3px 22px; padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.nav-sub-item {
  padding: 7px 10px; border-radius: 8px; font-size: 12.8px;
  color: var(--muted); cursor: pointer;
}
.nav-sub-item:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.nav-sub-item.active { color: var(--primary); font-weight: 700; }
.sidebar-foot { padding: 12px 18px 16px; border-top: 1px solid var(--border); }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; position: sticky; top: 0; z-index: 25;
}
.topbar-search {
  flex: 1; max-width: 520px;
  display: flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 15px;
  color: var(--muted);
}
.topbar-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 13.5px;
}
.topbar-search kbd {
  font-family: var(--mono); font-size: 10.5px;
  padding: 2px 7px; border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border: 1px solid var(--border); color: var(--muted);
}
.topbar-right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.icon-btn:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.bell-dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px;
  background: var(--danger); border-radius: 50%; border: 1.5px solid var(--topbar-bg);
}
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 9px;
  background: transparent; border: 0; color: inherit;
  padding: 5px 8px; border-radius: var(--radius-sm);
}
.user-btn:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #0EA5E9));
  color: #fff; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.user-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.user-text b { font-size: 12.8px; }
.user-text small { font-size: 10.5px; color: var(--muted); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 210px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.dropdown.open { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 13px;
}
.dropdown a:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); color: var(--primary); }

/* ---------- Promo strip ---------- */
.promo-strip {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 18px; font-size: 12.8px; font-weight: 600;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 14%, var(--bg)), var(--bg), color-mix(in srgb, var(--primary) 14%, var(--bg)));
  border-bottom: 1px solid var(--border); color: var(--text);
}
.promo-strip .icon { width: 15px; height: 15px; color: var(--primary); }

/* ---------- Page head ---------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-title { font-size: 23px; font-weight: 800; letter-spacing: .1px; line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 13.8px; margin-top: 3px; max-width: 640px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 18px; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px 0;
}
.card-title { font-size: 15.5px; font-weight: 750; }
.card-body { padding: 16px 20px 20px; }
.card-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 700; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  background: var(--primary); color: var(--primary-contrast);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn-outline:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-glass {
  background: rgba(255,255,255,.16); color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-block { width: 100%; }

/* ---------- Badges / chips / toggles ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase;
  background: color-mix(in srgb, var(--muted) 13%, transparent); color: var(--muted);
  white-space: nowrap;
}
.badge-success { background: color-mix(in srgb, var(--success) 13%, transparent); color: var(--success); }
.badge-warning { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.badge-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.badge-info { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.badge-light { background: rgba(255,255,255,.2); color: #fff; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--text); font-size: 12.5px; font-weight: 600;
}
.chip .icon { width: 13px; height: 13px; color: var(--success); }

.toggle {
  width: 40px; height: 22px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  border: 0; position: relative; transition: background .15s ease; flex-shrink: 0;
}
.toggle .knob {
  position: absolute; top: 2.5px; left: 3px; width: 17px; height: 17px;
  background: #fff; border-radius: 50%; transition: left .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle.on { background: var(--success); }
.toggle.on .knob { left: 20px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.table th {
  text-align: left; padding: 11px 14px;
  background: color-mix(in srgb, var(--text) 3.5%, var(--card-bg));
  color: var(--muted); font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
}
.table td {
  padding: 12px 14px; border-top: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.table .raw-cell > * { vertical-align: middle; }
.table td .icon { vertical-align: middle; margin-right: 6px; color: var(--primary); width: 17px; height: 17px; }
.empty-row { text-align: center; color: var(--muted); padding: 28px !important; }
.table .btn { margin-left: 5px; }

/* ---------- Stat chips (home) ---------- */
.home-welcome {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.home-welcome > .icon {
  width: 42px; height: 42px; padding: 9px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}
.stat-chips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.stat-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat-chip-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.stat-chip-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat-chip-value { font-size: 19px; font-weight: 800; line-height: 1.2; }

/* ---------- Website overview variants ---------- */
/* Variant 1 — purple gradient hero */
.ov-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #0EA5E9));
  color: #fff; border-radius: var(--radius); padding: 24px 26px; flex-wrap: wrap;
}
.ov-kicker { font-size: 12px; opacity: .85; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.ov-site { font-size: 25px; font-weight: 800; margin: 4px 0 10px; }
.ov-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-hero-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.ov-hero-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.cdn-pill {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: 8px 15px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
}

/* Variant 2 — split card */
.ov-split { display: flex; gap: 20px; flex-wrap: wrap; }
.ov-thumb {
  width: 220px; height: 150px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border); flex-shrink: 0;
  background: linear-gradient(140deg, #EDE9FE, #C7D2FE);
}
.thumb-inner { padding: 12px; height: 100%; }
.thumb-nav { height: 8px; width: 60%; background: rgba(255,255,255,.8); border-radius: 4px; margin-bottom: 12px; }
.thumb-hero { height: 52px; background: rgba(255,255,255,.65); border-radius: 8px; margin-bottom: 10px; }
.thumb-lines i { display: block; height: 6px; background: rgba(255,255,255,.75); border-radius: 3px; margin-bottom: 6px; }
.thumb-lines i.w60 { width: 60%; }
.ov-split-main { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 13px; }
.ov-split-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ov-site2 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ov-meta { color: var(--muted); font-size: 12.8px; margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ov-meta .icon { width: 15px; height: 15px; }
.ov-split-btns { display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-start; }
.mini-link .icon { width: 14px; height: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--success); }
.ov-status-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px;
}
.ov-status {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; background: color-mix(in srgb, var(--text) 2%, transparent);
  font-size: 13px;
}
.os-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success);
}

/* Variant 3 — classic compact */
.ov-classic {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px 19px; background: var(--card-bg); flex-wrap: wrap;
}
.ov-classic-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.ov-classic-icon .icon { width: 26px; height: 26px; }
.ov-classic-main { flex: 1; min-width: 220px; }
.ov-site3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.ov-classic-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Quick access tiles ---------- */
.quick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 12px; margin-top: 12px;
}
.quick-grid.three { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.quick-tile {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 14px; background: var(--card-bg);
  cursor: pointer; color: inherit;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.quick-tile:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.qt-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.qt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.qt-text b { font-size: 13.2px; }
.qt-text span { font-size: 11.6px; color: var(--muted); }
.qt-arrow { color: var(--muted); }
.qt-arrow .icon { width: 15px; height: 15px; }

/* ---------- Resources: bars & gauges ---------- */
.progress-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 12px;
}
.progress-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 15px; background: color-mix(in srgb, var(--text) 2%, transparent);
}
.progress-head { display: flex; justify-content: space-between; font-size: 12.8px; font-weight: 700; margin-bottom: 9px; }
.progress-pct { color: var(--primary); }
.progress-track {
  height: 9px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #0EA5E9));
}
.progress-sub { margin-top: 7px; font-size: 11.5px; color: var(--muted); }

.gauge-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 14px;
}
.gauge { text-align: center; padding: 8px 4px; }
.gauge-svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: color-mix(in srgb, var(--muted) 18%, transparent); stroke-width: 9; }
.gauge-fill {
  fill: none; stroke: var(--primary); stroke-width: 9;
  stroke-linecap: round; transition: stroke-dashoffset .6s ease;
}
.gauge-center { margin-top: -70px; margin-bottom: 32px; }
.gauge-pct { font-size: 19px; font-weight: 800; }
.gauge-label { font-size: 12.8px; font-weight: 700; }
.gauge-sub { font-size: 11.3px; color: var(--muted); }

/* ---------- Segmented control ---------- */
.seg {
  display: inline-flex; gap: 3px; padding: 3px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: var(--radius-pill); margin-bottom: 6px; flex-wrap: wrap;
}
.seg-btn {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
}
.seg-btn.active { background: var(--card-bg); color: var(--primary); box-shadow: var(--shadow); }

/* ---------- Home columns / server info / tips ---------- */
.home-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.server-info { display: flex; flex-direction: column; gap: 9px; }
.si-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 2px; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.si-row:last-child { border-bottom: 0; }
.si-row > span { color: var(--muted); }

.tip-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--border);
}
.tip-row:last-child { border-bottom: 0; }
.tip-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in srgb, var(--warning) 13%, transparent);
  color: var(--warning); display: flex; align-items: center; justify-content: center;
}
.tip-text { flex: 1; font-size: 12.8px; }

/* ---------- Plans page ---------- */
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px; margin-top: 6px;
}
.plan-card {
  position: relative; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; background: var(--card-bg);
  display: flex; flex-direction: column; gap: 8px;
}
.plan-popular {
  border-color: var(--primary);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--primary) 18%, transparent);
}
.plan-badge {
  position: absolute; top: -11px; left: 18px;
  background: var(--primary); color: var(--primary-contrast);
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.plan-name { font-size: 17px; font-weight: 800; }
.plan-tagline { color: var(--muted); font-size: 12.3px; min-height: 34px; }
.plan-price { font-size: 33px; font-weight: 850; letter-spacing: -.5px; }
.plan-cur { font-size: 17px; font-weight: 700; margin-right: 2px; }
.plan-per { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-renew { font-size: 11.5px; color: var(--muted); }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.plan-feats li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.7px;
}
.plan-feats .icon { width: 15px; height: 15px; color: var(--success); margin-top: 2px; }

.current-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.cp-name { font-size: 17px; font-weight: 800; }
.cp-actions { display: flex; gap: 9px; }

/* ---------- Steps (AI builder) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 13px; margin-top: 6px;
}
.step {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 17px 16px; background: color-mix(in srgb, var(--primary) 3.5%, var(--card-bg));
}
.step-num {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--primary); color: var(--primary-contrast);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-bottom: 9px;
}
.step p { color: var(--muted); font-size: 12.5px; margin-top: 5px; }

.credit-box {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border-radius: var(--radius-sm); padding: 15px 16px; font-size: 13px;
}
.credit-box > .icon {
  width: 38px; height: 38px; padding: 8px; border-radius: 11px;
  background: var(--primary); color: var(--primary-contrast);
}
.credit-box > div { flex: 1; min-width: 200px; }

/* ---------- Payment methods / status / faq ---------- */
.pay-method {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; margin-bottom: 10px; background: var(--card-bg);
}
.pay-primary { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.pm-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.pm-info { flex: 1; min-width: 150px; }

.status-list { display: flex; flex-direction: column; gap: 4px; }
.status-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 4px; border-bottom: 1px dashed var(--border); font-size: 13.2px;
}
.status-row:last-child { border-bottom: 0; }

.faq-item {
  padding: 13px 2px; border-bottom: 1px dashed var(--border);
}
.faq-item:last-child { border-bottom: 0; }
.faq-item p { margin-top: 4px; font-size: 12.8px; }

.crumbs {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.3px; color: var(--muted); font-family: var(--mono);
}
.crumbs .icon { width: 15px; height: 15px; }

/* ---------- Forms / fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field span { font-size: 12.2px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  padding: 10px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card-bg); color: var(--text); outline: none;
  transition: border-color .12s ease;
}
.field input:focus, .field select:focus { border-color: var(--primary); }
.settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 18px; margin-bottom: 8px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 12, 40, .5);
  z-index: 100; backdrop-filter: blur(2px);
}
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 60px); overflow-y: auto;
  background: var(--card-bg); border-radius: 18px;
  box-shadow: var(--shadow-lg); z-index: 101;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0;
}
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 14px 22px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 9px;
  padding: 12px 22px 20px;
}
.modal-msg { font-size: 13.5px; color: var(--muted); }

/* ---------- Toasts ---------- */
#toast-root {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 9px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--card-bg);
  padding: 12px 17px; border-radius: 12px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease;
  max-width: 330px;
}
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--info); color: #fff; }
.toast .icon { width: 16px; height: 16px; }
.toast-out { opacity: 0; transform: translateY(8px); transition: all .3s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * ADMIN PANEL extras
 * ============================================================ */
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #1E1B4B, #4C1D95 60%, #6D28D9);
  padding: 24px;
}
.login-card {
  width: 400px; max-width: 100%;
  background: var(--card-bg); border-radius: 20px; padding: 32px 30px;
  box-shadow: var(--shadow-lg);
}
.login-brand { padding: 0 0 16px; }
.login-card h1 { font-size: 21px; margin-bottom: 5px; }
.login-card .btn { margin: 8px 0 12px; }
.login-back {
  display: inline-block; margin-top: 10px; color: var(--muted); font-size: 12.5px;
}
.admin-topbar { gap: 10px; }
.admin-title { font-size: 15px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success); font-size: 12.3px; font-weight: 700;
}
.live-pill .icon { width: 15px; height: 15px; }

/* Design manager cards */
.design-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 6px;
}
.design-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--card-bg);
}
.design-live { border-color: var(--success); box-shadow: 0 8px 28px color-mix(in srgb, var(--success) 16%, transparent); }
.design-thumb {
  display: flex; height: 150px; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.dt-sidebar { width: 34%; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.dt-logo { width: 26px; height: 26px; border-radius: 7px; margin-bottom: 4px; }
.dt-line { height: 7px; border-radius: 4px; opacity: .8; }
.dt-line.w60 { width: 60%; }
.dt-main { flex: 1; padding: 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.dt-top { height: 10px; width: 55%; border-radius: 5px; }
.dt-hero { height: 38px; border-radius: 8px; }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dt-grid i { height: 22px; border-radius: 6px; display: block; }

/* per-design thumb colors */
.design-thumb-1 .dt-sidebar { background: linear-gradient(180deg, #5B21B6, #2E1065); }
.design-thumb-1 .dt-logo, .design-thumb-1 .dt-line { background: rgba(255,255,255,.75); }
.design-thumb-1 .dt-main { background: #F3F2FB; }
.design-thumb-1 .dt-top { background: #D8D2F5; }
.design-thumb-1 .dt-hero { background: linear-gradient(120deg, #7C4DFF, #4F46E5); }
.design-thumb-1 .dt-grid i { background: #fff; border: 1px solid #E5E1F8; }

.design-thumb-2 .dt-sidebar { background: #FFFFFF; border-right: 1px solid #E7E8EE; }
.design-thumb-2 .dt-logo { background: #6D28D9; }
.design-thumb-2 .dt-line { background: #DDDAEA; }
.design-thumb-2 .dt-main { background: #F7F7FA; }
.design-thumb-2 .dt-top { background: #6D28D9; opacity: .8; }
.design-thumb-2 .dt-hero { background: #FFFFFF; border: 1px solid #E7E8EE; }
.design-thumb-2 .dt-grid i { background: #fff; border: 1px solid #E7E8EE; }

.design-thumb-3 .dt-sidebar { background: #FFFFFF; border-right: 1px solid #E7E8EE; }
.design-thumb-3 .dt-logo { background: #673DE6; }
.design-thumb-3 .dt-line { background: #D6D3E8; }
.design-thumb-3 .dt-main { background: #F4F5F7; }
.design-thumb-3 .dt-top { background: #EFEDFA; }
.design-thumb-3 .dt-hero { background: #FFFFFF; border: 1px solid #E7E8EE; border-radius: 12px; }
/* Design 4 — Modern Pro : white top bar + light sidebar + grey canvas */
.design-thumb-4 .dt-sidebar { background: #FFFFFF; border-right: 1px solid #EFEFF1; }
.design-thumb-4 .dt-logo { background: #14161A; }
.design-thumb-4 .dt-line { background: #E9E9EC; }
.design-thumb-4 .dt-main { background: #F4F4F5; }
.design-thumb-4 .dt-top { background: #FFFFFF; border-bottom: 1px solid #EFEFF1; }
.design-thumb-4 .dt-hero { background: #FFFFFF; border: 0; border-radius: 14px; }
.design-thumb-4 .dt-grid i { background: #fff; border: 0; border-radius: 10px; }
.design-thumb-3 .dt-grid i { background: #F0EDFB; }

.design-info { padding: 15px 17px 17px; }
.design-title { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.design-desc { color: var(--muted); font-size: 12.5px; margin: 7px 0 13px; line-height: 1.55; }
.design-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Responsive ---------- */
/* Clickable stat chips (dashboard cards navigate) */
a.chip-link { display: block; text-decoration: none; color: inherit; }
a.chip-link .stat-chip { cursor: pointer; transition: border-color .15s, transform .15s; }
a.chip-link:hover .stat-chip { border-color: var(--primary); transform: translateY(-1px); }
/* dashboard ka har element clickable — block link wrapper (cursor + hover feedback) */
a.chip-link.chip-block { border-radius: var(--radius-sm); cursor: pointer; }
a.chip-link.chip-block:hover .si-row,
a.chip-link.chip-block:hover .tip-row { background: color-mix(in srgb, var(--primary) 7%, transparent); border-radius: 8px; }
a.chip-link.chip-block:hover > * { border-color: var(--primary); }
.chip-block { position: relative; }
.chip-block:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Payment gateway cards (admin → Payment Gateways) ---------- */
.gw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.gw-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; background: var(--surface-2, var(--card-bg));
  display: flex; flex-direction: column; gap: 10px;
}
.gw-head { display: flex; align-items: center; gap: 10px; }
.gw-icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.gw-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.gw-title b { font-size: 15px; }
.gw-state { flex: none; }
.gw-card .settings-grid { grid-template-columns: 1fr; gap: 8px; }
.gw-card .page-actions { margin-top: 4px; flex-wrap: wrap; }
.gw-hook {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--surface-3, rgba(0,0,0,.04)); border: 1px dashed var(--border);
  border-radius: 10px; padding: 7px 10px;
}
.gw-hook .small-mono { font-size: 11.5px; overflow-wrap: anywhere; flex: 1; min-width: 120px; }
.gw-msg {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
}
.gw-msg.ok { background: color-mix(in srgb, #16a34a 12%, transparent); color: #15803d; }
.gw-msg.err { background: color-mix(in srgb, #dc2626 12%, transparent); color: #b91c1c; }
.gw-msg .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* ============ RESPONSIVE — mobile drawer + stacking ============ */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text); font-size: 19px; cursor: pointer;
}
.menu-btn:hover { border-color: var(--primary); color: var(--primary); }
/* Desktop: sidebar hide → main content khud adjust (flex) hota hai, overlay kabhi nahi */
body.sb-closed .main-col { width: 100%; }
.sb-backdrop { display: none; }
body.sb-closed .sidebar { display: none; }

@media (max-width: 980px) {
  /* ============================================================
   * MOBILE = LEFT VERTICAL SIDEBAR PANEL, PUSH layout
   * — page khulte hi khula (body.sb-open)
   * — content SIDE ME ADJUST (margin) hota hai — koi grey/dim overlay nahi,
   *   dashboard poora visible rehta hai (bas thoda patla)
   * — ☰ → band, content full width
   * ============================================================ */
  :root, body { --sb-w: 176px; }
  .app-shell { display: block; }
  .main-col {
    display: block; width: auto; min-width: 0;
    margin-left: 0; transition: margin-left .24s cubic-bezier(.4, 0, .2, 1);
  }
  body.sb-open .main-col { margin-left: var(--sb-w); }
  .topbar { position: sticky; top: 0; z-index: 58; }

  .sidebar {
    position: fixed; top: var(--tb-h, 0px); left: 0; bottom: 0;
    width: var(--sb-w); height: calc(100dvh - var(--tb-h, 0px));
    display: flex; flex-direction: column;
    margin: 0; border-radius: 0; border: 0; border-right: 1px solid var(--border);
    box-shadow: 6px 0 18px rgba(15, 23, 42, .06);
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.4, 0, .2, 1);
    z-index: 56; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  body.sb-open .sidebar { transform: none; }
  /* backdrop = bilkul nahi (koi dim nahi, kuch chhupta nahi) */
  .sb-backdrop { display: none !important; }
  body.sb-open { overflow-x: hidden; }

  /* ---- andar ka layout: desktop jaisa vertical menu ---- */
  .sidebar .brand-block { padding: 14px 14px 10px; }
  .sidebar .brand-block .brand-name { font-size: 17px; }
  .brand-in-sidebar { display: flex; align-items: center; gap: 10px; }
  .brand-in-sidebar .brand-name,
  .brand-in-sidebar .brand-pill { display: inline-block !important; }
  .account-card { display: flex !important; margin: 0 12px 8px; }

  .sidebar .nav {
    display: flex; flex-direction: column; gap: 2px;
    padding: 4px 10px 12px; flex: 1 1 auto;
  }
  .nav-item { padding: 10px 11px; font-size: 13.6px; gap: 10px; }
  .nav-item .icon { width: 18px; height: 18px; flex: none; }
  .nav-label { white-space: normal; line-height: 1.25; }
  .nav-badge { display: inline-block; }
  .nav-sub {
    display: flex; flex-direction: column; gap: 1px;
    margin: 1px 0 4px 20px; padding-left: 11px;
    border-left: 2px solid color-mix(in srgb, var(--primary) 22%, transparent);
  }
  .nav-sub-item { padding: 8px 10px; font-size: 12.8px; }

  .sidebar-foot {
    display: flex; flex-direction: column; gap: 1px;
    width: auto; padding: 8px 10px 18px; margin-top: auto;
    border-top: 1px solid var(--border);
  }
  .sidebar-foot .nav-item { font-size: 13px; padding: 9px 11px; }

  .menu-btn { display: inline-flex; }
  .topbar { flex-wrap: nowrap; height: auto; padding: 10px 12px; gap: 8px; }
  .topbar-search { display: none; }
  .topbar-search.wide {
    display: flex; order: 0; flex: 1 1 auto; max-width: 100%; flex-basis: auto; min-width: 0;
  }
  .topbar-search.wide .admin-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-inner { padding: 14px 12px 50px; }
  body.sb-open .page-inner { padding: 10px 6px 40px; }
  /* push mode = content ~180px — compact typography + promo strip hatao */
  body.sb-open .promo-strip { display: none; }
  body.sb-open .brand-in-topbar { display: none !important; }
  body.sb-open .topbar { padding: 8px 6px; gap: 4px; }
  body.sb-open .topbar .btn { padding: 7px 8px; }
  body.sb-open .topbar-right { gap: 4px; }
  body.sb-open .icon-btn, body.sb-open .avatar { width: 32px; height: 32px; font-size: 12px; }
  body.sb-open .page-sub, body.sb-open .card-note { font-size: 11px; line-height: 1.45; }
  body.sb-open .home-welcome .icon, body.sb-open .home-welcome > .icon { width: 24px; height: 24px; }
  body.sb-open .section-title, body.sb-open h1, body.sb-open h2 { font-size: 15px !important; line-height: 1.3; }
  /* push mode: table ko squeeze mat karo — horizontal scroll do (letters vertical stack nahi honge) */
  body.sb-open .table { min-width: 360px; table-layout: auto; font-size: 11.5px; }
  body.sb-open .table th, body.sb-open .table td { padding: 7px 6px; word-break: normal; overflow-wrap: break-word; }
  body.sb-open .table-wrap { -webkit-overflow-scrolling: touch; }
  body.sb-open .btn { font-size: 11.5px; padding: 7px 9px; }
  body.sb-open .quick-tile b { font-size: 12px; }
  /* push mode me sidebar bhi compact (content ko zyada jagah mile) */
  body.sb-open .sidebar .brand-block { padding: 10px 8px 6px; }
  body.sb-open .sidebar .brand-block .brand-name { font-size: 14px; }
  body.sb-open .brand-in-sidebar .brand-pill { font-size: 9px; padding: 2px 6px; }
  body.sb-open .account-card { margin: 0 6px 6px; padding: 8px; }
  body.sb-open .account-card .ac-name { font-size: 12px; }
  body.sb-open .account-card .ac-plan { font-size: 10.5px; }
  body.sb-open .sidebar .nav { padding: 2px 6px 10px; }
  body.sb-open .nav-item { padding: 8px 8px; font-size: 12px; gap: 7px; }
  body.sb-open .nav-item .icon { width: 15px; height: 15px; }
  body.sb-open .nav-sub { margin-left: 12px; padding-left: 8px; }
  body.sb-open .nav-sub-item { font-size: 11.5px; padding: 6px 6px; }
  body.sb-open .nav-badge { font-size: 8.5px; padding: 1px 5px; }
  body.sb-open .empty-state { padding: 18px 8px; }
  body.sb-open .empty-state .empty-title { font-size: 13px; }
  body.sb-open .empty-state .empty-desc { font-size: 11.5px; }
  body.sb-open .empty-state .empty-icon { width: 38px; height: 38px; border-radius: 12px; }
  /* push mode: kuch bhi screen se bahar na jaye */
  body.sb-open .btn, body.sb-open .site-btn {
    white-space: normal; max-width: 100%; line-height: 1.25;
    justify-content: flex-start; text-align: left;
  }
  body.sb-open .btn-block, body.sb-open .card-body, body.sb-open .page-actions { max-width: 100%; }
  body.sb-open .page-actions, body.sb-open .chip-wrap { flex-wrap: wrap; gap: 6px; }
  body.sb-open .page-actions .btn, body.sb-open .chip-wrap .btn { flex: 1 1 auto; }
  body.sb-open .table-wrap { max-width: 100%; overflow-x: auto; }
  body.sb-open .card { max-width: 100%; overflow: hidden; }
  body.sb-open .card-head { flex-wrap: wrap; gap: 6px; }
  body.sb-open .card-head .btn { flex: 0 0 auto; }
  body.sb-open .card-title { font-size: 14px !important; }
  body.sb-open .quick-tile span { font-size: 10.5px; }
  /* push mode me cards/chips ek column, text chhota — 232px sidebar ke saath fit */
  body.sb-open .stat-chips { grid-template-columns: 1fr; }
  body.sb-open .ov-hero, body.sb-open .ov-split, body.sb-open .ov-classic { flex-direction: column; align-items: stretch; }
  body.sb-open .quick-grid, body.sb-open .home-cols { grid-template-columns: 1fr; }
  body.sb-open .page-title, body.sb-open .section-title { font-size: 17px; }
  body.sb-open .card { padding: 12px; }
  .topbar-hide-mobile { display: none !important; }
  .brand-in-topbar .brand-name {
    max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .live-pill { font-size: 11.5px; padding: 5px 9px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .modal { width: calc(100% - 24px); }
}

@media (max-width: 560px) {
  /* Dashboard chips 2 per row (1 per row = bahut lamba scroll) */
  .stat-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-chip { padding: 10px 11px; gap: 9px; }
  .stat-chip-icon { width: 32px; height: 32px; border-radius: 9px; }
  .stat-chip-icon .icon { width: 17px; height: 17px; }
  .stat-chip-value { font-size: 17px; }
  .stat-chip-label { font-size: 10.5px; }
  /* Topbar: buttons icon-only, kuch bhi screen se bahar nahi jaata */
  .topbar { gap: 6px; padding: 8px 10px; }
  .topbar .btn span:not(.icon) { display: none; }
  .topbar .btn { padding: 8px 10px; }
  .topbar-right { gap: 6px; min-width: 0; flex: none; }
  .topbar-search.wide .admin-title { font-size: 14px; }
  /* Brand naam sidebar card me hai — topbar se hata do (avatar cut nahi hoga) */
  .brand-in-topbar { display: none !important; }
  .topbar-search { display: none; }
  .topbar-search.wide { display: flex; flex: 1 1 auto; min-width: 0; }
  .topbar-search.wide .brand-name { max-width: none; }
  .user-btn { padding: 4px; }
  .user-btn > .icon { display: none; }
  /* Admin topbar ka bada title mobile pe jagah kha raha tha */
  .topbar-search.wide .admin-title { display: none; }
  .admin-topbar .topbar-search.wide { flex-basis: 0; }
  /* Tables mobile pe squeeze na hon — andar scroll, card se bahar nahi */
  .table { min-width: 520px; }
  .table td, .table th { white-space: normal; }
  .card-head-wrap { flex-wrap: wrap; gap: 6px; }
  .pw-warn { display: block; margin-left: 0; }
  .pw-warn .badge { white-space: normal; text-align: left; line-height: 1.35; }
  .live-pill { display: none; }
  .page-inner { padding: 12px 10px 40px; }
  .card { padding: 15px; }
  .page-title { font-size: 20px; }
  .chip-wrap { flex-direction: column; align-items: stretch; }
  .chip-wrap .btn { width: 100%; justify-content: center; }
  .settings-grid { grid-template-columns: 1fr; }
}

/* AI brief modal list */
.brief-list { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.brief-list li { color: var(--text); }

/* ---------- Empty state (ZERO DEMO DATA: khaali account ka CTA) ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; }
.empty-state .empty-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.empty-state .empty-icon svg { width: 22px; height: 22px; }
.empty-state .empty-title { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
.empty-state .empty-desc { margin: 0; max-width: 34ch; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.empty-state .empty-cta { margin-top: 10px; }
.empty-state .empty-cta .btn { font-size: 12.5px; }

/* ---------- B6 DNS page ---------- */
.ns-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ns-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-soft, rgba(124, 92, 255, .08)); border: 1px solid var(--border, rgba(124,92,255,.18));
  border-radius: 10px; padding: 8px 10px; }
.ns-row code { font-size: 13px; word-break: break-all; }
.mono-break { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.ok-line { color: #0a7a33; font-weight: 600; font-size: 13.5px; }
@media (max-width: 640px) {
  .ns-row { flex-wrap: wrap; }
  .mono-break { font-size: 12px; }
}

/* ---------- B6 DNS: responsive list (table nahi — narrow push panel me bhi fit) ---------- */
.dns-list { display: flex; flex-direction: column; gap: 10px; }
.dns-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border, rgba(124,92,255,.18)); border-radius: 12px; padding: 10px 12px;
  background: var(--card-bg, #fff); }
.dns-item.is-active { border-color: var(--primary, #7c5cff); box-shadow: 0 0 0 2px rgba(124,92,255,.12); }
.dns-item-main { min-width: 0; }
.dns-item-title { font-weight: 700; font-size: 14px; word-break: break-all; }
.dns-item-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.dns-rec { border: 1px solid var(--border, rgba(124,92,255,.18)); border-radius: 12px; padding: 10px 12px;
  background: var(--card-bg, #fff); display: flex; flex-direction: column; gap: 6px; }
.dns-rec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dns-type { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  background: rgba(124,92,255,.12); color: var(--primary, #7c5cff); border-radius: 6px; padding: 3px 7px; }
.dns-name { font-size: 13.5px; }
.dns-rec-actions { display: flex; gap: 6px; }
@media (max-width: 520px) {
  .dns-item { flex-direction: column; }
  .dns-item-actions { flex-direction: row; width: 100%; }
  .dns-item-actions .btn { flex: 1 1 auto; }
  .dns-rec-actions .btn { flex: 1 1 auto; }
}

/* ---------- B4.2 mailbox usage ---------- */
.mail-usage { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.mail-usage-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }

/* ============================================================
   ROUND 12H — AlphaCP-style COMPACT DASHBOARD
   (HostPlux jaisa: chhote tiles, pills, 2-column, lamba page nahi)
   ============================================================ */
.hp-greet { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.hp-greet h1 { font-size:20px; margin:0; }
.hp-greet p { margin:2px 0 0; font-size:12.5px; color:var(--muted,#6b7280); }
.hp-pills { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px; }
.hp-pill { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:999px;
  border:1px solid var(--line,#e5e7eb); background:var(--card,#fff); font-size:12.5px; font-weight:600;
  cursor:pointer; text-decoration:none; color:inherit; white-space:nowrap; }
.hp-pill:hover { border-color:#673de6; color:#673de6; }
.hp-pill .icon { width:15px; height:15px; }

.hp-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 16px; }
.hp-tile { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--line,#e5e7eb);
  border-radius:12px; background:var(--card,#fff); cursor:pointer; text-decoration:none; color:inherit; min-width:0; }
.hp-tile:hover { border-color:#673de6; box-shadow:0 2px 10px rgba(103,61,230,.08); }
.hp-tile-ic { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; flex:0 0 auto;
  background:rgba(103,61,230,.1); color:#673de6; }
.hp-tile-ic .icon { width:17px; height:17px; }
.hp-tile-txt { min-width:0; }
.hp-tile-txt b { display:block; font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hp-tile-txt span { font-size:17px; font-weight:700; line-height:1.1; }
.hp-tile-txt .icon { width:12px; height:12px; opacity:.5; }

.hp-cols { display:grid; grid-template-columns:1.35fr 1fr; gap:12px; align-items:start; margin:0 0 16px; }
.hp-card { border:1px solid var(--line,#e5e7eb); border-radius:12px; background:var(--card,#fff); overflow:hidden; }
.hp-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:10px 12px; border-bottom:1px solid var(--line,#e5e7eb); }
.hp-card-head h2 { font-size:13px; margin:0; font-weight:700; }
.hp-card-body { padding:10px 12px; }
.hp-row { display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:8px 0; border-bottom:1px dashed var(--line,#eef0f4); font-size:12.5px; }
.hp-row:last-child { border-bottom:0; }
.hp-row a { color:#673de6; text-decoration:none; font-weight:600; }
.hp-empty { text-align:center; padding:14px 6px; }
.hp-empty .icon { width:26px; height:26px; color:#9aa3b2; }
.hp-empty p { margin:6px 0 10px; font-size:12.5px; color:var(--muted,#6b7280); }

.hp-quick { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.hp-quick a { display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid var(--line,#e5e7eb);
  border-radius:10px; font-size:12px; font-weight:600; text-decoration:none; color:inherit; }
.hp-quick a:hover { border-color:#673de6; color:#673de6; }
.hp-quick .icon { width:16px; height:16px; color:#673de6; }

@media (max-width:1100px) {
  .hp-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hp-cols { grid-template-columns:1fr; }
  .hp-quick { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .hp-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .hp-greet h1 { font-size:17px; }
  .hp-pill { padding:6px 10px; font-size:12px; }
}

/* ---------- B8.2 File Manager ---------- */
.fm-bar { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.fm-crumbs { display:flex; align-items:center; gap:4px; flex-wrap:wrap; font-size:12.5px; font-weight:600; }
.fm-crumb { color:#673de6; text-decoration:none; cursor:pointer; }
.fm-sep { color:#9aa3b2; }
.fm-usage { font-size:12px; color:var(--muted,#6b7280); }
.fm-select { padding:7px 10px; border:1px solid var(--line,#e5e7eb); border-radius:8px; font-size:12.5px; background:var(--card,#fff); }
.fm-table-wrap { overflow-x:auto; }
.fm-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.fm-table th { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line,#e5e7eb); font-weight:700; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em; color:#6b7280; }
.fm-table td { padding:8px 10px; border-bottom:1px solid #f3f4f8; vertical-align:middle; }
.fm-table tr:hover td { background:#faf9ff; }
.fm-cell { display:flex; align-items:center; gap:8px; }
.fm-cell .icon { width:16px; height:16px; color:#673de6; flex:0 0 auto; }
.fm-name { color:inherit; text-decoration:none; cursor:pointer; word-break:break-all; }
.fm-name:hover { color:#673de6; }
.fm-muted { color:#6b7280; white-space:nowrap; }
.fm-check { width:28px; }
.fm-actions { white-space:nowrap; text-align:right; }
.fm-loading, .fm-err { padding:18px; text-align:center; font-size:12.5px; color:#6b7280; }
.fm-err { color:#b42318; }
@media (max-width:620px) {
  .fm-table th:nth-child(4), .fm-table td:nth-child(4),
  .fm-table th:nth-child(5), .fm-table td:nth-child(5) { display:none; }
}

/* ---------- Help Center (docs browser) ---------- */
.hc-wrap { display:grid; grid-template-columns:260px 1fr; gap:12px; align-items:start; }
.hc-side { border:1px solid var(--line,#e5e7eb); border-radius:12px; background:var(--card,#fff); padding:10px; position:sticky; top:10px; max-height:70vh; overflow:auto; }
.hc-search { width:100%; padding:8px 10px; border:1px solid var(--line,#e5e7eb); border-radius:8px; font-size:12.5px; margin-bottom:10px; }
.hc-group { font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:#9aa3b2; font-weight:700; margin:10px 0 4px; }
.hc-doc-link { display:flex; justify-content:space-between; gap:6px; padding:7px 8px; border-radius:8px; font-size:12.5px; cursor:pointer; color:inherit; text-decoration:none; }
.hc-doc-link:hover { background:#f5f3ff; color:#673de6; }
.hc-doc-link.active { background:rgba(103,61,230,.1); color:#673de6; font-weight:700; }
.hc-lock { font-size:10px; }
.hc-main { border:1px solid var(--line,#e5e7eb); border-radius:12px; background:var(--card,#fff); padding:16px 18px; overflow:auto; }
.hc-main .hc-h { margin:14px 0 6px; line-height:1.3; }
.hc-main h2.hc-h { font-size:17px; }
.hc-main h3.hc-h { font-size:14.5px; }
.hc-main h4.hc-h { font-size:13px; }
.hc-p, .hc-ul li { font-size:12.8px; line-height:1.65; color:var(--text,#1f2937); }
.hc-ul { margin:6px 0 10px 18px; }
.hc-pre { background:#0f172a; color:#e2e8f0; padding:10px 12px; border-radius:8px; overflow:auto; font-size:12px; line-height:1.5; }
.hc-quote { border-left:3px solid #673de6; padding:4px 10px; background:#f8f6ff; font-size:12.5px; border-radius:0 6px 6px 0; margin:6px 0; }
.hc-hr { border:0; border-top:1px solid var(--line,#e5e7eb); margin:14px 0; }
.hc-table-wrap { overflow:auto; }
.hc-table { width:100%; border-collapse:collapse; font-size:12.3px; margin:8px 0; }
.hc-table th, .hc-table td { border:1px solid var(--line,#e5e7eb); padding:6px 8px; text-align:left; vertical-align:top; }
.hc-table th { background:#f9fafb; font-weight:700; }
.hc-muted { color:#6b7280; font-size:12.5px; }
@media (max-width:860px) {
  .hc-wrap { grid-template-columns:1fr; }
  .hc-side { position:static; max-height:none; }
}

/* ---------- B8.3 DB studio ---------- */
.db-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px; margin:0 0 14px; }
.db-card { display:flex; gap:10px; align-items:center; padding:12px; border:1px solid var(--line,#e5e7eb); border-radius:12px; background:var(--card,#fff); cursor:pointer; }
.db-card:hover { border-color:#673de6; }
.db-card.active { border-color:#673de6; background:rgba(103,61,230,.05); }
.db-card-ic { width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:rgba(103,61,230,.1);color:#673de6;flex:0 0 auto; }
.db-card-txt b { display:block; font-size:12.8px; word-break:break-all; }
.db-card-txt span { font-size:11.5px; color:#6b7280; }
.db-row-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:10px 0; font-size:13px; }
.db-tables { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:8px; margin-bottom:12px; }
.db-table { display:flex; flex-direction:column; gap:2px; padding:9px 10px; border:1px solid var(--line,#e5e7eb); border-radius:10px; text-decoration:none; color:inherit; font-size:12.5px; }
.db-table .icon { width:14px;height:14px;color:#673de6; }
.db-table:hover, .db-table.active { border-color:#673de6; color:#673de6; }
.db-table span { font-size:11px; color:#6b7280; }
.db-section-title { font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:#6b7280; font-weight:700; margin:12px 0 6px; }
.db-grid-wrap { overflow:auto; border:1px solid var(--line,#e5e7eb); border-radius:10px; }
.db-grid { width:100%; border-collapse:collapse; font-size:12.2px; }
.db-grid th { background:#f9fafb; text-align:left; padding:7px 9px; border-bottom:1px solid var(--line,#e5e7eb); font-weight:700; white-space:nowrap; }
.db-grid td { padding:6px 9px; border-bottom:1px solid #f3f4f8; white-space:nowrap; }
.db-sql { width:100%; min-height:110px; font-family:ui-monospace,monospace; font-size:12.5px; padding:10px; border:1px solid var(--line,#e5e7eb); border-radius:10px; }
.db-empty { font-size:12.5px; color:#6b7280; padding:12px; }
.db-empty.err, .db-empty.err code { color:#b42318; }
.db-ok { font-size:12.5px; color:#067647; padding:8px 0; }
@media (max-width:620px) { .db-cards { grid-template-columns:1fr; } }

/* ---------- B8.4 Backups ---------- */
.bk-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bk-site { min-width: 190px; }
.bk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.bk-stat { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 12px 14px; }
.bk-stat-l { font-size: 12px; color: var(--muted, #6b7280); }
.bk-stat-v { font-size: 18px; font-weight: 600; margin-top: 2px; }
.bk-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.bk-tool-l { font-size: 13px; color: var(--muted, #6b7280); }
.bk-spacer { flex: 1; }
.bk-keep { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.bk-keep-n { width: 64px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.bk-card { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 14px; }
.bk-card-top { display: flex; justify-content: space-between; align-items: center; }
.bk-size { font-size: 12px; color: var(--muted, #6b7280); }
.bk-date { font-size: 13px; margin-top: 8px; font-weight: 500; }
.bk-file { font-size: 11px; color: var(--muted, #6b7280); margin: 4px 0 10px; word-break: break-all; }
.bk-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-danger { color: #dc2626; }
.bk-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.bk-full { background: #eef2ff; color: #3730a3; }
.bk-files { background: #ecfdf5; color: #065f46; }
.bk-db { background: #fff7ed; color: #9a3412; }
.bk-empty { grid-column: 1 / -1; }
@media (max-width: 640px) { .bk-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- B8.5 WordPress + Staging ---------- */
.wp-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wp-site { min-width: 200px; }
.wp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.wp-stat { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 12px 14px; }
.wp-stat-l { font-size: 12px; color: var(--muted, #6b7280); }
.wp-stat-v { font-size: 18px; font-weight: 600; margin-top: 2px; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wp-card { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 14px; }
.wp-card.wp-stage { border-style: dashed; }
.wp-card-top { display: flex; justify-content: space-between; align-items: center; }
.wp-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; }
.wp-badge-stage { background: #ede9fe; color: #5b21b6; }
.wp-ver { font-size: 12px; color: var(--muted, #6b7280); }
.wp-name { font-weight: 600; margin-top: 8px; }
.wp-path { font-size: 11px; color: var(--muted, #6b7280); word-break: break-all; margin: 2px 0 6px; }
.wp-meta { font-size: 12px; color: var(--muted, #6b7280); }
.wp-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wp-danger { color: #dc2626; }
.wp-field { display: block; margin: 8px 0; font-size: 13px; }
.wp-field .input { width: 100%; margin-top: 4px; }
.wp-empty { grid-column: 1 / -1; }
@media (max-width: 640px) { .wp-stats { grid-template-columns: 1fr 1fr; } }

/* ============ B8.6 AI WEBSITE BUILDER ============ */
.ai-builder .ai-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 16px}
.ai-stat{background:var(--card,#fff);border:1px solid var(--line,#e6e6ef);border-radius:12px;padding:12px 14px}
.ai-stat b{display:block;font-size:20px;line-height:1.1}
.ai-stat span{font-size:12px;color:var(--muted,#77809a)}
.ai-form{background:var(--card,#fff);border:1px solid var(--line,#e6e6ef);border-radius:14px;padding:16px;margin:0 0 16px}
.ai-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ai-form .field{display:block;margin:0 0 12px}
.ai-form .field>span{display:block;font-size:12px;font-weight:600;color:var(--muted,#77809a);margin:0 0 5px}
.ai-form input,.ai-form select,.ai-form textarea{width:100%;padding:10px 12px;border:1px solid var(--line,#dcdfeb);border-radius:9px;font:inherit;background:#fff;color:inherit}
.ai-pages{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 14px;font-size:14px}
.ai-pages .chk{display:flex;align-items:center;gap:6px}
.ai-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ai-mode{font-size:12px;color:var(--muted,#77809a);border:1px dashed var(--line,#dcdfeb);padding:5px 10px;border-radius:999px}
.ai-mode.on{color:#0a7f4b;border-color:#0a7f4b55;background:#0a7f4b11}
.ai-conf{margin-top:14px;border-top:1px dashed var(--line,#dcdfeb);padding-top:14px}
.ai-result{background:var(--card,#fff);border:1px solid var(--line,#e6e6ef);border-radius:14px;padding:16px;margin:0 0 16px}
.ai-result-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.ai-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.ai-tab{border:1px solid var(--line,#dcdfeb);background:#fff;border-radius:999px;padding:6px 14px;font:inherit;font-size:13px;cursor:pointer}
.ai-tab.on{background:var(--accent,#6c4cf1);border-color:var(--accent,#6c4cf1);color:#fff}
.ai-preview{border:1px solid var(--line,#e6e6ef);border-radius:12px;overflow:hidden;background:#0d1020}
.ai-preview iframe{width:100%;height:520px;border:0;display:block;background:#fff}
.ai-jobs-act{white-space:nowrap}
@media(max-width:640px){.ai-row{grid-template-columns:1fr}.ai-preview iframe{height:380px}.ai-builder .ai-stats{grid-template-columns:1fr 1fr}}

/* ============ B9 MONITORING + WAF ============ */
.mon-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;font-size:13px}
.mon-bar .ok{color:#0a7f4b;font-weight:600}
.mon-bar .warn{color:#a06000;font-weight:600}
.heal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.heal-card{background:var(--card,#fff);border:1px solid var(--line,#e6e6ef);border-radius:14px;padding:16px}
.heal-top{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:14px}
.heal-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.heal-code{margin-left:auto;font-size:12px;color:var(--muted,#77809a);border:1px solid var(--line,#e6e6ef);border-radius:6px;padding:1px 6px}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.dot.ok{background:#12b76a}.dot.bad{background:#e5484d}
.heal-big{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1}
.heal-big span{display:block;font-size:11px;font-weight:500;color:var(--muted,#77809a);letter-spacing:0;margin-top:4px}
.heal-big.ok{color:#0a7f4b}.heal-big.warn{color:#a06000}.heal-big.bad{color:#c0272c}
.heal-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:12px 0 8px;font-size:13px}
.heal-meta span{display:block;font-size:11px;color:var(--muted,#77809a)}
.waf-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 16px}
.waf-stats .wp-stat-v.ok{color:#0a7f4b}.waf-stats .wp-stat-v.warn{color:#a06000}
.waf-rules{margin:0;padding-left:18px;font-size:14px;line-height:1.9}
@media(max-width:640px){.waf-stats{grid-template-columns:1fr 1fr}.heal-meta{grid-template-columns:1fr 1fr}}

/* ============ HOSTPLUX-STYLE SITE CONTEXT + DASHBOARD ============ */
.site-card{padding:10px 12px;border-bottom:1px solid var(--line,#e6e6ef)}
.site-back{display:flex;align-items:center;gap:6px;background:none;border:0;color:var(--muted,#77809a);font:inherit;font-size:12px;cursor:pointer;padding:2px 0 8px}
.site-back:hover{color:var(--ink,#12162a)}
.site-now{display:flex;flex-direction:column;gap:2px}
.site-now b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-now span{font-size:11px;color:var(--muted,#77809a);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hp-site-card{background:var(--card,#fff);border:1px solid var(--line,#e6e6ef);border-radius:14px;padding:16px;margin:0 0 8px}
.hp-site-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hp-site-head h2{margin:0 0 2px;font-size:20px;letter-spacing:-.02em}
.hp-site-head p{margin:0}
.hp-status-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hp-chip{font-size:11px;padding:3px 9px;border-radius:999px;border:1px solid var(--line,#e6e6ef);color:var(--muted,#77809a)}
.hp-chip.ok{color:#0a7f4b;border-color:#0a7f4b55;background:#0a7f4b11}
.hp-chip.warn{color:#a06000;border-color:#a0600055;background:#a0600011}
.tips-list{margin:0;padding-left:18px;line-height:1.9;font-size:14px}

/* ============================================================
 * 14k — MOBILE HARDENING (owner panel + client panel)
 * Problem: 390–820px par sidebar labels 3 line me wrap, stat chips
 * viewport se bahar (right side cut), topbar overflow.
 * Rule: mobile = PUSH layout (jaisa user ne chaha), par kuch bhi cut na ho.
 * ============================================================ */
.chip-link { min-width: 0; }
.stat-chips, .stat-chips > *, .stat-chip, .stat-chip > div { min-width: 0; }
.stat-chip-label, .stat-chip-value { overflow-wrap: break-word; word-break: normal; }
.quick-tile { min-width: 0; }
.card, .hp-site-card, .ai-form, .ai-result, .heal-card { min-width: 0; }

@media (max-width: 980px) {
  :root, body { --sb-w: 186px; }
  .nav-item { gap: 8px; }
  .nav-label { font-size: 13px; line-height: 1.22; overflow-wrap: anywhere; }
  .nav-sub-item { font-size: 12.2px; padding: 5px 8px; line-height: 1.25; overflow-wrap: anywhere; }
  .page-inner { padding: 14px 12px 48px; }
  .live-pill { display: none !important; }
  .stat-chips { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  body.sb-open .stat-chips { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 560px) {
  :root, body { --sb-w: 164px; }
  html, body { overflow-x: clip; }
  .sidebar { --nav-pad: 8px; }
  .nav-item { padding: 8px 9px; font-size: 12.3px; gap: 7px; }
  .nav-item .icon { width: 15px; height: 15px; }
  .nav-sub { margin: 1px 0 4px 12px; padding-left: 8px; }
  .nav-sub-item { font-size: 11.8px; padding: 4px 6px; }
  .page-inner { padding: 12px 10px 44px; }
  .page-title, .home-welcome .page-title { font-size: 16px !important; line-height: 1.25; }
  .page-sub { font-size: 12px; }
  /* push-mode me content ~200px — chips ek column me (2-col me label letter-by-letter tootta tha) */
  .stat-chips, body.sb-open .stat-chips { grid-template-columns: 1fr; gap: 8px; }
  .stat-chip { padding: 9px 10px; gap: 8px; }
  .stat-chip-value { font-size: 15px; }
  .card, .hp-site-card, .ai-form, .ai-result { padding: 11px; }
  .card-title, .card-head h2, .card-head h3 { font-size: 14px; }
  .hp-site-head h2 { font-size: 16px; }
  .btn { font-size: 12.5px; padding: 8px 12px; }
  .topbar { padding: 7px 9px; }
  .admin-topbar .topbar-right { gap: 4px; }
  .avatar { width: 30px; height: 30px; font-size: 11px; }
  .sidebar-foot .nav-item { padding: 8px 9px; font-size: 12.3px; }
}

/* 14k-b — home tiles mobile pe truncate nahi ("We…" problem) */
@media (max-width: 560px) {
  .hp-tiles { gap: 8px; }
  .hp-tile { padding: 9px; gap: 8px; }
  .hp-tile-ic { width: 28px; height: 28px; border-radius: 8px; }
  .hp-tile-ic .icon { width: 15px; height: 15px; }
  .hp-tile-txt b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 11.5px; line-height: 1.2; }
  .hp-tile-txt span { font-size: 15px; }
  .account-card { margin: 0 10px 8px; padding: 9px 10px; }
  .ac-info b { font-size: 12.5px; line-height: 1.15; }
  .ac-info span { font-size: 10.5px; }
  .hp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hp-pill { font-size: 11.5px; padding: 6px 9px; }
}

/* 14k-c — stat chip text: word ke beech se nahi tootna chahiye */
.stat-chip { align-items: flex-start; }
.stat-chip-label { line-height: 1.25; }
.stat-chip-value { line-height: 1.15; }

/* ============================================================
   B-next-4 — Language switcher (EN | हिं)
   Design locked: sirf maujooda theme variables use hote hain
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center; padding: 2px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 999px;
  background: var(--surface-2, rgba(0,0,0,.03)); gap: 2px;
}
.lang-switch .lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px; color: var(--text-muted, #6b7280);
}
.lang-switch .lang-btn:hover { color: var(--text, #111827); }
.lang-switch .lang-btn.is-active {
  background: var(--primary, #673de6); color: #fff;
}
@media (max-width: 980px) {
  .lang-switch .lang-btn { padding: 6px 8px; font-size: 11px; }
}

/* ============================================================
   B-next-4 — Kodee assistant (chat panel) — key-less AI
   Design locked: sirf theme variables (koi naya colour nahi)
   ============================================================ */
#kodee-host { position: fixed; inset: 0; z-index: 4000; pointer-events: none; }
.kd-wrap {
  position: absolute; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 24px);
  max-height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden;
  pointer-events: auto;
}
.kd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--surface-2, rgba(0,0,0,.03));
}
.kd-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.kd-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; color: var(--primary, #673de6);
  background: color-mix(in srgb, var(--primary, #673de6) 14%, transparent);
}
.kd-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.kd-msg { display: flex; }
.kd-msg.kd-user { justify-content: flex-end; }
.kd-bubble {
  max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  background: var(--surface-2, rgba(0,0,0,.05)); color: var(--text, #111827);
}
.kd-user .kd-bubble { background: var(--primary, #673de6); color: #fff; }
.kd-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border, #e5e7eb); }
.kd-chip {
  font-size: 12px; padding: 5px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border, #e5e7eb); background: transparent; color: var(--text-muted, #6b7280);
}
.kd-chip:hover { color: var(--text, #111827); border-color: var(--primary, #673de6); }
.kd-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border, #e5e7eb); }
.kd-form input {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: var(--text, #111827);
}
.kd-typing i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px;
  background: currentColor; opacity: .35; animation: kd-blink 1s infinite;
}
.kd-typing i:nth-child(2) { animation-delay: .15s; }
.kd-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kd-blink { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@media (max-width: 640px) {
  .kd-wrap { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 78vh; }
}

/* ---- Copy Website progress (B-next-7) ---- */
.hp-progress{height:6px;border-radius:99px;background:rgba(148,163,184,.22);overflow:hidden;min-width:120px}
.hp-progress-bar{height:100%;border-radius:99px;background:linear-gradient(90deg,#6366f1,#22d3ee);transition:width .4s ease}
.hp-score{display:flex;align-items:center;gap:22px}
.hp-score-num{font-size:52px;font-weight:800;line-height:1;letter-spacing:-2px}
.hp-score-num span{font-size:16px;font-weight:600;color:#94a3b8;letter-spacing:0}
.hp-score-num.success{color:#22c55e}.hp-score-num.warning{color:#f59e0b}.hp-score-num.danger{color:#ef4444}
.hp-row-between{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.hp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:16px}
.hp-tile{display:flex;align-items:center;gap:12px;padding:16px;border-radius:14px;background:rgba(148,163,184,.08);border:1px solid rgba(148,163,184,.16)}
.hp-tile-ic{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(99,102,241,.16);color:#a5b4fc;flex:0 0 auto}
.hp-tile-txt b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#94a3b8;font-weight:600}
.hp-tile-txt span{font-size:19px;font-weight:700}
.small-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
