/* ═══════════════════════════════════════════════════════════
   ALSULTAN SECURITY — نظام تصميم "غرفة العمليات الأمنية"
   ═══════════════════════════════════════════════════════════
   الهوية: منصة مراقبة أمنية تقنية دقيقة — مو "بوت ألعاب".
   التوقيع البصري: مقياس الإشارة (VU-meter) مبني على نفس مفهوم
   خوارزمية الـ Heat الفعلية بالمنتج — مو زخرفة، جزء من المعنى.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* ── لوحة الألوان الأساسية (6 قيم مسمّاة) ── */
  --void:    #0a0d12;
  --panel:   #12161f;
  --line:    #232938;
  --signal:  #45d8c0;
  --threat:  #ff5d68;
  --caution: #f2a93c;

  --panel-2:   #171d29;
  --panel-3:   #1c2330;
  --line-2:    #2c3345;
  --signal-10: rgba(69, 216, 192, .1);
  --signal-20: rgba(69, 216, 192, .2);
  --signal-35: rgba(69, 216, 192, .35);
  --threat-12: rgba(255, 93, 104, .12);
  --threat-25: rgba(255, 93, 104, .25);
  --caution-12: rgba(242, 169, 60, .12);
  --caution-25: rgba(242, 169, 60, .25);

  --ink:       #e9ecf3;
  --ink-dim:   #9199ac;
  --ink-faint: #565f73;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font-ui:   'Cairo', 'Segoe UI', sans-serif;
  --font-data: 'JetBrains Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-ui);
  background: var(--void);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 45% at 15% -5%, rgba(69, 216, 192, .07), transparent),
    radial-gradient(ellipse 45% 35% at 100% 15%, rgba(255, 93, 104, .04), transparent),
    repeating-linear-gradient(rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--signal-35); color: #fff; }

.ic { flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.ic-signal { color: var(--signal); }
.ic-threat { color: var(--threat); }
.ic-caution { color: var(--caution); }
.ic-dim { color: var(--ink-faint); }

.mono, .data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}

/* ═══════════ Console Header ═══════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 28px; height: 60px;
  background: rgba(10, 13, 18, .88);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.navbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15.5px; letter-spacing: .2px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--signal);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px var(--void), 0 0 10px var(--signal);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.75); }
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--ink-dim); font-size: 13.5px; font-weight: 600;
  transition: all .15s;
}
.nav-links a:hover { background: var(--panel-2); color: var(--ink); }
.nav-links a.active { background: var(--panel-2); color: var(--signal); }

.nav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 100px;
}
.nav-user img { width: 28px; height: 28px; border-radius: 50%; }
.nav-user .name { font-size: 13px; font-weight: 600; }
.nav-user .logout {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: var(--ink-faint); transition: all .15s;
}
.nav-user .logout:hover { background: var(--threat-12); color: var(--threat); }

/* ═══════════ Layout ═══════════ */
.container { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 36px 24px 90px; }
.container.narrow { max-width: 760px; }

.page-header { margin-bottom: 30px; }
.page-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-data); font-size: 11.5px; font-weight: 600;
  color: var(--signal); text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.page-header h1 { font-size: 27px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.page-header p { color: var(--ink-dim); font-size: 14px; }

/* ═══════════ Cards ═══════════ */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 18px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.card h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card .subtitle { color: var(--ink-dim); font-size: 12.5px; margin-top: 3px; }

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--signal); color: #06231c; }
.btn-primary:hover { background: #5ee6cf; box-shadow: 0 0 0 4px var(--signal-10); }

.btn-secondary { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-faint); }

.btn-danger { background: var(--threat-12); color: var(--threat); border-color: var(--threat-25); }
.btn-danger:hover { background: var(--threat); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink-dim); }
.btn-ghost:hover { background: var(--panel-2); color: var(--ink); }

.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ═══════════ Forms ═══════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-dim);
}
.form-group .hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 6px; }

input[type="text"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: 11px 14px;
  background: var(--void); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink);
  font-family: var(--font-ui); font-size: 13.5px;
  transition: all .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-10);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { resize: vertical; min-height: 84px; font-family: var(--font-data); font-size: 12.5px; }

.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; font-family: var(--font-data); letter-spacing: 1px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

/* ═══════════ Switch (relay-style) ═══════════ */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 6px; transition: .2s; }
.slider:before {
  content: ""; position: absolute; height: 14px; width: 14px; left: 3px; top: 3px;
  background: var(--ink-faint); border-radius: 4px; transition: .2s;
}
.switch input:checked + .slider { background: var(--signal-10); border-color: var(--signal-35); }
.switch input:checked + .slider:before { transform: translateX(18px); background: var(--signal); box-shadow: 0 0 8px var(--signal-35); }

.check-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--void); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s;
}
.check-row:hover { border-color: var(--line-2); }
.check-row input { width: 16px; height: 16px; accent-color: var(--signal); cursor: pointer; flex-shrink: 0; }
.card > .check-row { margin-top: 8px; }

/* ═══════════ Status Badges ═══════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px;
  font-size: 11px; font-weight: 700; font-family: var(--font-data);
  text-transform: uppercase; letter-spacing: .4px;
}
.badge.success { background: var(--signal-10); color: var(--signal); }
.badge.danger  { background: var(--threat-12); color: var(--threat); }
.badge.warning { background: var(--caution-12); color: var(--caution); }
.badge.neutral { background: var(--panel-2); color: var(--ink-faint); }
.badge.accent  { background: var(--signal-10); color: var(--signal); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.on { background: var(--signal); box-shadow: 0 0 6px var(--signal); }
.status-dot.off { background: var(--ink-faint); }
.status-dot.danger { background: var(--threat); box-shadow: 0 0 6px var(--threat); }

/* ═══════════ Alerts ═══════════ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: 13.5px; font-weight: 600;
  animation: slide-in .25s ease;
}
.alert.error { background: var(--threat-12); color: var(--threat); border: 1px solid var(--threat-25); }
.alert.success { background: var(--signal-10); color: var(--signal); border: 1px solid var(--signal-35); }
.alert.info { background: var(--panel-2); color: var(--ink-dim); border: 1px solid var(--line-2); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════ VU Meter — التوقيع البصري ═══════════ */
.vu-meter { display: flex; gap: 3px; align-items: flex-end; height: 26px; flex: 1; min-width: 160px; max-width: 320px; }
.vu-meter .bar { flex: 1 1 0; min-width: 4px; background: var(--panel-3); border-radius: 2px; transition: background .3s; }
.vu-meter .bar.lit { background: var(--signal); box-shadow: 0 0 6px var(--signal-35); }
.vu-meter .bar.lit.warn { background: var(--caution); box-shadow: 0 0 6px var(--caution-25); }
.vu-meter .bar.lit.crit { background: var(--threat); box-shadow: 0 0 6px var(--threat-25); }
.vu-meter .bar:nth-child(1) { height: 35%; } .vu-meter .bar:nth-child(2) { height: 48%; }
.vu-meter .bar:nth-child(3) { height: 60%; } .vu-meter .bar:nth-child(4) { height: 72%; }
.vu-meter .bar:nth-child(5) { height: 82%; } .vu-meter .bar:nth-child(6) { height: 90%; }
.vu-meter .bar:nth-child(7) { height: 96%; } .vu-meter .bar:nth-child(8) { height: 100%; }
.vu-meter .bar:nth-child(9) { height: 90%; } .vu-meter .bar:nth-child(10) { height: 78%; }
.vu-meter .bar:nth-child(11) { height: 62%; } .vu-meter .bar:nth-child(12) { height: 50%; }
.vu-meter .bar:nth-child(13) { height: 38%; } .vu-meter .bar:nth-child(14) { height: 30%; }
.vu-meter .bar:nth-child(15) { height: 24%; } .vu-meter .bar:nth-child(16) { height: 18%; }

.vu-row { display: flex; align-items: center; gap: 14px; }
.vu-label { font-family: var(--font-data); font-size: 13px; font-weight: 700; color: var(--signal); white-space: nowrap; }

/* ═══════════ Stat Readouts ═══════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 3px; height: 100%;
  background: var(--signal);
}
.stat-card .stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--ink-faint); }
.stat-card .value { font-family: var(--font-data); font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-card .label { color: var(--ink-dim); font-size: 12px; font-weight: 600; }

/* ═══════════ Tables ═══════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: start; padding: 12px 14px;
  color: var(--ink-faint); font-weight: 700; font-size: 11px;
  font-family: var(--font-data); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--panel-2); }

/* ═══════════ List Items ═══════════ */
.item-list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; background: var(--void); border: 1px solid var(--line);
  border-radius: var(--radius); transition: all .15s;
}
.list-item:hover { border-color: var(--line-2); background: var(--panel-2); }
.list-item .info { flex: 1; min-width: 0; }
.list-item .info .title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.list-item .info .meta { color: var(--ink-faint); font-size: 12px; font-family: var(--font-data); }
.list-item .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ═══════════ Empty State ═══════════ */
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-faint); }
.empty-state .ic { color: var(--ink-faint); margin-bottom: 14px; opacity: .6; }
.empty-state .title { font-size: 15px; font-weight: 700; color: var(--ink-dim); margin-bottom: 5px; }
.empty-state .desc { font-size: 12.5px; }

/* ═══════════ Landing ═══════════ */
.landing { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.landing-nav { display: flex; align-items: center; gap: 10px; padding: 24px 32px; font-weight: 800; font-size: 15px; }
.landing-hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 100px; font-family: var(--font-data); font-size: 11.5px; font-weight: 600;
  color: var(--signal); margin-bottom: 26px; letter-spacing: .3px;
}
.hero-eyebrow .status-dot { animation: pulse-dot 2.4s ease-in-out infinite; }
.landing h1 {
  font-size: clamp(32px, 5.5vw, 50px); font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -1px; max-width: 720px;
}
.landing h1 .accent { color: var(--signal); }
.landing .tagline { font-size: 16px; color: var(--ink-dim); max-width: 520px; margin-bottom: 34px; }

.discord-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--void);
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 700; transition: all .2s;
}
.discord-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.landing-readout {
  display: flex; align-items: center; gap: 22px; margin-top: 54px;
  padding: 16px 26px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); font-family: var(--font-data); font-size: 12px;
}
.landing-readout .rd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.landing-readout .rd .v { font-size: 17px; font-weight: 700; color: var(--signal); }
.landing-readout .rd .l { color: var(--ink-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.landing-readout .sep { width: 1px; height: 28px; background: var(--line-2); }

.feature-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 50px; max-width: 780px; width: 100%;
}
.feature-strip .feat { background: var(--panel); padding: 20px 16px; text-align: center; }
.feature-strip .feat .ic { color: var(--signal); margin-bottom: 10px; }
.feature-strip .feat .name { font-size: 12.5px; font-weight: 700; }

/* ═══════════ Guild Header ═══════════ */
.guild-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.guild-icon { width: 60px; height: 60px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--line-2); }
.guild-icon.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line-2);
  font-family: var(--font-data); font-size: 22px; font-weight: 700; color: var(--signal);
}
.guild-head h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.guild-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-dim); }
.guild-meta .mono { color: var(--ink-faint); }

/* ═══════════ Tabs ═══════════ */
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 3px; margin-bottom: 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tab {
  display: flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-sm);
  color: var(--ink-dim); font-size: 12.5px; font-weight: 700; white-space: nowrap; transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--panel-3); color: var(--signal); }

/* ═══════════ Module Cards ═══════════ */
.module-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.module-card.disabled { opacity: .5; }
.module-card.disabled .module-body { display: none; }
.module-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; }
.module-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.module-title .mi {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--signal);
}
.module-title .mn { font-weight: 700; font-size: 14px; }
.module-title .md { color: var(--ink-faint); font-size: 11.5px; margin-top: 2px; }
.module-body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
  padding: 18px 20px; border-top: 1px solid var(--line);
}
.module-body .form-group { margin-bottom: 0; }
.module-body .form-group.full { grid-column: 1 / -1; }

.sticky-save {
  position: sticky; bottom: 18px; z-index: 50; padding: 14px;
  background: rgba(18, 22, 31, .92); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.sticky-save .btn { width: 100%; }

/* ═══════════ Presets ═══════════ */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.preset-btn {
  width: 100%; padding: 20px 15px; background: var(--void); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-family: var(--font-ui); text-align: start; transition: all .2s;
}
.preset-btn:hover { border-color: var(--signal); background: var(--panel-2); }
.preset-btn .pi { color: var(--signal); margin-bottom: 10px; }
.preset-btn .pn { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.preset-btn .pd { font-size: 11px; color: var(--ink-faint); line-height: 1.5; }

/* ═══════════ Module Coverage Chips ═══════════ */
.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 100px; font-size: 12px; font-weight: 600; border: 1px solid var(--line);
}
.chip.on { background: var(--signal-10); color: var(--signal); border-color: var(--signal-35); }
.chip.off { background: var(--void); color: var(--ink-faint); }

/* ═══════════ Log Stream ═══════════ */
.log-list { display: flex; flex-direction: column; gap: 6px; max-height: 620px; overflow-y: auto; }
.log-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 13px 16px; background: var(--void); border: 1px solid var(--line);
  border-inline-start: 2px solid var(--ink-faint); border-radius: var(--radius-sm);
}
.log-item.danger { border-inline-start-color: var(--threat); }
.log-item.warning { border-inline-start-color: var(--caution); }
.log-item.success { border-inline-start-color: var(--signal); }
.log-item.accent { border-inline-start-color: var(--signal); }
.log-main { flex: 1; min-width: 0; }
.log-title { font-weight: 700; font-size: 13.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.log-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-data); }
.log-details { opacity: .85; font-family: var(--font-ui); }
.log-time { font-size: 11px; color: var(--ink-faint); white-space: nowrap; font-family: var(--font-data); }

code { background: var(--void); padding: 2px 7px; border-radius: 5px; font-family: var(--font-data); font-size: 12px; color: var(--signal); }

/* ═══════════ Section Titles ═══════════ */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-dim);
  margin: 26px 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.section-title:first-child { margin-top: 0; }

.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }

/* ═══════════ Copy Chip ═══════════ */
.copy-key {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px;
  cursor: pointer; font-family: var(--font-data); font-size: 12px; transition: all .15s;
}
.copy-key:hover { border-color: var(--signal); color: var(--signal); }

/* ═══════════ Error Page ═══════════ */
.error-page { position: relative; z-index: 1; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.error-page .code { font-family: var(--font-data); font-size: 72px; font-weight: 700; color: var(--threat); line-height: 1; margin-bottom: 4px; }
.error-page .msg { font-size: 15px; color: var(--ink-dim); margin: 12px 0 28px; }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .container { padding: 24px 16px 70px; }
  .card { padding: 18px; }
  .list-item { flex-direction: column; align-items: stretch; }
  .list-item .actions { justify-content: stretch; }
  .list-item .actions .btn { flex: 1; }
  .inline-form { flex-direction: column; }
  .module-body { grid-template-columns: 1fr; }
  .module-head { flex-direction: column; align-items: flex-start; }
  .nav-user .name { display: none; }
  .landing-readout { flex-wrap: wrap; justify-content: center; }
}

/* ═══════════ Product Edit Panel ═══════════ */
.edit-panel { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.edit-panel.open { display: block; }
