/* ==========================================================================
   VCP SYSTEM PRO — STYLE 4: OBSIDIAN & CHAMPAGNE GOLD (LUXURY VIP EDITION)
   ========================================================================== */
:root {
  --bg-main: #0b0b0e;
  --bg-card: #131318;
  --bg-card-alt: #181820;
  --bg-card-hover: #1e1e28;
  --border-color: #2a2823;
  --border-gold: rgba(212, 175, 55, 0.38);
  --border-gold-bright: #d4af37;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-muted: #9a8032;
  --text-primary: #f7f4eb;
  --text-secondary: #a8a49c;
  --text-muted: #6e6a63;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --accent-green: #10b981;
  --accent-green-bright: #34d399;
  --accent-yellow: #d97706;
  --accent-yellow-bright: #fbbf24;
  --accent-red: #dc2626;
  --accent-red-bright: #f87171;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-vip: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 18px rgba(212, 175, 55, 0.08);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.07) 0%, transparent 55%);
  color: var(--text-primary);
  line-height: 1.5;
  padding: 20px 26px;
}

.app-container {
  max-width: 1440px;
  margin: 0 auto;
}

/* ==========================================================================
   BOX CONTROL TAGS & VIP LABELS
   ========================================================================== */
.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vip-tag {
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa821c 100%);
  color: #0b0b0e;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.box-id-tag {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  border: 1px dashed var(--gold-primary);
  font-family: "Consolas", "Monaco", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.box-corner-label {
  width: 100%;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
  padding-bottom: 6px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.table-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(19, 19, 24, 0.95) 100%);
  border-bottom: 1px solid var(--border-gold);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   [BOX 4.0] HEADER & NAVIGATION
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 28px;
  background: linear-gradient(145deg, #1d1b16, #12110e);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.header h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gold-light);
}

.subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--gold-light);
  border-color: var(--border-gold);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, #d4af37 0%, #aa821c 100%);
  color: #0b0b0e;
  border-color: var(--gold-light);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* ==========================================================================
   [BOX 4.1] CONTROLS PANEL & BUTTONS
   ========================================================================== */
.controls-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-vip);
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
}

.select-input, .text-input {
  background: #09090c;
  border: 1px solid #353229;
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  outline: none;
  min-width: 220px;
}

.select-input:focus, .text-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.search-box {
  display: flex;
  gap: 8px;
}

.text-input {
  min-width: 150px;
}

.control-action {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #b5891c 100%);
  color: #0b0b0e;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1c1b22;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: #282630;
  border-color: var(--gold-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
}

/* Mock Mode Banner */
.mock-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--gold-light);
}

/* Progress bar */
.progress-bar-container {
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  margin-bottom: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #1e1d24;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #10b981);
  transition: width 0.3s ease;
}

/* ==========================================================================
   [BOX 4.2] SUMMARY CARDS
   ========================================================================== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  box-shadow: var(--shadow-vip);
}

.card-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0;
}

.card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.text-gold { color: var(--gold-light); }
.text-emerald { color: var(--emerald-bright); }
.text-green { color: var(--accent-green-bright); }
.text-yellow { color: var(--accent-yellow-bright); }
.text-red { color: var(--accent-red-bright); }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.tab-btn.active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

/* ==========================================================================
   [BOX 4.3] LAYER 1 TABLE
   ========================================================================== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 24px;
  box-shadow: var(--shadow-vip);
}

.vcp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.vcp-table th {
  background: #0e0e12;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border-gold);
  line-height: 1.35;
}

.vcp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1e1e26;
  vertical-align: middle;
}

.vcp-table tbody tr {
  transition: background 0.15s;
}

.vcp-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.tag-hard {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.tag-soft {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.check-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.check-pill.pass {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.check-pill.fail {
  background: rgba(248, 113, 113, 0.14);
  color: var(--accent-red-bright);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.verdict-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.verdict-green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald);
}

.verdict-gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(16, 185, 129, 0.28));
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.verdict-yellow {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-yellow-bright);
  border: 1px solid #b45309;
}

.verdict-red {
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent-red-bright);
  border: 1px solid #991b1b;
}

.coin-col {
  display: flex;
  flex-direction: column;
}

.coin-sym {
  font-weight: 800;
  font-size: 14px;
  color: var(--gold-light);
}

.coin-nm {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ==========================================================================
   [BOX 4.4] LAYER 2 MODAL & INTERACTIVE CHART
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 18px;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1160px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 55, 0.18);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border-gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, #101015 100%);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-coin-badge {
  background: linear-gradient(135deg, #d4af37, #9a7418);
  color: #0b0b0e;
  font-weight: 900;
  font-size: 16px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
}

.modal-header h2 {
  font-size: 18px;
  color: var(--gold-light);
}

.modal-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 28px;
  cursor: pointer;
}

.modal-body {
  padding: 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chart-wrapper {
  background: #09090c;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-legend-custom {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-price { background: #d4af37; }
.dot-ma20 { background: #34d399; }
.dot-ma50 { background: #60a5fa; }
.dot-ma200 { background: #f87171; }
.dot-pivot { background: #e879f9; }

.chart-canvas-container {
  position: relative;
  height: 270px;
  width: 100%;
}

/* Layer 2 Steps Grid */
.layer2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-card {
  background: #0f0f14;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #25231f;
}

.step-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.step-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  flex-grow: 1;
}

.step-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.step-list li.item-pass {
  color: var(--text-primary);
}

.vcp-contraction-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #25231f;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.c-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #1c1c24;
  color: var(--text-secondary);
}

.c-pill.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.final-verdict-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #25231f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.verdict-label {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 700;
}

.verdict-pill {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
}

.verdict-pill.buy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.verdict-pill.wait {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.modal-calculator {
  background: #0f0f14;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.modal-calculator h4 {
  font-size: 12px;
  color: var(--gold-light);
}

.modal-calc-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calc-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sm-input {
  min-width: 80px;
  width: 90px;
  padding: 5px 8px;
  font-size: 12px;
}

.result-field {
  margin-left: auto;
  gap: 16px;
}

/* ==========================================================================
   [BOX 3 & 5] RISK & RULES DASHBOARDS
   ========================================================================== */
.risk-dashboard, .rules-dashboard, .map-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.risk-header-card, .rules-header {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px 24px;
}

.risk-grid, .rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.risk-card, .risk-table-card, .rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
}

.risk-input-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #222128;
  font-size: 13px;
}

.risk-safety-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.risk-safety-note.pass {
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.risk-safety-note.warn {
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-yellow-bright);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.gold-box {
  border: 1px solid var(--gold-primary);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 100%);
}

.red-box {
  border: 1px solid var(--accent-red-bright);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.08) 0%, var(--bg-card) 100%);
}

.rule-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.rule-box strong {
  color: var(--gold-light);
}

/* ==========================================================================
   ARCHITECTURE BOX MAP DIAGRAM (MATCHING USER'S DIAGRAM LAYOUT)
   ========================================================================== */
.arch-diagram-wrapper {
  background: #0d0d12;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-top-tier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.arch-group {
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(19, 19, 24, 0.85);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 0.6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.arch-parent-node {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.arch-children-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.arch-child-node {
  background: #16161f;
  border: 1px solid #2e2c26;
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.arch-child-node.done-box {
  border-left-color: var(--emerald-bright);
}

.arch-child-node.todo-box {
  border-left-color: var(--accent-yellow-bright);
}

.arch-child-node strong {
  font-family: "Consolas", monospace;
  font-size: 12px;
  color: var(--gold-light);
  display: flex;
  justify-content: space-between;
}

.arch-child-node span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-child-node small {
  font-size: 11px;
  color: var(--text-secondary);
}

.arch-connector-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 16px;
  color: var(--gold-primary);
  font-size: 12px;
  font-weight: 700;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.arch-shared-core {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(19, 19, 24, 0.95));
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
}

.arch-shared-core strong {
  color: var(--gold-light);
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.arch-shared-core p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.footer-guidelines {
  margin-top: 20px;
}

.guideline-box {
  background: rgba(19, 19, 24, 0.9);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--gold-light);
}

@media (max-width: 1024px) {
  .arch-top-tier, .layer2-grid, .risk-grid, .rules-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   [BOX 7.1 & 7.2] AUTH OVERLAY & ADMIN USER MANAGEMENT STYLES
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 26px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 32px rgba(212, 175, 55, 0.22);
}

.auth-logo {
  font-size: 38px;
  text-align: center;
  margin-bottom: 8px;
}

.auth-divider {
  text-align: center;
  margin: 14px 0;
  position: relative;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
