/* ── Ready1Go Admin Console — Design System ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:        #0d1117;
  --bg2:       #010409;
  --surface:   #161b22;
  --surface2:  #1c2128;
  --border:    #30363d;
  --border2:   #21262d;
  --text:      #e6edf3;
  --text-mid:  #adbac7;
  --muted:     #768390;
  --subtle:    #545d68;

  --green:     #25D366;
  --green-b:   #3fb950;
  --green-dim: rgba(37,211,102,0.12);
  --green-d:   #1aad50;
  --blue:      #388bfd;
  --blue-dim:  rgba(56,139,253,0.15);
  --orange:    #d29922;
  --orange-dim:rgba(210,153,34,0.15);
  --red:       #f85149;
  --red-dim:   rgba(248,81,73,0.15);
  --purple:    #bc8cff;
  --purple-dim:rgba(188,140,255,0.15);
  --teal:      #39c5cf;
  --teal-dim:  rgba(57,197,207,0.15);

  --sidebar-w: 232px;
  --header-h:  56px;
  --radius:    8px;
  --radius-lg: 12px;
  --font:      'Inter', -apple-system, sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --shadow:    0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.6; min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── LAYOUT ── */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow: hidden;
}

.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-nav-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}
.sidebar-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #000; flex-shrink: 0;
}
.sidebar-logo-text { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.sidebar-logo-sub  { font-size: 10px; color: var(--muted); }

.sidebar-section { padding: 8px 8px 0; }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--subtle); padding: 4px 8px 6px; display: block;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; }
.sidebar-nav li a, .sidebar-nav li button {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: var(--radius);
  color: var(--text-mid); font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
}
.sidebar-nav li a:hover, .sidebar-nav li button:hover {
  background: var(--surface2); color: var(--text); text-decoration: none;
}
.sidebar-nav li a.active, .sidebar-nav li button.active {
  background: var(--green-dim); color: var(--green-b);
}
.sidebar-nav li a.active .nav-icon, .sidebar-nav li button.active .nav-icon {
  color: var(--green);
}
.nav-icon { font-size: 15px; flex-shrink: 0; width: 18px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 99px; min-width: 18px; text-align: center;
}
.nav-badge.green { background: var(--green-d); }
.nav-badge.orange { background: var(--orange); color: #000; }

.sidebar-footer {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border2);
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text); flex-shrink: 0;
  border: 1px solid var(--border);
}
.avatar.green { background: var(--green-dim); color: var(--green-b); border-color: rgba(37,211,102,0.3); }
.avatar.blue  { background: var(--blue-dim);  color: var(--blue);   border-color: rgba(56,139,253,0.3); }
.avatar.orange{ background: var(--orange-dim);color: var(--orange); border-color: rgba(210,153,34,0.3); }
.avatar.purple{ background: var(--purple-dim);color: var(--purple); border-color: rgba(188,140,255,0.3); }
.avatar-lg { width: 36px; height: 36px; font-size: 14px; }
.avatar-xl { width: 44px; height: 44px; font-size: 17px; }
.sf-name  { font-size: 12px; font-weight: 600; color: var(--text); }
.sf-role  { font-size: 10px; color: var(--muted); }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 15px; font-weight: 700; flex: 1; }
.topbar-breadcrumb {
  font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex: 1;
}
.topbar-breadcrumb span { color: var(--text-mid); }
.topbar-breadcrumb .sep { color: var(--subtle); }

.page { padding: 20px 24px 40px; flex: 1; }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
}
.card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-title .ct-sub { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ── STAT CARDS ── */
.stats-row { display: grid; gap: 12px; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-value.green { color: var(--green-b); }
.stat-value.blue  { color: var(--blue); }
.stat-value.orange{ color: var(--orange); }
.stat-value.red   { color: var(--red); }
.stat-change { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.stat-change.up   { color: var(--green-b); }
.stat-change.down { color: var(--red); }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 9px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border2);
  white-space: nowrap;
}
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border2); vertical-align: middle; color: var(--text-mid); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }
.td-main { color: var(--text) !important; font-weight: 500; }

/* ── BADGES / PILLS ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
}
.badge-green  { background: var(--green-dim); color: var(--green-b); }
.badge-blue   { background: var(--blue-dim);  color: var(--blue); }
.badge-orange { background: var(--orange-dim);color: var(--orange); }
.badge-red    { background: var(--red-dim);   color: var(--red); }
.badge-purple { background: var(--purple-dim);color: var(--purple); }
.badge-gray   { background: var(--surface2);  color: var(--text-mid); }
.badge-teal   { background: var(--teal-dim);  color: var(--teal); }
.badge::before { content: '●'; font-size: 7px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius);
  cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; white-space: nowrap;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; }
.btn-primary   { background: var(--green);    color: #000; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-mid); background: var(--surface); }
.btn-blue   { background: var(--blue);  color: #fff; }
.btn-blue:hover { opacity: 0.88; }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,81,73,0.3); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-ghost  { background: transparent; color: var(--text-mid); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-mid); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-icon { padding: 7px; width: 32px; height: 32px; justify-content: center; }
.btn-icon.sm { width: 26px; height: 26px; padding: 4px; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.form-input, .form-select, .form-textarea {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: 8px 12px;
  font-size: 13px; font-family: var(--font); width: 100%;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(56,139,253,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--subtle); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint { font-size: 11px; color: var(--muted); }
.form-row { display: grid; gap: 14px; }
.form-2col { grid-template-columns: 1fr 1fr; }
.form-3col { grid-template-columns: 1fr 1fr 1fr; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type=checkbox], .form-check input[type=radio] {
  width: 15px; height: 15px; accent-color: var(--green); cursor: pointer;
}

/* ── TOGGLE SWITCH ── */
.toggle { position: relative; display: inline-flex; width: 38px; height: 20px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--border); border-radius: 99px; transition: 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 14px; height: 14px; background: #fff;
  border-radius: 50%; left: 3px; top: 3px; transition: 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border2); margin-bottom: 20px; }
.tab-btn {
  padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--green-b); border-bottom-color: var(--green-b); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 12px; flex: 1; max-width: 320px;
}
.search-bar input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 13px; font-family: var(--font); flex: 1;
}
.search-bar input::placeholder { color: var(--subtle); }
.search-icon { color: var(--muted); font-size: 13px; }

/* ── TOOLBAR ── */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.page-header p  { font-size: 13px; color: var(--muted); }

/* ── GRID LAYOUTS ── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main-aside { grid-template-columns: 1fr 320px; }
.grid-wide-aside  { grid-template-columns: 1fr 280px; }

/* ── EMPTY STATE ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center; gap: 10px;
}
.empty-icon { font-size: 32px; opacity: 0.4; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--text-mid); }
.empty-sub   { font-size: 12px; color: var(--muted); max-width: 280px; }

/* ── PROGRESS BAR ── */
.progress { height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--green); transition: width 0.3s; }
.progress-bar.blue   { background: var(--blue); }
.progress-bar.orange { background: var(--orange); }
.progress-bar.red    { background: var(--red); }

/* ── MINI SPARKLINE (CSS only) ── */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.spark-bar { width: 4px; border-radius: 2px; background: var(--green-dim); }
.spark-bar.hi { background: var(--green-b); }

/* ── AVATAR STACK ── */
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow); animation: modalIn 0.2s ease;
}
.modal-lg { max-width: 720px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border2);
}
.modal-title { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; padding: 2px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border2); display: flex; gap: 10px; justify-content: flex-end; }

/* ── DROPDOWN MENU ── */
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 100; padding: 4px;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; font-size: 13px; color: var(--text-mid);
  cursor: pointer; border-radius: 6px; transition: background 0.1s;
}
.dropdown-item:hover { background: var(--surface2); color: var(--text); }
.dropdown-item.danger { color: var(--red); }
.dropdown-sep { border-top: 1px solid var(--border2); margin: 4px 0; }

/* ── NOTIFICATION DOT ── */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot.orange { background: var(--orange); }
.dot.red    { background: var(--red); }
.dot.gray   { background: var(--subtle); }

/* ── STATUS INDICATOR ── */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}
.status-online  { background: var(--green-b); }
.status-away    { background: var(--orange); }
.status-offline { background: var(--subtle); }

/* ── TOOLTIP ── */
[data-tip] { position: relative; cursor: default; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--surface2); color: var(--text); font-size: 11px; font-weight: 500;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid var(--border);
  z-index: 300; pointer-events: none;
}

/* ── MINI CHART (bar chart via CSS) ── */
.mini-chart { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.mc-bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--green-dim); min-height: 4px; transition: background 0.15s; }
.mc-bar:hover { background: var(--green-b); }
.mc-bar.blue   { background: var(--blue-dim); }
.mc-bar.blue:hover { background: var(--blue); }

/* ── PHONE MOCKUP ── */
.phone-mock {
  width: 240px; background: #12161c; border-radius: 28px;
  border: 2px solid var(--border); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.ph-status-bar {
  background: #0a0e13; display: flex; justify-content: space-between;
  padding: 8px 14px 4px; font-size: 9px; color: var(--muted); font-weight: 600;
}
.ph-header {
  background: #0f1318; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ph-av { width: 28px; height: 28px; border-radius: 50%; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.ph-title { font-size: 12px; font-weight: 600; color: var(--text); }
.ph-sub   { font-size: 10px; color: var(--green-b); }
.ph-body  { padding: 10px 10px 8px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; background: #0d1117; }
.msg-bot  { max-width: 88%; font-size: 11px; line-height: 1.45; padding: 7px 9px; border-radius: 2px 10px 10px 10px; background: #1c2433; color: #c9d8e8; align-self: flex-start; }
.msg-user { max-width: 88%; font-size: 11px; line-height: 1.45; padding: 7px 9px; border-radius: 10px 2px 10px 10px; background: #0a3323; color: #a8f0c0; align-self: flex-end; }
.msg-time { font-size: 8px; color: var(--subtle); margin-top: 3px; }
.msg-time.r { text-align: right; }
.wa-quick-btn {
  background: rgba(56,139,253,0.1); border: 1px solid rgba(56,139,253,0.25);
  color: #58a6ff; font-size: 10px; font-weight: 600; padding: 5px 8px; border-radius: 6px; text-align: center; width: 100%;
}
.ph-input {
  background: #0a0e13; display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.ph-input-box { flex: 1; background: #1c2433; border-radius: 14px; padding: 5px 10px; font-size: 10px; color: var(--subtle); }
.ph-send-btn  { width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; }

/* ── SECTION DIVIDER ── */
.divider { height: 1px; background: var(--border2); margin: 20px 0; }
.divider-label { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--subtle); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); }

/* ── TOAST NOTIFICATION ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 16px; min-width: 240px; box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast.success { border-left: 3px solid var(--green-b); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }
.toast-msg { font-size: 13px; color: var(--text); }

/* ── CODE BLOCK ── */
.code-block {
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: var(--text-mid);
  overflow-x: auto; line-height: 1.6;
}
.code-block .kw  { color: var(--purple); }
.code-block .str { color: var(--green-b); }
.code-block .num { color: var(--orange); }
.code-block .cmt { color: var(--muted); }

/* ── TAG INPUT ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 99px;
  font-size: 11px; font-weight: 500; padding: 2px 8px 2px 10px; color: var(--text-mid);
}
.tag-remove { cursor: pointer; color: var(--muted); font-size: 13px; line-height: 1; }
.tag-remove:hover { color: var(--red); }

/* ── SCROLLABLE CONTENT ── */
.scroll-y { overflow-y: auto; }
.scroll-y::-webkit-scrollbar { width: 4px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── STEP INDICATOR ── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; border: 2px solid var(--border); color: var(--muted); flex-shrink: 0;
}
.step.done .step-num  { background: var(--green); border-color: var(--green); color: #000; }
.step.active .step-num{ background: var(--blue-dim); border-color: var(--blue); color: var(--blue); }
.step-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.step.active .step-label { color: var(--text); font-weight: 600; }
.step.done .step-label  { color: var(--muted); }
.step-line { flex: 1; height: 1px; background: var(--border2); min-width: 20px; }
.step.done + .step-line { background: var(--green); }

/* ── MISC ── */
.text-green  { color: var(--green-b); }
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-mid    { color: var(--text-mid); }
.font-mono   { font-family: var(--mono); }
.font-bold   { font-weight: 700; }
.font-med    { font-weight: 500; }
.text-sm     { font-size: 12px; }
.text-xs     { font-size: 11px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(37,211,102,0.06) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(56,139,253,0.05) 0%, transparent 50%);
}
.login-box {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #000; }
.login-logo-text  { font-size: 16px; font-weight: 800; }
.login-logo-sub   { font-size: 11px; color: var(--muted); }
.login-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.login-sub   { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.login-form  { display: flex; flex-direction: column; gap: 14px; }
.login-portal-btns { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.portal-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s; text-decoration: none; color: var(--text-mid); font-size: 13px;
}
.portal-btn:hover { border-color: var(--green); color: var(--text); text-decoration: none; }
.portal-btn .pb-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.portal-btn .pb-name { font-weight: 600; }
.portal-btn .pb-role { font-size: 11px; color: var(--muted); }
