/* ═══════════════════════════════════════════════════════
   CISPL Admin Panel — Premium Design System
   Fonts: Outfit (UI) + JetBrains Mono (numbers)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  /* Brand */
  --green:          #3CB550;
  --green-dark:     #2d9140;
  --green-dim:      #3CB55015;
  --green-glow:     0 0 0 3px #3CB55030;
  --red:            #ef4444;
  --red-dim:        #ef444412;
  --amber:          #f59e0b;
  --amber-dim:      #f59e0b12;
  --blue:           #3b82f6;
  --blue-dim:       #3b82f612;
  --violet:         #8b5cf6;

  /* Surface */
  --bg:             #f1f5f9;
  --surface:        #ffffff;
  --surface-raised: #ffffff;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;

  /* Text */
  --text-1:         #0f172a;
  --text-2:         #334155;
  --text-3:         #64748b;
  --text-4:         #94a3b8;

  /* Sidebar */
  --sb-bg:          #0f172a;
  --sb-border:      rgba(255,255,255,0.06);
  --sb-text:        rgba(255,255,255,0.5);
  --sb-text-hover:  rgba(255,255,255,0.9);
  --sb-active-bg:   #3CB550;
  --sb-active-text: #ffffff;
  --sb-w:           256px;
  --sb-w-col:       68px;

  /* Layout */
  --topbar-h:       60px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      14px;
  --radius-xl:      20px;

  /* Typography */
  --font:           'Outfit', sans-serif;
  --mono:           'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-xs:      0 1px 3px rgba(15,23,42,0.06);
  --shadow-sm:      0 2px 8px rgba(15,23,42,0.08);
  --shadow:         0 4px 16px rgba(15,23,42,0.10);
  --shadow-lg:      0 8px 32px rgba(15,23,42,0.14);

  /* Transition */
  --t:              0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--text-1); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.mono { font-family: var(--mono) !important; }

/* ── App Shell ─────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sb-w);
  background: var(--sb-bg);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 1040;
  transition: width var(--t);
  overflow: hidden;
  border-right: 1px solid var(--sb-border);
}
.sidebar.collapsed { width: var(--sb-w-col); }

/* Brand */
.sb-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
}
.sb-logo {
  width: 34px; height: 34px; flex-shrink: 0;
  object-fit: contain; filter: brightness(1.1);
  border-radius: 8px;
}
.sb-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.sb-sub  { font-size: 10px; font-weight: 500; color: var(--green); text-transform: uppercase; letter-spacing: 1.2px; }
.collapsed .sb-name, .collapsed .sb-sub { opacity: 0; }

/* Nav */
.sb-nav { flex: 1; overflow-y: auto; padding: 12px 10px; scrollbar-width: none; }
.sb-nav::-webkit-scrollbar { display: none; }

.sb-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
  padding: 14px 8px 5px; white-space: nowrap;
}
.collapsed .sb-section { opacity: 0; }

.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--sb-text); cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap; margin-bottom: 1px;
  position: relative; user-select: none;
}
.sb-item:hover { background: rgba(255,255,255,0.055); color: var(--sb-text-hover); }
.sb-item.active {
  background: var(--green); color: #fff;
  box-shadow: 0 2px 12px rgba(60,181,80,0.3);
}
.sb-item .si { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.sb-item .sl { font-size: 13px; font-weight: 500; overflow: hidden; flex: 1; }
.sb-badge {
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700;
  padding: 1px 5px; border-radius: 20px; flex-shrink: 0; margin-left: auto;
}
.collapsed .sl, .collapsed .sb-badge { display: none; }
.collapsed .sb-item::after {
  content: attr(data-tip);
  position: absolute; left: calc(var(--sb-w-col) + 6px);
  background: #1e293b; color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 9999;
  box-shadow: var(--shadow-sm);
}
.collapsed .sb-item:hover::after { opacity: 1; }

/* Footer */
.sb-footer { border-top: 1px solid var(--sb-border); padding: 12px 10px; flex-shrink: 0; }
.sb-user { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.sb-uname { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-urole { font-size: 10.5px; color: rgba(255,255,255,0.35); }
.collapsed .sb-uname, .collapsed .sb-urole { display: none; }
.sb-logout {
  background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.35);
  border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: 14px;
  transition: background var(--t), color var(--t); flex-shrink: 0;
}
.sb-logout:hover { background: rgba(239,68,68,0.2); color: #ef4444; }

.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1039; }
@media(max-width:991px) { .sb-overlay.show { display: block; } }

/* ══════════════════════════════════════════════════════════
   MAIN AREA
══════════════════════════════════════════════════════════ */
.main-wrap {
  flex: 1; margin-left: var(--sb-w);
  display: flex; flex-direction: column; min-height: 100vh;
  transition: margin-left var(--t); overflow: hidden;
}
.sidebar.collapsed ~ .main-wrap { margin-left: var(--sb-w-col); }

/* Topbar */
.topbar {
  height: var(--topbar-h); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-toggle {
  background: none; border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 18px;
  transition: background var(--t), color var(--t);
}
.topbar-toggle:hover { background: var(--bg); color: var(--text-1); }
.topbar-title { font-size: 15px; font-weight: 700; flex: 1; color: var(--text-1); }
.topbar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 15px; position: relative;
  transition: background var(--t); flex-shrink: 0;
}
.topbar-btn:hover { background: var(--border); color: var(--text-1); }
.topbar-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--surface);
}
.tb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.role-chip {
  font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  background: var(--green-dim); color: var(--green);
}
.role-chip.viewer { background: var(--amber-dim); color: var(--amber); }

/* Page content */
.page-content { flex: 1; overflow-y: auto; padding: 24px; }

/* ══════════════════════════════════════════════════════════
   COMPONENTS
══════════════════════════════════════════════════════════ */

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.card-header-bar {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header-bar .title { font-size: 14px; font-weight: 700; color: var(--text-1); }

/* KPI Card */
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--green); border-radius: 0;
}
.kpi.red::before   { background: var(--red); }
.kpi.amber::before { background: var(--amber); }
.kpi.blue::before  { background: var(--blue); }
.kpi.violet::before { background: var(--violet); }
.kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.kpi-val   { font-size: 28px; font-weight: 800; font-family: var(--mono); color: var(--text-1); line-height: 1; margin-bottom: 6px; }
.kpi-sub   { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.kpi-icon  {
  position: absolute; right: 18px; top: 18px;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--green-dim); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.kpi.red   .kpi-icon { background: var(--red-dim);   color: var(--red); }
.kpi.amber .kpi-icon { background: var(--amber-dim); color: var(--amber); }
.kpi.blue  .kpi-icon { background: var(--blue-dim);  color: var(--blue); }

/* Status Pill */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.pill.active  { background: #dcfce7; color: #15803d; }
.pill.paused  { background: #fef9c3; color: #a16207; }
.pill.stopped { background: #fee2e2; color: #b91c1c; }
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Table */
.table { font-size: 13px; width: 100%; border-collapse: collapse; }
.table thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--text-3); background: var(--bg); padding: 11px 16px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f8fafc; }

/* Status Badge */
.s-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.s-badge.success { background: #dcfce7; color: #15803d; }
.s-badge.failed  { background: #fee2e2; color: #b91c1c; }
.s-badge.pending { background: #fef9c3; color: #a16207; }

/* Button */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all var(--t); line-height: 1; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm   { padding: 6px 12px; font-size: 12px; }
.btn-xs   { padding: 4px 9px; font-size: 11px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }

.btn-primary   { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover   { background: var(--green-dark); border-color: var(--green-dark); }
.btn-danger    { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover    { background: #dc2626; }
.btn-amber     { background: var(--amber); color: #000; border-color: var(--amber); }
.btn-ghost     { background: var(--bg); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover     { background: var(--border); }
.btn-outline   { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover   { background: var(--green-dim); }
.btn-outline-red   { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover   { background: var(--red-dim); }
.btn-outline-amber { background: transparent; color: var(--amber); border-color: var(--amber); }
.btn-outline-amber:hover { background: var(--amber-dim); }
.btn-text      { background: none; border-color: transparent; color: var(--green); padding-left: 0; padding-right: 0; }
.btn-text:hover { color: var(--green-dark); }
.btn .spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form */
.field { margin-bottom: 16px; }
.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.label .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 13px;
  color: var(--text-1); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--green); box-shadow: var(--green-glow);
}
.input::placeholder { color: var(--text-4); }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn   { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: none; }
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.form-err  { font-size: 11.5px; color: var(--red); margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.checkbox-row input[type=checkbox] { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.checkbox-row label { font-size: 13px; cursor: pointer; }

/* Alert */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.alert-danger  { background: var(--red-dim); color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-warning { background: var(--amber-dim); color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: var(--blue-dim); color: #1d4ed8; border: 1px solid #93c5fd; }

/* Spike badge */
.spike { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; }

/* Variance */
.var-up   { color: var(--green); font-weight: 700; }
.var-down { color: var(--red);   font-weight: 700; }
.var-nil  { color: var(--text-3); }

/* Toast */
.toast-rack { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--sb-bg); color: #fff;
  padding: 11px 15px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px; max-width: 340px;
  border-left: 3px solid var(--green);
  animation: slideIn .22s ease;
  font-size: 13px;
}
.toast-item.err  { border-left-color: var(--red); }
.toast-item.warn { border-left-color: var(--amber); }
.toast-item.info { border-left-color: var(--blue); }
.toast-icon { font-size: 17px; flex-shrink: 0; }
.toast-item.ok   .toast-icon { color: var(--green); }
.toast-item.err  .toast-icon { color: var(--red); }
.toast-item.warn .toast-icon { color: var(--amber); }
.toast-item.info .toast-icon { color: var(--blue); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Page Loader */
#pageLoader { position: fixed; inset: 0; background: rgba(15,23,42,.65); display: none; align-items: center; justify-content: center; z-index: 9998; }
#pageLoader .box { background: var(--surface); border-radius: var(--radius-lg); padding: 30px 40px; text-align: center; }

/* Drop Zone */
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 44px; text-align: center; cursor: pointer; transition: all var(--t); }
.dropzone:hover, .dropzone.over { border-color: var(--green); background: var(--green-dim); }
.dropzone .dz-icon { font-size: 38px; color: var(--text-4); margin-bottom: 10px; display: block; }
.dropzone .dz-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.dropzone .dz-hint  { font-size: 12.5px; color: var(--text-3); }

/* Pagination */
.pagination { display: flex; gap: 3px; align-items: center; }
.pg-btn { min-width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t); font-family: var(--font); }
.pg-btn:hover   { background: var(--border); }
.pg-btn.active  { background: var(--green); border-color: var(--green); color: #fff; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Range tabs */
.range-tabs { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); padding: 3px; border-radius: var(--radius-sm); }
.range-tab { padding: 5px 13px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-3); transition: all var(--t); border: none; background: none; font-family: var(--font); }
.range-tab.active { background: var(--surface); color: var(--text-1); box-shadow: var(--shadow-xs); }

/* OTP Input */
.otp-row { display: flex; gap: 8px; }
.otp-box {
  width: 46px; height: 52px; text-align: center;
  font-size: 20px; font-weight: 700; font-family: var(--mono);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  color: var(--text-1);
}
.otp-box:focus { border-color: var(--green); box-shadow: var(--green-glow); background: var(--surface); }
.otp-box.filled { border-color: var(--green); }

/* Modal override */
.modal-content { border: none !important; border-radius: var(--radius-lg) !important; overflow: hidden; }
.modal-header  { padding: 18px 22px !important; border-bottom: 1px solid var(--border) !important; }
.modal-body    { padding: 20px 22px !important; }
.modal-footer  { padding: 14px 22px !important; border-top: 1px solid var(--border) !important; }
.modal-title   { font-family: var(--font) !important; font-weight: 700 !important; }
.mh-green  { background: var(--green) !important; color: #fff !important; border-bottom: none !important; }
.mh-red    { background: var(--red) !important;   color: #fff !important; border-bottom: none !important; }
.mh-amber  { background: var(--amber) !important; color: #000 !important; border-bottom: none !important; }
.mh-dark   { background: var(--sb-bg) !important; color: #fff !important; border-bottom: none !important; }

/* Scheme Card */
.scheme-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--t), transform var(--t); height: 100%; display: flex; flex-direction: column; }
.scheme-card:hover { box-shadow: var(--shadow); }
.scheme-card .sc-top  { height: 3px; }
.scheme-card .sc-body { padding: 18px 20px; flex: 1; }
.scheme-card .sc-name { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.scheme-card .sc-key  { font-family: var(--mono); font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }
.scheme-card .sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.scheme-card .sc-field-label { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.scheme-card .sc-field-val   { font-size: 14px; font-weight: 700; color: var(--text-1); }
.scheme-card .sc-foot { border-top: 1px solid var(--border); display: flex; }
.scheme-card .sc-foot .sf-btn { flex: 1; border: none; background: none; font-family: var(--font); font-size: 13px; font-weight: 600; padding: 13px; cursor: pointer; color: var(--text-2); transition: background var(--t), color var(--t); }
.scheme-card .sc-foot .sf-btn:hover { background: var(--bg); color: var(--text-1); }
.scheme-card .sc-foot .sf-btn + .sf-btn { border-left: 1px solid var(--border); }
.scheme-card .sc-foot .sf-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Canvas sparkline */
canvas { display: block; }

/* Chart container */
.chart-box { position: relative; height: 220px; }

/* Progress bar */
.progress-bar-wrap { background: var(--bg); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.login-page { display: flex; min-height: 100vh; background: var(--sb-bg); }

.login-left {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
  position: relative; overflow: hidden;
}
/* Geometric background */
.login-left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(60,181,80,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(60,181,80,.08) 0%, transparent 45%);
}
/* Grid pattern */
.login-left::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-left > * { position: relative; z-index: 1; }

.ll-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 32px; }
.ll-brand { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.ll-headline {
  font-size: 38px; font-weight: 900; color: #fff;
  line-height: 1.15; text-align: center; max-width: 360px;
  margin-bottom: 16px;
}
.ll-headline span { color: var(--green); }
.ll-sub { font-size: 14px; color: rgba(255,255,255,.4); text-align: center; max-width: 320px; line-height: 1.65; margin-bottom: 48px; }

.ll-stats { display: flex; gap: 32px; }
.ll-stat .v { font-size: 24px; font-weight: 900; font-family: var(--mono); color: #fff; }
.ll-stat .l { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-top: 2px; }

.ll-dots { display: flex; gap: 6px; margin-top: 48px; }
.ll-dots span { width: 8px; height: 8px; border-radius: 50%; }

.login-right {
  width: 460px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc; padding: 48px 44px;
}
.lr-card { width: 100%; max-width: 380px; }
.lr-card .lc-logo { width: 44px; margin-bottom: 24px; }
.lr-card .lc-title { font-size: 24px; font-weight: 800; color: var(--text-1); margin-bottom: 4px; }
.lr-card .lc-sub   { font-size: 13.5px; color: var(--text-3); margin-bottom: 32px; }

.step-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.step-dot { height: 4px; border-radius: 2px; background: var(--border); transition: all .3s; }
.step-dot.active { background: var(--green); width: 28px; }
.step-dot.done   { background: var(--green); opacity: .4; }

.otp-section-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media(max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main-wrap { margin-left: 0 !important; }
  .login-left { display: none; }
  .login-right { width: 100%; background: var(--sb-bg); }
  .lr-card .lc-title, .lr-card .lc-sub { color: #fff; }
  .page-content { padding: 16px; }
}
@media(max-width: 576px) {
  .kpi-val { font-size: 22px; }
}
