/* ============================================================
   Kotha AI — Professional design system (v3 · "Conversation AI")
   Redesign to match the new dashboard: navy sidebar, clean white
   topbar, #2570e6 brand blue, Manrope + Noto Sans Bengali.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  /* Brand — identical in both themes (new "Conversation AI" blue) */
  --primary: #2570e6;
  --primary-2: #3b82f6;
  --blue: #2570e6;
  --blue-2: #1a56b8;
  --violet: #4f46e5;
  --violet-2: #7c3aed;
  --cyan: #0891b2;
  --green: #12a150;
  --amber: #d97706;
  --red: #e2136e;
  --pink: #e2136e;

  /* sidebar (navy) tokens */
  --nav-navy: linear-gradient(180deg, #101c33 0%, #0c1526 100%);
  --nav-active: linear-gradient(135deg, #2570e6, #1a5fc7);

  --grad-brand: linear-gradient(135deg, #3b82f6 0%, #2570e6 100%);
  --grad-brand-soft: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --grad-violet: linear-gradient(135deg, #4f46e5, #7c3aed);
  --grad-green: linear-gradient(135deg, #0f9d58, #12a150);
  --grad-amber: linear-gradient(135deg, #d97706, #f59e0b);
  --grad-cyan: linear-gradient(135deg, #0891b2, #06b6d4);
  --grad-red: linear-gradient(135deg, #e2136e, #f472b6);
  --grad-pink: linear-gradient(135deg, #e2136e, #f472b6);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 18px;
  --shadow-blue: 0 8px 24px rgba(37,112,230,.32);
  --nav-h: 70px;
  --side-w: 262px;

  /* ===== LIGHT theme (default — matches the new design) ===== */
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #f7f9fd;
  --text: #16202e;
  --muted: #647089;
  --dim: #8592a8;
  --divider: #e6eaf2;
  --input: #f4f6fb;
  --hover: #eef2f8;
  --glass: rgba(255,255,255,.9);
  --chat-bg: #f0f3f8;
  --bubble-in: #ffffff;
  --product-img: repeating-linear-gradient(45deg,#eef2f8,#eef2f8 10px,#e6ebf4 10px,#e6ebf4 20px);
  --code-bg: #eef2fb;
  --skeleton: #e7ebf3;
  --side-active: rgba(37,112,230,.10);
  --tint: rgba(37,112,230,.06);
  --mk-body: #ffffff;
  --mk-hero: radial-gradient(900px 500px at 50% -20%, rgba(37,112,230,.13), transparent 60%), linear-gradient(180deg, #f4f8ff, #ffffff);
  --mk-hero-h1: linear-gradient(120deg, #101c33 25%, #2570e6 70%, #3b82f6);
  --mk-alt: #f4f7fc;
  --shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow: 0 4px 16px rgba(16,24,40,.09), 0 2px 4px rgba(16,24,40,.05);
  --shadow-lg: 0 18px 40px rgba(16,24,40,.16), 0 6px 14px rgba(16,24,40,.08);
  color-scheme: light;
}

/* ===== DARK theme (SalesUp-style Facebook dark) ===== */
:root[data-theme="dark"] {
  --bg: #18191a;
  --bg-2: #242526;
  --card: #242526;
  --card-2: #2a2b2d;
  --text: #e4e6eb;
  --muted: #b0b3b8;
  --dim: #8a8d91;
  --divider: #3a3b3c;
  --input: #3a3b3c;
  --hover: #4a4b4d;
  --glass: rgba(36,37,38,.86);
  --chat-bg: #1c1d1e;
  --bubble-in: #3a3b3c;
  --product-img: linear-gradient(135deg, #2b2c2e, #323234);
  --code-bg: #1c1d1e;
  --skeleton: #303132;
  --side-active: rgba(37,112,230,.18);
  --tint: rgba(37,112,230,.08);
  --mk-body: #18191a;
  --mk-hero: radial-gradient(900px 500px at 50% -20%, rgba(37,112,230,.18), transparent 60%), linear-gradient(180deg, #1c1d24, #18191a);
  --mk-hero-h1: linear-gradient(120deg, #fff 20%, #8fbcff 70%, #3b82f6);
  --mk-alt: #1c1d1e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 3px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Noto Sans Bengali', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -5%, rgba(37,112,230,.07), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(59,130,246,.05), transparent 55%),
    var(--bg);
  transition: background-color .25s ease, color .25s ease;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:lang(bn), [lang="bn"] { font-family: 'Noto Sans Bengali', 'Manrope', sans-serif; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-2); }
::selection { background: rgba(24,119,242,.2); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #4e4f50 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #4a4b4d; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #5a5b5d; background-clip: content-box; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.02); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { 0% { left: -60%; } 100% { left: 130%; } }

.reveal { opacity: 0; animation: fadeUp .5s cubic-bezier(.22,1,.36,1) forwards; }
.reveal:nth-child(1){animation-delay:.02s}.reveal:nth-child(2){animation-delay:.08s}
.reveal:nth-child(3){animation-delay:.14s}.reveal:nth-child(4){animation-delay:.2s}
.reveal:nth-child(5){animation-delay:.26s}.reveal:nth-child(6){animation-delay:.32s}
.reveal:nth-child(7){animation-delay:.38s}.reveal:nth-child(8){animation-delay:.44s}

/* ---------- Top bar (clean white, right of sidebar) ---------- */
.navbar {
  position: fixed; top: 0; left: var(--side-w); right: 0; height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; z-index: 100;
}
.navbar::before { content: none; }
/* full-width topbar (admin console — no sidebar) */
.navbar-full { left: 0; }
@keyframes ribbonFlow { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }
.nav-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* page title lockup in the topbar */
.topbar-title { min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bot on/off toggle switch in topbar */
.bot-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--input); border: 1px solid var(--divider); border-radius: 22px; padding: 5px 7px 5px 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; font-family: inherit; transition: border-color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.bot-toggle:hover { border-color: rgba(18,161,80,.45); }
.bot-toggle.off:hover { border-color: rgba(239,68,68,.45); }
.bot-toggle-label { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.bot-toggle.on .bot-toggle-label { color: #12a150; }
.bot-toggle.off .bot-toggle-label { color: var(--muted); }
.bot-toggle-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(18,161,80,.16); transition: box-shadow .2s; }
.bot-toggle.off .bot-toggle-dot { box-shadow: 0 0 0 3px rgba(148,163,184,.16); }
.bot-toggle-switch { position: relative; width: 34px; height: 19px; border-radius: 20px; background: #cbd5e1; transition: background .25s; flex-shrink: 0; }
.bot-toggle.on .bot-toggle-switch { background: #12a150; }
.bot-toggle-knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s; }
.bot-toggle.on .bot-toggle-knob { transform: translateX(15px); }
/* Mobile: shrink the toggle to just the switch so the hamburger menu keeps its space */
@media (max-width: 720px) {
  .bot-toggle { padding: 5px; gap: 0; border-radius: 20px; }
  .bot-toggle-label { display: none; }
}
.hamburger { display: none; width: 42px; height: 42px; border: none; background: var(--input); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger svg { width: 22px; height: 22px; stroke: var(--text); }
.nav-logo {
  width: 42px; height: 42px; flex-shrink: 0;
  background: url('/img/logo.png') center/contain no-repeat;
  display: inline-block; position: relative;
  color: transparent; font-size: 0; text-indent: -9999px;
  box-shadow: none; border-radius: 0; overflow: visible;
}
.nav-logo::after { display: none; }
/* Brand lockup: fancy animated-gradient wordmark + slogan */
.brand-stack { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.nav-brand { font-size: 20px; font-weight: 900; letter-spacing: -.4px; line-height: 1;
  background: linear-gradient(120deg, #1877f2 0%, #7c3aed 45%, #06b6d4 75%, #1877f2 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite; }
.brand-slogan { font-size: 8.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; white-space: nowrap; }
.mk-footer .brand-slogan { color: #647085; }
.auth2-brand .brand-slogan { color: rgba(255,255,255,.82); }
.nav-search {
  background: var(--input); border: 1.5px solid transparent; border-radius: 50px;
  height: 42px; padding: 0 16px 0 42px; width: 260px; font-size: 14.5px; outline: none;
  transition: .2s; font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23667085' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center;
}
.nav-search:focus { border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(24,119,242,.12); }

/* Facebook-style centered tab strip removed — sidebar carries navigation now */
.nav-center { display: none; }
.nav-tab {
  width: 92px; height: var(--nav-h); display: flex; align-items: center; justify-content: center;
  color: var(--muted); position: relative; cursor: pointer; transition: .18s;
}
.nav-tab svg { width: 26px; height: 26px; }
.nav-tab:hover { color: var(--blue); background: linear-gradient(180deg, rgba(24,119,242,.06), transparent); }
.nav-tab.active { color: var(--blue); }
.nav-tab.active::after { content:''; position:absolute; bottom:0; left:14px; right:14px; height:3px; background: var(--grad-brand); border-radius: 3px 3px 0 0; }
.nav-tip { position:absolute; bottom:-30px; left:50%; transform:translateX(-50%) scale(.9); background:#0f1419; color:#fff; font-size:11px; font-weight:600; padding:4px 9px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:.15s; }
.nav-tab:hover .nav-tip { opacity:1; transform:translateX(-50%) scale(1); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--input);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  border: none; cursor: pointer; position: relative; color: var(--text); transition: .18s;
}
.nav-icon-btn svg { width: 20px; height: 20px; }
.nav-icon-btn:hover { background: var(--hover); transform: translateY(-1px); }
.nav-badge {
  position: absolute; top: -3px; right: -3px; background: var(--grad-red); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  box-shadow: 0 2px 6px rgba(239,68,68,.5); border: 2px solid #fff;
}
.nav-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #1877f2, #7c3aed); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 12px rgba(24,119,242,.35); border: 2px solid rgba(255,255,255,.65);
  transition: transform .15s;
}
.nav-avatar:hover { transform: scale(1.06); }
/* language toggle */
.lang-toggle { display: flex; background: var(--input); border-radius: 50px; padding: 3px; gap: 2px; }
.lang-toggle a {
  padding: 6px 12px; border-radius: 50px; font-size: 12.5px; font-weight: 800; color: var(--muted);
  transition: .18s; letter-spacing: .3px;
}
.lang-toggle a.on { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }

/* ---------- Layout (dark navy sidebar, full height) ---------- */
.layout { display: flex; padding-top: var(--nav-h); min-height: 100vh; }
.sidebar {
  width: var(--side-w); padding: 14px 14px 20px; position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; transition: transform .28s cubic-bezier(.22,1,.36,1); z-index: 110;
  background: var(--nav-navy); color: #e8edf6;
  display: flex; flex-direction: column;
}
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
/* keep every sidebar row at its natural height — never let the flex column
   squash the page-card / nav items when content overflows (sidebar scrolls instead) */
.sidebar > * { flex-shrink: 0; }
/* brand lockup at the very top of the sidebar */
.side-brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 12px; text-decoration: none; }
.side-brand-logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg,#3b82f6,#2570e6); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(37,112,230,.45); flex-shrink: 0; }
.side-brand-logo svg { width: 20px; height: 20px; stroke: #fff; }
.side-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.3px; color: #fff; }
.side-brand-slogan { font-size: 11.5px; color: #8b9bb8; margin-top: -1px; }
.side-item {
  display: flex; align-items: center; gap: 11px; padding: 7px 11px;
  border-radius: 9px; color: #aeb9d0; font-weight: 500; font-size: 13.5px;
  margin-bottom: 1px; position: relative; transition: .16s cubic-bezier(.22,1,.36,1);
}
.side-item:hover { background: rgba(255,255,255,.06); color: #fff; font-weight: 600; box-shadow: none; transform: none; }
.side-item:hover .side-icon { color: #fff; transform: none; }
.side-item.active { background: var(--nav-active); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(37,112,230,.35); }
.side-item.active::before { content: none; }
.side-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: transparent; color: inherit; flex-shrink: 0; transition: .16s;
}
.side-icon svg { width: 17px; height: 17px; stroke: currentColor; }
.side-item.active .side-icon { color: #fff; }
.side-item.active:hover { color: #fff; transform: none; }
.side-item.active:hover .side-icon { color: #fff; transform: none; }
.side-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 6px 6px; }
.side-caption { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: #5d6d8c; padding: 3px 12px 4px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.side-caption::before { content: none; }
.side-pagecard {
  margin: 0 2px 8px; padding: 9px 10px; background: rgba(255,255,255,.05); border-radius: 11px;
  border: 1px solid rgba(255,255,255,.08); box-shadow: none; display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden; color: #e8edf6;
}
.side-pagecard::before { content: none; }
.side-pagecard .avatar { width: 36px; height: 36px; font-size: 14px; }
.side-pagecard { color: #e8edf6; }
.side-pagecard > div > div:first-child { color: #fff; }
.side-pagecard .muted, .side-pagecard div[style*="--muted"] { color: #96a5c2 !important; }
/* "Demo Mode → Connect Page" card pinned to the bottom */
.side-foot { margin-top: auto; padding-top: 14px; }
.side-foot-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.side-foot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.side-foot-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.side-foot-row .lbl { font-size: 13px; font-weight: 700; color: #fff; }
.side-foot-card p { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: #96a5c2; }
.side-foot-btn { width: 100%; border: none; background: #2570e6; color: #fff; font-family: inherit; font-weight: 700; font-size: 13px; padding: 9px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: .15s; }
.side-foot-btn:hover { background: #1a5fc7; color: #fff; }
.side-foot-btn svg { width: 15px; height: 15px; stroke: #fff; }
.main { flex: 1; margin-left: var(--side-w); padding: 22px 26px 60px; max-width: 1560px; }

.scrim { display: none; position: fixed; inset: 0; background: rgba(12,21,38,.5); z-index: 105; opacity: 0; transition: opacity .25s; }
.scrim.show { display: block; opacity: 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; margin-bottom: 18px; border: 1px solid var(--divider);
  transition: box-shadow .2s, border-color .2s, transform .2s cubic-bezier(.22,1,.36,1);
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--divider); }
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.page-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 15px 18px 15px 22px; margin-bottom: 16px; position: relative; border: 1px solid var(--divider);
  overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #1877f2, #7c3aed);
}
.page-head::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(24,119,242,.08), transparent 65%);
  pointer-events: none;
}
.page-head h1 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.page-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* stat cards — clean cards with gradient icon chips + accent reveal on hover */
.stat-card { position: relative; border-radius: var(--radius); padding: 20px; background: var(--card); border: 1px solid var(--divider); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s, border-color .2s; overflow: hidden; }
.stat-card.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; transition: opacity .2s; background: var(--grad-brand); }
.stat-card::after { content: none; }
.stat-card.card-hover:hover::before { opacity: 1; }
.stat-icon { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--grad-brand); box-shadow: 0 4px 12px rgba(24,119,242,.3); transition: transform .2s; }
.stat-icon svg { width: 21px; height: 21px; stroke: #fff !important; }
.stat-card.card-hover:hover .stat-icon { transform: scale(1.08) rotate(-4deg); }
.stat-card.c1 .stat-icon { background: var(--grad-brand); box-shadow: 0 4px 12px rgba(24,119,242,.3); }
.stat-card.c2 .stat-icon { background: var(--grad-green); box-shadow: 0 4px 12px rgba(46,158,31,.3); }
.stat-card.c3 .stat-icon { background: var(--grad-violet); box-shadow: 0 4px 12px rgba(124,58,237,.3); }
.stat-card.c4 .stat-icon { background: var(--grad-amber); box-shadow: 0 4px 12px rgba(217,159,19,.3); }
.stat-card.c2::before { background: var(--grad-green); }
.stat-card.c3::before { background: var(--grad-violet); }
.stat-card.c4::before { background: var(--grad-amber); }
.stat-value { font-size: 27px; font-weight: 900; letter-spacing: -.8px; color: var(--text); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.stat-sub { font-size: 11.5px; font-weight: 600; margin-top: 9px; color: var(--dim); display: inline-flex; align-items: center; gap: 4px; background: var(--card-2); padding: 3px 9px; border-radius: 50px; border: 1px solid var(--divider); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--grad-brand); color: #fff; border: none; border-radius: 9px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; position: relative; overflow: hidden; transition: transform .12s, box-shadow .2s, filter .15s;
  box-shadow: 0 2px 8px rgba(24,119,242,.22);
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(24,119,242,.35); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(24,119,242,.35); }
.btn::after { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%; background:linear-gradient(120deg,transparent,rgba(255,255,255,.3),transparent); transition:.5s; }
.btn:hover::after { animation: shine .7s; }
.btn-green { background: var(--grad-green); box-shadow: 0 2px 8px rgba(34,197,94,.24); }
.btn-green:hover { box-shadow: 0 4px 14px rgba(34,197,94,.32); }
.btn-violet { background: var(--grad-violet); box-shadow: 0 2px 8px rgba(123,47,247,.24); }
.btn-gray { background: var(--input); color: var(--text); box-shadow: none; }
.btn-gray:hover { background: var(--hover); color: var(--text); box-shadow: none; }
.btn-red { background: var(--grad-red); box-shadow: 0 2px 8px rgba(239,68,68,.24); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; box-shadow: none; }
.btn-icon { padding: 8px; width: 32px; height: 32px; }

/* ---------- Forms ---------- */
.input, .select, .textarea {
  width: 100%; background: var(--input); border: 1.5px solid transparent;
  border-radius: 9px; padding: 9px 12px; font-size: 14px; outline: none;
  font-family: inherit; transition: .18s; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(24,119,242,.1); }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 50px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .1px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 50px;
  background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--divider); font-family: inherit; transition: .16s; box-shadow: none;
}
.pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.pill.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(24,119,242,.3); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--divider); font-weight: 700; position: sticky; top: 0; background: var(--card); z-index: 1; white-space: nowrap; }
.table td { padding: 9px 14px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover td { background: var(--tint); }
.table tbody tr:last-child td { border-bottom: none; }

.avatar { width: 42px; height: 42px; border-radius: 13px; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; box-shadow: var(--shadow-sm); }
.avatar.round { border-radius: 50%; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
.avatar-lg { width: 58px; height: 58px; font-size: 22px; border-radius: 16px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #0f1419; color: #fff; padding: 13px 22px; border-radius: 12px;
  font-weight: 600; z-index: 400; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: pop .35s cubic-bezier(.22,1.5,.5,1);
}
.toast::before { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.25); }

/* ---------- Modal ---------- */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(15,20,25,.5); backdrop-filter: blur(4px); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; animation: fadeIn .2s; }
.modal { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: pop .3s cubic-bezier(.22,1.3,.5,1); }
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--divider); position: relative; text-align: center; font-size: 19px; font-weight: 800; }
.modal-close { position: absolute; right: 14px; top: 13px; width: 36px; height: 36px; border-radius: 50%; background: var(--input); border: none; font-size: 16px; cursor: pointer; color: var(--muted); transition: .15s; }
.modal-close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.modal-body { padding: 20px; }

/* ---------- Messenger / inbox ---------- */
.chat-wrap { display: flex; height: calc(100vh - var(--nav-h) - 40px); background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-list { width: 340px; border-right: 1px solid var(--divider); display: flex; flex-direction: column; }
.chat-list-head { padding: 16px 18px; font-size: 22px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; letter-spacing: -.5px; }
.chat-list-scroll { overflow-y: auto; flex: 1; padding: 0 10px 10px; }
.chat-item { display: flex; gap: 12px; padding: 11px; border-radius: var(--radius-sm); cursor: pointer; align-items: center; color: var(--text); transition: .14s; }
.chat-item:hover { background: var(--hover); }
.chat-item.active { background: linear-gradient(135deg, rgba(24,119,242,.1), rgba(123,47,247,.08)); }
.chat-item-name { font-weight: 700; font-size: 15px; }
.chat-item-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.chat-item-unread .chat-item-last { color: var(--text); font-weight: 700; }
.chat-unread-dot { width: 11px; height: 11px; background: var(--grad-brand); border-radius: 50%; margin-left: auto; box-shadow: 0 0 0 3px rgba(24,119,242,.18); }

.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, #fbfcfe, #f6f8fc); }
.chat-head { padding: 12px 18px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; gap: 11px; background: #fff; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; animation: fadeUp .3s ease; }
.bubble-row.out { justify-content: flex-end; }
.bubble-row > div { display: flex; flex-direction: column; min-width: 0; max-width: 74%; }
.bubble-row.out > div { align-items: flex-end; }
.bubble { max-width: 100%; padding: 9px 13px; border-radius: 18px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.45; box-shadow: var(--shadow-sm); }
.bubble.in { background: #fff; color: var(--text); border-bottom-left-radius: 5px; }
.bubble.out { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { background: var(--grad-violet); }
.bubble-meta { font-size: 11px; color: var(--muted); padding: 2px 8px; }
.bubble-row.out .bubble-meta { text-align: right; }
@media (max-width: 720px) { .bubble-row > div { max-width: 85%; } .chat-msgs { padding: 14px; } }
.chat-input-bar { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--divider); align-items: center; background: #fff; }
.chat-input { flex: 1; background: var(--input); border: 1.5px solid transparent; border-radius: 50px; padding: 10px 16px; font-size: 14px; outline: none; font-family: inherit; transition: .18s; }
.chat-input:focus { border-color: var(--blue); background: #fff; }
.chat-mode-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--divider); background: var(--input); font-size: 17px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: .15s; }
.chat-mode-btn:hover { border-color: var(--primary); }
.chat-mode-btn.customer { background: rgba(247,185,40,.15); border-color: var(--amber); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--grad-brand); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; box-shadow: 0 2px 8px rgba(24,119,242,.28); transition: transform .12s; display: flex; align-items: center; justify-content: center; }
.chat-send:hover { transform: scale(1.06); }
.chat-send svg { width: 18px; height: 18px; }
.chat-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .2px; padding: 1px 7px; border-radius: 50px; background: var(--tint); color: var(--primary); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(16,24,40,.04); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img { height: 172px; background: linear-gradient(135deg, #e7f0fd, #ede4fb); display: flex; align-items: center; justify-content: center; font-size: 52px; background-size: cover; background-position: center; position: relative; }
.product-card:hover .product-img { filter: brightness(1.03); }
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.product-name { font-weight: 700; font-size: 15px; }
.product-price { font-weight: 900; font-size: 18px; color: var(--text); }
.product-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 13px; margin-left: 6px; }

/* ---------- FB post / comments ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-head { display: flex; gap: 11px; padding: 14px 16px; align-items: center; }
.post-content { padding: 0 16px 14px; font-size: 15px; line-height: 1.5; }
.comment-row { display: flex; gap: 9px; padding: 6px 16px; }
.comment-bubble { background: var(--input); border-radius: 16px; padding: 9px 13px; max-width: 85%; }
.comment-author { font-weight: 700; font-size: 13px; }
.comment-reply { margin-left: 43px; }
.comment-reply .comment-bubble { background: linear-gradient(135deg, rgba(24,119,242,.08), rgba(123,47,247,.06)); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 70px; padding: 40px 20px; flex-wrap: wrap;
  background: radial-gradient(1000px 600px at 80% -10%, rgba(123,47,247,.14), transparent 55%), radial-gradient(900px 600px at 0% 0%, rgba(24,119,242,.16), transparent 50%), var(--bg); }
.auth-brand { max-width: 500px; animation: fadeUp .6s ease; }
.auth-brand .logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.auth-brand .logo-row .nav-logo { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; }
.auth-brand h1 { font-size: 56px; font-weight: 900; letter-spacing: -2px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.auth-brand p { font-size: 21px; line-height: 1.4; color: #334155; }
.auth-brand .feat { font-size: 14.5px; color: var(--muted); margin-top: 14px; font-weight: 600; }
.auth-card { background: var(--card); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); width: 400px; animation: pop .5s cubic-bezier(.22,1.2,.5,1); }
.auth-card .input { margin-bottom: 13px; padding: 14px; font-size: 16px; background: #fff; border: 1.5px solid var(--divider); }
.auth-btn { width: 100%; padding: 14px; font-size: 18px; font-weight: 800; border-radius: 12px; }
.auth-divider { border: none; border-top: 1px solid var(--divider); margin: 20px 0; }
.auth-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.auth-lang { position: fixed; top: 18px; right: 20px; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: var(--input); display: flex; align-items: center; justify-content: center; font-size: 30px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: #cbd3e0; border-radius: 14px; transition: .2s; cursor: pointer; }
.switch .track::after { content: ''; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: .22s cubic-bezier(.4,1.4,.6,1); box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--grad-brand); }
.switch input:checked + .track::after { left: 23px; }

.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 14px; transition: .15s; }
.pagination a:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.pagination .current { background: var(--grad-brand); color: #fff; }

.skeleton { position: relative; overflow: hidden; background: #eef1f6; border-radius: 8px; }
.skeleton::after { content:''; position:absolute; inset:0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.3s infinite; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(24,119,242,.25); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
  .nav-center { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hamburger { display: flex; flex-shrink: 0; }
  .navbar { left: 0; padding: 0 16px; gap: 8px; }
  .nav-right { flex-shrink: 0; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); width: 280px; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 16px; }
  .nav-search { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-title .sub { display: none; }
}
@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .chat-list { width: 100%; }
  .chat-list.hide-mobile { display: none; }
  .chat-wrap.show-thread .chat-list { display: none; }
  .page-head { flex-direction: column; align-items: stretch; }
  .navbar .brand-stack, .mk-nav .brand-stack { display: none; }
  .auth-brand h1 { font-size: 42px; }
  .auth-brand p { font-size: 18px; }
  .form-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .lang-toggle a { padding: 6px 9px; }
  .main { padding: 12px; }
  .modal { border-radius: 16px; }
}

/* ============================================================
   Plan chip (navbar)
   ============================================================ */
.plan-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(124,58,237,.08));
  color: var(--primary); font-weight: 700; font-size: 13px; border: 1.5px solid rgba(79,70,229,.18);
  transition: .16s;
}
.plan-chip:hover { color: var(--primary); background: linear-gradient(135deg, rgba(79,70,229,.16), rgba(124,58,237,.12)); transform: translateY(-1px); }
.plan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
@media (max-width: 720px) { .plan-chip { display: none; } }

/* ============================================================
   Marketing (landing + pricing)
   ============================================================ */
body.mk { background: #fff; }
.mk-nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(16,24,40,.06);
}
.mk-brand { display: flex; align-items: center; gap: 10px; }
.mk-links { display: flex; align-items: center; gap: 14px; }
.mk-links > a:not(.btn) { font-weight: 600; color: var(--text); }
.mk-links > a:not(.btn):hover { color: var(--primary); }

.mk-hero { position: relative; overflow: hidden; padding: 70px 6vw 60px; text-align: center;
  background: radial-gradient(900px 500px at 50% -20%, rgba(124,58,237,.14), transparent 60%), linear-gradient(180deg, #faf9ff, #fff); }
.mk-hero-glow { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(circle, rgba(79,70,229,.18), transparent 65%); filter: blur(30px); }
.mk-hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.mk-badge { display: inline-block; padding: 7px 16px; border-radius: 50px; background: #fff; border: 1.5px solid rgba(79,70,229,.2); color: var(--primary); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); margin-bottom: 22px; animation: fadeUp .5s ease; }
.mk-hero h1 { font-size: 56px; font-weight: 900; letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px; animation: fadeUp .55s ease .05s both; }
.mk-hero h1 { background: linear-gradient(120deg, #1e1b4b 30%, #6d28d9 70%, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-hero p { font-size: 20px; color: #475569; max-width: 680px; margin: 0 auto 28px; line-height: 1.5; animation: fadeUp .6s ease .1s both; }
.mk-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .65s ease .15s both; }
.mk-hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; animation: fadeUp .7s ease .2s both; }

.mk-mock { max-width: 420px; margin: 44px auto 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(16,24,40,.06); text-align: left; opacity: 0; transform: translateY(24px); transition: .6s cubic-bezier(.22,1,.36,1); }
.mk-mock.in { opacity: 1; transform: none; }
.mk-mock-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--divider); font-weight: 700; }
.mk-mock-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg,#fbfcfe,#f6f8fc); }
.mk-mock-body .bubble { max-width: 85%; }
.mk-mock-body .bubble.in { align-self: flex-start; background: #eef0f5; }
.mk-mock-body .bubble.out { align-self: flex-end; }
.mk-billed { align-self: center; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--green); background: rgba(16,185,129,.1); padding: 5px 12px; border-radius: 50px; }

.mk-strip { background: var(--grad-brand); color: #fff; padding: 18px 6vw; }
.mk-strip-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 14px; font-weight: 700; font-size: 15px; }

.mk-section { padding: 70px 6vw; max-width: 1200px; margin: 0 auto; }
.mk-section-alt { background: #faf9ff; max-width: none; }
.mk-section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.mk-sec-head { text-align: center; margin-bottom: 40px; }
.mk-sec-head h2 { font-size: 38px; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.mk-sec-head p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto; }

.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mk-col { border-radius: 20px; padding: 26px; border: 1.5px solid var(--divider); background: #fff; }
.mk-col-green { border-color: rgba(16,185,129,.3); background: linear-gradient(180deg, rgba(16,185,129,.05), #fff); }
.mk-col-gray { border-color: var(--divider); background: #fafafa; }
.mk-col-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.mk-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 15px; }
.mk-line:last-child { border-bottom: none; }
.mk-line span { font-size: 20px; }

.mk-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mk-feat { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); border: 1px solid rgba(16,24,40,.04); transition: .2s; }
.mk-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mk-feat-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: var(--shadow-sm); }

/* pricing cards */
.mk-plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.mk-plan { position: relative; background: #fff; border-radius: 20px; padding: 26px 20px; border: 1.5px solid var(--divider); display: flex; flex-direction: column; transition: .2s; }
.mk-plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.mk-plan-pop { border-color: var(--primary); box-shadow: 0 12px 34px rgba(79,70,229,.18); }
.mk-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-amber); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 50px; white-space: nowrap; box-shadow: var(--shadow); }
.mk-plan-name { font-size: 18px; font-weight: 800; }
.mk-plan-price { margin: 10px 0 4px; }
.mk-plan-price .amt { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.mk-plan-price .per { color: var(--muted); font-weight: 600; }
.mk-plan-rate { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.mk-plan-rate b { color: var(--primary); }
.mk-plan-tag { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mk-plan-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.mk-plan-feats li { font-size: 13.5px; color: #334155; }

.mk-example { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 780px; margin: 0 auto; }
.mk-ex-col { background: #fff; border-radius: 20px; padding: 26px; border: 1.5px solid var(--divider); }
.mk-ex-col-hl { border-color: var(--primary); box-shadow: 0 12px 34px rgba(79,70,229,.15); }
.mk-ex-title { font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.mk-ex-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--divider); }
.mk-ex-total { margin-top: 14px; font-weight: 900; font-size: 18px; display: flex; align-items: baseline; gap: 8px; }

.mk-cta { padding: 70px 6vw; }
.mk-cta-inner { max-width: 900px; margin: 0 auto; text-align: center; background: var(--grad-brand); color: #fff; border-radius: 28px; padding: 56px 30px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.mk-cta-inner::before { content: ''; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mk-cta-inner h2 { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; position: relative; }
.mk-cta-inner p { font-size: 18px; opacity: .95; margin-bottom: 24px; position: relative; }

.mk-footer { background: #0f1020; color: #cbd5e1; padding: 46px 6vw 26px; }
.mk-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mk-footer .nav-brand { color: #fff; -webkit-text-fill-color: #fff; }
.mk-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.mk-footer-links a { color: #cbd5e1; font-weight: 600; }
.mk-footer-links a:hover { color: #fff; }
.mk-copy { max-width: 1200px; margin: 18px auto 0; text-align: center; color: #64748b; font-size: 13px; }

.reveal-scroll { opacity: 0; transform: translateY(26px); transition: .6s cubic-bezier(.22,1,.36,1); }
.reveal-scroll.in { opacity: 1; transform: none; }

/* ============================================================
   Auth 2.0 — split SaaS layout (not a Facebook clone)
   ============================================================ */
.auth2 { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth2-brand { position: relative; overflow: hidden; padding: 48px 56px; background: var(--grad-brand); color: #fff; display: flex; flex-direction: column; }
.auth2-glow { position: absolute; top: -120px; right: -100px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.12); }
.auth2-brand .nav-logo { background: url('/img/logo.png') center/contain no-repeat; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.28)); }
.auth2-brand-body { margin: auto 0; position: relative; max-width: 460px; }
.auth2-brand-body h1 { font-size: 42px; font-weight: 900; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 16px; }
.auth2-brand-body p { font-size: 17px; opacity: .92; line-height: 1.5; margin-bottom: 26px; }
.auth2-points { display: flex; flex-direction: column; gap: 12px; }
.auth2-points div { font-size: 15.5px; font-weight: 600; opacity: .96; }
.auth2-form { display: flex; flex-direction: column; padding: 24px 40px; }
/* logo lockup on top of the form — larger + centered */
.auth-form-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; text-decoration: none; align-self: center; text-align: center; }
.auth-form-brand .nav-logo { width: 66px; height: 66px; box-shadow: none; filter: drop-shadow(0 10px 20px rgba(24,119,242,.32)); }
.auth-form-brand .brand-stack { align-items: center; }
.auth-form-brand .nav-brand { font-size: 26px; letter-spacing: -.5px; }
.auth-form-brand .brand-slogan { font-size: 10px; letter-spacing: 2.6px; margin-top: 5px; }
.auth2-card h2 { text-align: center; }
.auth2-card .auth2-sub { text-align: center; margin-bottom: 24px; }
/* animated floating feature icons on the brand panel */
.auth2-floaties { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.floaty-icon { position: absolute; width: 60px; height: 60px; border-radius: 17px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16); animation: floaty 4.5s ease-in-out infinite; }
.floaty-icon.f1 { top: 14%; right: 12%; }
.floaty-icon.f2 { top: 30%; right: 33%; width: 50px; height: 50px; font-size: 23px; animation-delay: .7s; }
.floaty-icon.f3 { top: 58%; right: 9%; animation-delay: 1.5s; }
.floaty-icon.f4 { top: 74%; right: 30%; width: 52px; height: 52px; font-size: 24px; animation-delay: 2.2s; }
.floaty-icon.f5 { top: 46%; right: 22%; width: 46px; height: 46px; font-size: 21px; animation-delay: 1.1s; }
.auth2-brand-body, .auth2-brand .mk-brand { position: relative; z-index: 2; }
.auth2-top { display: flex; justify-content: flex-end; }
.auth2-card { margin: auto; width: 100%; max-width: 420px; }
.auth2-card h2 { font-size: 30px; font-weight: 900; letter-spacing: -.6px; }
.auth2-sub { color: var(--muted); margin: 6px 0 22px; }
.auth2-alt { text-align: center; margin-top: 18px; color: var(--muted); }
.auth2-demo { text-align: center; margin-top: 18px; padding: 12px; background: var(--input); border-radius: 12px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 1000px) {
  .mk-plans { grid-template-columns: repeat(2, 1fr); }
  .mk-features { grid-template-columns: repeat(2, 1fr); }
  .auth2 { grid-template-columns: 1fr; min-height: 100vh; }
  .auth2-brand { display: none; }
  .auth2-form { justify-content: center; }
}
@media (max-width: 560px) {
  .auth2-form { padding: 22px 20px; }
  .auth-form-brand .nav-logo { width: 58px; height: 58px; }
  .auth-form-brand .nav-brand { font-size: 23px; }
  .auth2-card h2 { font-size: 26px; }
  .auth2-card { max-width: 100%; }
}
@media (max-width: 760px) {
  .mk-hero h1 { font-size: 38px; }
  .mk-hero p { font-size: 17px; }
  .mk-sec-head h2 { font-size: 28px; }
  .mk-two, .mk-example { grid-template-columns: 1fr; }
  .mk-plans { grid-template-columns: 1fr; }
  .mk-features { grid-template-columns: 1fr; }
  .mk-links > a:not(.btn) { display: none; }
}

/* ============================================================
   THEME-AWARE SURFACES — drive light & dark from variables.
   (These override the base rules that were hardcoded light.)
   ============================================================ */
* { transition: background-color .2s ease, border-color .2s ease; }

.navbar { background: #fff; border-bottom: 1px solid var(--divider); }
.nav-search:focus { background-color: var(--card-2); box-shadow: 0 0 0 3px rgba(37,112,230,.2); }
.hamburger svg { stroke: var(--text); }
.lang-toggle { background: var(--input); }
.lang-toggle a.on { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.nav-badge { border-color: var(--card); }

/* sidebar stays navy in both themes — hover/active handled in base rules above */
.side-item.active, .side-item.active:hover { background: var(--nav-active); color: #fff; box-shadow: 0 4px 12px rgba(37,112,230,.35); }
.side-item.active .side-icon, .side-item.active:hover .side-icon { color: #fff; }

.card { background: var(--card); border: 1px solid var(--divider); }
.page-head { background: var(--card); border: 1px solid var(--divider); }
.page-head h1 { color: var(--text); }
.pill { background: var(--card); border-color: var(--divider); color: var(--muted); }
.pill.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pagination a, .pagination span { background: var(--card); }
.skeleton { background: var(--skeleton); }

.input:focus, .select:focus, .textarea:focus { background: var(--card-2); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,119,242,.18); }
select.select option { background: var(--card); color: var(--text); }

.chat-main { background: var(--chat-bg); }
.chat-head { background: var(--card); }
.chat-input-bar { background: var(--card); }
.chat-input:focus { background: var(--card-2); }
.bubble.in { background: var(--bubble-in); color: var(--text); }
.chat-item.active { background: var(--side-active); }

.product-img { background: var(--product-img); }
.product-card { border: 1px solid var(--divider); }

.comment-bubble { background: var(--input); }
.comment-reply .comment-bubble { background: var(--side-active); }

.table tbody tr:hover td { background: var(--tint); }

.toast { background: var(--text); color: var(--card); }
code { background: var(--code-bg); padding: 2px 6px; border-radius: 5px; color: var(--primary); }

.plan-chip { background: rgba(24,119,242,.12); border-color: rgba(24,119,242,.28); color: var(--primary); }
.plan-chip:hover { color: var(--primary); background: rgba(24,119,242,.2); }

/* ---- Marketing (landing / pricing) ---- */
body.mk { background: var(--mk-body); color: var(--text); }
.mk-nav { background: var(--glass); border-bottom: 1px solid var(--divider); }
.mk-links > a:not(.btn) { color: var(--text); }
.mk-hero { background: var(--mk-hero); }
.mk-hero h1 { background: var(--mk-hero-h1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-hero p { color: var(--muted); }
.mk-badge { background: var(--card); border-color: rgba(24,119,242,.3); color: var(--primary); }
.mk-mock { background: var(--card); border: 1px solid var(--divider); }
.mk-mock-body { background: var(--chat-bg); }
.mk-mock-body .bubble.in { background: var(--bubble-in); color: var(--text); }
.mk-section-alt { background: var(--mk-alt); }
.mk-sec-head p { color: var(--muted); }
.mk-col { background: var(--card); border-color: var(--divider); }
.mk-col-green { background: linear-gradient(180deg, rgba(66,183,42,.1), var(--card)); border-color: rgba(66,183,42,.4); }
.mk-col-gray { background: var(--card-2); }
.mk-line { color: var(--text); }
.mk-feat { background: var(--card); border: 1px solid var(--divider); }
.mk-plan { background: var(--card); border-color: var(--divider); }
.mk-plan-pop { border-color: var(--primary); box-shadow: 0 12px 34px rgba(24,119,242,.22); }
.mk-plan-feats li { color: var(--muted); }
.mk-ex-col { background: var(--card); border-color: var(--divider); }
.mk-footer { background: #0b0d14; color: #cbd5e1; }

/* ---- Auth split ---- */
.auth2 { background: var(--bg); }
.auth2-form { background: var(--bg-2); }
.auth2-form .input { background: var(--input); border: 1.5px solid var(--divider); }
.auth2-card h2 { color: var(--text); }
.auth-error { background: rgba(228,64,80,.12); border-color: rgba(228,64,80,.4); color: #c0344a; }
.auth2-demo { background: var(--card); }

.empty-icon { background: var(--input); }

/* ============================================================
   Theme toggle button (sun / moon)
   ============================================================ */
.theme-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--input); border: none; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; transition: .18s; }
.theme-btn:hover { background: var(--hover); transform: translateY(-1px); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .ic-sun { display: none; }
.theme-btn .ic-moon { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; color: #ffd257; }

/* ============================================================
   Responsive split helpers (collapse to 1 column on mobile)
   ============================================================ */
.split { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; }
.split-even { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.split-32 { display: grid; gap: 18px; grid-template-columns: 3fr 2fr; }
@media (max-width: 960px) {
  .split, .split-even, .split-32 { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile bottom nav (SalesUp-style) — hidden on desktop
   ============================================================ */
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: var(--glass); backdrop-filter: blur(14px);
    border-top: 1px solid var(--divider); padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0));
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--dim); font-size: 10.5px; font-weight: 600; padding: 4px 0; text-decoration: none;
  }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.active { color: var(--primary); }
  .main { padding-bottom: 84px; }
}

/* Stat cards: a touch more compact on phones */
@media (max-width: 720px) {
  .stat-value { font-size: 26px; }
  .stat-card { padding: 16px; }
}

/* ============================================================
   LANDING PAGE — sales sections + text animations
   ============================================================ */
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pricePulse { 0%,100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(-2deg) scale(1.06); } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(24,119,242,.35); } 50% { box-shadow: 0 0 0 8px rgba(24,119,242,0); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 8px 26px rgba(24,119,242,.45); } 50% { box-shadow: 0 8px 40px rgba(24,119,242,.75); } }
@keyframes textShimmer { to { background-position: 200% center; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.btn-lg { padding: 15px 30px; font-size: 17px; border-radius: 12px; }
.pulse-badge { animation: fadeUp .5s ease, badgePulse 2.4s ease-in-out infinite 1s; }
.glow-btn { animation: glowPulse 2.2s ease-in-out infinite; }

.mk-hero h1.hero-h1 { font-size: 56px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.34; margin-bottom: 22px;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: var(--text); color: var(--text);
  animation: fadeUp .55s ease .05s both; }
.mk-hero h1.hero-h1 .brand-word { background: var(--mk-hero-h1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mk-hero h1.hero-h1 .price-pop { display: inline-block; -webkit-text-fill-color: #fff; color: #fff; background: var(--grad-amber);
  padding: .02em .28em; border-radius: 12px; box-shadow: 0 6px 16px rgba(247,185,40,.4); transform: rotate(-1.5deg);
  line-height: 1.05; animation: pricePulse 2.4s ease-in-out infinite; }

/* Poster-style headline: dark heavy text + white italic punchline on a blue block */
.mk-hero h1.hero-h1.poster-h1 { line-height: 1.12; letter-spacing: -1.6px; }
.hero-h1 .ph-line { display: block; }
.hero-h1 .hl-block {
  display: inline-block; position: relative; margin-top: .2em;
  background: var(--primary); color: #fff; -webkit-text-fill-color: #fff;
  font-style: italic; font-weight: 900;
  padding: .06em .34em .13em; border-radius: 2px;
  box-shadow: 0 16px 36px rgba(24,119,242,.36);
}
html[lang="bn"] .hero-h1 .hl-block { font-style: normal; }
.hero-h1 .hl-vline { position: absolute; left: 2px; top: -38px; width: 3px; height: 38px; background: var(--primary); }
.hero-h1 .hl-dot { position: absolute; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--mk-body); }
.hero-h1 .hl-dot-tl { width: 15px; height: 15px; left: -4px; top: -50px; }
.hero-h1 .hl-dot-br { width: 18px; height: 18px; right: -17px; bottom: -17px; }
@media (max-width: 940px) {
  .hero-h1 .hl-vline, .hero-h1 .hl-dot-tl { display: none; }
}

/* Split hero layout */
.hero-split { text-align: left; padding: 56px 6vw 70px; }
.hero-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-left { position: relative; z-index: 2; }
.hero-split .mk-badge { margin-bottom: 18px; }
.hero-split .hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 6px; line-height: 1.55; }
.hero-split .rotator { text-align: left; }
.hero-split .mk-hero-cta { justify-content: flex-start; margin-top: 22px; }
.hero-split .mk-hero-note { text-align: left; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 50px; background: var(--card); border: 1.5px solid var(--divider); font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); }

.hero-right { position: relative; display: flex; flex-direction: column; gap: 16px; z-index: 2; }
/* hero cards are above the fold — show immediately with a staggered entrance */
.hero-right .reveal-scroll { opacity: 1; transform: none; animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; }
.hero-right .demo-card:nth-child(3) { animation-delay: .1s; }
.hero-right .demo-card:nth-child(4) { animation-delay: .2s; }
.hero-right .demo-card:nth-child(5) { animation-delay: .3s; }
.float-badge { position: absolute; z-index: 5; background: var(--card); border: 1.5px solid var(--divider); border-radius: 50px; padding: 9px 15px; font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: floaty 3.5s ease-in-out infinite; }
.float-badge.fb-top { top: -18px; right: 8px; }
.float-badge.fb-bot { bottom: -16px; left: -18px; animation-delay: 1.2s; }

.demo-card { background: var(--card); border: 1px solid var(--divider); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--divider); font-size: 14px; }
.demo-tag { margin-left: auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 50px; background: rgba(123,47,247,.14); color: var(--violet); white-space: nowrap; }
.demo-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; background: var(--chat-bg); }
.demo-body .bubble { max-width: 88%; font-size: 13.5px; padding: 8px 12px; }
.demo-body .bubble.in { align-self: flex-start; background: var(--bubble-in); color: var(--text); }
.demo-body .bubble.out { align-self: flex-end; }
.mk-billed { align-self: center; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--green); background: rgba(66,183,42,.14); padding: 5px 12px; border-radius: 50px; }

/* comment card */
.demo-post { padding: 12px 15px; font-size: 14px; font-weight: 600; }
.cmt-row { display: flex; gap: 8px; padding: 5px 15px; }
.cmt-row.cmt-reply { padding-left: 34px; padding-bottom: 14px; }
.cmt-av { width: 26px; height: 26px; border-radius: 50%; background: #94a3b8; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmt-bubble { background: var(--input); border-radius: 14px; padding: 8px 12px; font-size: 13px; line-height: 1.4; }
.cmt-reply .cmt-bubble { background: var(--side-active); }

/* language proof card */
.lang-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lang-title { font-weight: 800; font-size: 14.5px; }
.lang-row { display: flex; align-items: center; gap: 10px; }
.lang-flag { font-size: 22px; }
.lang-mini { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.lm-q { background: var(--input); padding: 5px 10px; border-radius: 12px; }
.lm-a { background: var(--grad-brand); color: #fff; padding: 5px 10px; border-radius: 12px; font-weight: 600; }
.lang-proof { font-size: 12.5px; font-weight: 800; color: var(--primary); text-align: center; padding-top: 4px; border-top: 1px dashed var(--divider); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-split { text-align: center; }
  .hero-split .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-split .mk-hero-cta, .hero-split .rotator, .hero-split .mk-hero-note { text-align: center; justify-content: center; }
  .hero-chips { justify-content: center; }
  .float-badge.fb-bot { left: 4px; }
  .mk-hero h1.hero-h1 { font-size: 42px; }
}

.rotator { margin-top: 4px; font-size: 17px; font-weight: 700; color: var(--muted); animation: fadeUp .7s ease .2s both; }
.rotator-pre { opacity: .8; font-weight: 600; }
.rotator-word { display: inline-block; min-width: 120px; color: var(--primary); transition: opacity .3s, transform .3s; }
.rotator-word.out { opacity: 0; transform: translateY(-8px); }

.shimmer-text { background: linear-gradient(90deg, var(--primary) 0%, #7db8ff 30%, var(--primary) 60%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: textShimmer 3s linear infinite; }

/* Stats band */
.stats-band { background: var(--grad-brand); padding: 34px 6vw; }
.stats-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-blk { text-align: center; color: #fff; }
.stat-num { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; }
.stat-cap { font-size: 14px; opacity: .92; font-weight: 600; margin-top: 2px; }

/* Price focus */
.price-focus { text-align: center; }
.pf-kicker { display: inline-block; font-weight: 800; color: var(--amber); letter-spacing: .3px; margin-bottom: 12px; }
.pf-line { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pf-pre { font-size: 26px; font-weight: 700; color: var(--muted); }
.pf-amt { font-size: 88px; font-weight: 900; letter-spacing: -3px; line-height: 1; }
.pf-unit { font-size: 20px; font-weight: 700; color: var(--muted); }
.pf-desc { max-width: 680px; margin: 18px auto 26px; font-size: 17px; color: var(--muted); line-height: 1.6; }

/* Problem / solution */
.ps-card { border-radius: 20px; padding: 28px; border: 1.5px solid var(--divider); background: var(--card); }
.ps-prob { border-color: rgba(228,64,80,.3); }
.ps-sol { border-color: rgba(66,183,42,.4); background: linear-gradient(180deg, rgba(66,183,42,.06), var(--card)); }
.ps-h { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ps-sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; min-height: 20px; }
.ps-line { padding: 11px 0; border-top: 1px solid var(--divider); font-weight: 600; }
.ps-bad { color: #d13343; }
.ps-good { color: #2e9e1f; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { position: relative; background: var(--card); border: 1.5px solid var(--divider); border-radius: 18px; padding: 30px 22px 24px; text-align: center; transition: .2s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-blue); }
.step-ic { font-size: 40px; animation: floaty 3s ease-in-out infinite; }
.step-t { font-weight: 800; font-size: 17px; margin: 10px 0 6px; }
.step-d { color: var(--muted); font-size: 14px; }

/* Comparison table */
.cmp { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; }
.cmp-table th, .cmp-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--divider); }
.cmp-table thead th { font-size: 15px; font-weight: 800; }
.cmp-table td:first-child { color: var(--muted); font-weight: 600; }
.cmp-hl { background: linear-gradient(180deg, rgba(24,119,242,.1), rgba(24,119,242,.03)); }
.cmp-table thead .cmp-hl { border-top-left-radius: 14px; border-top-right-radius: 14px; color: var(--primary); }
.cmp-table tbody tr:last-child .cmp-hl { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }

/* Testimonials */
.tsts { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tst { background: var(--card); border: 1.5px solid var(--divider); border-radius: 18px; padding: 26px; transition: .2s; }
.tst:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tst-stars { color: #f7b928; letter-spacing: 3px; font-size: 15px; }
.tst-q { font-size: 15.5px; line-height: 1.55; margin: 12px 0 18px; }
.tst-by { display: flex; align-items: center; gap: 10px; }

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1.5px solid var(--divider); border-radius: 14px; padding: 16px 20px; cursor: pointer; transition: .2s; }
.faq-item:hover { border-color: var(--primary); }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; gap: 12px; }
.faq-ic { font-size: 22px; color: var(--primary); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; color: var(--muted); font-size: 14.5px; line-height: 1.6; transition: max-height .3s ease, margin .3s ease; }
.faq-item.open .faq-a { max-height: 240px; margin-top: 12px; }

@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .steps, .tsts { grid-template-columns: 1fr; }
  .mk-features[style] { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .hero-h1 { font-size: 40px; }
  .pf-amt { font-size: 60px; }
  .pf-line { gap: 8px; }
}

/* ============================================================
   AUTH v2 — form left, blue "about the app" panel right
   ============================================================ */
.auth2-v2 { grid-template-columns: 1fr 1.05fr; }
.auth2-v2 .auth2-form { position: relative; padding: 30px 4.5% 22px; justify-content: flex-start; }
.auth2-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.auth-bar-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.auth2-v2 .auth2-card { max-width: 420px; margin: auto; width: 100%; }
.auth2-v2 .auth2-card h2, .auth2-v2 .auth2-sub { text-align: left; }
.auth2-v2 .auth2-sub { margin-bottom: 22px; }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 10px; border-radius: 12px; border: 1.5px solid var(--divider); background: var(--card); color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; position: relative; transition: .16s; font-family: inherit; }
.social-btn:hover { border-color: var(--primary); background: var(--card-2); transform: translateY(-1px); }
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.soon-pill { position: absolute; top: -9px; right: 8px; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; background: var(--grad-amber); color: #fff; padding: 2px 7px; border-radius: 50px; box-shadow: var(--shadow-sm); }
@media (max-width: 400px) { .social-btn span.lbl { display: none; } }

.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--divider); }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; padding: 0; }
.pw-eye svg { width: 20px; height: 20px; }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 2px; font-size: 13.5px; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-weight: 600; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.remember-row .fp { color: var(--primary); font-weight: 700; cursor: pointer; }

.auth-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 22px; padding-top: 4px; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--primary); }

/* ---- Blue app-detail panel ---- */
.auth2-v2 .auth2-brand { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 34px; padding: 44px 40px; overflow: hidden; }
.ab-deco { position: absolute; pointer-events: none; z-index: 0; }
.ab-deco-lines { top: 34px; right: 34px; display: grid; grid-template-columns: repeat(3, 4px); gap: 8px; }
.ab-deco-lines i { width: 4px; height: 26px; background: rgba(255,255,255,.28); border-radius: 3px; }
.ab-deco-dots { bottom: 34px; left: 34px; display: grid; grid-template-columns: repeat(6, 6px); gap: 9px; }
.ab-deco-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.28); }

.ab-mock { position: relative; width: 100%; max-width: 380px; z-index: 2; }
.ab-card { background: #fff; border-radius: 18px; box-shadow: 0 26px 54px rgba(0,0,0,.24); overflow: hidden; }
.ab-card-head { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid #eef0f4; font-weight: 800; color: #0f1419; font-size: 14px; }
.ab-tag { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 50px; background: rgba(123,47,247,.13); color: #7c3aed; white-space: nowrap; }
.ab-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f6f8fc; }
.ab-card-body .bubble { max-width: 90%; font-size: 13px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ab-card-body .bubble.in { background: #fff; color: #0f1419; align-self: flex-start; border-bottom-left-radius: 5px; }
.ab-card-body .bubble.out { align-self: flex-end; color: #fff; }
.ab-billed { align-self: center; margin-top: 2px; font-size: 11.5px; font-weight: 800; color: #16a34a; background: rgba(66,183,42,.15); padding: 5px 12px; border-radius: 50px; }
.ab-stat { position: absolute; bottom: -24px; right: -14px; background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 20px 44px rgba(0,0,0,.24); animation: floaty 4s ease-in-out infinite; }
.ab-stat-label { font-size: 10.5px; color: #667085; font-weight: 700; }
.ab-stat-val { font-size: 21px; font-weight: 900; color: #0f1419; letter-spacing: -.5px; }
.ab-stat-sub { font-size: 10.5px; color: #16a34a; font-weight: 700; }

.ab-content { position: relative; max-width: 470px; text-align: center; color: #fff; z-index: 2; }
.ab-content h2 { font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1.12; margin-bottom: 14px; }
.ab-content p { font-size: 14.5px; opacity: .93; line-height: 1.6; }
.ab-carousel { display: flex; gap: 7px; justify-content: center; margin-top: 24px; }
.ab-carousel span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.42); transition: .3s; }
.ab-carousel span.on { width: 26px; border-radius: 5px; background: #fff; }

@media (max-width: 1000px) {
  .auth2-v2 { grid-template-columns: 1fr; }
  .auth2-v2 .auth2-brand { display: none; }
  .auth2-v2 .auth2-form { padding: 24px 22px; }
  .auth2-v2 .auth2-card { margin: 24px auto; }
}

/* ============================================================
   In-page search bar + page-head actions + spacing polish
   ============================================================ */
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.page-search { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1.5px solid transparent; border-radius: 9px; padding: 0 12px; height: 36px; min-width: 200px; transition: .16s; }
.page-search:focus-within { border-color: var(--primary); background: var(--card-2); }
.page-search input { border: none; background: none; outline: none; font-size: 13.5px; width: 100%; color: var(--text); font-family: inherit; }
.page-search input::placeholder { color: var(--dim); }
.page-search svg { width: 16px; height: 16px; stroke: var(--muted); flex-shrink: 0; }
.head-filter { background: var(--input); border: 1.5px solid transparent; border-radius: 9px; padding: 0 12px; height: 36px; font-family: inherit; font-size: 13.5px; cursor: pointer; color: var(--text); }
.head-filter:focus { border-color: var(--primary); outline: none; }
.page-head .sub { margin-top: 3px; }
.card + .card-title, .grid + .card-title { margin-top: 22px; }
.empty { padding: 48px 20px; }

@media (max-width: 760px) {
  .page-head { gap: 12px; }
  .head-actions { width: 100%; }
  .page-search { flex: 1 1 auto; min-width: 0; }
  .main { padding: 16px 14px 80px; }
}

/* Print (invoice / statement) */
@media print {
  .navbar, .sidebar, .mobile-nav, .scrim, .page-head .head-actions, .no-print { display: none !important; }
  .main { margin: 0; padding: 0; }
  body { background: #fff; }
}

/* ============================================================
   Admin nav + notification dropdown + tabs
   ============================================================ */
.admin-nav { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.admin-tab { padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; transition: .15s; }
.admin-tab:hover { background: var(--input); color: var(--text); }
.admin-tab.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-blue); }
.admin-nav-mobile { display: none; }
@media (max-width: 900px) { .admin-nav { display: none; } .admin-nav-mobile { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; } }

.notif-wrap { position: relative; }
.notif-dropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 340px; max-height: 460px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--divider); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 200; display: none; }
.notif-dropdown.show { display: block; animation: slideDown .18s ease; }
.notif-head { padding: 13px 16px; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--divider); display: flex; justify-content: space-between; align-items: center; }
.notif-item { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); transition: .14s; align-items: center; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--card-2); }
.notif-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-item .nt { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.notif-item .nd { font-size: 12px; color: var(--muted); }
.notif-item .nc { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--primary); }
.notif-empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.notif-empty .empty-icon { margin: 0 auto 8px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--divider); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 18px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border: none; background: none; white-space: nowrap; font-family: inherit; transition: .15s; position: relative; }
.tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad-brand); transform: scaleX(0); transition: transform .22s cubic-bezier(.22,1,.36,1); }
.tab:hover { color: var(--text); background: var(--tint); border-radius: 9px 9px 0 0; }
.tab.active { color: var(--primary); }
.tab.active::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .2s ease; }

/* ── bKash payment method picker ── */
.pay-opt { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:9px 8px; border:1.5px solid var(--divider); border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; background:var(--bg-2); }
.pay-opt.active { border-color:#e0115f; background:rgba(224,17,95,.08); color:#e0115f; }
.pay-opt.disabled { opacity:.5; cursor:not-allowed; flex-direction:column; gap:0; }
.pay-opt.disabled em { font-size:10px; color:var(--muted); font-style:normal; }

/* ── status pill (on/off) ── */
.status-pill { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:3px 10px; border-radius:50px; }
.status-pill .dot { width:7px; height:7px; border-radius:50%; }
.status-pill.on { background:rgba(46,158,31,.12); color:#2e9e1f; }
.status-pill.on .dot { background:#2e9e1f; }
.status-pill.off { background:var(--card-2); color:var(--dim); border:1px solid var(--divider); }
.status-pill.off .dot { background:var(--dim); }

/* ── tab count badge ── */
.tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; margin-left:2px; font-size:11px; font-weight:800; border-radius:50px; background:var(--card-2); color:var(--muted); border:1px solid var(--divider); vertical-align:middle; }
.tab.active .tab-count { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ── list toolbar + view toggle ── */
.list-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.lt-controls { display:flex; gap:8px; flex-wrap:wrap; }
.view-toggle { display:inline-flex; gap:2px; background:var(--card-2); border:1px solid var(--divider); border-radius:10px; padding:3px; }
.vt-btn { width:34px; height:30px; display:flex; align-items:center; justify-content:center; border:none; background:none; border-radius:7px; cursor:pointer; color:var(--muted); }
.vt-btn svg { width:17px; height:17px; }
.vt-btn.active { background:var(--card); color:var(--primary); box-shadow:var(--shadow-sm); }

/* product cards subtler hover (minimal) */
.product-card:hover { transform:none; box-shadow:var(--shadow); border-color:var(--primary); }

/* list view: horizontal rows */
.product-grid.list { display:flex; flex-direction:column; gap:10px; }
.product-grid.list .product-card { flex-direction:row; align-items:stretch; }
.product-grid.list .product-img { width:120px; height:auto; min-height:104px; flex-shrink:0; font-size:34px; }
.product-grid.list .product-body { flex-direction:row; flex-wrap:wrap; align-items:center; gap:4px 18px; padding:12px 16px; }
.product-grid.list .product-name { font-size:15px; min-width:180px; flex:1; }
.product-grid.list .product-body > div:last-child { margin-left:auto; margin-top:0; }
@media (max-width:640px){ .product-grid.list .product-body { flex-direction:column; align-items:flex-start; } .product-grid.list .product-img { width:92px; } }

/* ── date-range filter ── */
.date-filter { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.df-label { font-size:12px; font-weight:700; color:var(--muted); }

/* ── inbox conversation filter ── */
.chat-filter { padding: 0 14px 8px; }
.chat-filter .page-search { width: 100%; }
.chat-filter-tabs { display: flex; gap: 4px; padding: 0 14px 10px; border-bottom: 1px solid var(--divider); }
.cft { flex: 1; padding: 7px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--card-2); border: 1px solid var(--divider); border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.cft:hover { color: var(--text); }
.cft.active { background: var(--side-active); color: var(--primary); border-color: var(--primary); }
.chat-list-head { font-size: 19px !important; padding: 14px 16px 8px !important; }

/* ── inbox responsiveness ── */
@media (max-width: 720px) {
  .chat-wrap { height: calc(100vh - var(--nav-h) - 96px); border-radius: var(--radius); }
  .chat-wrap:not(.show-thread) .chat-main { display: none; }
  .chat-wrap.show-thread .chat-main { display: flex; width: 100%; }
  .chat-item-last { max-width: 62vw; }
}

/* grid → single-column list variant (customers) */
.grid.list-1 { grid-template-columns: 1fr !important; }

/* ── AI customization controls (option chips, toggles, range) ── */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.opt-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 9px; border: 1.5px solid var(--divider); border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; text-align: center; background: var(--card); }
.opt-chip:hover { border-color: var(--primary); color: var(--text); }
.opt-chip.on { border-color: var(--primary); background: var(--side-active); color: var(--primary); box-shadow: 0 2px 8px rgba(37,112,230,.14); }
.opt-emo { font-size: 22px; line-height: 1; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--divider); font-size: 14px; font-weight: 600; }
.toggle-row:first-child { border-top: none; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--input); outline: none; margin: 6px 0 2px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-brand); cursor: pointer; box-shadow: 0 2px 6px rgba(37,112,230,.4); border: 2px solid #fff; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #2570e6; cursor: pointer; border: 2px solid #fff; }

/* ── AI agent identity box ── */
.agent-id-box { display:flex; gap:14px; align-items:flex-start; padding:16px; background:var(--card-2); border:1px solid var(--divider); border-radius:12px; }
.agent-avatar { width:52px; height:52px; border-radius:14px; background:var(--grad-brand); display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; box-shadow:var(--shadow-sm); }
.agent-type-row { display:flex; gap:8px; margin-top:10px; }
.agent-type { flex:1; text-align:center; padding:8px; border:1.5px solid var(--divider); border-radius:9px; font-size:13px; font-weight:700; color:var(--muted); cursor:pointer; transition:.15s; }
.agent-type.on { border-color:var(--primary); background:var(--side-active); color:var(--primary); }

/* ============================================================
   THEME UPGRADE v30 — eye-catching polish (single-accent brand)
   ============================================================ */

/* card titles get a tiny gradient tick */
.card-title::before { content: ''; width: 4px; height: 16px; border-radius: 4px; background: var(--grad-brand); flex-shrink: 0; }

/* modal: gradient top edge + softer entrance */
.modal { border-top: 3px solid transparent; background-clip: padding-box; position: relative; }
.modal::before { content: ''; position: absolute; top: -3px; left: 0; right: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, #1877f2, #7c3aed, #06b6d4); }

/* notification dropdown: glassy + accent header */
.notif-dropdown { border: 1px solid var(--divider); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(24,119,242,.05); }
.notif-head { background: linear-gradient(135deg, rgba(24,119,242,.08), rgba(124,58,237,.05)); border-radius: 12px 12px 0 0; }

/* product card: lift + zoom image */
.product-card { transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, border-color .22s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img { transition: transform .3s ease; }
.product-card:hover .product-img { transform: scale(1.03); filter: none; }
.product-card { overflow: hidden; }

/* chat head: online pulse dot next to avatar */
.chat-head .avatar { position: relative; }
.chat-head .avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #31a24c; border: 2.5px solid var(--card); animation: pulse 2.4s ease infinite; }

/* logo glow */
.nav-logo { filter: drop-shadow(0 3px 8px rgba(24,119,242,.35)); }

/* mobile bottom nav: gradient active */
.mobile-nav a.active { color: var(--primary); }
.mobile-nav a.active svg { filter: drop-shadow(0 2px 6px rgba(24,119,242,.5)); }

/* empty states: dashed brand frame */
.empty { border-radius: 12px; }
.empty-icon { filter: grayscale(.15); }

/* view-toggle active gets gradient */
.vt-btn.active { background: var(--grad-brand); color: #fff; box-shadow: 0 2px 8px rgba(24,119,242,.3); }

/* table: left accent bar slides in on row hover */
.table tbody tr { position: relative; }
.table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* toast: gradient ring */
.toast { border: 1px solid rgba(24,119,242,.35); }

/* switch (toggle) — on state glows */
.switch input:checked + .track { box-shadow: 0 0 10px rgba(24,119,242,.45); }

/* subtle grid texture behind content (light + dark aware) */
.main { position: relative; }
.main::before {
  content: ''; position: fixed; inset: var(--nav-h) 0 0 var(--side-w); pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--divider) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 55%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 55%);
}
@media (max-width: 1080px) { .main::before { left: 0; } }

/* scroll reveal stagger already exists; add gentle scale for stat grid */
.grid-4 .stat-card.reveal { animation-name: statIn; }
@keyframes statIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* free-messages note (theme aware) */
.free-note { margin-top: 12px; padding: 10px 12px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); border-radius: 10px; font-size: 13px; color: #059669; font-weight: 700; }
:root[data-theme="dark"] .free-note { color: #34d399; background: rgba(16,185,129,.12); }

/* ============================================================
   ADVANCED CHAT LAYOUT — 3-panel inbox with controls
   ============================================================ */

/* header actions */
.chat-head-actions { display: flex; align-items: center; gap: 6px; }
.ch-act { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--input); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s; }
.ch-act svg { width: 17px; height: 17px; }
.ch-act:hover { background: var(--side-active); color: var(--primary); }
.ch-bot { display: flex; align-items: center; padding: 0 4px; }

/* details panel (3rd column) */
.chat-detail { width: 0; overflow: hidden; border-left: 1px solid var(--divider); background: var(--card); display: flex; flex-direction: column; transition: width .28s cubic-bezier(.22,1,.36,1); flex-shrink: 0; }
.chat-wrap.show-detail .chat-detail { width: 292px; }
.cd-head { padding: 14px 16px; font-weight: 800; font-size: 15px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.cd-body { flex: 1; overflow-y: auto; padding: 16px; min-width: 258px; }
.cd-profile { text-align: center; margin-bottom: 14px; }
.cd-profile .avatar { margin: 0 auto 8px; }
.cd-name { font-weight: 800; font-size: 16px; }
.cd-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.cd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.cd-stats > div { background: var(--card-2); border: 1px solid var(--divider); border-radius: 10px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.cd-stats b { font-size: 14px; font-weight: 800; }
.cd-stats span { font-size: 10px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.cd-sec { border-top: 1px solid var(--divider); padding: 12px 0; }
.cd-sec-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 8px; }
.cd-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.cd-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.cd-order { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--divider); font-size: 12.5px; }
.cd-order:last-child { border-bottom: none; }
.cd-order b { display: block; font-size: 12.5px; }
.cd-order span { color: var(--dim); font-size: 11px; }
.cd-order .badge { font-size: 9.5px; padding: 2px 7px; display: inline-flex; margin-top: 2px; }
.cd-actions { display: flex; gap: 6px; padding-top: 12px; border-top: 1px solid var(--divider); }
.cd-actions > * { flex: 1; }

/* date separators */
.date-sep { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.date-sep::before, .date-sep::after { content: ''; flex: 1; height: 1px; background: var(--divider); }
.date-sep span { font-size: 11px; font-weight: 700; color: var(--dim); background: var(--card-2); border: 1px solid var(--divider); border-radius: 50px; padding: 3px 12px; }

/* scroll-to-bottom */
.scroll-bottom { position: absolute; right: 18px; bottom: 86px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--divider); background: var(--card); color: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; z-index: 5; }
.scroll-bottom.show { opacity: 1; pointer-events: auto; transform: none; }
.scroll-bottom svg { width: 16px; height: 16px; }
.chat-main { position: relative; }

/* typing indicator */
.typing-row { display: flex; align-items: center; gap: 8px; padding: 4px 16px 8px; }
.typing-bubble { background: var(--bubble-in); border-radius: 16px; padding: 10px 14px; display: flex; gap: 4px; box-shadow: var(--shadow-sm); }
.typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: typingDot 1.2s ease infinite; }
.typing-bubble span:nth-child(2) { animation-delay: .18s; }
.typing-bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot { 0%,60%,100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.typing-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* quick replies */
.quick-replies { display: flex; gap: 6px; padding: 8px 14px 0; flex-wrap: wrap; }
.qr-chip { border: 1px solid var(--divider); background: var(--card-2); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 50px; cursor: pointer; font-family: inherit; transition: .15s; }
.qr-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--tint); }

/* new-chat popover */
.newchat-pop { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 230px; background: var(--card); border: 1px solid var(--divider); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; z-index: 40; animation: slideDown .18s ease; }
.newchat-pop.show { display: block; }

/* responsive: detail panel overlays below 1100px */
@media (max-width: 1100px) {
  .chat-detail { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: var(--shadow-lg); }
  .chat-wrap { position: relative; }
  .chat-wrap.show-detail .chat-detail { width: 300px; }
}
@media (max-width: 720px) {
  .chat-wrap.show-detail .chat-detail { width: 100%; border-left: none; }
  .scroll-bottom { bottom: 78px; right: 12px; }
}

/* ── comment moderation controls ── */
.com-act { border: none; background: var(--card-2); border-radius: 7px; width: 26px; height: 24px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .14s; border: 1px solid var(--divider); }
.com-act:hover { border-color: var(--primary); background: var(--tint); }
.com-act.danger:hover { border-color: var(--red); background: rgba(228,64,80,.1); }
.com-edit { display: flex; gap: 6px; margin-top: 8px; }
