:root {
  --gold: #c8963e;
  --gold-bright: #e0b04a;
  --gold-dim: rgba(200, 150, 62, .18);
  --black: #0a0a0a;
  --charcoal: #121212;
  --ink: #1a1a1a;
  --panel: #161616;
  --line: #2a2a2a;
  --muted: #8a8a8a;
  --text: #1c1c1c;
  --white: #f7f5f0;
  --card: #ffffff;
  --danger: #b42318;
  --ok: #2f6b3a;
  --sidebar: 272px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0,0,0,.12);
  --font: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #efeee9;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
body.modal-open { overflow: hidden; }

.gold { color: var(--gold); }
.muted { color: var(--muted); }
.tiny { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.divider { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 10px 0 18px; }

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--black);
}
.login-visual {
  position: relative;
  background: #000 url("../images/hero-mine.png") center/cover no-repeat;
}
.login-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.72) 100%);
}
.login-visual-copy {
  position: absolute; z-index: 2; left: 48px; bottom: 48px; right: 48px; color: #fff;
}
.login-panel {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(200,150,62,.12), transparent 50%), var(--charcoal);
  padding: 40px 24px;
}
.login-card {
  width: min(440px, 100%);
  color: #fff;
}
.brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark .mark,
.site-logo .mark,
.side-brand .mark {
  width: 42px; height: 42px; object-fit: contain; border-radius: 50%;
  background: #fff; display: block; flex: 0 0 auto;
  border: 1px solid rgba(200, 150, 62, .4);
}
.brand-mark .mark { width: 52px; height: 52px; }
.brand-mark h1 { margin: 0; font-size: 18px; letter-spacing: .16em; color: var(--gold); }
.brand-mark p { margin: 4px 0 0; font-size: 11px; letter-spacing: .28em; color: #cfcfcf; }
.brand-mark-stack {
  flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.brand-mark-stack .mark { width: 96px; height: 96px; }
.brand-mark-stack .brand-text { font-size: 14px; }
.brand-mark-stack h1 {
  margin: 0;
  font-size: 1.2em;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.2;
}
.brand-mark-stack p {
  margin: 6px 0 0;
  font-size: 1em;
  letter-spacing: .28em;
  color: #cfcfcf;
  text-transform: uppercase;
}
.login-visual-brand {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 18px;
}
.login-visual-brand .mark { width: 112px; height: 112px; }
.login-visual-brand .brand-text { font-size: 18px; }
.login-visual-brand h1 { color: var(--gold); }
.login-visual-brand p { color: #eee; }
.login-card h2 { font-size: 28px; letter-spacing: .08em; margin: 0 0 8px; text-transform: uppercase; }
.login-card .lead { color: #bdbdbd; margin: 0 0 28px; line-height: 1.6; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea {
  background: #0f0f0f; border: 1px solid #2d2d2d; color: #fff;
  padding: 13px 14px; border-radius: 10px; outline: none;
}
.admin .field input, .admin .field select, .admin .field textarea {
  background: #fff; color: var(--text); border-color: #e4e0d6;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 10px; padding: 12px 18px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px;
}
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #f0c2c2; }
.btn-block { width: 100%; }
.hint { margin-top: 18px; color: #8d8d8d; font-size: 12px; line-height: 1.6; }
.error { color: #ffb4a9; font-size: 13px; margin: 0 0 12px; }

/* Admin shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  display: flex; flex-direction: column;
  background: var(--charcoal); color: #fff; padding: 22px 16px 28px;
  border-right: 1px solid #1f1f1f; position: sticky; top: 0; height: 100vh; overflow: auto;
}
.side-brand { padding: 6px 10px 18px; display: flex; align-items: center; gap: 12px; }
.side-brand .mark { width: 48px; height: 48px; }
.side-brand .kicker { color: var(--gold); letter-spacing: .28em; font-size: 10px; }
.side-brand h1 { margin: 8px 0 0; font-size: 15px; letter-spacing: .12em; }
.side-brand h1 span { display: block; color: #fff; font-weight: 500; letter-spacing: .22em; font-size: 11px; margin-top: 4px; }
.nav-group { margin: 18px 8px 8px; color: var(--gold); font-size: 10px; letter-spacing: .22em; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; color: #d7d7d7; font-size: 13px;
}
.nav a svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.nav a:hover, .nav a.active { background: rgba(200,150,62,.12); color: #fff; }
.nav { flex: 1; min-height: 0; overflow: auto; }
.side-user {
  margin-top: auto; padding: 12px 10px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.22));
}
.side-user-dd { display: block; width: 100%; position: relative; }
.side-user-trigger {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: inherit; font: inherit; text-align: left;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.side-user-trigger:hover {
  border-color: rgba(200,150,62,.28);
  background: rgba(200,150,62,.08);
}
.side-user-trigger.is-active,
.side-user-dd.open .side-user-trigger {
  border-color: rgba(200,150,62,.45);
  background: rgba(200,150,62,.1);
  box-shadow: 0 0 0 1px rgba(200,150,62,.12);
}
.side-user-avatar { flex-shrink: 0; }
.side-user-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-user-meta .who {
  display: block; font-size: 13px; font-weight: 600; color: #fff;
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user-meta .role {
  display: block; color: var(--gold); font-size: 10px; letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user-chevron {
  width: 18px; height: 18px; flex-shrink: 0; margin-left: auto;
  color: rgba(200,150,62,.75);
  transition: transform .22s ease;
}
.side-user-dd.open .side-user-chevron { transform: rotate(180deg); }
.side-user-menu {
  bottom: calc(100% + 10px); top: auto; left: 0; right: 0; min-width: 100%;
  display: none; padding: 8px;
  background: #1a1a1a;
  border: 1px solid rgba(200,150,62,.22);
  border-radius: 14px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.35);
  transform-origin: bottom center;
}
.side-user-dd.open .side-user-menu {
  display: block;
  animation: sideUserMenuIn .2s ease-out;
}
@keyframes sideUserMenuIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.side-user-menu-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 10px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.side-user-menu-head-text {
  min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.side-user-menu-head-text strong {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user-menu-head-text span {
  font-size: 10px; color: #888;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user-menu-label {
  padding: 8px 10px 4px; font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(200,150,62,.65); font-weight: 700;
}
.side-user-menu .side-user-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 9px;
  font-size: 12px; font-weight: 600; color: #d8d8d8;
  transition: background .15s, color .15s;
}
.side-user-menu .side-user-item svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: var(--gold); fill: none; stroke-width: 1.7;
  opacity: .85;
}
.side-user-menu .side-user-item:hover {
  background: rgba(200,150,62,.12); color: #fff;
}
.side-user-menu .side-user-item.on {
  background: rgba(200,150,62,.16); color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}
.side-user-menu .side-user-item.danger { color: #e8a8a0; }
.side-user-menu .side-user-item.danger svg { stroke: #e8a8a0; }
.side-user-menu .side-user-item.danger:hover {
  background: rgba(180,60,50,.18); color: #ffc9c3;
}
.side-user-menu-divider {
  height: 1px; background: rgba(255,255,255,.07); margin: 6px 4px;
}

.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: #fff; border-bottom: 1px solid #ece8df;
}
.topbar h2 { margin: 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.content { padding: 26px 28px 48px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--shadow); border: 1px solid #efebe3;
}
.kpi .label { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.kpi .value { font-size: 28px; margin-top: 8px; font-weight: 700; }
.kpi .icon {
  width: 36px; height: 36px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 10px;
}
.kpi .icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.7; }

.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid #efebe3;
}
.card h3 { margin: 0 0 4px; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid #eee;
}
.table td { padding: 12px 8px; border-bottom: 1px solid #f1eee7; font-size: 14px; vertical-align: top; }
.table tr:hover td { background: #fbfaf6; }

.badge {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; letter-spacing: .04em; background: var(--gold-dim); color: #7a5a16; font-weight: 600;
}
.badge.dark { background: #111; color: var(--gold); }
.badge.warn { background: #fff4d6; color: #8a6200; }
.badge.ok { background: #e7f4ea; color: var(--ok); }
.badge.danger { background: #fde8e6; color: var(--danger); }
.badge.gold { background: rgba(200,150,62,.15); color: #7a5a16; border: 1px solid rgba(200,150,62,.35); }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step {
  border: 1px solid #efe7d4; border-radius: 12px; padding: 14px;
  background: linear-gradient(180deg, #fff, #fbf8f1);
}
.step .num { color: var(--gold); font-weight: 700; letter-spacing: .16em; font-size: 12px; }
.step h4 { margin: 8px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.step p { margin: 0; color: #666; font-size: 13px; line-height: 1.5; }

.circuit { display: grid; gap: 8px; }
.circuit li {
  list-style: none; padding: 10px 12px; border-left: 2px solid var(--gold);
  background: #fbf8f1; font-size: 13px;
}

.flash {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: #e7f4ea; color: var(--ok);
}
.flash.err { background: #fde8e6; color: var(--danger); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search {
  flex: 1; min-width: 200px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid #e4e0d6; background: #fff;
}

.modal { display: none; position: fixed; inset: 0; z-index: 3000; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-panel {
  position: relative; z-index: 2; width: min(720px, calc(100% - 32px));
  margin: 5vh auto; padding: 5px; background: #fff; border-radius: 16px;
  max-height: min(92vh, 920px); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
  padding: 11px 15px; background: var(--charcoal); color: #fff; border-radius: 12px 12px 0 0;
}
.modal-head h3 { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--gold); }
.modal-content {
  flex: 1 1 auto; min-height: 0; padding: 5px;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.modal-content > form { display: flex; flex-direction: column; gap: 0; }
.modal-content > form > .modal-foot {
  position: sticky; bottom: 0; z-index: 2; margin-top: 8px;
  border-top: 1px solid #ece8df;
}
.modal-body { padding: 5px; }
.modal-foot {
  padding: 9px 5px; display: flex; justify-content: flex-end; gap: 8px;
  background: #faf8f3;
}
.modal-content .form-grid { padding: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: span 2; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; overflow: auto; padding-bottom: 4px; }
.kanban-col {
  background: linear-gradient(180deg, #faf7f0 0%, #f3eee3 100%);
  border: 1px solid #ebe3d2;
  border-radius: 14px; padding: 14px; min-height: 140px;
}
.kanban-col h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7a5a16; }
.opp-card {
  display: block; background: #fff; border-radius: 10px; padding: 12px;
  margin-bottom: 8px; border: 1px solid #efe7d4; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.opp-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(200, 150, 62, .12);
  transform: translateY(-1px);
}
.opp-card strong { display: block; font-size: 13px; margin-bottom: 4px; }

.show-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.meta dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.meta dd { margin: 4px 0 0; }
.prose { line-height: 1.7; white-space: pre-wrap; }
.pager { margin-top: 16px; }

.gsr-dd { position: relative; display: inline-block; vertical-align: middle; }
.gsr-dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: auto; padding: 6px 10px; font-size: 11px;
}
.gsr-dd-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7;
}
.gsr-dd-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 30;
  min-width: 160px; padding: 6px; background: #fff;
  border: 1px solid #efe7d4; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.gsr-dd-left .gsr-dd-menu { right: auto; left: 0; }
.gsr-dd.open .gsr-dd-menu { display: block; }
.gsr-dd-item {
  display: block; width: 100%; appearance: none; background: none; border: 0;
  text-align: left; padding: 9px 12px; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; color: #222; cursor: pointer;
  text-decoration: none; letter-spacing: .02em;
}
.gsr-dd-item:hover { background: #f7f4ec; color: #111; }
.gsr-dd-item.danger { color: #a33; }
.gsr-dd-item.danger:hover { background: #f8eaea; }
.table td .gsr-dd { float: right; }

/* Sidebar account dropdown — overrides generic .gsr-dd-* below */
.side-user-dd.gsr-dd { display: block; width: 100%; vertical-align: unset; }
.side-user-dd .side-user-trigger.gsr-dd-toggle {
  display: flex; width: 100%; min-width: 0; gap: 11px;
  padding: 10px 11px; font-size: inherit;
}
.side-user-dd .gsr-dd-menu.side-user-menu {
  top: auto; bottom: calc(100% + 10px); left: 0; right: 0; min-width: 100%;
  background: #1a1a1a; border: 1px solid rgba(200,150,62,.22);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.35);
}
.side-user-dd .side-user-menu .gsr-dd-item.side-user-item {
  display: flex; align-items: center; gap: 10px;
  color: #d8d8d8; padding: 10px 11px; border-radius: 9px;
}
.side-user-dd .side-user-menu .gsr-dd-item.side-user-item:hover {
  background: rgba(200,150,62,.12); color: #fff;
}
.side-user-dd .side-user-menu .gsr-dd-item.side-user-item.on {
  background: rgba(200,150,62,.16); color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}
.side-user-dd .side-user-menu .gsr-dd-item.side-user-item.danger { color: #e8a8a0; }
.side-user-dd .side-user-menu .gsr-dd-item.side-user-item.danger:hover {
  background: rgba(180,60,50,.18); color: #ffc9c3;
}

.crm-panel .card-head { align-items: flex-start; }
.crm-lead { margin: 6px 0 0; font-size: 13px; max-width: 42rem; }
.side-stat .stat-line { margin: 0 0 10px; font-size: 14px; }
.side-stat .stat-line strong { color: var(--gold-dark, #8a6418); font-size: 22px; margin-right: 6px; }
.badge-soft { background: #f4ecda; color: #6e5215; border: 1px solid #e6d8b6; }
.badge-muted { background: #eee; color: #666; border-color: #ddd; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 14px 0 14px 18px;
  border-left: 2px solid #e8dfcb; margin-left: 6px;
}
.timeline li::before {
  content: ''; position: absolute; left: -5px; top: 20px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.timeline-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }

.gsr-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid #ece8df; margin: 0 0 18px;
}
.gsr-tabs a, .gsr-tabs button.gsr-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 11px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #8a8a8a; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.gsr-tabs a.on, .gsr-tabs button.gsr-tab.on {
  color: #111; border-bottom-color: var(--gold); font-weight: 800;
}
.gsr-tabs a:hover, .gsr-tabs button.gsr-tab:hover { color: #111; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; font-weight: 800;
}
.lang-switch a { color: #8a8a8a; }
.lang-switch a.on { color: var(--gold); }
.site-nav .lang-switch a { color: #aaa; }
.site-nav .lang-switch a.on { color: var(--gold); }
.login-card .lang-switch a.on { color: var(--gold); }

/* Public site */
body.site { background: #fff; }
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 36px; background: var(--charcoal); color: #fff;
  position: sticky; top: 0; z-index: 2000; border-bottom: 1px solid #222;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo strong { display: block; font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.site-logo small { display: block; letter-spacing: .28em; font-size: 10px; color: #ddd; }
.site-nav nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav nav a {
  color: #ddd; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav nav a.on, .site-nav nav a:hover { color: #111; background: var(--gold); }
.site-nav-dd { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.site-nav-dd-label {
  color: #ddd; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
}
.site-nav-dd-label.on, .site-nav-dd-label:hover, .site-nav-dd.on > .site-nav-dd-label { color: #111; background: var(--gold); }
.site-nav-dd-toggle {
  border: 0; background: transparent; color: #ddd; cursor: pointer; padding: 4px 6px; font-size: 11px;
}
.site-nav-dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: #111; border: 1px solid #333; border-radius: 8px; padding: 6px; z-index: 2100;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.site-nav-dd.open .site-nav-dd-menu { display: block; }
.site-nav-dd-menu a {
  display: block; color: #ddd; padding: 8px 12px; border-radius: 6px; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.site-nav-dd-menu a.on, .site-nav-dd-menu a:hover { background: var(--gold); color: #111; }
.field-err { display: block; color: #a33; font-size: 12px; margin-top: 4px; }
.hero {
  min-height: 78vh;
  background: #000 url("../images/hero-mine.png") center/cover no-repeat;
  position: relative; display: flex; align-items: flex-end;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .72);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; padding: 64px 48px 72px; max-width: min(920px, 100%); }
.hero-kicker {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.hero-title {
  margin: 10px 0 0;
  font-size: clamp(18px, 3vw, 32px);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.15;
}
.hero-sub { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.hero-text { color: #e8e8e8; line-height: 1.75; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.site-block { padding: 72px 24px; }
.site-block.alt { background: #f7f4ec; }
.site-wrap { width: min(1120px, 100%); margin: 0 auto; }
.site-block h2 { margin: 8px 0 0; letter-spacing: .08em; text-transform: uppercase; font-size: 26px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.app-card {
  background: #fff; border: 1px solid #efe7d4; border-radius: 16px; padding: 22px 18px;
  box-shadow: var(--shadow); min-height: 210px; display: block; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.app-card:hover { border-color: var(--gold); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.app-card.has-media { padding: 0 0 18px; }
.app-card-media {
  aspect-ratio: 16 / 10; overflow: hidden; background: #111; margin-bottom: 14px;
}
.app-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.app-card.has-media:hover .app-card-media img { transform: scale(1.04); }
.app-card.has-media h3,
.app-card.has-media p { padding: 0 18px; }
.app-icon {
  width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); margin-bottom: 14px;
}
.app-icon svg, .gsr-icon { width: 22px; height: 22px; }
.app-card h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.app-card p { margin: 0; color: #666; font-size: 13px; line-height: 1.55; }
.page-cover {
  margin: 0 0 28px; border-radius: 16px; overflow: hidden;
  border: 1px solid #efe7d4; box-shadow: var(--shadow); background: #111;
}
.page-cover img { width: 100%; display: block; max-height: 420px; object-fit: cover; object-position: center top; }
.page-cover figcaption {
  padding: 12px 16px; font-size: 13px; color: #666; background: #faf8f3;
  border-top: 1px solid #efe7d4;
}
.process-flow { display: flex; align-items: stretch; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.process-step {
  flex: 1; min-width: 160px; background: #fff; border: 1px solid #efe7d4; border-radius: 14px; padding: 18px;
}
.process-step .num { color: var(--gold); font-weight: 800; letter-spacing: .16em; }
.process-step h3 { margin: 8px 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.process-step p { margin: 0; color: #666; font-size: 13px; line-height: 1.5; }
.process-arrow { align-self: center; color: var(--gold); font-size: 22px; }
.lead { color: #555; line-height: 1.7; max-width: 720px; }
.center-link { margin-top: 28px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.contact-card { background: #fff; border: 1px solid #efe7d4; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.contact-card .avatar {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; color: var(--gold); font-weight: 800; letter-spacing: .08em; margin-bottom: 14px;
}
.contact-line { display: flex; gap: 10px; align-items: flex-start; color: #444; font-size: 14px; line-height: 1.5; }
.contact-line svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 16px; margin-top: 3px; }
.page-hero { background: var(--charcoal); color: #fff; padding: 48px 24px 36px; }
.page-hero h1 { margin: 8px 0 0; letter-spacing: .1em; text-transform: uppercase; font-size: 32px; }
.article { max-width: 820px; }
.site-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 36px; border-top: 1px solid #ece8df; background: #fff; color: #777; font-size: 12px;
}
.site-foot .site-logo small { color: #666; }

.network-layout {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 22px; align-items: start;
}
.network-map-panel { min-width: 0; }
.gsr-map {
  position: relative; z-index: 0; isolation: isolate;
  width: 100%; height: 520px; border: 1px solid #efe7d4; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); background: #f4f1ea;
}
.gsr-map-compact { height: 360px; }
.network-preview {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 22px; margin-top: 24px; align-items: start;
}
.network-preview-side { display: flex; flex-direction: column; gap: 16px; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: #666;
}
.map-legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.map-legend .dot.hq { background: var(--gold); }
.map-legend .dot.country { background: #111; }
.map-legend .dot.parent { background: #555; }
.seat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.seat-list.compact li {
  padding: 10px 0; border-bottom: 1px solid #efe7d4; display: flex; flex-direction: column; gap: 4px;
}
.seat-item {
  width: 100%; text-align: left; background: #fff; border: 1px solid #efe7d4; border-radius: 12px;
  padding: 12px 14px; cursor: pointer; font: inherit;
}
.seat-item:hover:not(:disabled) { border-color: var(--gold); }
.seat-item:disabled { opacity: .55; cursor: default; }
.seat-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.seat-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; color: #444; }
.badge.gold { background: rgba(200,150,62,.15); color: #7a5a16; border: 1px solid rgba(200,150,62,.35); }
.gsr-pin { background: transparent; border: 0; }
.gsr-pin span {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.map-popup { font-size: 13px; line-height: 1.45; min-width: 160px; }
.map-popup strong { display: block; margin-bottom: 4px; }
.map-popup .muted { color: #777; font-size: 12px; }

.phase-stepper {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px;
}
.phase-step {
  border: 1px solid #efe7d4; border-radius: 10px; padding: 10px 8px; text-align: center; background: #faf8f3;
}
.phase-step-num { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #999; }
.phase-step-label { font-size: 11px; line-height: 1.35; margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.phase-step--done { border-color: rgba(200,150,62,.45); background: rgba(200,150,62,.08); }
.phase-step--done .phase-step-num { color: var(--gold); }
.phase-step--current { border-color: var(--gold); background: rgba(200,150,62,.16); box-shadow: inset 0 0 0 1px rgba(200,150,62,.25); }
.phase-step--current .phase-step-label { font-weight: 700; color: #111; }
.phase-step--current .phase-step-num { color: var(--gold); }
@media (max-width: 1100px) {
  .phase-stepper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .phase-stepper { grid-template-columns: 1fr; }
  .gsr-map, .gsr-map-compact { height: 320px; }
}
@media (max-width: 720px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
  .app-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px 22px 48px; max-width: 100%; overflow-x: auto; }
  .hero-kicker { font-size: clamp(22px, 7.2vw, 46px); letter-spacing: .08em; }
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .kpis, .grid-2, .grid-3, .show-grid, .form-grid, .stepper, .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 280px; }
}

/* Account */
.gsr-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.gsr-avatar-img { object-fit: cover; border: 2px solid rgba(200,150,62,.45); }
.gsr-avatar-init {
  background: linear-gradient(145deg, #2a2a2a, #111); color: var(--gold);
  font-weight: 700; letter-spacing: .06em; border: 2px solid rgba(200,150,62,.35);
}
.side-user-top { display: flex; gap: 10px; align-items: center; }
.account-tabs { margin-bottom: 16px; }
.account-card { max-width: 920px; }
.account-profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.account-profile-head h3 { margin: 0 0 4px; }
.account-photo-edit { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0;
}
.detail-grid > div { margin: 0; }
.detail-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #888; margin-bottom: 4px; }
.detail-grid dd { margin: 0; font-size: 14px; color: #222; }
.account-narrow { max-width: 420px; }
.account-status {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
}
.account-status.on { background: #e7f4ea; color: var(--ok); border: 1px solid #c8e6cf; }
.account-status.off { background: #f5f5f5; color: #666; border: 1px solid #e5e5e5; }
.account-2fa-setup { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.account-qr { border: 1px solid #ece8df; border-radius: 8px; background: #fff; }
.account-secret {
  display: block; margin-top: 8px; padding: 8px 10px; background: #faf8f3;
  border: 1px solid #ece8df; border-radius: 8px; font-size: 13px; word-break: break-all;
}
.account-alert {
  padding: 14px 16px; border-radius: 10px; background: #fff8e8; border: 1px solid #ecd9a8; margin-bottom: 18px;
}
.recovery-codes {
  list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.recovery-codes code { font-size: 13px; background: #fff; padding: 6px 8px; border-radius: 6px; display: block; }
.account-sessions-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.login-shell-compact { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
  .recovery-codes { grid-template-columns: 1fr; }
}
