/* ═══════════════════════════════════════════════════════════════
   Ops Platform — Server 173.249.20.244
   Fonts: Syne (display) + Geist Mono (data/code)
   Design ported from 83.171.248.100 platform
═══════════════════════════════════════════════════════════════ */

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

/* ── DARK THEME (default) ──────────────────────────────────── */
:root {
  --bg:        #0a0b0e;
  --surface:   #111318;
  --surface2:  #181c24;
  --border:    #1e2330;
  --border2:   #262d3d;

  --text:      #e8ecf4;
  --text2:     #8892a4;
  --text3:     #4a5568;

  --accent:    #3b82f6;
  --accent2:   #60a5fa;
  --green:     #22c55e;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --purple:    #a78bfa;
  --cyan:      #22d3ee;

  --shadow:    0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.2);

  --radius:    10px;
  --radius-lg: 16px;
  --font:      'Syne', sans-serif;
  --mono:      'Geist Mono', monospace;
  --trans:     0.18s ease;

  /* keep legacy var names used in 173 templates */
  --bg2:       var(--surface);
  --bg3:       var(--surface2);
  --bg4:       #1e2535;
  --purple-d:  #6366f1;
  --sidebar-w: 220px;
  --sans:      'Syne', sans-serif;
}

/* ── LIGHT THEME ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg:       #f0f2f7;
  --surface:  #ffffff;
  --surface2: #f5f7fb;
  --border:   #dde1ed;
  --border2:  #c8cfe0;

  --text:     #0f1117;
  --text2:    #4a5578;
  --text3:    #9aa3b8;

  --accent:   #2563eb;
  --accent2:  #3b82f6;
  --green:    #16a34a;
  --red:      #dc2626;
  --yellow:   #d97706;
  --purple:   #7c3aed;
  --cyan:     #0891b2;

  --shadow:   0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);

  --bg2:      var(--surface);
  --bg3:      var(--surface2);
  --bg4:      #edf2fb;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

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

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  padding: 20px 12px;
  transition: background 0.3s, border-color 0.3s;
}

.sidebar-brand,
a.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; font-size: 12px; color: #fff;
  flex-shrink: 0;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub  { font-size: 10px; color: var(--text3); font-family: var(--mono); letter-spacing: 0.08em; }

/* nav */
.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-group-label,
.nav-section-label {
  font-size: 9px; letter-spacing: 0.12em; color: var(--text3);
  font-family: var(--mono); padding: 0 8px;
  margin-bottom: 6px; margin-top: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  color: var(--text2); text-decoration: none;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background var(--trans), color var(--trans);
  margin-bottom: 1px;
}
.nav-item i      { width: 16px; text-align: center; font-size: 13px; }
.nav-item span   { flex: 1; }
.nav-item:hover  { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-badge {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  background: var(--border2); color: var(--text2);
  padding: 2px 6px; border-radius: 20px;
  border: 1px solid var(--border);
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); color: #fff; border-color: transparent; }

/* sidebar footer */
.sidebar-footer {
  display: flex; align-items: center; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto;
}
.server-pill,
.status-pill {
  flex: 1; display: flex; align-items: center; gap: 7px;
  background: var(--surface2); border-radius: 20px;
  padding: 6px 10px; font-family: var(--mono);
  font-size: 11px; color: var(--text2); overflow: hidden;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text3); flex-shrink: 0; transition: background 0.3s;
}
.pulse-dot.online  { background: var(--green); animation: pulse 2s infinite; }
.pulse-dot.offline { background: var(--red); }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.logout-btn,
.icon-btn-sm {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text3); text-decoration: none;
  background: transparent; border: none; cursor: pointer; font-size: 13px;
  transition: background var(--trans), color var(--trans);
}
.logout-btn:hover  { background: var(--red); color: #fff; }
.icon-btn-sm:hover { background: var(--surface2); color: var(--text); }

/* theme toggle */
.theme-toggle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--surface2);
  border: 1px solid var(--border); color: var(--text2);
  cursor: pointer; font-size: 14px;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.theme-toggle:hover { background: var(--border2); color: var(--text); }

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

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
}
.topbar-left  { display: flex; align-items: baseline; gap: 12px; }
.page-title   { font-size: 20px; font-weight: 700; }
.page-subtitle,
.page-sub     { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 34px; height: 34px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), color var(--trans); font-size: 13px;
}
.icon-btn:hover { background: var(--border2); color: var(--text); }
.icon-btn.spinning i,
.icon-btn .spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.uptime-chip {
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px;
}

/* ── CONTENT ───────────────────────────────────────────────── */
.content { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
  margin-bottom: 0;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.card-title i { color: var(--accent2); font-size: 12px; }
.card-meta,
.badge-chip {
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 20px;
}

/* ── METRICS ROW ───────────────────────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.metric-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
}
.metric-card:nth-child(2)::before { background: var(--purple); }
.metric-card:nth-child(3)::before { background: var(--cyan); }
.metric-card:nth-child(4)::before { background: var(--yellow); }

.metric-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--text3); margin-bottom: 8px;
}
.metric-value {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
  line-height: 1; margin-bottom: 10px;
}
.metric-value.small { font-size: 16px; }
.metric-unit { font-size: 13px; color: var(--text3); font-weight: 400; }

/* unified gauge names (83 uses gauge-bar/gauge-fill; 173 uses gauge-track/gauge-fill) */
.gauge-bar,
.gauge-track { height: 3px; background: var(--border2); border-radius: 4px; overflow: hidden; }
.gauge-fill  {
  height: 100%; border-radius: 4px;
  background: var(--accent);
  transition: width 0.6s ease; max-width: 100%;
}
.metric-card:nth-child(2) .gauge-fill { background: var(--purple); }
.metric-card:nth-child(3) .gauge-fill { background: var(--cyan); }
.metric-card:nth-child(4) .gauge-fill { background: var(--yellow); }

/* ── STAT ROW ──────────────────────────────────────────────── */
/* 173 uses stat-box; 83 uses stat-card — support both */
.stat-row { display: flex; gap: 0; }

.stat-box {
  flex: 1; text-align: center;
  padding: 16px 8px;
  border-right: 1px solid var(--border);
}
.stat-box:last-child { border-right: none; }
.stat-num {
  font-size: 28px; font-weight: 700;
  font-family: var(--mono); letter-spacing: -0.02em; margin-bottom: 4px;
  color: var(--text);
}
.stat-num.green { color: var(--green); }
.stat-num.cyan  { color: var(--cyan); }
.stat-num.dim   { color: var(--text3); font-size: 14px; }
.stat-lbl { font-size: 10px; color: var(--text3); letter-spacing: 0.06em; }

.stat-row .stat-card {
  flex: 1; text-align: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.stat-number { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--accent2); line-height: 1; }
.stat-label  { font-size: 11px; color: var(--text3); margin-top: 5px; letter-spacing: 0.04em; }

/* ── TABLES ────────────────────────────────────────────────── */
.table-wrap,
.ct-table-wrap { overflow-x: auto; }

.data-table,
.ct-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th,
.ct-table th {
  text-align: left;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text3); padding: 6px 12px 10px;
  border-bottom: 1px solid var(--border);
}
.data-table td,
.ct-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td,
.ct-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td,
.ct-table tr:hover td { background: var(--surface2); }

.ct-name  { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--text); }
.ct-image { font-family: var(--mono); font-size: 11px; color: var(--text3); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-ports { font-family: var(--mono); font-size: 11px; color: var(--cyan); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono     { font-family: var(--mono); }
.dim      { color: var(--text3); font-size: 12px; }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
}
/* support both naming conventions */
.badge-run,  .badge.run  { background: rgba(34,197,94,0.12);  color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.badge-stop, .badge.stop { background: rgba(239,68,68,0.12);  color: var(--red);   border: 1px solid rgba(239,68,68,0.2); }
.badge-run::before,  .badge.run::before  { content:''; width:5px; height:5px; background:var(--green); border-radius:50%; }
.badge-stop::before, .badge.stop::before { content:''; width:5px; height:5px; background:var(--red);   border-radius:50%; }
[data-theme="light"] .badge-run,  [data-theme="light"] .badge.run  { background: rgba(22,163,74,0.1); }
[data-theme="light"] .badge-stop, [data-theme="light"] .badge.stop { background: rgba(220,38,38,0.1); }

/* ── INLINE STAT BARS ──────────────────────────────────────── */
/* 173 uses bar-wrap/bar-bg/bar-fill; 83 uses stat-bar-wrap etc — support both */
.stat-bar-wrap,
.bar-wrap  { display: flex; align-items: center; gap: 6px; min-width: 90px; }
.stat-bar-bg,
.bar-bg    { flex: 1; height: 4px; background: var(--border2); border-radius: 4px; overflow: hidden; }
.stat-bar-fill,
.bar-fill  { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.5s ease; }
.bar-fill.warn,
.stat-bar-fill.warn { background: var(--yellow); }
.bar-fill.crit,
.stat-bar-fill.crit { background: var(--red); }
.stat-pct,
.stat-val  { font-family: var(--mono); font-size: 11px; color: var(--text3); min-width: 36px; }
.stat-val.cyan { color: var(--cyan); }

/* ── ACTION BUTTONS ────────────────────────────────────────── */
/* unified: 83 uses ctr-action-btn; 173 uses act-btn — both work */
.action-btns { display: flex; gap: 4px; align-items: center; }

.ctr-action-btn,
.act-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px; border: none; cursor: pointer; font-size: 11px;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
.ctr-action-btn:hover,
.act-btn:hover { transform: scale(1.12); }
.ctr-action-btn:disabled,
.act-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.ctr-action-btn.restart,
.act-btn.restart { background: rgba(59,130,246,0.15); color: var(--accent2); }
.ctr-action-btn.restart:hover,
.act-btn.restart:hover { background: rgba(59,130,246,0.3); }

.ctr-action-btn.stop,
.act-btn.stop { background: rgba(239,68,68,0.12); color: var(--red); }
.ctr-action-btn.stop:hover,
.act-btn.stop:hover { background: rgba(239,68,68,0.25); }

.ctr-action-btn.start,
.act-btn.start { background: rgba(34,197,94,0.12); color: var(--green); }
.ctr-action-btn.start:hover,
.act-btn.start:hover { background: rgba(34,197,94,0.25); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; text-decoration: none;
  transition: opacity var(--trans), filter var(--trans), transform 0.1s;
}
.btn:hover    { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active   { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; transform: none; }

.btn-primary, .btn.primary { background: var(--accent); color: #fff; }
.btn-danger,  .btn.danger  { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-success              { background: var(--green); color: #fff; }
.btn-ghost,   .btn.ghost  { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
.btn-ghost:hover, .btn.ghost:hover { background: var(--border2); color: var(--text); filter: none; }
.btn-sm, .btn.sm { padding: 5px 11px; font-size: 12px; }
.btn-lg, .btn.lg { padding: 12px 24px; font-size: 14px; }

/* ── RESTORE FORM ──────────────────────────────────────────── */
.restore-form { max-width: 700px; display: flex; flex-direction: column; gap: 0; }
.form-section { padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.form-section:last-child { border-bottom: none; }
.form-section-title {
  font-size: 9px; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.12em; color: var(--text3); margin-bottom: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px; font-weight: 600; color: var(--text2);
  letter-spacing: 0.06em;
}
.form-input {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 9px 12px; font-size: 13px;
  font-family: var(--mono); color: var(--text); width: 100%;
  transition: border-color var(--trans), background 0.3s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input[readonly] { opacity: 0.6; cursor: default; }
.form-row   { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-note  { font-size: 12px; color: var(--text3); margin-top: 8px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.form-check input { accent-color: var(--accent); width: 14px; height: 14px; }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card  { cursor: pointer; flex: 1; min-width: 160px; }
.radio-card.sm { flex: unset; }
.radio-card input { display: none; }
.radio-body {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border2);
  border-radius: var(--radius); background: var(--surface2);
  transition: border-color var(--trans), background var(--trans);
}
.radio-card.sm .radio-body { padding: 9px 12px; min-width: 110px; }
.radio-card input:checked + .radio-body { border-color: var(--accent); background: rgba(59,130,246,0.08); }
[data-theme="light"] .radio-card input:checked + .radio-body { background: rgba(37,99,235,0.06); }
.radio-icon  { font-size: 16px; color: var(--accent2); }
.radio-label { font-size: 13px; font-weight: 600; }
.radio-desc  { font-size: 11px; color: var(--text3); font-family: var(--mono); margin-top: 2px; }
.radio-desc code { background: var(--border2); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); }

/* ── LOG CONSOLE ───────────────────────────────────────────── */
.log-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--text2);
}
.log-console {
  background: #05060a; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  max-height: 400px; overflow-y: auto; color: #8892a4;
  white-space: pre-wrap; word-break: break-all;
}
[data-theme="light"] .log-console { background: #1a1f2e; border-color: #2d3555; }
.log-line    { margin: 0; }
.log-elapsed { font-size: 11px; font-family: var(--mono); color: var(--text3); margin-top: 6px; }

/* ── BACKUP LIST ───────────────────────────────────────────── */
.backup-list { display: flex; flex-direction: column; gap: 8px; }
.backup-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px;
  background: var(--surface2); gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--border);
}
.backup-name    { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.backup-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.btn-delete-backup { color: var(--red) !important; opacity: 0.7; transition: opacity 0.15s; }
.btn-delete-backup:hover { opacity: 1; }
.btn-audit { color: var(--cyan) !important; opacity: 0.85; }
.btn-audit:hover { opacity: 1; }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.15s ease;
}
.modal-box {
  background: #111318; border: 1px solid #1e2330;
  border-radius: 16px; width: 100%; max-width: 600px;
  max-height: 88vh; overflow-y: auto; padding: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
[data-theme="light"] .modal-box { background: #fff; border-color: #dde1ed; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #1e2330;
}
[data-theme="light"] .modal-header { border-bottom-color: #dde1ed; }
.modal-title  { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: #e8ecf4; }
[data-theme="light"] .modal-title { color: #0f1117; }
.modal-close  {
  background: none; border: none; cursor: pointer; color: #4a5568;
  font-size: 18px; line-height: 1; padding: 6px 10px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: rgba(239,68,68,0.12); color: #ef4444; }
.modal-body { padding: 20px 24px 24px; }
.audit-footer {
  display: flex; gap: 8px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #1e2330;
}
[data-theme="light"] .audit-footer { border-top-color: #dde1ed; }

/* ── NOTICE ────────────────────────────────────────────────── */
.notice {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
}
.notice.warning {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  color: var(--yellow);
}
.notice code { font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }

/* ── ALERTS ────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; display: none; }
.alert.show     { display: block; }
.alert-success  { background: rgba(34,197,94,0.1);  color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.alert-error    { background: rgba(239,68,68,0.1);  color: var(--red);   border: 1px solid rgba(239,68,68,0.2); }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state,
.empty {
  text-align: center; padding: 36px; color: var(--text3);
  font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.empty-state i { font-size: 26px; display: block; margin-bottom: 10px; opacity: 0.35; }
.empty.warn    { color: var(--yellow); }

/* ── SETTINGS ──────────────────────────────────────────────── */
.settings-grid { display: flex; flex-direction: column; gap: 0; }
.settings-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text3); text-transform: uppercase; flex: 0 0 180px;
}
.settings-value { font-size: 14px; color: var(--text2); text-align: right; flex: 1; line-height: 1.45; }

/* ── TWO COL ───────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── UTILITIES ─────────────────────────────────────────────── */
.row-gap { display: flex; align-items: center; gap: 8px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title  { font-size: 13px; font-weight: 600; color: var(--text2); font-family: var(--mono); letter-spacing: 0.06em; }

/* ── ANIMATION ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* manual backup wrapper */
#manual-backup-wrapper { border-top: 1px solid var(--border); padding-top: 16px; }