/* ═══════════════════════════════════════════════════════
   OBSIDIAN GROUP — Site Stylesheet
   Theme: Dark Obsidian / Volcanic Gold
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-void:      #080810;
  --bg-deep:      #0d0d1a;
  --bg-card:      #111122;
  --bg-raised:    #161628;
  --bg-hover:     #1c1c35;
  --border:       rgba(232,192,96,0.15);
  --border-bright:rgba(232,192,96,0.4);
  --gold:         #e8c060;
  --gold-dim:     #b89040;
  --gold-bright:  #f5d080;
  --text-primary: #e8e8f0;
  --text-muted:   #7878a0;
  --text-dim:     #4a4a6a;
  --accent-blue:  #4060e0;
  --accent-cyan:  #40c0d0;
  --accent-red:   #e05050;
  --accent-green: #40c080;
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-gold:  0 0 40px rgba(232,192,96,0.08);
}

/* ── OBSIDIAN (TRUE BLACK) THEME ─────────────────────────── */
html[data-theme="obsidian"] {
  --bg-void:       #000000;
  --bg-deep:       #040408;
  --bg-card:       #07070e;
  --bg-raised:     #0c0e18;
  --bg-hover:      #111325;
  --border:        rgba(232,192,96,0.18);
  --border-bright: rgba(232,192,96,0.50);
  --shadow:        0 4px 32px rgba(0,0,0,1);
  --shadow-gold:   0 0 60px rgba(232,192,96,0.13);
}
html[data-theme="obsidian"] .site-header {
  background: rgba(0,0,2,0.93);
}
html[data-theme="obsidian"] .nav-links {
  background: rgba(0,0,1,0.99);
}
html[data-theme="obsidian"] .noise-overlay {
  opacity: 0.18;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 2rem; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; letter-spacing: 0.1em; color: var(--text-primary);
  white-space: nowrap;
}
.logo-accent { color: var(--gold); }
.logo:hover { color: var(--text-primary); }
.nav-links {
  display: flex; list-style: none; gap: .25rem; margin-left: auto;
}
.nav-links a {
  display: block; padding: .4rem .9rem;
  font-family: var(--font-display); font-size: .9rem;
  font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-muted); text-transform: uppercase;
  border-radius: var(--radius); transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: rgba(232,192,96,.07);
}
/* ── NAV DROPDOWN ────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: default; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); min-width: 200px;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); list-style: none; padding: .4rem 0; margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 9999;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li {
  list-style: none; padding: 0; margin: 0;
}
.nav-dropdown-menu li a {
  display: block; padding: .45rem 1.1rem;
  font-family: var(--font-display); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown-menu li a:hover { color: var(--gold); background: rgba(232,192,96,.07); }
.nav-dropdown-divider { list-style: none; border-top: 1px solid var(--border); margin: .35rem 0; padding: 0; }

.nav-auth { display: flex; gap: .75rem; align-items: center; margin-left: 1.5rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: .35rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); transition: transform .25s ease, opacity .2s ease, background .2s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--gold); }

/* ── THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  width: 30px; height: 30px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  justify-content: center; transition: all .2s; padding: 0;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--border-bright); }
html[data-theme="obsidian"] .theme-toggle { color: var(--gold-dim); border-color: rgba(232,192,96,.22); }

/* ── MOBILE-ONLY AUTH (inside hamburger panel) ───────────── */
.nav-mobile-auth {
  display: none; flex-direction: column; gap: .15rem;
  padding-top: 1rem; margin-top: .75rem;
  border-top: 1px solid var(--border);
}
.nav-mobile-auth a {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; border-radius: var(--radius);
  font-family: var(--font-display); font-size: .88rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); transition: all .2s;
}
.nav-mobile-auth a:hover { color: var(--gold); background: rgba(232,192,96,.07); }
.nav-mobile-auth .nav-mob-cta {
  margin-top: .4rem; color: var(--gold);
  border: 1px solid var(--border-bright); justify-content: center;
}
.nav-mobile-auth .nav-mob-cta:hover { background: rgba(232,192,96,.1); }
.nav-mobile-auth .nav-mob-admin { color: var(--accent-red); }
.nav-mobile-auth .nav-mob-admin:hover { color: #ff8080; background: rgba(224,80,80,.07); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary, .btn-outline, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.4rem;
  font-family: var(--font-display); font-size: .85rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: #080810;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-bright); color: #080810; }
.btn-outline {
  background: transparent; color: var(--gold);
  border-color: var(--border-bright);
}
.btn-outline:hover { background: rgba(232,192,96,.1); color: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-danger { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .3s, transform .2s, box-shadow .3s;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.card-title { margin-bottom: .5rem; }
.card-meta { font-family: var(--font-mono); font-size: .75rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }

/* ── SECTION COMMONS ────────────────────────────────────── */
.section { padding: 5rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-sm { padding: 3rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-full { padding: 5rem 2rem; }
.section-label {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); max-width: 600px; margin-bottom: 3rem; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 8rem 2rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(64,96,224,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(232,192,96,.06) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(232,192,96,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,192,96,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(232,192,96,.08); border: 1px solid var(--border);
  border-radius: 100px; padding: .3rem 1rem;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .14em; color: var(--gold); text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
.hero h1 { max-width: 800px; margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats { display: flex; gap: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.hero-stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; }

/* ── FEATURE STRIP ──────────────────────────────────────── */
.feature-strip {
  background: var(--bg-deep);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.feature-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; align-items: center;
}
.feature-strip-item {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .85rem;
  letter-spacing: .06em; color: var(--text-muted); text-transform: uppercase;
}
.feature-strip-item svg { color: var(--gold); flex-shrink: 0; }

/* ── SERVICE CARDS ──────────────────────────────────────── */
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column;
  transition: all .3s;
}
.service-card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(232,192,96,.08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-price { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.price-from { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.price-amt { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.price-unit { font-size: .8rem; color: var(--text-dim); }
.feature-list { list-style: none; margin: 1rem 0; display: flex; flex-direction: column; gap: .4rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: var(--text-muted); }
.feature-list li::before { content: "▸"; color: var(--gold); flex-shrink: 0; font-size: .7rem; margin-top: .22rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 100px; font-size: .7rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.badge-gold { background: rgba(232,192,96,.12); color: var(--gold); border: 1px solid rgba(232,192,96,.2); }
.badge-blue { background: rgba(64,96,224,.15); color: #8090ff; border: 1px solid rgba(64,96,224,.25); }
.badge-green { background: rgba(64,192,128,.12); color: var(--accent-green); border: 1px solid rgba(64,192,128,.2); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .7rem 1rem; color: var(--text-primary);
  font-family: var(--font-body); font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(232,192,96,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--text-dim); margin-top: .35rem; }
.form-error { color: var(--accent-red); font-size: .82rem; margin-top: .35rem; }
.auth-card { max-width: 460px; margin: 7rem auto 4rem; }
.auth-card .card { padding: 2.5rem; }
.auth-divider { text-align: center; color: var(--text-dim); font-size: .82rem; margin: 1.25rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── NETWORK MAP ─────────────────────────────────────────── */
#network-map-canvas {
  width: 100%; height: 600px;
  background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.map-node {
  position: absolute; transform: translate(-50%, -50%);
  cursor: pointer; z-index: 10;
}
.map-node-ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(232,192,96,.15); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: all .3s;
}
.map-node-ring::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 1px solid rgba(232,192,96,.2);
  animation: node-pulse 3s ease-in-out infinite;
}
@keyframes node-pulse { 0%,100%{transform:scale(1);opacity:.4} 50%{transform:scale(1.15);opacity:.1} }
.map-node:hover .map-node-ring { background: rgba(232,192,96,.3); box-shadow: 0 0 20px rgba(232,192,96,.4); }
.map-node-label { text-align: center; margin-top: 6px; font-family: var(--font-mono); font-size: .7rem; color: var(--gold); letter-spacing: .1em; }
.map-edge { position: absolute; pointer-events: none; z-index: 1; }
.traffic-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  font-family: var(--font-mono); font-size: .78rem;
}
.traffic-row { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.traffic-row:last-child { border-bottom: none; }
.traffic-bar-wrap { flex: 1; margin: 0 1rem; height: 4px; background: var(--bg-hover); border-radius: 2px; overflow: hidden; }
.traffic-bar { height: 100%; border-radius: 2px; transition: width .8s ease; }
.util-low { background: var(--accent-green); }
.util-mid { background: var(--gold); }
.util-high { background: var(--accent-red); }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-hero {
  min-height: 60vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.timeline { border-left: 2px solid var(--border); padding-left: 2rem; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before { content: ""; position: absolute; left: -2.45rem; top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg-void); }
.timeline-year { font-family: var(--font-mono); font-size: .72rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .25rem; }
.team-card { text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; background: var(--bg-hover); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(232,192,96,.08); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.alert-success { background: rgba(64,192,128,.1); border: 1px solid rgba(64,192,128,.25); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--accent-green); margin-bottom: 1.5rem; }
.alert-error { background: rgba(224,80,80,.1); border: 1px solid rgba(224,80,80,.25); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--accent-red); margin-bottom: 1.5rem; }

/* ── DASHBOARD ───────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; min-height: calc(100vh - 64px); padding-top: 64px; }
.sidebar { background: var(--bg-deep); border-right: 1px solid var(--border); padding: 2rem 1rem; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-radius: var(--radius); color: var(--text-muted); font-size: .875rem; margin-bottom: .25rem; transition: all .2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(232,192,96,.07); color: var(--gold); }
.sidebar-section { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); padding: .75rem .9rem .35rem; }
.dashboard-content { padding: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }

/* ── PRODUCT TABLE ───────────────────────────────────────── */
.product-table { width: 100%; border-collapse: collapse; }
.product-table th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.product-table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .9rem; }
.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td { background: rgba(255,255,255,.02); }
.price-cell { font-family: var(--font-mono); color: var(--gold); }

/* ── QUOTE CALCULATOR ────────────────────────────────────── */
.quote-calculator { background: var(--bg-raised); border: 1px solid var(--border-bright); border-radius: var(--radius-lg); padding: 2rem; }
.quote-total { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── UTILITIES ───────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.tag { display: inline-block; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 3px; padding: .1rem .5rem; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3.5rem 2rem 2rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .1em; color: var(--text-primary); margin-bottom: .75rem; }
.footer-brand p { color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
.footer-cols a, .footer-cols span { display: block; color: var(--text-muted); font-size: .875rem; margin-bottom: .5rem; transition: color .2s; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-dim); }
.footer-status { display: flex; align-items: center; gap: .5rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); animation: pulse 3s ease-in-out infinite; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: rgba(8,8,16,.97); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-mobile-auth { display: flex; }
  .hamburger { display: flex; }
  .nav-sm-hide { display: none !important; }
  .nav-auth { margin-left: auto; gap: .4rem; }
  .nav-auth .btn-primary { padding: .4rem .9rem; font-size: .8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 3rem 1rem; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .logo-accent { display: none; }
}
@media (max-width: 320px) {
  .logo > span { display: none; }
}

/* ── PAGE TRANSITIONS ────────────────────────────────────── */
main { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── MODAL ────────────────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  width: 100%; max-width: 480px; position: relative;
  animation: fadeUp .25s ease both;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.25rem; cursor: pointer; padding: .25rem; transition: color .2s; }
.modal-close:hover { color: var(--text-primary); }

/* ── PASSWORD STRENGTH ───────────────────────────────────── */
.strength-meter {
  height: 3px; background: var(--bg-hover); border-radius: 2px;
  margin-top: .4rem; overflow: hidden;
}
.strength-meter::after {
  content: ""; display: block; height: 100%;
  width: var(--strength-pct, 0%);
  background: var(--strength-color, var(--text-dim));
  transition: width .3s, background .3s;
}
.strength-label { font-family: var(--font-mono); font-size: .68rem; color: var(--strength-color, var(--text-dim)); margin-top: .2rem; }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-badge { background: rgba(224,80,80,.12); border: 1px solid rgba(224,80,80,.25); color: #ff8080; padding: .15rem .55rem; border-radius: 100px; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.user-badge  { background: rgba(64,192,128,.12); border: 1px solid rgba(64,192,128,.2); color: var(--accent-green); padding: .15rem .55rem; border-radius: 100px; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.inactive-badge { background: rgba(120,120,160,.1); border: 1px solid rgba(120,120,160,.2); color: var(--text-dim); padding: .15rem .55rem; border-radius: 100px; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }

.table-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-xs { padding: .25rem .65rem; font-size: .72rem; border-radius: var(--radius); border: 1px solid; font-family: var(--font-display); letter-spacing: .04em; cursor: pointer; transition: all .15s; }
.btn-xs-gold  { background: transparent; border-color: var(--border-bright); color: var(--gold); }
.btn-xs-gold:hover  { background: rgba(232,192,96,.1); }
.btn-xs-red   { background: transparent; border-color: rgba(224,80,80,.3); color: var(--accent-red); }
.btn-xs-red:hover   { background: rgba(224,80,80,.1); }
.btn-xs-green { background: transparent; border-color: rgba(64,192,128,.3); color: var(--accent-green); }
.btn-xs-green:hover { background: rgba(64,192,128,.1); }

.page-tabs { display: flex; gap: .25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.page-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-family: var(--font-display); font-size: .88rem; letter-spacing: .05em; padding: .6rem 1.1rem; cursor: pointer; transition: all .2s; margin-bottom: -1px; }
.page-tab:hover { color: var(--text-primary); }
.page-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(232,192,96,.1); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); flex-shrink: 0; }

/* ── ADMIN SIDEBAR STICKY ────────────────────────────────── */
/* The sidebar partial renders inside the first grid column.
   Make it stick without clipping the scroll. */
.admin-layout-grid { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); align-items: start; }
.admin-sidebar-col { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; }

/* Ensure sidebar nav links never overlap — no absolute footer */
.admin-sidebar-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
