/* ==================================================================
   KilloMusic v0.12 - LASER NEON Design System
   Military-grade dark theme / Orange laser borders / Responsive
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg:        #050508;
  --bg-2:      #08080e;
  --panel:     #0a0a12;
  --panel-2:   #0e0e18;
  --line:      #1a1a28;
  --line-2:    #252535;
  --txt:       #e8e8f0;
  --muted:     #6a6a80;
  --neon:      #ff5f1f;
  --neon-2:    #ff7e2f;
  --neon-dim:  rgba(255,95,31,0.08);
  --neon-bg:   rgba(255,95,31,0.04);
  --ok:        #00ff88;
  --ok-dim:    rgba(0,255,136,0.08);
  --bad:       #ff2244;
  --bad-dim:   rgba(255,34,68,0.08);
  --warn:      #ffaa00;
  --warn-dim:  rgba(255,170,0,0.08);
  --glass:     rgba(10,10,18,0.88);
  --radius:    12px;
  --radius-sm: 8px;
  --mono:      'JetBrains Mono', monospace;
  --glow:      0 0 6px var(--neon), 0 0 18px rgba(255,95,31,0.25), 0 0 40px rgba(255,95,31,0.08);
  --glow-sm:   0 0 4px var(--neon), 0 0 12px rgba(255,95,31,0.2);
  --glow-lg:   0 0 8px var(--neon), 0 0 24px rgba(255,95,31,0.35), 0 0 60px rgba(255,95,31,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

/* == LASER LINE ================================================= */
.laser {
  height: 2px;
  border: none;
  background: linear-gradient(90deg, transparent 0%, var(--neon) 15%, var(--neon-2) 50%, var(--neon) 85%, transparent 100%);
  box-shadow: var(--glow);
  animation: laserPulse 3s ease-in-out infinite;
}

.laser-v {
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--neon) 15%, var(--neon-2) 50%, var(--neon) 85%, transparent 100%);
  box-shadow: var(--glow);
  animation: laserPulse 3s ease-in-out infinite;
}

@keyframes laserPulse {
  0%, 100% { opacity: 0.65; filter: brightness(0.9); }
  50% { opacity: 1; filter: brightness(1.15); }
}

@keyframes laserScan {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* == LAYOUT ===================================================== */
.wrap { max-width: 1380px; margin: 0 auto; padding: 16px; }

/* == TOPBAR ===================================================== */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 8px;
  z-index: 20;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--neon-2), var(--neon), transparent);
  box-shadow: var(--glow-sm);
  animation: laserPulse 3s ease-in-out infinite;
  border-radius: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--neon), var(--neon-2));
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: var(--glow);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 11px;
  border: 1px solid rgba(255,95,31,0.3);
  animation: laserPulse 3s ease-in-out infinite;
}

.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search:focus-within {
  border-color: var(--neon);
  box-shadow: var(--glow-sm);
}

.nav-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--txt);
  outline: none;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}

.nav-search input::placeholder { color: #4a4a5c; }

.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

/* == BUTTONS ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--neon), var(--neon-2));
  box-shadow: var(--glow-sm);
}

.btn-primary:hover { box-shadow: var(--glow-lg); }

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  background-size: 200% 100%;
  animation: laserScan 3s ease-in-out infinite;
}

.btn-outline {
  color: var(--txt);
  border: 1px solid var(--line-2);
  background: rgba(20,20,30,0.6);
}

.btn-outline:hover {
  border-color: var(--neon);
  box-shadow: 0 0 8px rgba(255,95,31,0.15);
}

.btn-sm { padding: 6px 10px; font-size: 10px; }

.btn-danger {
  color: #fca5a5;
  border: 1px solid rgba(255,34,68,0.3);
  background: var(--bad-dim);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-danger:hover { background: rgba(255,34,68,0.18); border-color: rgba(255,34,68,0.5); }

/* == 3-COLUMN LAYOUT ============================================ */
.layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 220px 2px 1fr 2px 280px;
  gap: 0 14px;
  min-height: calc(100vh - 180px);
}

.layout > .laser-v { align-self: stretch; justify-self: center; }

/* == PANELS ===================================================== */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(255,95,31,0.12), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0.5;
}

.panel:hover::before { opacity: 1; }
.panel-pad { padding: 16px; }

/* == SIDEBAR ==================================================== */
.sidebar { padding: 14px; }

.menu-label {
  color: #505068;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: var(--mono);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #a0a0b4;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  position: relative;
}

.menu-item:hover { background: rgba(255,95,31,0.04); color: var(--txt); }

.menu-item.active {
  background: var(--neon-dim);
  border-color: rgba(255,95,31,0.25);
  color: var(--txt);
  font-weight: 700;
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background: var(--neon);
  box-shadow: var(--glow-sm);
  border-radius: 2px;
}

.mi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--neon);
  font-family: var(--mono);
  flex-shrink: 0;
}

.sidebar-stat {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg);
}

.sidebar-stat small { color: var(--muted); font-size: 11px; }
.sidebar-stat strong { display: block; margin-top: 4px; font-size: 14px; }

.dot-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(0,255,136,0.6);
  margin-right: 6px;
  vertical-align: middle;
}

/* == HERO ======================================================== */
.hero {
  padding: 30px 24px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,95,31,0.12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,126,47,0.06), transparent 50%),
    var(--panel-2);
  border-bottom: 2px solid var(--neon);
  box-shadow: 0 2px 16px rgba(255,95,31,0.08);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--neon) 20%, var(--neon-2) 50%, var(--neon) 80%, transparent 100%);
  box-shadow: var(--glow);
  animation: laserPulse 3s ease-in-out infinite;
}

.hero-kicker {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(255,95,31,0.4);
}

.hero h1 {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 40%, var(--neon-2) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 540px; }
.cta-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* == FEATURES ==================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.feature-card:hover {
  border-color: rgba(255,95,31,0.4);
  box-shadow: 0 0 16px rgba(255,95,31,0.08);
  transform: translateY(-2px);
}

.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--neon-dim);
  border: 1px solid rgba(255,95,31,0.2);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--neon);
  font-family: var(--mono);
  margin-bottom: 10px;
}

.feature-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.feature-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* == TRACK CARDS ================================================= */
.track-list { padding: 14px; }

.track-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.track-list-head h2 { font-size: 15px; font-weight: 700; }
.track-list-head small { color: var(--muted); font-size: 11px; font-family: var(--mono); }

.track-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-card:hover {
  border-color: rgba(255,95,31,0.35);
  box-shadow: 0 0 12px rgba(255,95,31,0.06);
}

.track-cover {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  transition: border-color .25s, box-shadow .25s;
}
.track-card:hover .track-cover {
  border-color: var(--neon);
  box-shadow: 0 0 14px rgba(255,95,31,.2);
}
.cover-icon {
  font-size: 22px;
  filter: grayscale(.3);
  z-index: 1;
}

.cover-1 { background: linear-gradient(140deg, rgba(255,95,31,0.8), rgba(255,126,47,0.3)); }
.cover-2 { background: linear-gradient(140deg, rgba(99,102,241,0.7), rgba(168,85,247,0.3)); }
.cover-3 { background: linear-gradient(140deg, rgba(0,255,136,0.5), rgba(16,185,129,0.3)); }
.cover-4 { background: linear-gradient(140deg, rgba(236,72,153,0.7), rgba(244,114,182,0.3)); }
.cover-5 { background: linear-gradient(140deg, rgba(14,165,233,0.7), rgba(56,189,248,0.3)); }

.track-info { min-width: 0; }
.track-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta  { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--mono); }

.btn-track-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: rgba(255,95,31,0.08);
  color: var(--neon);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  padding-left: 3px;
}
.btn-track-play:hover {
  background: rgba(255,95,31,0.2);
  box-shadow: 0 0 14px rgba(255,95,31,0.35);
  transform: scale(1.1);
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-track-del {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,60,60,.25);
  background: rgba(255,60,60,.06);
  color: rgba(255,100,100,.6);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.btn-track-del:hover {
  background: rgba(255,60,60,.2);
  border-color: rgba(255,60,60,.6);
  color: #ff4444;
  box-shadow: 0 0 12px rgba(255,60,60,.3);
  transform: scale(1.1);
}

.progress-bar { cursor: pointer; }

/* == WAVE ANIMATION ============================================== */
.wave { display: flex; gap: 2px; align-items: flex-end; height: 20px; }

.wave span {
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(to top, var(--neon), var(--neon-2));
  box-shadow: 0 0 4px rgba(255,95,31,0.4);
  animation: wavePulse 1.4s ease-in-out infinite;
}

.wave span:nth-child(1)  { animation-delay: 0.00s; }
.wave span:nth-child(2)  { animation-delay: 0.10s; }
.wave span:nth-child(3)  { animation-delay: 0.20s; }
.wave span:nth-child(4)  { animation-delay: 0.05s; }
.wave span:nth-child(5)  { animation-delay: 0.25s; }
.wave span:nth-child(6)  { animation-delay: 0.15s; }
.wave span:nth-child(7)  { animation-delay: 0.30s; }
.wave span:nth-child(8)  { animation-delay: 0.08s; }

@keyframes wavePulse {
  0%, 100% { height: 4px; opacity: 0.4; }
  50%      { height: 18px; opacity: 1; }
}

/* == TAG ========================================================= */
.tag {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #c0c0cc;
  font-family: var(--mono);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow-sm); }

/* == RIGHT COLUMN ================================================ */
.right-col { padding: 14px; }
.right-col h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }

.trend-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.trend-card:hover { border-color: rgba(255,95,31,0.3); }

.trend-rank {
  font-size: 18px;
  font-weight: 900;
  font-family: var(--mono);
  color: rgba(255,95,31,0.35);
  min-width: 24px;
}

.trend-info { flex: 1; min-width: 0; }
.trend-info p { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.trend-info small { font-size: 10px; color: var(--muted); font-family: var(--mono); }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.stat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg);
  text-align: center;
}

.stat-val {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--neon);
  text-shadow: 0 0 12px rgba(255,95,31,0.3);
}

.stat-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; font-family: var(--mono); }

/* == PLAYER BAR ================================================== */
.player {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--line-2);
  background: rgba(5,5,8,0.96);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 30;
}

.player::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--neon-2), var(--neon), transparent);
  box-shadow: var(--glow-sm);
  animation: laserPulse 3s ease-in-out infinite;
  border-radius: 2px;
}

.player-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-cover { width: 38px; height: 38px; border-radius: 7px; background: linear-gradient(135deg, var(--neon), var(--neon-2)); flex-shrink: 0; box-shadow: var(--glow-sm); }
.player-info { min-width: 0; }
.player-info strong { font-size: 12px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info small { color: var(--muted); font-size: 10px; font-family: var(--mono); }
.player-controls { display: flex; gap: 6px; align-items: center; }

.control {
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  color: #c0c0cc;
  background: var(--panel);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.control:hover { border-color: var(--neon); color: var(--neon); box-shadow: var(--glow-sm); }

.progress-bar { flex: 1; max-width: 380px; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 35%; background: linear-gradient(90deg, var(--neon), var(--neon-2)); border-radius: 99px; box-shadow: var(--glow-sm); }

/* == FORMS ======================================================== */
.form-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 20px;
}

.form-card {
  width: 100%;
  max-width: 440px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--mono);
}

.field input,
.field input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field input:focus {
  border-color: var(--neon);
  box-shadow: var(--glow-sm);
}

/* == PASSWORD POLICY ============================================= */
.policy { list-style: none; margin: 10px 0; font-size: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.policy li { padding: 3px 0; transition: color 0.15s; font-family: var(--mono); font-size: 11px; }
.policy li::before { content: "> "; font-weight: 700; }
.policy li.ok { color: var(--ok); }
.policy li.ok::before { content: "// "; }
.policy li.bad { color: var(--bad); }

/* == MESSAGES ===================================================== */
.msg { margin-top: 12px; font-size: 12px; font-weight: 600; font-family: var(--mono); }
.msg.err { color: #fca5a5; }
.msg.ok  { color: #86efac; }

/* == GRID HELPERS ================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }

/* == ADMIN TABLE ================================================== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 12px; }

.admin-table th {
  text-align: left;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 8px;
  border-bottom: 2px solid var(--neon);
  font-weight: 700;
  font-family: var(--mono);
  box-shadow: 0 2px 8px rgba(255,95,31,0.08);
}

.admin-table td { padding: 9px 8px; border-bottom: 1px solid rgba(26,26,40,0.6); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,95,31,0.02); }
.admin-table .actions { display: flex; gap: 5px; }

/* == BADGES ======================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--mono);
}

.badge-admin { color: var(--neon); background: var(--neon-dim); border: 1px solid rgba(255,95,31,0.3); }
.badge-user  { color: var(--ok);   background: var(--ok-dim);   border: 1px solid rgba(0,255,136,0.2); }

/* == SECURITY / FIREWALL ========================================= */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }

.sec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--bg);
  position: relative;
}

.sec-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.3), transparent);
  box-shadow: 0 0 6px rgba(0,255,136,0.15);
}

.sec-card h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  color: var(--ok);
  font-family: var(--mono);
  text-shadow: 0 0 8px rgba(0,255,136,0.3);
}

.sec-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 11px; border-bottom: 1px solid rgba(26,26,40,0.4); }
.sec-row:last-child { border-bottom: 0; }
.sec-key { color: var(--muted); font-family: var(--mono); }
.sec-val { color: var(--txt); font-weight: 600; font-family: var(--mono); }

/* == FIREWALL SPECIFIC ============================================ */
.fw-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: var(--radius-sm);
  background: var(--ok-dim);
  margin-bottom: 16px;
}

.fw-status.warn { border-color: rgba(255,170,0,0.3); background: var(--warn-dim); }
.fw-status.danger { border-color: rgba(255,34,68,0.3); background: var(--bad-dim); }

.fw-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok), 0 0 20px rgba(0,255,136,0.3);
  animation: laserPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.fw-status.warn .fw-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.fw-status.danger .fw-dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

.fw-event {
  display: grid;
  grid-template-columns: 18px 90px 80px 1fr 90px;
  gap: 8px;
  padding: 8px 10px;
  font-size: 11px;
  border-bottom: 1px solid rgba(26,26,40,0.4);
  align-items: center;
  font-family: var(--mono);
}

.fw-event:hover { background: rgba(255,95,31,0.02); }

.sev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sev-low      { background: var(--ok); box-shadow: 0 0 4px var(--ok); }
.sev-medium   { background: var(--warn); box-shadow: 0 0 4px var(--warn); }
.sev-high     { background: var(--neon); box-shadow: 0 0 4px var(--neon); }
.sev-critical { background: var(--bad); box-shadow: 0 0 6px var(--bad); animation: laserPulse 1s ease-in-out infinite; }

/* == ADMIN TABS =================================================== */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }

.admin-tab {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-tab:hover { border-color: #3a3a4a; color: var(--txt); }

.admin-tab.active {
  background: var(--neon-dim);
  border-color: rgba(255,95,31,0.4);
  color: var(--neon);
  box-shadow: 0 0 8px rgba(255,95,31,0.1);
}

/* == ENCRYPTION BADGE ============================================= */
.enc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ok);
  background: var(--ok-dim);
  border: 1px solid rgba(0,255,136,0.2);
}

.enc-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}

/* == UTILITY ====================================================== */
.hidden { display: none !important; }
.text-mono { font-family: var(--mono); }
.text-neon { color: var(--neon); }
.text-ok { color: var(--ok); }
.text-bad { color: var(--bad); }

/* ==================================================================
   PLANS / SUBSCRIPTIONS
   ================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.plan-card-pro {
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(255,107,0,.15);
}
.plan-card-pro:hover {
  box-shadow: 0 0 32px rgba(255,107,0,.25), 0 8px 32px rgba(0,0,0,.5);
}
.plan-active {
  border-color: var(--accent) !important;
}
.plan-badge-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  background: var(--neon);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 36px;
  transform: rotate(45deg);
  letter-spacing: 1.5px;
  z-index: 2;
  font-family: var(--mono);
}
.plan-header {
  padding: 28px 20px 18px;
  text-align: center;
}
.plan-header-free {
  background: linear-gradient(135deg, rgba(0,255,65,.06) 0%, transparent 60%);
}
.plan-header-pro {
  background: linear-gradient(135deg, rgba(255,107,0,.12) 0%, transparent 60%);
}
.plan-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}
.plan-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
}
.plan-card-pro .plan-title {
  color: var(--neon);
}
.plan-price {
  font-size: 30px;
  font-weight: 900;
  margin-top: 6px;
  font-family: var(--mono);
}
.plan-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.plan-card-pro .plan-price {
  color: var(--neon);
}
.plan-features {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  flex: 1;
}
.plan-features li {
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: var(--mono);
}
.plan-features li:last-child { border-bottom: none; }
.plan-feat-ok { color: var(--text); }
.plan-feat-no { color: var(--muted); opacity: .5; }
.plan-feat-highlight {
  color: var(--neon) !important;
  font-weight: 700;
}
.plan-footer {
  padding: 18px 20px 22px;
  text-align: center;
}
.plan-current {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: .5px;
}
.plan-current-pro {
  border-color: var(--neon);
  color: var(--neon);
}
.plan-btn {
  width: 100%;
  max-width: 200px;
  padding: 12px 24px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  letter-spacing: .5px;
  transition: all .25s;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: default;
}
.plan-card-pro .plan-btn {
  background: linear-gradient(135deg, var(--neon), #ff3d00);
  border: none;
  color: #000;
  cursor: pointer;
  font-weight: 900 !important;
}
.plan-card-pro .plan-btn:hover {
  box-shadow: 0 0 20px rgba(255,107,0,.5);
  transform: scale(1.03);
}

/* ==================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================== */

@media (max-width: 1100px) {
  .layout { grid-template-columns: 200px 2px 1fr; }
  .right-col-wrap, .layout > .laser-v:last-of-type { display: none; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-wrap, .layout > .laser-v { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
  .player { padding: 8px 12px; }
  .progress-bar { display: none; }
  .grid-3, .sec-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .fw-event { grid-template-columns: 8px 1fr 1fr; font-size: 10px; }
}

@media (max-width: 520px) {
  .wrap { padding: 10px; }
  .topbar { padding: 8px 10px; gap: 6px; }
  .logo { font-size: 14px; }
  .features, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; gap: 16px; }
  .policy { grid-template-columns: 1fr; }
  .hero { padding: 20px 16px; }
  .hero h1 { font-size: 22px; }
  .stat-row, .sec-grid { grid-template-columns: 1fr; }
  .btn { padding: 8px 12px; font-size: 11px; }
  .player-info strong { max-width: 90px; }
  .admin-table { font-size: 10px; }
  .fw-event { grid-template-columns: 1fr; gap: 3px; }
}
