/* ============================================================
   SOLTRIBE — Design System v7
   Dark Cyberpunk Terminal. Angular. Neon. Uncompromising.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg:  #05050d;
  --s1:  #09091a;
  --s2:  #0d0d20;
  --s3:  #121228;

  --green:    #14F195;
  --green-d:  #0db872;
  --green-a:  rgba(20,241,149,0.07);
  --purple:   #9945FF;
  --purple-d: #7a2fe0;
  --purple-l: #bb77ff;
  --purple-a: rgba(153,69,255,0.08);
  --pink:     #FF4D8B;
  --pink-a:   rgba(255,77,139,0.08);
  --gold:     #FBBF24;
  --silver:   #94A3B8;
  --bronze:   #B87333;

  --t1: #F0F0FF;
  --t2: rgba(240,240,255,0.45);
  --t3: rgba(240,240,255,0.17);

  --br:   rgba(255,255,255,0.07);
  --br-m: rgba(255,255,255,0.13);
  --br-p: rgba(153,69,255,0.4);

  --sh:   0 4px 32px rgba(0,0,0,0.6);
  --sh-l: 0 16px 64px rgba(0,0,0,0.75);

  --chrome: linear-gradient(110deg, #ccc 0%, #fff 30%, #bbb 50%, #fff 70%, #999 100%);

  --f-display: 'Permanent Marker', cursive;
  --f-ui:      'Rajdhani', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;
  --f-body:    'JetBrains Mono', monospace;

  /* Legacy aliases */
  --bg2: var(--s1);
  --bg3: var(--s2);
  --b0:  var(--br);
  --b1:  var(--br);
  --b2:  var(--br-m);
  --f-data: var(--f-mono);
  --glass: var(--s1);
  --glass-border: var(--br);
  --shadow: var(--sh);
  --shadow-sm: var(--sh);
  --gp:  0 0 24px rgba(153,69,255,0.3);
  --gg:  0 0 24px rgba(20,241,149,0.3);
  --purple-lo: var(--purple-a);
  --purple-md: rgba(153,69,255,0.18);
  --green-lo:  var(--green-a);
  --pink-lo:   var(--pink-a);
  --t3-solid: #1a1a30;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Dot-grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20,241,149,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
  opacity: 0.35;
}

/* Corner glows */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 0%   0%,   rgba(153,69,255,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 100% 100%,  rgba(20,241,149,0.07) 0%, transparent 60%);
}


/* ── Animations ─────────────────────────────────────────────── */
@keyframes chrome-shift {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes glitch {
  0%,90%,100% { transform: translate(0); clip-path: none; }
  91% { transform: translate(-3px,0); clip-path: inset(20% 0 65% 0); }
  93% { transform: translate(3px,0);  clip-path: inset(60% 0 10% 0); }
  95% { transform: translate(-2px,0); clip-path: inset(40% 0 30% 0); }
}
@keyframes bar-fill   { from { width: 0; } }
@keyframes pulse-dot  {
  0%,100% { box-shadow: 0 0 0 0 rgba(20,241,149,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(20,241,149,0); }
}
@keyframes glow-g {
  0%,100% { text-shadow: 0 0 16px rgba(20,241,149,0.5); }
  50%      { text-shadow: 0 0 40px rgba(20,241,149,0.9), 0 0 80px rgba(20,241,149,0.2); }
}
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 80px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(20px); max-height: 0; margin-bottom: -8px; }
}

/* ── Typography helpers ─────────────────────────────────────── */
.display  { font-family: var(--f-display); letter-spacing: 0.02em; line-height: 1; }
.mono     { font-family: var(--f-mono); }
.label-ui {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
}
.text-chrome {
  background: var(--chrome);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-shift 4s linear infinite;
}
.text-purple { color: var(--purple); }
.text-green  { color: var(--green);  }
.text-pink   { color: var(--pink);   }
.text-gold   { color: var(--gold);   }
.text-dim    { color: var(--t2);     }

/* ── Online bar ─────────────────────────────────────────────── */
.online-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 28px;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid rgba(20,241,149,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.online-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--t2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.online-bar-item .live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.online-bar-item strong { color: var(--green); font-weight: 700; }
.online-bar-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.1); }

/* ── Status ticker ──────────────────────────────────────────── */
.status-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 26px;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid rgba(20,241,149,0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.status-bar-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.status-bar-item {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--t3);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-bar-item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: blink 3s ease-in-out infinite;
  flex-shrink: 0;
}
.status-bar-item.highlight { color: var(--green); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 28px; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(5,5,13,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 36px;
  gap: 20px;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(153,69,255,0.5) 30%,
    rgba(20,241,149,0.4) 70%,
    transparent 100%);
  pointer-events: none;
}

.nav-logo {
  font-family: 'Permanent Marker', cursive;
  font-size: 22px;
  text-decoration: none;
  color: var(--green);
  flex-shrink: 0;
  transform: rotate(-1.5deg);
  display: inline-block;
  text-shadow: 0 0 20px rgba(20,241,149,0.4);
  letter-spacing: 0.03em;
  transition: text-shadow 0.2s;
}
.nav-logo:hover { text-shadow: 0 0 32px rgba(20,241,149,0.7), 0 0 60px rgba(20,241,149,0.2); }

.nav-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 5px 14px;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--t2);
  transition: color 0.15s, background 0.15s;
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--t1); border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--green); border-color: rgba(20,241,149,0.2); background: rgba(20,241,149,0.05); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge, .nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-dev, .nav-badge.badge-dev         { color: var(--pink);   border-color: rgba(255,77,139,0.4);  background: rgba(255,77,139,0.07); }
.badge-creator, .nav-badge.badge-creator { color: var(--purple); border-color: rgba(153,69,255,0.4); background: rgba(153,69,255,0.07); }
.badge-civil, .nav-badge.badge-civil     { color: var(--green);  border-color: rgba(20,241,149,0.3); background: rgba(20,241,149,0.06); }

/* ── Status dot ──────────────────────────────────────────────── */
.status-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  font-family: 'Permanent Marker', cursive;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  position: relative;
  transition: all 0.15s;
  white-space: nowrap;
  background: transparent;
  color: var(--t1);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.btn-primary {
  background: var(--green);
  color: #030e08;
  border-color: var(--green);
  font-weight: 700;
}
.btn-primary:not(:disabled):hover {
  background: #3df9a8;
  border-color: #3df9a8;
  box-shadow: 0 0 0 1px rgba(20,241,149,0.3), 0 8px 32px rgba(20,241,149,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--t1);
  border-color: rgba(255,255,255,0.18);
}
.btn-outline:not(:disabled):hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(20,241,149,0.05);
  box-shadow: 0 0 0 1px rgba(20,241,149,0.15), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-green {
  background: var(--green);
  color: #030e08;
  border-color: var(--green);
  font-weight: 700;
}
.btn-green:not(:disabled):hover {
  box-shadow: 0 0 32px rgba(20,241,149,0.4);
  background: #3df9a8;
}

.btn-chrome {
  background: linear-gradient(110deg, #e0e0e0 0%, #fff 35%, #ccc 55%, #fff 75%, #aaa 100%);
  background-size: 200% auto;
  animation: chrome-shift 3s linear infinite;
  color: #05050d;
  font-weight: 700;
  border: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-chrome:not(:disabled):hover { box-shadow: 0 0 40px rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--t2);
  border-color: rgba(255,255,255,0.09);
}
.btn-ghost:not(:disabled):hover { color: var(--t1); border-color: var(--br-m); background: rgba(255,255,255,0.04); }

.btn-red {
  background: transparent;
  color: var(--pink);
  border-color: rgba(255,77,139,0.3);
}
.btn-red:not(:disabled):hover {
  background: rgba(255,77,139,0.1);
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(255,77,139,0.2);
}

.btn-sm { padding: 4px 14px; font-size: 11px; }
.btn-lg { padding: 14px 36px; font-size: 15px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--s1);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  padding: 24px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(20,241,149,0.2);
  box-shadow: 0 0 0 1px rgba(20,241,149,0.06), 0 8px 40px rgba(0,0,0,0.5);
}
.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple) 0%, var(--green) 100%);
  opacity: 0.9;
  z-index: 1;
}
.card-green { border-color: rgba(20,241,149,0.15); }
.card-gold  { border-color: rgba(251,191,36,0.15); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 7px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 0;
  color: var(--t1);
  font-family: var(--f-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--t3); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--green);
  background: rgba(20,241,149,0.03);
  box-shadow: 0 0 0 2px rgba(20,241,149,0.1), inset 0 0 0 1px rgba(20,241,149,0.05);
}
.form-textarea { resize: vertical; min-height: 88px; }
.form-select { cursor: pointer; }
.form-select option { background: var(--s2); color: var(--t1); }
.form-group { margin-bottom: 18px; }

/* ── Leaderboard entries ─────────────────────────────────────── */
.lb-entry {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: var(--s1);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid transparent;
  margin-bottom: 2px;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.lb-entry:hover {
  border-left-color: var(--green);
  background: var(--s2);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--green), 0 0 32px rgba(20,241,149,0.05);
}
.lb-entry[data-rank="1"] { border-left-color: var(--gold);   background: rgba(251,191,36,0.03); }
.lb-entry[data-rank="2"] { border-left-color: var(--silver); }
.lb-entry[data-rank="3"] { border-left-color: var(--bronze); }
.lb-rank {
  font-family: 'Permanent Marker', cursive;
  font-size: 34px;
  line-height: 1;
  text-align: center;
  color: var(--t3);
}
.lb-entry[data-rank="1"] .lb-rank { color: var(--gold);   text-shadow: 0 0 20px rgba(251,191,36,0.5); }
.lb-entry[data-rank="2"] .lb-rank { color: var(--silver); }
.lb-entry[data-rank="3"] .lb-rank { color: var(--bronze); }
.lb-name { font-family: var(--f-ui); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.lb-desc { font-size: 11px; font-family: var(--f-mono); color: var(--t2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.lb-meta { font-family: var(--f-mono); font-size: 12px; color: var(--t2); text-align: center; }
.lb-score { font-family: var(--f-mono); font-size: 22px; color: var(--green); text-align: right; line-height: 1; font-weight: 700; text-shadow: 0 0 12px rgba(20,241,149,0.4); }
.lb-bar { grid-column: 1/-1; height: 1px; background: transparent; margin: -4px -20px -14px; overflow: hidden; }
.lb-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); opacity: 0.3; animation: bar-fill 1s ease-out; }

/* ── Post cards ──────────────────────────────────────────────── */
.post-card {
  background: var(--s1);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid transparent;
  border-radius: 0;
  padding: 20px 24px;
  margin-bottom: 6px;
  transition: all 0.15s;
  position: relative;
}
.post-card:hover {
  border-left-color: var(--purple);
  background: var(--s2);
  box-shadow: -2px 0 0 var(--purple), 0 4px 32px rgba(0,0,0,0.4);
}
.post-av {
  width: 32px; height: 32px;
  border: 1px solid var(--b1);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ui); font-size: 13px; font-weight: 700; color: var(--t2);
  flex-shrink: 0; overflow: hidden;
}
.post-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-author { font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--purple); text-transform: uppercase; }
.post-content { font-size: 14px; line-height: 1.75; margin: 10px 0 14px; color: var(--t1); font-family: var(--f-mono); }
.post-actions { display: flex; gap: 2px; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--t2);
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn:hover { color: var(--t1); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.action-btn.liked { color: var(--pink);  background: rgba(255,77,139,0.07); border-color: rgba(255,77,139,0.2); }
.action-btn.saved { color: var(--gold);  background: rgba(251,191,36,0.07); }

/* ── Countdown ───────────────────────────────────────────────── */
.countdown-box { display: inline-flex; flex-direction: column; align-items: center; }
.countdown-label {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 4px;
}
.countdown-value {
  font-family: 'Permanent Marker', cursive;
  font-size: 48px;
  line-height: 1;
  color: var(--green);
  font-weight: 400;
  animation: glow-g 3s ease-in-out infinite;
}
.countdown-sub { font-family: var(--f-mono); font-size: 10px; color: var(--t2); margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Dropdown ────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--s2);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(20,241,149,0.3);
  border-radius: 0;
  padding: 4px;
  z-index: 300;
  display: none;
  animation: fadeUp 0.1s ease-out;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 0 1px rgba(20,241,149,0.06);
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t1);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 0;
  transition: all 0.1s;
}
.dropdown-item:hover { background: rgba(20,241,149,0.06); color: var(--green); }
.dropdown-item.danger { color: var(--pink); }
.dropdown-item.danger:hover { background: rgba(255,77,139,0.08); color: var(--pink); }
.dots-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--t2);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 2px;
}
.dots-btn:hover { border-color: rgba(255,255,255,0.12); color: var(--t1); background: rgba(255,255,255,0.04); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,3,10,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--s1);
  border: 1px solid rgba(20,241,149,0.2);
  border-top: 2px solid var(--green);
  border-radius: 0;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  animation: fadeUp 0.2s ease-out;
  box-shadow: 0 0 0 1px rgba(20,241,149,0.06), 0 0 80px rgba(20,241,149,0.06), 0 32px 80px rgba(0,0,0,0.8);
}
.modal-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 22px;
  color: var(--t1);
  margin-bottom: 24px;
  transform: rotate(-0.5deg);
  display: inline-block;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t2);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
}
.modal-close:hover { color: var(--t1); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }

/* ── Toast ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  border-radius: 0;
  min-width: 260px;
  max-width: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  animation: toastIn 0.22s ease-out forwards;
  pointer-events: auto;
  border: 1px solid;
  border-left-width: 3px;
  position: relative;
}
.toast-icon { font-size: 16px; flex-shrink: 0; line-height: 1; }
.toast-success {
  background: rgba(20,241,149,0.06);
  border-color: rgba(20,241,149,0.2);
  border-left-color: var(--green);
  color: #c0ffea;
}
.toast-success .toast-icon::after { content: '✓'; color: var(--green); font-weight: 700; }
.toast-error {
  background: rgba(255,77,139,0.06);
  border-color: rgba(255,77,139,0.2);
  border-left-color: var(--pink);
  color: #ffe0ec;
}
.toast-error .toast-icon::after { content: '✕'; color: var(--pink); font-weight: 700; }
.toast-info {
  background: rgba(153,69,255,0.06);
  border-color: rgba(153,69,255,0.2);
  border-left-color: var(--purple);
  color: #e8d8ff;
}
.toast-info .toast-icon::after { content: 'ℹ'; color: var(--purple); font-weight: 700; }

/* ── Section label ───────────────────────────────────────────── */
.section-label {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.section-label::before {
  content: '';
  flex: 0 0 18px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(20,241,149,0.5);
}
.section-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 52px;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── Dividers ────────────────────────────────────────────────── */
.divider        { height: 1px; background: rgba(255,255,255,0.07); margin: 24px 0; }
.divider-accent { height: 1px; background: linear-gradient(90deg, var(--purple), var(--green), transparent); margin: 24px 0; opacity: 0.4; }

/* ── Widget ──────────────────────────────────────────────────── */
.widget {
  background: var(--s1);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  padding: 18px 20px;
  margin-bottom: 10px;
  position: relative;
  transition: border-color 0.2s;
}
.widget:hover { border-color: rgba(20,241,149,0.15); }
.widget-title {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Stat block ──────────────────────────────────────────────── */
.stat-val {
  font-family: 'Permanent Marker', cursive;
  font-size: 32px;
  color: var(--green);
  line-height: 1;
  text-shadow: 0 0 20px rgba(20,241,149,0.4);
}
.stat-lbl {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2);
  margin-top: 5px;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(20,241,149,0.25); }
::-webkit-scrollbar-thumb:hover { background: rgba(20,241,149,0.5); }

/* ── Utility ─────────────────────────────────────────────────── */
.page    { position: relative; z-index: 1; }
.contain { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.flex-c  { display: flex; align-items: center; }
.flex-b  { display: flex; align-items: center; justify-content: space-between; }
.gap-8   { gap: 8px;  }
.gap-10  { gap: 10px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.gap-32  { gap: 32px; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }
.fadein  { animation: fadeUp 0.3s ease-out; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 56px 0 28px;
  margin-top: 80px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(153,69,255,0.6) 35%, rgba(20,241,149,0.5) 65%, transparent 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 28px; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 12px; font-family: var(--f-mono); color: var(--t2); line-height: 1.8; max-width: 240px; }
.footer-col-title { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t1); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 12px; font-family: var(--f-mono); color: var(--t2); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 11px; color: var(--t2); font-family: var(--f-mono); letter-spacing: 0.04em; }
.footer-copy span { color: var(--green); }
.footer-tag { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; color: var(--t2); letter-spacing: 0.06em; }
.footer-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 3s ease-in-out infinite; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ── Notification Bell ──────────────────────────────────────── */
.notif-wrap { position: relative; }
.notif-btn {
  position: relative;
  background: none;
  border: 1px solid var(--br-m);
  border-radius: 3px;
  padding: 5px 9px;
  cursor: pointer;
  color: var(--t2);
  transition: color .15s, border-color .15s;
  display: flex; align-items: center;
}
.notif-btn:hover { color: var(--t1); border-color: var(--purple); }
.notif-btn svg { width: 15px; height: 15px; }
.notif-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px; font-weight: 700;
  font-family: var(--f-mono);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.notif-badge.hidden { display: none; }
@keyframes bellBounce {
  0%,100%{ transform: rotate(0) } 20%{ transform: rotate(-15deg) } 40%{ transform: rotate(12deg) }
  60%{ transform: rotate(-8deg) } 80%{ transform: rotate(5deg) }
}
.notif-btn.has-new svg { animation: bellBounce .6s ease forwards; }
.notif-panel {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 310px;
  background: var(--s2);
  border: 1px solid var(--br-m);
  border-radius: 4px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  display: none;
}
.notif-panel.open { display: block; }
.notif-panel-head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--br);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; font-family: var(--f-ui);
  letter-spacing: .04em; text-transform: uppercase;
}
.notif-panel-head button {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--t3); font-family: var(--f-mono);
  transition: color .15s;
}
.notif-panel-head button:hover { color: var(--green); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--br);
  cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start;
  transition: background .12s;
}
.notif-item:hover { background: var(--s3); }
.notif-item.unread { background: rgba(153,69,255,.06); }
.notif-item:last-child { border-bottom: none; }
.notif-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--s3); border: 1px solid var(--br-m);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--t2); font-weight: 700;
}
.notif-av img { width: 100%; height: 100%; object-fit: cover; }
.notif-body { flex: 1; min-width: 0; }
.notif-msg { font-size: 12px; color: var(--t1); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--t3); margin-top: 3px; font-family: var(--f-mono); }
.notif-empty { padding: 24px 14px; text-align: center; font-size: 12px; color: var(--t3); }

