/* Main application stylesheet extracted from the live page without visual changes. */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --bg:#F6F6F8;
  --bg-2:#FBFBFD;
  --panel:#FFFFFF;
  --border:#F5F5F7;
  --border-strong:#ECECF1;
  --border-hard:#E2E2E9;
  --text:#111827;
  --text-2:#374151;
  --muted:#6B7280;
  --muted-2:#9CA3AF;
  --accent:#4F46E5;
  --accent-2:#6366F1;
  --accent-soft:#EEF0FF;
  --accent-ink:#3730A3;
  --green:#0EA47A;
  --green-soft:#E6F7F1;
  --red:#E5484D;
  --red-soft:#FDECEC;
  --amber:#B45309;
  --amber-soft:#FEF4E6;
  --sky:#0369A1;
  --sky-soft:#E8F3FB;
  --violet:#6D28D9;
  --violet-soft:#F2ECFE;
  --radius-xl:22px;
  --radius-lg:16px;
  --radius:12px;
  --radius-sm:9px;
  --shadow-xs:0 1px 2px rgba(17,24,39,.04);
  --shadow-sm:0 1px 2px rgba(17,24,39,.04), 0 2px 8px rgba(17,24,39,.04);
  --shadow-lift:0 20px 40px rgba(0,0,0,.03), 0 2px 6px rgba(17,24,39,.03);
  --shadow-pop:0 24px 60px rgba(17,24,39,.14), 0 4px 14px rgba(17,24,39,.06);
  --sidebar-w:266px;
  --ease:cubic-bezier(.22,.75,.28,1);
}

/* ============================================================
   BASE / RESET / TEXT SMOOTHING
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(1200px 620px at 88% -8%, #EEF0FF 0%, rgba(238,240,255,0) 62%),
    radial-gradient(900px 520px at -10% 8%, #F2F7FF 0%, rgba(242,247,255,0) 58%),
    var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:14px;
  line-height:1.55;
  letter-spacing:-0.011em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-feature-settings:"kern" 1, "liga" 1, "cv11" 1;
}
h1,h2,h3,h4,h5{ margin:0; font-weight:650; letter-spacing:-0.022em; color:var(--text); }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }
input,select,textarea{ font:inherit; color:inherit; }
svg{ display:block; }
.hidden{ display:none !important; }
::selection{ background:#DDE1FF; }

/* Scrollbars */
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-thumb{ background:#DCDCE4; border-radius:99px; border:3px solid transparent; background-clip:content-box; }
*::-webkit-scrollbar-thumb:hover{ background:#C7C7D2; background-clip:content-box; }
*::-webkit-scrollbar-track{ background:transparent; }

.ico{ width:18px; height:18px; flex:none; }
.ico-sm{ width:15px; height:15px; }
.ico-lg{ width:22px; height:22px; }

/* ============================================================
   SHELL LAYOUT
   ============================================================ */
.shell{
  display:grid;
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
  min-height:100vh;
}
.sidebar{
  position:sticky; top:0; align-self:start;
  height:100vh;
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-right:1px solid var(--border-strong);
  z-index:50;
}
.sidebar__brand{
  display:flex; align-items:center; gap:11px;
  padding:20px 18px 18px;
  border-bottom:1px solid var(--border);
}
.brand-mark{
  width:38px; height:38px; border-radius:11px;
  display:grid; place-items:center;
  background:linear-gradient(140deg,#6366F1 0%, #4F46E5 55%, #4338CA 100%);
  color:#fff; font-weight:800; font-size:15px; letter-spacing:-0.04em;
  box-shadow:0 8px 18px rgba(79,70,229,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-text{ min-width:0; }
.brand-text b{ display:block; font-size:14.5px; font-weight:700; letter-spacing:-0.03em; }
.brand-text span{ display:block; font-size:10.5px; color:var(--muted-2); letter-spacing:.05em; text-transform:uppercase; font-weight:600; }

.sidebar__nav{ flex:1; overflow-y:auto; padding:12px 12px 22px; }
.nav-label{
  font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted-2); padding:14px 10px 7px;
}
.nav-item{
  display:flex; align-items:center; gap:11px;
  width:100%; padding:9.5px 11px; margin-bottom:2px;
  border:1px solid transparent; border-radius:var(--radius-sm);
  background:transparent; cursor:pointer; text-align:left;
  color:var(--text-2); font-size:13.4px; font-weight:540;
  transition:background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.nav-item .ico{ color:var(--muted); transition:color .18s var(--ease); }
.nav-item:hover{ background:#F7F7FB; color:var(--text); }
.nav-item:hover .ico{ color:var(--accent); }
.nav-item.is-active{
  background:linear-gradient(180deg,#F3F4FF 0%, #EDEFFF 100%);
  border-color:#E2E4FF;
  color:var(--accent-ink);
  font-weight:640;
  box-shadow:inset 0 1px 0 #fff, 0 1px 2px rgba(79,70,229,.07);
}
.nav-item.is-active .ico{ color:var(--accent); }
.nav-item__chev{ margin-left:auto; color:var(--muted-2); transition:transform .25s var(--ease); }
.nav-item.is-open .nav-item__chev{ transform:rotate(90deg); }
.nav-sub{ padding:2px 0 6px 12px; margin-left:16px; border-left:1.5px solid var(--border-hard); }
.nav-sub .nav-item{
  font-size:12.9px; padding:7.5px 10px; font-weight:520; color:var(--muted);
}
.nav-sub .nav-item.is-active{ background:#F5F6FF; color:var(--accent-ink); border-color:#E6E8FF; }
.nav-sub .nav-item::before{
  content:""; width:5px; height:5px; border-radius:99px; background:#D3D6E2; flex:none;
  transition:background .18s var(--ease);
}
.nav-sub .nav-item.is-active::before{ background:var(--accent); }
.sidebar__foot{ padding:12px; border-top:1px solid var(--border); }

/* ============================================================
   MAIN + TOPBAR
   ============================================================ */
.main{ min-width:0; display:flex; flex-direction:column; }
.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:14px;
  padding:12px 26px;
  background:rgba(251,251,253,.82);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--border-strong);
}
.topbar__greet{ min-width:0; }
.topbar__greet b{ font-size:14.5px; font-weight:680; letter-spacing:-0.02em; display:block; }
.topbar__greet span{ font-size:11.5px; color:var(--muted-2); }
.topbar__spacer{ flex:1; }

.searchbox{
  position:relative; width:min(320px, 34vw);
}
.searchbox .ico{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted-2); }
.searchbox input{
  width:100%; padding:9.5px 12px 9.5px 37px;
  border:1px solid var(--border-hard); border-radius:11px;
  background:#fff; font-size:13px; outline:none;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.searchbox input::placeholder{ color:var(--muted-2); }
.searchbox input:focus{ border-color:#C7CBFF; box-shadow:0 0 0 4px rgba(99,102,241,.12); }
.search-results{
  position:absolute; top:calc(100% + 8px); left:0; right:0;
  background:#fff; border:1px solid var(--border-hard); border-radius:14px;
  box-shadow:var(--shadow-pop); padding:6px; max-height:340px; overflow:auto; z-index:80;
}
.search-results__item{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px; cursor:pointer;
}
.search-results__item:hover{ background:#F6F7FB; }
.search-results__item small{ display:block; color:var(--muted-2); font-size:11.5px; }
.search-results__empty{ padding:14px; text-align:center; color:var(--muted-2); font-size:12.5px; }

.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:99px; font-size:11.5px; font-weight:650;
  letter-spacing:-0.005em; white-space:nowrap;
}
.pill--plan{ background:var(--accent-soft); color:var(--accent-ink); border:1px solid #E3E5FF; }
.pill--expiry{ background:#F5F5F8; color:var(--muted); border:1px solid var(--border-hard); }

.avatar{
  width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center; font-weight:700; font-size:13px; color:#fff;
  background:linear-gradient(140deg,#6366F1,#4338CA);
  box-shadow:0 4px 12px rgba(79,70,229,.25), inset 0 1px 0 rgba(255,255,255,.3);
  flex:none;
}
.avatar--sm{ width:30px; height:30px; font-size:11.5px; }
.avatar--lg{ width:52px; height:52px; font-size:17px; }

.icon-btn{
  width:34px; height:34px; border-radius:10px; display:grid; place-items:center;
  background:#fff; border:1px solid var(--border-hard); color:var(--muted);
  cursor:pointer; transition:all .18s var(--ease); flex:none;
}
.icon-btn:hover{ color:var(--accent); border-color:#D9DCFF; background:#FAFAFF; transform:translateY(-1px); }
.icon-btn--danger:hover{ color:var(--red); border-color:#FBD5D5; background:#FFF8F8; }
.icon-btn .ico{ width:16px; height:16px; }

/* ============================================================
   CONTENT / BENTO
   ============================================================ */
.content{ padding:24px 26px 60px; max-width:1560px; width:100%; margin:0 auto; }
.page-head{ display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.page-head h2{ font-size:22px; letter-spacing:-0.03em; }
.page-head p{ color:var(--muted); font-size:13px; margin-top:3px; }
.page-head__actions{ margin-left:auto; display:flex; gap:9px; flex-wrap:wrap; }

.bento{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:18px; }
.col-2{ grid-column:span 2; } .col-3{ grid-column:span 3; }
.col-4{ grid-column:span 4; } .col-5{ grid-column:span 5; }
.col-6{ grid-column:span 6; } .col-7{ grid-column:span 7; }
.col-8{ grid-column:span 8; } .col-9{ grid-column:span 9; }
.col-12{ grid-column:span 12; }

.card{
  background:var(--panel);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  transition:transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
  will-change:transform;
}
@media (hover:hover){
  .card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-lift);
    border-color:var(--border-hard);
  }
}
.card--flat:hover{ transform:none; box-shadow:var(--shadow-sm); }
.card--pad{ padding:20px; }
.card__head{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:16px 20px; border-bottom:1px solid var(--border);
}
.card__head h3{ font-size:14.5px; letter-spacing:-0.02em; }
.card__head p{ font-size:12px; color:var(--muted-2); margin-top:2px; }
.card__head-actions{ margin-left:auto; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.card__body{ padding:18px 20px; }
.card__body--tight{ padding:0; }

/* Stat tiles */
.stat{ display:flex; flex-direction:column; gap:12px; padding:18px; min-height:118px; }
.stat__top{ display:flex; align-items:center; gap:10px; }
.stat__ico{
  width:36px; height:36px; border-radius:11px; display:grid; place-items:center; flex:none;
}
.stat__ico .ico{ width:17px; height:17px; }
.stat__label{ font-size:12px; color:var(--muted); font-weight:600; letter-spacing:.005em; }
.stat__value{ font-size:29px; font-weight:720; letter-spacing:-0.045em; line-height:1; }
.stat__foot{ display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--muted-2); }
.trend{ display:inline-flex; align-items:center; gap:3px; font-weight:680; font-size:11.5px; }
.trend--up{ color:var(--green); } .trend--down{ color:var(--red); }

.tone-indigo{ background:var(--accent-soft); color:var(--accent); }
.tone-green{ background:var(--green-soft); color:var(--green); }
.tone-amber{ background:var(--amber-soft); color:var(--amber); }
.tone-red{ background:var(--red-soft); color:var(--red); }
.tone-sky{ background:var(--sky-soft); color:var(--sky); }
.tone-violet{ background:var(--violet-soft); color:var(--violet); }
.tone-gray{ background:#F4F4F7; color:var(--muted); }

/* Chart */
.chart{ display:flex; align-items:flex-end; gap:12px; height:186px; padding:8px 4px 0; }
.chart__col{ flex:1; display:flex; flex-direction:column; align-items:center; gap:9px; height:100%; justify-content:flex-end; }
.chart__bar{
  width:100%; max-width:40px; border-radius:9px 9px 5px 5px;
  background:linear-gradient(180deg,#8B8DF7 0%, #4F46E5 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
  transition:height .6s var(--ease), filter .2s var(--ease);
  min-height:6px;
}
.chart__col:hover .chart__bar{ filter:brightness(1.08); }
.chart__lbl{ font-size:11px; color:var(--muted-2); font-weight:600; }

/* Progress */
.progress{ height:7px; border-radius:99px; background:#F1F1F6; overflow:hidden; }
.progress > i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#6366F1,#4F46E5); transition:width .7s var(--ease); }
.progress--green > i{ background:linear-gradient(90deg,#34D399,#0EA47A); }
.progress--amber > i{ background:linear-gradient(90deg,#FBBF24,#D97706); }

.metric-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid var(--border); }
.metric-row:last-child{ border-bottom:0; }
.metric-row__label{ font-size:13px; color:var(--text-2); font-weight:540; }
.metric-row__value{ font-size:14px; font-weight:700; letter-spacing:-0.02em; }

/* ============================================================
   TABS / CHIPS / BADGES
   ============================================================ */
.tabs{
  display:flex; gap:6px; padding:5px; background:#F4F4F8; border:1px solid var(--border-strong);
  border-radius:13px; overflow-x:auto; scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; }
.tab{
  padding:8px 14px; border-radius:9px; border:1px solid transparent; background:transparent;
  font-size:12.8px; font-weight:600; color:var(--muted); cursor:pointer; white-space:nowrap;
  transition:all .2s var(--ease);
}
.tab:hover{ color:var(--text); }
.tab.is-active{
  background:#fff; color:var(--accent-ink); border-color:var(--border-hard);
  box-shadow:0 1px 2px rgba(17,24,39,.06);
}

.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 13px; border-radius:99px; font-size:12.4px; font-weight:600;
  border:1px solid var(--border-hard); background:#fff; color:var(--muted); cursor:pointer;
  transition:all .2s var(--ease);
}
.chip:hover{ border-color:#D9DCFF; color:var(--accent-ink); transform:translateY(-1px); }
.chip.is-active{ background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 6px 14px rgba(79,70,229,.22); }

.badge{
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:99px; font-size:11px; font-weight:680;
  letter-spacing:.015em; white-space:nowrap;
}
.badge--green{ background:var(--green-soft); color:var(--green); }
.badge--gray{ background:#F3F3F7; color:var(--muted); }
.badge--red{ background:var(--red-soft); color:var(--red); }
.badge--amber{ background:var(--amber-soft); color:var(--amber); }
.badge--indigo{ background:var(--accent-soft); color:var(--accent-ink); }
.badge--sky{ background:var(--sky-soft); color:var(--sky); }
.badge--violet{ background:var(--violet-soft); color:var(--violet); }
.badge__dot{ width:6px; height:6px; border-radius:99px; background:currentColor; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:9.5px 16px; border-radius:11px; border:1px solid var(--border-hard);
  background:#fff; color:var(--text-2); font-size:13px; font-weight:620; cursor:pointer;
  transition:all .2s var(--ease); white-space:nowrap; letter-spacing:-0.01em;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(17,24,39,.07); border-color:var(--border-hard); color:var(--text); }
.btn:active{ transform:translateY(0); }
.btn .ico{ width:16px; height:16px; }
.btn--primary{
  background:linear-gradient(180deg,#6366F1 0%, #4F46E5 100%);
  border-color:#4F46E5; color:#fff;
  box-shadow:0 8px 18px rgba(79,70,229,.24), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary:hover{ color:#fff; box-shadow:0 12px 24px rgba(79,70,229,.3), inset 0 1px 0 rgba(255,255,255,.22); }
.btn--ghost{ background:#fff; color:var(--muted); }
.btn--soft{ background:var(--accent-soft); border-color:#E3E5FF; color:var(--accent-ink); }
.btn--danger{ background:var(--red); border-color:var(--red); color:#fff; box-shadow:0 8px 18px rgba(229,72,77,.22); }
.btn--danger:hover{ color:#fff; }
.btn--sm{ padding:7px 12px; font-size:12.2px; border-radius:9px; }
.btn--block{ width:100%; }
.btn[disabled]{ opacity:.55; pointer-events:none; }

/* ============================================================
   FORMS
   ============================================================ */
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field label{ font-size:12.2px; font-weight:640; color:var(--text-2); letter-spacing:-0.005em; }
.field .req{ color:var(--red); }
.input{
  width:100%; padding:10.5px 13px;
  border:1px solid var(--border-hard); border-radius:11px; background:#fff;
  font-size:13.2px; outline:none; color:var(--text);
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.input::placeholder{ color:var(--muted-2); }
.input:hover{ border-color:#DCDCE6; }
.input:focus{ border-color:#BFC4FF; box-shadow:0 0 0 4px rgba(99,102,241,.12); }
select.input{ appearance:none; background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:15px; padding-right:36px; }
textarea.input{ resize:vertical; min-height:96px; line-height:1.6; }
.hint{ font-size:11.4px; color:var(--muted-2); }
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.form-grid .field--full{ grid-column:1 / -1; }
.checks{ display:flex; flex-wrap:wrap; gap:8px; }
.check{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px;
  border:1px solid var(--border-hard); border-radius:10px; background:#fff;
  font-size:12.5px; font-weight:560; color:var(--text-2); cursor:pointer;
  transition:all .18s var(--ease);
}
.check:hover{ border-color:#D9DCFF; background:#FAFAFF; }
.check input{ accent-color:var(--accent); width:15px; height:15px; }
.inline-form{ display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.inline-form .field{ margin-bottom:0; flex:1; min-width:180px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap{ width:100%; overflow-x:auto; }
.table{ width:100%; border-collapse:separate; border-spacing:0; font-size:13.1px; }
.table thead th{
  position:sticky; top:0; z-index:1;
  background:#FBFBFD;
  text-align:left; font-size:10.8px; font-weight:720; letter-spacing:.075em; text-transform:uppercase;
  color:var(--muted-2); padding:12px 18px; border-bottom:1px solid var(--border-strong);
  white-space:nowrap;
}
.table tbody td{
  padding:13px 18px; border-bottom:1px solid var(--border); color:var(--text-2); vertical-align:middle;
}
.table tbody tr{ transition:background .16s var(--ease); }
.table tbody tr:hover{ background:#FBFBFE; }
.table tbody tr:last-child td{ border-bottom:0; }
.table .cell-strong{ font-weight:640; color:var(--text); letter-spacing:-0.012em; }
.table .cell-muted{ color:var(--muted-2); font-size:12.2px; }
.table .num{ font-variant-numeric:tabular-nums; color:var(--muted); font-weight:600; }
.cell-user{ display:flex; align-items:center; gap:10px; }
.cell-user b{ font-weight:620; color:var(--text); font-size:13px; }
.cell-user small{ display:block; color:var(--muted-2); font-size:11.4px; }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; }
.empty{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:46px 20px; color:var(--muted-2); font-size:13px; text-align:center;
}
.empty .ico{ width:26px; height:26px; color:#D6D6E0; }
.table-foot{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:14px 20px; border-top:1px solid var(--border); font-size:12.4px; color:var(--muted);
}
.table-foot .pager{ margin-left:auto; display:flex; gap:6px; }
.pager button{
  min-width:32px; height:32px; padding:0 10px; border-radius:9px; border:1px solid var(--border-hard);
  background:#fff; cursor:pointer; font-size:12.4px; font-weight:600; color:var(--muted);
  transition:all .18s var(--ease);
}
.pager button:hover{ border-color:#D9DCFF; color:var(--accent); }
.pager button.is-active{ background:var(--accent); border-color:var(--accent); color:#fff; }

/* ============================================================
   MISC BLOCKS
   ============================================================ */
.list{ display:flex; flex-direction:column; }
.list__item{
  display:flex; align-items:center; gap:13px; padding:13px 20px;
  border-bottom:1px solid var(--border); transition:background .16s var(--ease);
}
.list__item:last-child{ border-bottom:0; }
.list__item:hover{ background:#FBFBFE; }
.list__main{ min-width:0; flex:1; }
.list__main b{ display:block; font-size:13.2px; font-weight:620; color:var(--text); letter-spacing:-0.012em; }
.list__main small{ display:block; color:var(--muted-2); font-size:11.8px; margin-top:2px; }

.kv{ display:grid; grid-template-columns:auto 1fr; gap:9px 20px; font-size:13px; }
.kv dt{ color:var(--muted-2); font-weight:600; font-size:12.2px; }
.kv dd{ margin:0; color:var(--text); font-weight:560; }

.note{
  display:flex; gap:11px; padding:13px 15px; border-radius:12px;
  background:#FAFAFD; border:1px solid var(--border-strong); font-size:12.6px; color:var(--muted);
}
.note .ico{ color:var(--accent); margin-top:1px; }

.webhook{
  display:flex; align-items:center; gap:12px; padding:13px 15px;
  border:1px dashed var(--border-hard); border-radius:12px; background:#FCFCFE; font-size:12.6px;
  word-break:break-all;
}
.webhook code{ font-family:ui-monospace, SFMono-Regular, Menlo, monospace; color:var(--text-2); font-size:12.2px; }

.accordion{ border-bottom:1px solid var(--border); }
.accordion:last-child{ border-bottom:0; }
.accordion__head{
  width:100%; display:flex; align-items:center; gap:12px; padding:16px 20px;
  background:transparent; border:0; cursor:pointer; text-align:left; transition:background .16s var(--ease);
}
.accordion__head:hover{ background:#FBFBFE; }
.accordion__head b{ font-size:13.3px; font-weight:620; letter-spacing:-0.012em; }
.accordion__head .ico:last-child{ margin-left:auto; color:var(--muted-2); transition:transform .25s var(--ease); }
.accordion.is-open .accordion__head .ico:last-child{ transform:rotate(180deg); }
.accordion__body{ display:none; padding:0 20px 18px 52px; color:var(--muted); font-size:12.9px; line-height:1.65; }
.accordion.is-open .accordion__body{ display:block; }

.template-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; }
.tpl{
  border:1px solid var(--border-strong); border-radius:14px; overflow:hidden; background:#fff;
  transition:all .3s var(--ease); cursor:pointer;
}
.tpl:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); border-color:var(--border-hard); }
.tpl__thumb{
  height:112px; display:grid; place-items:center; padding:14px; text-align:center;
  background:linear-gradient(140deg,#F7F8FF,#EEF0FF); color:var(--accent-ink);
}
.tpl__thumb span{ font-size:13px; font-weight:700; letter-spacing:-0.02em; }
.tpl__body{ padding:13px 15px; border-top:1px solid var(--border); }
.tpl__body b{ display:block; font-size:12.9px; font-weight:640; }
.tpl__body small{ color:var(--muted-2); font-size:11.4px; }

.vars{ display:flex; flex-wrap:wrap; gap:7px; }
.var{
  padding:6px 11px; border-radius:8px; border:1px dashed #C9CCFF; background:#F7F8FF;
  color:var(--accent-ink); font-size:11.8px; font-weight:640; cursor:pointer;
  transition:all .18s var(--ease);
}
.var:hover{ background:#EEF0FF; transform:translateY(-1px); }

.counter{ font-size:11.6px; color:var(--muted-2); font-weight:640; font-variant-numeric:tabular-nums; }
.counter.is-over{ color:var(--red); }

.upload-zone{
  border:1.6px dashed var(--border-hard); border-radius:14px; padding:34px 20px;
  text-align:center; background:#FCFCFE; transition:all .22s var(--ease); cursor:pointer;
}
.upload-zone:hover{ border-color:#C9CCFF; background:#FAFAFF; }
.upload-zone .ico{ width:28px; height:28px; color:#C6C9DA; margin:0 auto 10px; }
.upload-zone b{ display:block; font-size:13.4px; font-weight:640; }
.upload-zone small{ color:var(--muted-2); font-size:11.8px; }

/* ============================================================
   AUTH SCREEN
   ============================================================ */
.auth{
  min-height:100vh; display:grid;
  grid-template-columns:1.05fr .95fr;
}
.auth__brand{
  position:relative; overflow:hidden;
  padding:56px 56px 46px;
  display:flex; flex-direction:column; justify-content:center;
  background:
    radial-gradient(700px 460px at 12% 8%, #EEF0FF 0%, rgba(238,240,255,0) 60%),
    radial-gradient(600px 520px at 92% 92%, #E9F7F2 0%, rgba(233,247,242,0) 62%),
    #FFFFFF;
  border-right:1px solid var(--border-strong);
}
.auth__brand h1{
  font-size:38px; line-height:1.14; letter-spacing:-0.04em; margin:30px 0 14px; max-width:12ch;
}
.auth__brand p{ color:var(--muted); font-size:14.5px; max-width:44ch; line-height:1.7; }
.auth__points{ list-style:none; padding:0; margin:30px 0 0; display:flex; flex-direction:column; gap:13px; }
.auth__points li{ display:flex; align-items:center; gap:11px; font-size:13.4px; color:var(--text-2); font-weight:540; }
.tick{
  width:22px; height:22px; border-radius:99px; display:grid; place-items:center; flex:none;
  background:var(--green-soft); color:var(--green);
}
.tick .ico{ width:12px; height:12px; }
.auth__panel{
  display:flex; align-items:center; justify-content:center; padding:44px 30px;
}
.auth__card{ width:100%; max-width:430px; padding:28px; }
.auth__card h2{ font-size:21px; letter-spacing:-0.03em; }
.auth__card > p.sub{ color:var(--muted); font-size:13px; margin-top:6px; margin-bottom:20px; }
.seg{
  display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:5px;
  background:#F4F4F8; border:1px solid var(--border-strong); border-radius:12px; margin-bottom:22px;
}
.seg__btn{
  padding:9px; border-radius:9px; border:1px solid transparent; background:transparent;
  font-size:12.8px; font-weight:640; color:var(--muted); cursor:pointer; transition:all .2s var(--ease);
}
.seg__btn.is-active{ background:#fff; color:var(--accent-ink); border-color:var(--border-hard); box-shadow:0 1px 2px rgba(17,24,39,.06); }
.auth__foot{ margin-top:18px; text-align:center; font-size:12.6px; color:var(--muted); }
.auth__foot button{ background:none; border:0; color:var(--accent); font-weight:660; cursor:pointer; font-size:12.6px; padding:0; }
.auth__foot button:hover{ text-decoration:underline; }
.otp-row{ display:flex; gap:9px; justify-content:space-between; margin-bottom:16px; }
.otp-row input{
  width:100%; aspect-ratio:1/1.08; text-align:center; font-size:19px; font-weight:700;
  border:1px solid var(--border-hard); border-radius:12px; outline:none; background:#fff;
  transition:all .2s var(--ease);
}
.otp-row input:focus{ border-color:#BFC4FF; box-shadow:0 0 0 4px rgba(99,102,241,.12); }
.divider{ display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--muted-2); font-size:11.5px; font-weight:600; }
.divider::before,.divider::after{ content:""; flex:1; height:1px; background:var(--border-strong); }

/* ============================================================
   TOASTS
   ============================================================ */
#toast-root{
  position:fixed; top:18px; right:18px; z-index:200;
  display:flex; flex-direction:column; gap:11px; pointer-events:none;
  width:min(360px, calc(100vw - 36px));
}
.toast{
  pointer-events:auto;
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 14px 14px 15px;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border:1px solid var(--border-hard);
  border-radius:14px;
  box-shadow:var(--shadow-pop);
  opacity:0; transform:translateY(-12px) scale(.97);
  transition:opacity .28s var(--ease), transform .28s var(--ease);
}
.toast.is-in{ opacity:1; transform:translateY(0) scale(1); }
.toast__ico{
  width:32px; height:32px; border-radius:10px; display:grid; place-items:center; flex:none;
}
.toast__ico .ico{ width:16px; height:16px; }
.toast--success .toast__ico{ background:var(--green-soft); color:var(--green); }
.toast--error .toast__ico{ background:var(--red-soft); color:var(--red); }
.toast--info .toast__ico{ background:var(--accent-soft); color:var(--accent); }
.toast__body{ flex:1; min-width:0; }
.toast__title{ font-size:13px; font-weight:680; letter-spacing:-0.015em; }
.toast__msg{ font-size:12.4px; color:var(--muted); margin-top:2px; word-break:break-word; }
.toast__x{
  background:none; border:0; cursor:pointer; color:var(--muted-2); font-size:17px; line-height:1;
  padding:2px 4px; border-radius:7px; transition:all .18s var(--ease);
}
.toast__x:hover{ background:#F3F3F7; color:var(--text); }
.toast::after{
  content:""; position:absolute; left:0; bottom:0; height:3px; width:100%;
  border-radius:0 0 14px 14px; background:currentColor; opacity:.5;
}
.toast--success{ color:var(--green); }
.toast--error{ color:var(--red); }
.toast--info{ color:var(--accent); }

/* ============================================================
   MODAL
   ============================================================ */
.overlay{
  position:fixed; inset:0; z-index:150;
  background:rgba(17,24,39,.32);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:22px;
  opacity:0; transition:opacity .24s var(--ease);
  overflow-y:auto;
}
.overlay.is-in{ opacity:1; }
.modal{
  width:100%; max-width:600px; background:#fff; border-radius:18px;
  border:1px solid var(--border-strong); box-shadow:var(--shadow-pop);
  transform:translateY(14px) scale(.98); transition:transform .3s var(--ease);
  margin:auto; overflow:hidden;
}
.overlay.is-in .modal{ transform:translateY(0) scale(1); }
.modal--sm{ max-width:440px; }
.modal__head{
  display:flex; align-items:flex-start; gap:14px; padding:20px 22px 16px;
  border-bottom:1px solid var(--border);
}
.modal__head h3{ font-size:16px; letter-spacing:-0.025em; }
.modal__head p{ color:var(--muted); font-size:12.6px; margin-top:4px; }
.modal__head .icon-btn{ margin-left:auto; }
.modal__body{ padding:20px 22px 4px; max-height:min(62vh, 620px); overflow-y:auto; }
.modal__foot{
  display:flex; justify-content:flex-end; gap:10px; padding:16px 22px 20px;
  border-top:1px solid var(--border); background:#FCFCFE;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.menu-btn{ display:none; }
.scrim{
  position:fixed; inset:0; background:rgba(17,24,39,.35); z-index:45;
  opacity:0; pointer-events:none; transition:opacity .25s var(--ease);
}
.scrim.is-in{ opacity:1; pointer-events:auto; }

@media (max-width:1280px){
  .col-3{ grid-column:span 6; }
  .col-4{ grid-column:span 6; }
  .col-5{ grid-column:span 12; }
  .col-7{ grid-column:span 12; }
  .col-8{ grid-column:span 12; }
  .col-9{ grid-column:span 12; }
}
@media (max-width:1024px){
  .shell{ grid-template-columns:minmax(0,1fr); }
  .sidebar{
    position:fixed; left:0; top:0; bottom:0; width:280px;
    transform:translateX(-102%); transition:transform .32s var(--ease);
    box-shadow:0 24px 60px rgba(17,24,39,.16);
  }
  .sidebar.is-open{ transform:none; }
  .menu-btn{ display:grid; }
  .content{ padding:20px 18px 60px; }
  .topbar{ padding:11px 16px; }
  .auth{ grid-template-columns:1fr; }
  .auth__brand{ display:none; }
  .searchbox{ width:min(260px, 42vw); }
}
@media (max-width:760px){
  .col-2,.col-3,.col-4,.col-6{ grid-column:span 12; }
  .form-grid{ grid-template-columns:1fr; }
  .page-head h2{ font-size:19px; }
  .searchbox{ display:none; }
  .auth__panel{ padding:26px 16px; }
  .auth__card{ padding:22px; }
  .stat__value{ font-size:25px; }
  .modal__foot{ flex-direction:column-reverse; }
  .modal__foot .btn{ width:100%; }
}


/* ============================================================
   REFERENCE UI POLISH
   Presentation-only overrides for the Leadmanage.in-inspired UI.
   Existing selectors, IDs, JS hooks and component names remain intact.
   ============================================================ */

:root{
  --bg:#F6F6F8;
  --bg-2:#FBFBFD;
  --panel:#FFFFFF;
  --border:#F1F1F5;
  --border-strong:#E7E7EE;
  --border-hard:#DCDCE6;
  --text:#111827;
  --text-2:#374151;
  --muted:#6B7280;
  --muted-2:#9CA3AF;
  --accent:#4F46E5;
  --accent-2:#6366F1;
  --accent-soft:#EEF0FF;
  --accent-ink:#3730A3;
  --green:#0EA47A;
  --green-soft:#E6F7F1;
  --red:#E5484D;
  --red-soft:#FDECEC;
  --amber:#B45309;
  --amber-soft:#FEF4E6;
  --sky:#0369A1;
  --sky-soft:#E8F3FB;
  --violet:#6D28D9;
  --violet-soft:#F2ECFE;
  --radius-xl:22px;
  --radius-lg:16px;
  --radius:12px;
  --radius-sm:9px;
  --shadow-xs:0 1px 2px rgba(17,24,39,.04);
  --shadow-sm:0 1px 2px rgba(17,24,39,.04),0 4px 12px rgba(17,24,39,.035);
  --shadow-lift:0 18px 44px rgba(17,24,39,.055),0 3px 10px rgba(17,24,39,.035);
  --shadow-pop:0 24px 60px rgba(17,24,39,.16),0 6px 18px rgba(17,24,39,.06);
  --sidebar-w:266px;
  --ease:cubic-bezier(.22,.75,.28,1);
}

body{
  background:
    radial-gradient(900px 500px at 100% -10%,rgba(99,102,241,.09),transparent 62%),
    radial-gradient(760px 460px at -8% 12%,rgba(79,70,229,.045),transparent 60%),
    var(--bg);
}

/* Sidebar */
.sidebar{
  background:rgba(255,255,255,.90);
  border-right-color:#E8E8EF;
}
.sidebar__brand{
  padding:18px 18px 17px;
  background:rgba(255,255,255,.72);
}
.sidebar__nav{
  padding:14px 11px 22px;
}
.nav-label{
  color:#A1A1AE;
}
.nav-item{
  min-height:40px;
  border-radius:10px;
}
.nav-item:hover{
  background:#F7F7FC;
}
.nav-item.is-active{
  background:linear-gradient(180deg,#F1F2FF 0%,#E9EBFF 100%);
  border-color:#E0E2FF;
  color:var(--accent-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 3px rgba(79,70,229,.08);
}
.nav-sub .nav-item.is-active{
  background:#F5F6FF;
  border-color:#E4E6FF;
}

/* Topbar */
.topbar{
  min-height:64px;
  background:rgba(251,251,253,.84);
  border-bottom-color:#E8E8EF;
}
.topbar__greet b{
  font-size:14px;
}
.searchbox input{
  border-color:#E0E0E8;
  background:rgba(255,255,255,.92);
}
.pill--plan{
  background:#F0F0FF;
  border-color:#E1E3FF;
}
.pill--expiry{
  background:#F8F8FA;
}

/* Content / cards */
.content{
  padding:26px 28px 64px;
}
.page-head{
  margin-bottom:22px;
}
.page-head h2{
  font-size:23px;
  font-weight:700;
}
.bento{
  gap:16px;
}
.card{
  border-color:#E9E9EF;
  border-radius:16px;
  box-shadow:var(--shadow-sm);
}
.card:hover{
  border-color:#E3E3EA;
  box-shadow:var(--shadow-lift);
}
.card--flat:hover{
  box-shadow:var(--shadow-sm);
}
.card__head{
  padding:18px 20px;
}
.card__body{
  padding:20px;
}

/* Buttons */
.btn{
  min-height:38px;
  border-radius:10px;
  border-color:#DCDCE6;
  background:#fff;
  box-shadow:0 1px 1px rgba(17,24,39,.025);
}
.btn--primary{
  background:linear-gradient(135deg,#6366F1 0%,#4F46E5 55%,#4338CA 100%);
  border-color:#4F46E5;
  box-shadow:0 7px 18px rgba(79,70,229,.20),inset 0 1px 0 rgba(255,255,255,.20);
}
.btn--primary:hover{
  background:linear-gradient(135deg,#6B6FF3 0%,#554CE8 55%,#473DCD 100%);
  box-shadow:0 11px 25px rgba(79,70,229,.28),inset 0 1px 0 rgba(255,255,255,.24);
}

/* Inputs */
.input{
  min-height:40px;
  border-radius:10px;
  border-color:#DCDCE6;
  background:#fff;
}
.input:focus{
  border-color:#AEB4FF;
  box-shadow:0 0 0 4px rgba(99,102,241,.11);
}

/* Tables */
.table{
  font-size:13px;
}
.table thead th{
  background:#FBFBFD;
  color:#8A8A98;
  font-size:11px;
  letter-spacing:.065em;
  text-transform:uppercase;
  border-bottom-color:#EAEAF0;
}
.table tbody td{
  padding-top:13px;
  padding-bottom:13px;
  border-bottom-color:#F0F0F4;
}
.table tbody tr:hover{
  background:#FAFAFE;
}
.table-foot{
  padding:14px 18px 16px;
  border-top:1px solid #EEEEF3;
}
.pager button{
  min-width:32px;
  height:32px;
  border-radius:8px;
}

/* Tabs / chips / badges */
.tabs{
  border-bottom-color:#E9E9EF;
}
.tab{
  padding:10px 14px;
}
.tab.is-active{
  color:var(--accent);
  border-bottom-color:var(--accent);
}
.chip{
  border-radius:999px;
}
.badge{
  border-radius:999px;
  padding:5px 9px;
}

/* Stat tiles */
.stat{
  min-height:124px;
}
.stat__ico{
  width:36px;
  height:36px;
  border-radius:11px;
}
.stat__value{
  font-size:30px;
}

/* Authentication */
.auth{
  background:#F7F7F9;
}
.auth__brand{
  color:#fff;
  background:
    radial-gradient(620px 420px at 12% 8%,rgba(129,140,248,.28),transparent 62%),
    radial-gradient(520px 420px at 92% 90%,rgba(79,70,229,.34),transparent 64%),
    linear-gradient(145deg,#11142A 0%,#181B3B 48%,#24266B 100%);
  border-right:0;
  padding:58px 64px 48px;
}
.auth__brand .brand-text b{
  color:#fff;
}
.auth__brand .brand-text span{
  color:rgba(255,255,255,.58);
}
.auth__brand h1{
  color:#fff;
  font-size:42px;
  max-width:11ch;
  line-height:1.08;
}
.auth__brand p{
  color:rgba(255,255,255,.70);
}
.auth__points li{
  color:rgba(255,255,255,.82);
}
.auth__panel{
  background:
    radial-gradient(600px 400px at 50% 0%,rgba(99,102,241,.06),transparent 70%),
    #F7F7F9;
}
.auth__card{
  max-width:450px;
  border:1px solid #E5E5EC;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 55px rgba(17,24,39,.08);
}
.auth__card h2{
  font-size:22px;
}
.seg{
  background:#F3F3F7;
  border-color:#E4E4EB;
}
.seg__btn.is-active{
  color:#3730A3;
  box-shadow:0 2px 6px rgba(17,24,39,.07);
}

/* Toast */
.toast{
  border-color:#E5E5EC;
  box-shadow:0 18px 45px rgba(17,24,39,.13),0 3px 12px rgba(17,24,39,.05);
}

/* Modal */
.overlay{
  background:rgba(15,18,35,.40);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.modal{
  border-color:#E5E5EC;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(17,24,39,.20),0 8px 24px rgba(17,24,39,.07);
}
.modal__head{
  padding:21px 22px 17px;
}
.modal__foot{
  background:#FBFBFD;
}

/* Prevent accidental overflow from long CRM values. */
.page-head > *,
.card__head > *,
.card__body > *,
.topbar > *{
  min-width:0;
}
.table-wrap{
  scrollbar-width:thin;
}

/* ============================================================
   RESPONSIVE REFERENCE BREAKPOINTS
   ============================================================ */

@media (max-width:1024px){
  .content{
    padding:22px 20px 56px;
  }
  .topbar{
    padding:11px 18px;
  }
  .auth__brand{
    padding:48px 42px;
  }
  .auth__brand h1{
    font-size:36px;
  }
}

@media (max-width:768px){
  .content{
    padding:20px 16px 52px;
  }
  .page-head{
    align-items:flex-start;
  }
  .page-head__actions{
    width:100%;
    margin-left:0;
  }
  .page-head__actions .btn{
    flex:0 0 auto;
  }
  .card__head{
    align-items:flex-start;
    gap:12px;
  }
  .card__head-actions{
    width:100%;
    margin-left:0;
  }
  .card__head-actions .input{
    width:100%;
    max-width:none !important;
  }
  .table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .table{
    min-width:760px;
  }
  .topbar{
    gap:9px;
  }
  .topbar__greet{
    max-width:42vw;
  }
  .pill--expiry{
    display:none;
  }
  .auth__brand{
    display:none;
  }
  .auth__panel{
    min-height:100vh;
    padding:24px 16px;
  }
  .auth__card{
    max-width:480px;
    padding:24px;
  }
}

@media (max-width:480px){
  .content{
    padding:16px 12px 44px;
  }
  .topbar{
    padding:10px 12px;
  }
  .topbar__greet{
    max-width:44vw;
  }
  .topbar__greet b{
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar__greet span{
    display:none;
  }
  .topbar .avatar{
    width:32px;
    height:32px;
    font-size:11px;
  }
  .topbar .btn--sm{
    padding:7px 9px;
  }
  .auth__card{
    padding:20px 17px;
    border-radius:16px;
  }
  .auth__card h2{
    font-size:20px;
  }
  .seg{
    margin-bottom:18px;
  }
  .page-head h2{
    font-size:20px;
  }
  .page-head__actions{
    gap:7px;
  }
  .page-head__actions .btn{
    flex:1 1 auto;
    justify-content:center;
  }
  .card{
    border-radius:14px;
  }
  .card__head,
  .card__body{
    padding:16px;
  }
  .table-foot{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .table-foot .pager{
    margin-left:0;
  }
  .modal{
    border-radius:16px;
  }
  .overlay{
    padding:12px;
  }
}

/* ============================================================
   PROFILE / BRAND / BILLING POLISH
   ============================================================ */
.brand-logo-link{
  width:100%; min-width:0; height:54px; display:flex; align-items:center;
  justify-content:flex-start; padding:0 16px; overflow:hidden;
}
.brand-logo-img{
  display:block; width:auto; max-width:100%; height:42px; object-fit:contain; object-position:left center;
}
.brand-logo-link:focus-visible{ outline:3px solid rgba(99,102,241,.22); outline-offset:-3px; border-radius:10px; }
.avatar-button{ border:0; cursor:pointer; padding:0; position:relative; }
.avatar-button img{ width:100%; height:100%; border-radius:inherit; object-fit:cover; display:block; }
.profile-editor-card{ min-width:0; }
.profile-editor-body{ min-width:0; }
.profile-photo-row{
  display:flex; align-items:center; gap:14px; margin-bottom:22px; padding:12px;
  border:1px solid var(--border); border-radius:14px; background:#FCFCFE;
}
.profile-photo{ flex:none; overflow:hidden; }
.profile-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.profile-photo-copy{ min-width:0; display:flex; flex-direction:column; gap:3px; }
.profile-photo-copy b{ font-size:14px; }
.profile-photo-copy span{ color:var(--muted); font-size:12px; line-height:1.5; }
.profile-form-grid{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 16px;
  width:100%; min-width:0;
}
.profile-form-grid .field{ min-width:0; }
.profile-form-grid .input{ min-width:0; width:100%; }
.profile-photo-field{ grid-column:1 / -1; }
.file-input{ padding:8px 10px; }
.file-input::file-selector-button{
  margin-right:10px; padding:7px 11px; border:1px solid var(--border-hard); border-radius:8px;
  background:#fff; color:var(--text-2); cursor:pointer; font:inherit;
}
.profile-form-foot{
  display:flex; align-items:center; justify-content:flex-end; gap:14px; flex-wrap:wrap;
  margin-top:8px; padding-top:16px; border-top:1px solid var(--border);
}
.profile-form-foot .hint{ margin-right:auto; min-width:0; }
.profile-summary-grid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px;
}
.profile-summary-grid > div{
  min-width:0; padding:14px; border:1px solid var(--border); border-radius:12px; background:#FCFCFE;
  display:flex; flex-direction:column; gap:5px;
}
.profile-summary-grid span{ color:var(--muted-2); font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.profile-summary-grid b{ font-size:13px; overflow-wrap:anywhere; }
.profile-menu-popover{
  position:fixed; z-index:180; width:228px; background:#fff; border:1px solid var(--border-strong);
  border-radius:12px; box-shadow:var(--shadow-pop); overflow:hidden; opacity:0; transform:translateY(-5px);
  transition:opacity .16s ease, transform .16s ease;
}
.profile-menu-popover.is-open{ opacity:1; transform:translateY(0); }
.profile-menu__head{
  display:flex; align-items:center; gap:10px; padding:12px; border-bottom:1px solid var(--border);
  min-width:0;
}
.profile-menu__head img{ width:34px; height:34px; border-radius:50%; object-fit:cover; flex:none; }
.profile-menu__head > div:last-child{ min-width:0; display:flex; flex-direction:column; }
.profile-menu__head b,.profile-menu__head span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-menu__head b{ font-size:13px; }
.profile-menu__head span{ color:var(--muted); font-size:11px; margin-top:2px; }
.profile-menu-popover > button{
  width:100%; display:flex; align-items:center; gap:10px; padding:12px 13px; border:0; border-bottom:1px solid var(--border);
  background:#fff; color:var(--muted); cursor:pointer; text-align:left;
}
.profile-menu-popover > button:last-child{ border-bottom:0; }
.profile-menu-popover > button:hover{ background:#F7F7FB; color:var(--text); }
.profile-menu-popover > button .ico{ width:16px; height:16px; }

@media (max-width:800px){
  .profile-form-grid{ grid-template-columns:minmax(0,1fr); gap:0; }
  .profile-photo-field{ grid-column:auto; }
  .profile-summary-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .brand-logo-link{ padding:0 14px; }
  .brand-logo-img{ height:38px; }
}
@media (max-width:520px){
  .profile-summary-grid{ grid-template-columns:minmax(0,1fr); }
  .profile-photo-row{ align-items:flex-start; }
  .profile-form-foot{ align-items:stretch; }
  .profile-form-foot .hint{ width:100%; }
  .profile-form-foot .btn{ width:100%; justify-content:center; }
}

@media (max-width:1280px){
  .searchbox{ display:none; }
  .topbar{ gap:10px; }
  .topbar__greet{ flex:0 1 auto; }
  .topbar__spacer{ display:block; }
  .topbar .pill,.topbar .btn{ white-space:nowrap; flex:none; }
}
@media (max-width:900px){
  .pill--expiry{ display:none; }
  .topbar__greet{ max-width:36vw; }
  .topbar .btn--sm{ padding:7px 10px; }
}
/* ============================================================
   CONFIRM DIALOG BUTTON FIX
   ============================================================ */

.modal--confirm{
  max-width:440px;
  width:100%;
}

.modal--confirm .modal__head{
  min-width:0;
}

.modal--confirm .modal__head-content{
  min-width:0;
  flex:1;
}

.modal--confirm .modal__head-content h3{
  display:block;
  width:100%;
  color:var(--text);
  font-size:16px;
  font-weight:700;
  line-height:1.35;
  white-space:normal;
  overflow:visible;
  opacity:1;
}

.modal--confirm .modal__head-content p{
  display:block;
  width:100%;
  color:var(--muted);
  font-size:12.6px;
  line-height:1.55;
  white-space:normal;
  overflow:visible;
  opacity:1;
}

.modal__foot--confirm{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-height:76px;
  padding:16px 22px 20px;
}

.modal__foot--confirm .modal-confirm-btn,
.modal__foot--confirm .modal-cancel-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative;
  flex:0 0 auto;
  min-width:84px;
  min-height:40px;
  padding:9px 16px !important;
  line-height:1.2 !important;
  font-size:13px !important;
  font-weight:650 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-indent:0 !important;
  text-align:center !important;
}

.modal__foot--confirm .modal-confirm-btn{
  background:var(--red) !important;
  border:1px solid var(--red) !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(229,72,77,.22);
}

.modal__foot--confirm .modal-confirm-btn:hover{
  background:#D93F44 !important;
  border-color:#D93F44 !important;
  color:#fff !important;
}

.modal__foot--confirm .modal-confirm-btn__text{
  display:inline-block !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:650 !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}

.modal__foot--confirm .modal-cancel-btn{
  background:#fff !important;
  color:var(--muted) !important;
  border:1px solid var(--border-hard) !important;
}

.modal__foot--confirm .modal-cancel-btn:hover{
  color:var(--text) !important;
  border-color:var(--border-hard) !important;
}

@media (max-width:760px){

  .modal__foot--confirm{
    flex-direction:column-reverse !important;
    align-items:stretch !important;
  }

  .modal__foot--confirm .modal-confirm-btn,
  .modal__foot--confirm .modal-cancel-btn{
    width:100% !important;
  }

}
/* ============================================================
   SUKOONSAATHI BRAND LOCKUP
   ============================================================ */

.sidebar__brand{
  min-height:82px;
  height:82px;
  padding:0 18px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--border-strong);
  background:#fff;
  overflow:hidden;
}

.brand-logo-link{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
}

.sidebar-brand-lockup{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.sidebar-brand-logo{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.sidebar-brand-logo img{
  display:block;
  width:36px;
  height:36px;
  object-fit:contain;
  object-position:center;
  transition:transform .18s ease;
}

.sidebar-brand-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1;
}

.sidebar-brand-copy > b{
  display:block;
  margin:0;
  padding:0;
  color:#111827;
  font-size:17px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-0.035em;
  white-space:nowrap;
}

.sidebar-brand-copy > b .brand-sukoon,
.sidebar-brand-copy > b .brand-saathi{
  display:inline;
  margin:0;
  padding:0;
  line-height:inherit;
  font-size:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  white-space:nowrap;
}

.sidebar-brand-copy > b .brand-sukoon{
  color:#111827;
}

.sidebar-brand-copy > b .brand-saathi{
  color:#2563EB;
}

.sidebar-brand-copy > span{
  display:block;
  margin:4px 0 0;
  padding:0;
  color:#111827;
  font-size:11.5px;
  line-height:1.15;
  font-weight:600;
  letter-spacing:-0.01em;
  white-space:nowrap;
}

.sidebar-brand-copy > span .brand-lead,
.sidebar-brand-copy > span .brand-management{
  display:inline;
  margin:0;
  padding:0;
  line-height:inherit;
  font-size:inherit;
  letter-spacing:inherit;
  white-space:nowrap;
}

.sidebar-brand-copy > span .brand-lead{
  color:#2563EB;
  font-weight:700;
}

.sidebar-brand-copy > span .brand-management{
  color:#111827;
  font-weight:600;
}

.brand-logo-link:hover .sidebar-brand-logo img{
  transform:scale(1.04);
}


/* ============================================================
   AUTH BRANDING
   ============================================================ */

.auth-brand-lockup{
  display:flex;
  align-items:center;
  gap:12px;
  width:max-content;
  max-width:100%;
}

.auth-brand-logo{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.auth-brand-logo img{
  display:block;
  width:40px;
  height:40px;
  object-fit:contain;
}

.auth-brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.auth-brand-copy b{
  display:block;
  font-size:18px;
  line-height:1.15;
  font-weight:760;
  letter-spacing:-0.035em;
  white-space:nowrap;
}

.auth-brand-copy span{
  display:block;
  margin-top:4px;
  color:#7B8190;
  font-size:12px;
  line-height:1.15;
  font-weight:500;
  white-space:nowrap;
}


/* ============================================================
   MOBILE BRAND
   ============================================================ */

@media (max-width:1024px){

  .sidebar__brand{
    min-height:82px;
    height:82px;
    padding:0 18px;
  }

}

@media (max-width:420px){

  .sidebar-brand-copy > b{
    font-size:16px;
  }

  .sidebar-brand-copy > span{
    font-size:10.8px;
  }

}
