@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #eaecf2;
  --border-2: #d5d9e8;
  --text: #111827;
  --text-2: #374151;
  --text-dim: #6b7280;
  --text-muted: #9ca3af;
  --accent: #e8304a;
  --accent-light: #fff0f2;
  --green: #22c55e;
  --green-light: #f0fdf4;
  --warn: #f59e0b;
  --warn-light: #fffbeb;
  --red: #ef4444;
  --red-light: #fef2f2;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --purple: #8b5cf6;
  --orange: #f97316;
  --indigo: #6366f1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }

/* ===== LAYOUT ===== */
.app { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.brand-name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }

.nav { flex: 1; padding: 10px 10px; }
.nav-section { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 12px 8px 5px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
  margin-bottom: 1px; transition: all .12s; position: relative;
}
.nav-item svg { flex-shrink: 0; width: 16px; height: 16px; }
.nav-item:hover { background: var(--surface-2); color: var(--text-2); }
.nav-item.active { background: #fff0f2; color: var(--accent); font-weight: 600; }
.nav-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 20px; min-width: 18px; text-align: center;
}
.nav-folder{margin-bottom:1px}
.nav-chevron{transition:transform .15s}
.nav-folder.open .nav-chevron{transform:rotate(180deg)}
.nav-submenu{max-height:0;overflow:hidden;transition:max-height .18s ease}
.nav-folder.open .nav-submenu{max-height:160px}
.nav-subitem{padding-left:34px;font-size:13px}
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; background: var(--surface-2); cursor: pointer;
}
.user-card:hover { background: var(--border); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ===== MAIN ===== */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

/* ===== TOPBAR ===== */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; height: 58px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; flex-shrink: 0; }
.topbar-search {
  flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 8px 14px;
}
.topbar-search svg { color: var(--text-muted); flex-shrink: 0; }
.topbar-search input { background: none; border: none; outline: none; font-size: 13px; color: var(--text); width: 100%; }
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-bell {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fffbeb; border: 1.5px solid #fde68a;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; position: relative;
}
.topbar-bell .dot {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 20px; padding: 1px 4px; border: 1.5px solid var(--surface);
  min-width: 15px; text-align: center;
}
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; cursor: default;
}

/* ===== CONTENT ===== */
.content { padding: 22px 24px 60px; }
.page { display: none; }
.page.active { display: block; }

/* ===== FILTER BAR ===== */
.filter-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.filter-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 7px 14px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: border-color .12s;
  white-space: nowrap;
}
.filter-pill:hover { border-color: var(--border-2); }
.filter-pill svg { color: var(--text-muted); }
.filter-pill select {
  background: none; border: none; outline: none; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer;
  padding: 0; margin: 0; -webkit-appearance: none; -moz-appearance: none;
  appearance: none;
}

/* ===== STAT CARDS ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12.5px; color: var(--text-dim); font-weight: 500; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--text); line-height: 1; margin-bottom: 10px; }
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--red); }
.stat-period { color: var(--text-muted); font-size: 12px; }

/* ===== PANEL ===== */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; gap: 12px;
}
.panel-head h3 { font-size: 15px; font-weight: 700; }
.panel-head-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== CHART TABS ===== */
.chart-tabs {
  display: flex; gap: 2px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 3px;
}
.chart-tab {
  padding: 5px 14px; border-radius: 20px;
  font-size: 12.5px; font-weight: 500; color: var(--text-dim);
  cursor: pointer; transition: all .12s; white-space: nowrap;
}
.chart-tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ===== CHART RANGE SWITCH ===== */
.chart-range {
  display: flex; gap: 2px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 3px;
}
.chart-range-opt {
  padding: 5px 14px; border-radius: 20px;
  font-size: 12.5px; font-weight: 500; color: var(--text-dim);
  cursor: pointer; transition: all .12s; white-space: nowrap;
}
.chart-range-opt.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ===== DUAL-AXIS PERFORMANCE LINE CHART ===== */
.perf-chart-area { padding: 6px 20px 18px; position: relative; }
.perf-chart-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: 'Inter', sans-serif; }
.perf-grid-line { stroke: #edeff5; stroke-width: 1; }
.perf-axis-label { fill: var(--text-muted); font-size: 11.5px; }
.perf-axis-title { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.perf-line-clicks { fill: none; stroke: #5aa9f8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.perf-line-impr { fill: none; stroke: #5b3ec8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.perf-area-clicks { fill: url(#perfGradClicks); opacity: .55; }
.perf-hover-line { stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.perf-dot { opacity: 0; transition: opacity .1s; }
.perf-hit { fill: transparent; cursor: crosshair; }
.perf-tooltip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .1s;
  background: #1f2430; color: #fff; padding: 8px 11px; border-radius: 8px;
  font-size: 12px; line-height: 1.6; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 5;
}
.perf-tooltip .tt-date { font-weight: 700; margin-bottom: 3px; color: #fff; }
.perf-tooltip .tt-row { display: flex; align-items: center; gap: 6px; }
.perf-tooltip .tt-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.perf-legend { display: flex; gap: 18px; margin-top: 2px; }
.perf-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.perf-legend-swatch { width: 10px; height: 10px; border-radius: 3px; }

/* ===== BOTTOM GRID ===== */
.bottom-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
@media (max-width: 900px) { .bottom-grid { grid-template-columns: 1fr; } }

/* ===== CAMPAIGN TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 20px; background: #fafbfc;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

.camp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-active { background: #ecfdf5; color: #059669; }
.billing-tab{display:none}
.billing-tab.active{display:block}
.pm-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:700px){.pm-grid{grid-template-columns:1fr}}
.pm-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.pm-card-body{display:flex;align-items:center;gap:16px;padding:20px}
.pm-icon{width:52px;height:52px;border-radius:10px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.pm-name{font-weight:700;font-size:15px}
.pm-sub{font-size:12px;color:var(--text-muted);margin-top:2px}
.pm-card-foot{border-top:1px solid var(--border);padding:10px 20px;text-align:right}
.pm-remove{font-size:12.5px;font-weight:700;color:var(--blue);letter-spacing:.02em}
.pm-remove:hover{text-decoration:underline}
.pm-add-card{border:1.5px dashed var(--border-2);border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:30px;cursor:pointer;color:var(--blue);font-weight:700;font-size:13px;letter-spacing:.02em;transition:all .12s}
.pm-add-card:hover{background:var(--surface-2)}
.billing-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}
.billing-row:last-child{border-bottom:none}
.billing-row .lbl{font-size:13.5px;color:var(--text-2)}
.billing-row .val{font-size:13.5px;font-weight:700}
.billing-month-row:hover{background:var(--surface-2)}
.notif-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0}
.notif-dot-success{background:#22c55e}
.notif-dot-warning{background:#f59e0b}
.notif-dot-error{background:#ef4444}
.notif-dot-info{background:#3b82f6}
.badge-pending { background: #f3f4f6; color: #6b7280; }
.badge-contacted { background: var(--blue-light); color: var(--blue); }
.badge-converted { background: #ecfdf5; color: #059669; }
.badge-archived { background: #f3f4f6; color: #9ca3af; }
.badge-paused { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-ended { background: #f3f4f6; color: #6b7280; }
.badge-live { background: #ecfdf5; color: #059669; }
.badge-broken { background: var(--red-light); color: var(--red); }
.badge-info { background: var(--blue-light); color: var(--blue); }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-success { background: #ecfdf5; color: #059669; }
.badge-error { background: var(--red-light); color: var(--red); }
.badge-done { background: #ecfdf5; color: #059669; }
.badge-todo { background: #f3f4f6; color: #6b7280; }
.badge-in_progress { background: var(--blue-light); color: var(--blue); }
.badge-dofollow { background: #ecfdf5; color: #059669; }
.badge-nofollow { background: #f3f4f6; color: #6b7280; }

/* ===== ROAS / METRIC ===== */
.roas { font-weight: 700; color: var(--text); }

/* ===== PROGRESS BARS (Budget Utilization) ===== */
.budget-list { padding: 8px 20px 16px; }
.budget-item { margin-bottom: 14px; }
.budget-item:last-child { margin-bottom: 0; }
.budget-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.budget-name { font-size: 13px; font-weight: 500; color: var(--text-2); }
.budget-pct { font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.budget-track { height: 8px; border-radius: 20px; background: var(--border); overflow: hidden; }
.budget-fill { height: 100%; border-radius: 20px; }

/* ===== FORMS ===== */
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,48,74,.08);
}
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-field { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.form-check input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .12s; white-space: nowrap;
}
.btn:hover { border-color: var(--border-2); background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #c91c36; border-color: #c91c36; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.btn-pill { border-radius: 24px; }

/* ===== PAGE HEADER ===== */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.page-header-left h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.page-header-left p { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.page-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== FILTER INPUT BAR ===== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar .form-input, .filter-bar .form-select { flex: 1; min-width: 130px; max-width: 240px; }
.filter-bar .form-input.wide { max-width: 320px; }

/* ===== DIFFICULTY BAR ===== */
.diff-wrap { display: flex; align-items: center; gap: 7px; }
.diff-track { flex: 1; height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; min-width: 50px; }
.diff-fill { height: 100%; border-radius: 4px; }
.diff-val { font-size: 12px; font-weight: 700; min-width: 22px; text-align: right; }
.diff-easy .diff-fill { background: var(--green); }
.diff-easy .diff-val { color: #059669; }
.diff-med .diff-fill { background: var(--warn); }
.diff-med .diff-val { color: #d97706; }
.diff-hard .diff-fill { background: var(--red); }
.diff-hard .diff-val { color: var(--red); }

/* ===== DR BADGE ===== */
.dr { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.dr-low { background: var(--red-light); color: var(--red); }
.dr-mid { background: #fffbeb; color: #d97706; }
.dr-high { background: #ecfdf5; color: #059669; }
.dr-top { background: #eff6ff; color: var(--blue); }

/* ===== POS CHANGE ===== */
.pos-up { color: var(--green); font-size: 12px; font-weight: 700; }
.pos-down { color: var(--red); font-size: 12px; font-weight: 700; }
.pos-same { color: var(--text-muted); font-size: 12px; }
.pos-num { font-weight: 700; font-size: 14px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.3);
  backdrop-filter: blur(3px); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { color: var(--text-muted); font-size: 22px; line-height: 1; padding: 2px 5px; border-radius: 5px; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }

/* ===== ROW ACTIONS ===== */
.row-actions { display: flex; gap: 4px; }
.act-btn { padding: 5px 8px; border-radius: 6px; color: var(--text-muted); font-size: 13px; border: 1px solid transparent; transition: all .12s; }
.act-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.act-btn.del:hover { background: var(--red-light); border-color: rgba(239,68,68,.2); color: var(--red); }

/* ===== KEBAB MENU (campaign row actions) ===== */
.kebab-wrap { position: relative; display: inline-block; }
.kebab-btn {
  width: 28px; height: 28px; border-radius: 7px; color: var(--text-muted);
  font-size: 16px; font-weight: 700; letter-spacing: 1px; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center; transition: all .12s;
}
.kebab-btn:hover, .kebab-btn.open { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.kebab-menu {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 20;
  display: none; flex-direction: column; gap: 1px;
}
.kebab-menu.open { display: flex; }
.kebab-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; text-align: left; width: 100%;
}
.kebab-item:hover { background: var(--surface-2); }
.kebab-item.danger { color: var(--red); }
.kebab-item.danger:hover { background: var(--red-light); }

/* ===== EMPTY STATE ===== */
.empty-state { padding: 44px 20px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ===== MINI STAT ROW ===== */
.mini-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; flex: 1; min-width: 110px; box-shadow: var(--shadow-sm); }
.mini-card .lbl { font-size: 11.5px; color: var(--text-dim); font-weight: 500; margin-bottom: 4px; }
.mini-card .val { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
@media (max-width: 960px) { .grid-2, .grid-2-1 { grid-template-columns: 1fr; } }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 22px; right: 22px;
  background: #1f2937; color: #fff; padding: 12px 18px;
  border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 200;
  display: none; align-items: center; gap: 8px; box-shadow: var(--shadow-lg);
}
.toast.show { display: flex; }
.toast.ok { background: #059669; }
.toast.err { background: var(--red); }

/* ===== LOGIN ===== */
.login-page {
  min-height: 100vh; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 36px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-logo .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; }
.login-logo .name { font-size: 18px; font-weight: 700; }
.login-err { color: var(--red); font-size: 13px; padding: 10px 12px; background: var(--red-light); border-radius: 8px; margin-bottom: 14px; display: none; }
.login-err.show { display: block; }
.login-hint { color: var(--text-muted); font-size: 11.5px; margin-top: 14px; text-align: center; }

/* ===== PLATFORM ICON ===== */
.plat { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.pub-yes { font-size: 12px; color: #059669; font-weight: 600; }
.pub-no { font-size: 12px; color: var(--text-muted); }
