/* ╔══════════════════════════════════════════════════════════════╗
   ║  ANetBBS HACKERS (1995) Theme                               ║
   ║  Hack the Planet. Neon violet + lime + cyan on black.       ║
   ║  Multicolor cycling borders · Rainbow brand glitch          ║
   ║  For those who ride the information superhighway.           ║
   ╚══════════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

/* IBM VGA 9×16 — authentic CP437 bitmap font for BBS content
   Source : https://int10h.org/oldschool-pc-fonts/fontlist/
   Author : VileR / Screwtape (int10h.org)
   License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
   File converted from TTF to WOFF; see anetbbs/static/fonts/LICENSE.txt */
@font-face {
  font-family: 'VGA437';
  src: url('../fonts/Ac437_IBM_VGA_9x16.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────────
   ROOT
───────────────────────────────────────── */
:root {
  --hk-violet:  #cc00ff;
  --hk-lime:    #aaff00;
  --hk-cyan:    #00ccff;
  --hk-orange:  #ff6600;
  --hk-pink:    #ff00aa;
  --hk-yellow:  #ffee00;
  --hk-bg:      #000000;
  --hk-card:    #050008;
  --hk-text:    #ffffff;
}

/* ─────────────────────────────────────────
   BODY
───────────────────────────────────────── */
body {
  background: #000000 !important;
  color: #ffffff !important;
  font-family: 'VGA437', 'Share Tech Mono', 'Courier New', monospace;
  animation: body-hue-shift 20s linear infinite;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  font-smooth: never;
}

/* Orbitron headings look better with smoothing restored */
h1, h2, h3, h4, h5, h6, .navbar-brand,
.bbs-header h1, .bbs-header h2 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

/* Very subtle background hue shift */
@keyframes body-hue-shift {
  0%   { background-color: #000000; }
  25%  { background-color: #020004; }
  50%  { background-color: #000400; }
  75%  { background-color: #000204; }
  100% { background-color: #000000; }
}

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hk-violet), var(--hk-cyan));
  box-shadow: 0 0 6px var(--hk-violet);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--hk-lime), var(--hk-cyan));
}

/* ─────────────────────────────────────────
   TEXT SELECTION
───────────────────────────────────────── */
::selection { background: rgba(204, 0, 255, 0.4); color: #fff; }

/* ─────────────────────────────────────────
   HEADINGS
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
}

h1 {
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  background: linear-gradient(90deg, var(--hk-violet), var(--hk-cyan), var(--hk-lime), var(--hk-cyan), var(--hk-violet));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: h1-rainbow 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(204, 0, 255, 0.6));
}

@keyframes h1-rainbow {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

h2 {
  color: var(--hk-violet);
  text-shadow: 0 0 18px rgba(204, 0, 255, 0.8), 0 0 40px rgba(204, 0, 255, 0.3);
}

h3 { color: var(--hk-cyan);  text-shadow: 0 0 14px rgba(0, 204, 255, 0.7); }
h4 { color: var(--hk-lime);  text-shadow: 0 0 12px rgba(170, 255, 0, 0.6); }
h5 { color: var(--hk-pink);  text-shadow: 0 0 10px rgba(255, 0, 170, 0.5); }
h6 { color: var(--hk-yellow); }

/* ─────────────────────────────────────────
   LINKS
───────────────────────────────────────── */
a { color: var(--hk-cyan); text-decoration: none; transition: all 0.15s; }
a:hover {
  color: var(--hk-lime);
  text-shadow: 0 0 12px rgba(170, 255, 0, 0.7);
}

hr { border-color: rgba(204, 0, 255, 0.25); opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR — animated rainbow border bottom
═══════════════════════════════════════════════════════════ */
.navbar {
  background: #000000 !important;
  border-bottom: 2px solid transparent !important;
  position: relative;
  animation: navbar-rainbow-border 4s linear infinite;
}

@keyframes navbar-rainbow-border {
  0%   { box-shadow: 0 2px 0 var(--hk-violet), 0 0 30px rgba(204,0,255,0.4), 0 0 70px rgba(204,0,255,0.1); }
  25%  { box-shadow: 0 2px 0 var(--hk-cyan),   0 0 30px rgba(0,204,255,0.4), 0 0 70px rgba(0,204,255,0.1); }
  50%  { box-shadow: 0 2px 0 var(--hk-lime),   0 0 30px rgba(170,255,0,0.4), 0 0 70px rgba(170,255,0,0.1); }
  75%  { box-shadow: 0 2px 0 var(--hk-pink),   0 0 30px rgba(255,0,170,0.4), 0 0 70px rgba(255,0,170,0.1); }
  100% { box-shadow: 0 2px 0 var(--hk-violet), 0 0 30px rgba(204,0,255,0.4), 0 0 70px rgba(204,0,255,0.1); }
}

/* BRAND — rainbow glitch */
.navbar-brand {
  font-family: 'Orbitron', 'Arial Black', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--hk-violet), var(--hk-cyan), var(--hk-lime));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brand-rainbow 3s linear infinite, brand-glitch 9s infinite;
  filter: drop-shadow(0 0 8px rgba(204, 0, 255, 0.6));
}

@keyframes brand-rainbow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes brand-glitch {
  0%, 85%, 100% {
    transform: none;
    filter: drop-shadow(0 0 8px rgba(204,0,255,0.6));
  }
  86% {
    transform: skewX(-10deg) translateX(-4px);
    filter: drop-shadow(-4px 0 var(--hk-cyan)) drop-shadow(4px 0 var(--hk-lime));
    -webkit-text-fill-color: #fff;
  }
  87% {
    transform: skewX(5deg) translateX(3px);
    filter: drop-shadow(3px 0 var(--hk-violet)) drop-shadow(-3px 0 var(--hk-orange));
    -webkit-text-fill-color: transparent;
  }
  88% {
    transform: translateX(-5px) scaleX(0.98);
    filter: drop-shadow(5px 0 var(--hk-lime)) drop-shadow(-5px 0 var(--hk-cyan));
    -webkit-text-fill-color: #fff;
  }
  89% {
    transform: none;
    filter: drop-shadow(0 0 8px rgba(204,0,255,0.6));
    -webkit-text-fill-color: transparent;
  }
  90% {
    transform: translateX(2px);
    filter: drop-shadow(-2px 0 var(--hk-pink)) drop-shadow(2px 0 var(--hk-cyan));
    -webkit-text-fill-color: #fff;
  }
  91% {
    transform: none;
    filter: drop-shadow(0 0 8px rgba(204,0,255,0.6));
    -webkit-text-fill-color: transparent;
  }
}

/* Nav links */
.navbar-nav .nav-link {
  color: rgba(204, 0, 255, 0.65) !important;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.15s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffffff !important;
  text-shadow: 0 0 12px var(--hk-violet), 0 0 25px rgba(204,0,255,0.4);
}

.navbar-toggler { border-color: var(--hk-violet) !important; }
.bi-circle-fill.text-success { color: var(--hk-lime) !important; filter: drop-shadow(0 0 4px var(--hk-lime)); }

/* ═══════════════════════════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════════════════════════ */
.bg-dark.border-bottom {
  background: #000000 !important;
  border-color: rgba(204, 0, 255, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════
   CARDS — rotating rainbow border accent
═══════════════════════════════════════════════════════════ */
.card {
  background: #05000a !important;
  border: 1px solid rgba(204, 0, 255, 0.3) !important;
  border-radius: 0 !important;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--hk-violet) !important;
  box-shadow: 0 0 24px rgba(204, 0, 255, 0.35), 0 0 60px rgba(0, 204, 255, 0.1) !important;
}

/* Rainbow top stripe — cycles through all the neons */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--hk-violet),
    var(--hk-cyan),
    var(--hk-lime),
    var(--hk-pink),
    var(--hk-orange),
    var(--hk-cyan),
    var(--hk-violet)
  );
  background-size: 300% auto;
  animation: rainbow-stripe 4s linear infinite;
  z-index: 1;
}

@keyframes rainbow-stripe {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.card-header {
  background: #02000a !important;
  border-bottom: 1px solid rgba(204, 0, 255, 0.3) !important;
  border-radius: 0 !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hk-violet) !important;
  text-shadow: 0 0 10px rgba(204, 0, 255, 0.6);
}

.card-footer {
  background: #02000a !important;
  border-top: 1px solid rgba(204, 0, 255, 0.15) !important;
  border-radius: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  border-radius: 0 !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.15s;
}

.btn-primary {
  background: transparent !important;
  border: 1px solid var(--hk-violet) !important;
  color: var(--hk-violet) !important;
  box-shadow: 0 0 8px rgba(204,0,255,0.3), inset 0 0 8px rgba(204,0,255,0.05);
}

.btn-primary:hover, .btn-primary:focus {
  background: rgba(204,0,255,0.14) !important;
  border-color: var(--hk-violet) !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(204,0,255,0.8), 0 0 50px rgba(204,0,255,0.3) !important;
  text-shadow: 0 0 8px var(--hk-violet);
}

.btn-secondary {
  background: transparent !important;
  border: 1px solid var(--hk-cyan) !important;
  color: var(--hk-cyan) !important;
}
.btn-secondary:hover {
  background: rgba(0,204,255,0.1) !important;
  box-shadow: 0 0 20px rgba(0,204,255,0.6) !important;
  color: #fff !important;
}

.btn-success {
  background: transparent !important;
  border: 1px solid var(--hk-lime) !important;
  color: var(--hk-lime) !important;
}
.btn-success:hover {
  background: rgba(170,255,0,0.1) !important;
  box-shadow: 0 0 20px rgba(170,255,0,0.6) !important;
  color: #000 !important;
}

.btn-danger {
  background: transparent !important;
  border: 1px solid var(--hk-pink) !important;
  color: var(--hk-pink) !important;
}
.btn-danger:hover {
  background: rgba(255,0,170,0.1) !important;
  box-shadow: 0 0 20px rgba(255,0,170,0.6) !important;
  color: #fff !important;
}

.btn-warning {
  background: transparent !important;
  border: 1px solid var(--hk-orange) !important;
  color: var(--hk-orange) !important;
}
.btn-warning:hover {
  background: rgba(255,102,0,0.1) !important;
  box-shadow: 0 0 20px rgba(255,102,0,0.5) !important;
  color: #fff !important;
}

.btn-info {
  background: transparent !important;
  border: 1px solid var(--hk-cyan) !important;
  color: var(--hk-cyan) !important;
}
.btn-info:hover {
  background: rgba(0,204,255,0.1) !important;
  box-shadow: 0 0 20px rgba(0,204,255,0.5) !important;
  color: #fff !important;
}

.btn-outline-primary  { border-color: rgba(204,0,255,0.6) !important; color: var(--hk-violet) !important; background: transparent !important; border-radius: 0 !important; }
.btn-outline-primary:hover  { background: rgba(204,0,255,0.1) !important; box-shadow: 0 0 16px rgba(204,0,255,0.5) !important; color: #fff !important; }
.btn-outline-secondary { border-color: rgba(0,204,255,0.5) !important; color: var(--hk-cyan) !important; background: transparent !important; border-radius: 0 !important; }
.btn-outline-secondary:hover { background: rgba(0,204,255,0.08) !important; color: #fff !important; }
.btn-outline-success  { border-color: rgba(170,255,0,0.5) !important; color: var(--hk-lime) !important; background: transparent !important; border-radius: 0 !important; }
.btn-outline-success:hover  { background: rgba(170,255,0,0.08) !important; }
.btn-outline-danger   { border-color: rgba(255,0,170,0.5) !important; color: var(--hk-pink) !important; background: transparent !important; border-radius: 0 !important; }
.btn-outline-danger:hover   { background: rgba(255,0,170,0.08) !important; }

.btn-close { filter: invert(1) sepia(1) saturate(6) hue-rotate(240deg); }

/* ═══════════════════════════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════════════════════════ */
.form-control, .form-select {
  background: #030005 !important;
  border: 1px solid rgba(204, 0, 255, 0.3) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  caret-color: var(--hk-lime);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
  background: #060010 !important;
  border-color: var(--hk-violet) !important;
  box-shadow: 0 0 0 2px rgba(204,0,255,0.25), 0 0 20px rgba(204,0,255,0.15) !important;
  color: #ffffff !important;
}

.form-control::placeholder { color: rgba(204, 0, 255, 0.3); }

.form-label {
  color: var(--hk-violet);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-check-input {
  background-color: #030005 !important;
  border-color: rgba(204, 0, 255, 0.4) !important;
  border-radius: 0 !important;
}

.form-check-input:checked {
  background-color: var(--hk-violet) !important;
  border-color: var(--hk-violet) !important;
  box-shadow: 0 0 8px rgba(204,0,255,0.7);
}

.input-group-text {
  background: #030005 !important;
  border-color: rgba(204, 0, 255, 0.3) !important;
  color: var(--hk-violet) !important;
  border-radius: 0 !important;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   DROPDOWN MENUS
═══════════════════════════════════════════════════════════ */
.dropdown-menu {
  background: #030005 !important;
  border: 1px solid rgba(204, 0, 255, 0.45) !important;
  border-radius: 0 !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.95), 0 0 30px rgba(204,0,255,0.15);
}

.dropdown-item {
  color: rgba(204, 0, 255, 0.8) !important;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  transition: all 0.1s;
  padding: 0.3rem 1rem;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(204, 0, 255, 0.12) !important;
  color: #ffffff !important;
  text-shadow: 0 0 10px var(--hk-violet);
}

.dropdown-divider { border-color: rgba(204, 0, 255, 0.15) !important; }

.dropdown-header {
  color: var(--hk-lime) !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(170,255,0,0.5);
}

/* ═══════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════ */
.table {
  color: #ffffff;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom-color: rgba(204, 0, 255, 0.1);
  color: #ffffff;
}

.table thead th {
  color: var(--hk-violet);
  border-bottom: 2px solid rgba(204, 0, 255, 0.5) !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(204,0,255,0.6);
}

.table-hover > tbody > tr:hover > * {
  background: rgba(204, 0, 255, 0.06) !important;
  color: #ffffff;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(204, 0, 255, 0.025) !important;
}

/* ═══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */
.badge {
  border-radius: 0 !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* Break out of h1 gradient-text: h1 sets -webkit-text-fill-color:transparent
     which is inherited and overrides any color: rule on children. Reset it. */
  -webkit-text-fill-color: initial !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.bg-primary, .badge.bg-primary { background: linear-gradient(135deg, var(--hk-violet), var(--hk-cyan)) !important; color: #fff !important; }
.bg-danger,  .badge.bg-danger  { background: var(--hk-pink) !important; color: #fff !important; box-shadow: 0 0 8px rgba(255,0,170,0.7); }
.bg-success, .badge.bg-success { background: var(--hk-lime) !important; color: #000 !important; box-shadow: 0 0 8px rgba(170,255,0,0.7); }
.bg-info,    .badge.bg-info    { background: var(--hk-cyan) !important; color: #000 !important; box-shadow: 0 0 8px rgba(0,204,255,0.7); }
.bg-warning, .badge.bg-warning { background: var(--hk-orange) !important; color: #fff !important; box-shadow: 0 0 8px rgba(255,102,0,0.6); }

/* ═══════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════ */
.alert {
  border-radius: 0 !important;
  border-left-width: 4px !important;
  border-top-width: 0 !important;
  border-right-width: 0 !important;
  border-bottom-width: 0 !important;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
}

.alert-success { background: rgba(170,255,0,0.06) !important; border-color: var(--hk-lime) !important; color: #ccff88; }
.alert-danger  { background: rgba(255,0,170,0.07) !important; border-color: var(--hk-pink) !important; color: #ffaacc; }
.alert-warning { background: rgba(255,102,0,0.06) !important; border-color: var(--hk-orange) !important; color: #ffcc88; }
.alert-info    { background: rgba(0,204,255,0.06) !important; border-color: var(--hk-cyan) !important; color: #aaeeff; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.page-item .page-link {
  background: transparent;
  border: 1px solid rgba(204,0,255,0.25);
  color: var(--hk-cyan);
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  border-radius: 0 !important;
  transition: all 0.15s;
}

.page-item .page-link:hover {
  background: rgba(204,0,255,0.1);
  border-color: var(--hk-violet);
  color: var(--hk-violet);
  box-shadow: 0 0 12px rgba(204,0,255,0.4);
}

.page-item.active .page-link {
  background: rgba(204,0,255,0.22) !important;
  border-color: var(--hk-violet) !important;
  color: #fff;
  box-shadow: 0 0 16px rgba(204,0,255,0.6);
}

.page-item.disabled .page-link {
  background: transparent;
  border-color: rgba(204,0,255,0.08);
  color: rgba(204,0,255,0.2);
}

/* ═══════════════════════════════════════════════════════════
   LIST GROUP
═══════════════════════════════════════════════════════════ */
.list-group-item {
  background: #030005 !important;
  border-color: rgba(204,0,255,0.12) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  transition: all 0.12s;
}

.list-group-item:hover {
  background: rgba(204,0,255,0.07) !important;
  border-color: rgba(204,0,255,0.35) !important;
}

.list-group-item.active {
  background: rgba(204,0,255,0.15) !important;
  border-color: var(--hk-violet) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--hk-violet);
}

/* ═══════════════════════════════════════════════════════════
   NAV TABS / PILLS
═══════════════════════════════════════════════════════════ */
.nav-tabs { border-bottom: 1px solid rgba(204,0,255,0.3) !important; }

.nav-tabs .nav-link {
  color: rgba(204,0,255,0.5) !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.15s;
}

.nav-tabs .nav-link:hover {
  color: var(--hk-violet) !important;
  border-color: rgba(204,0,255,0.2) rgba(204,0,255,0.2) transparent !important;
  background: rgba(204,0,255,0.05) !important;
}

.nav-tabs .nav-link.active {
  background: rgba(204,0,255,0.08) !important;
  border-color: rgba(204,0,255,0.5) rgba(204,0,255,0.5) transparent !important;
  color: var(--hk-violet) !important;
  text-shadow: 0 0 12px rgba(204,0,255,0.6);
}

.nav-pills .nav-link { color: rgba(204,0,255,0.6); border-radius: 0 !important; font-family: 'Orbitron', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-pills .nav-link.active { background: rgba(204,0,255,0.18) !important; color: var(--hk-violet) !important; box-shadow: 0 0 12px rgba(204,0,255,0.4); }

/* ═══════════════════════════════════════════════════════════
   PROGRESS
═══════════════════════════════════════════════════════════ */
.progress { background: rgba(204,0,255,0.12); border-radius: 0; height: 5px; }
.progress-bar {
  background: linear-gradient(90deg, var(--hk-violet), var(--hk-cyan), var(--hk-lime)) !important;
  border-radius: 0;
  box-shadow: 0 0 10px var(--hk-violet);
}

/* ═══════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */
.modal-content {
  background: #030005 !important;
  border: 1px solid rgba(204,0,255,0.5) !important;
  border-radius: 0 !important;
  box-shadow: 0 0 80px rgba(204,0,255,0.25), 0 0 160px rgba(0,204,255,0.05);
}

.modal-header {
  background: #000000 !important;
  border-bottom: 1px solid rgba(204,0,255,0.3) !important;
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hk-violet) !important;
  text-shadow: 0 0 14px rgba(204,0,255,0.7);
}

.modal-footer { border-top: 1px solid rgba(204,0,255,0.2) !important; background: #000000 !important; }
.modal-backdrop.show { opacity: 0.88 !important; }

/* ═══════════════════════════════════════════════════════════
   BBS HEADER / ANSI
═══════════════════════════════════════════════════════════ */
.bbs-header {
  background: #000000 !important;
  border: 1px solid rgba(204,0,255,0.3) !important;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: #000000 !important;
  border-top: none !important;
  margin-top: 2rem;
  padding-top: 0;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: rgba(204, 0, 255, 0.5);
  position: relative;
}

/* Full rainbow animated sweep */
.footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--hk-violet),
    var(--hk-cyan),
    var(--hk-lime),
    var(--hk-pink),
    var(--hk-orange),
    var(--hk-cyan),
    var(--hk-violet),
    transparent
  );
  background-size: 300% auto;
  animation: hk-footer-sweep 3s linear infinite;
  margin-bottom: 1rem;
}

@keyframes hk-footer-sweep {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* ═══════════════════════════════════════════════════════════
   CODE
═══════════════════════════════════════════════════════════ */
code { color: var(--hk-lime); background: rgba(170,255,0,0.06); padding: 0.1em 0.3em; font-family: 'VGA437', 'Share Tech Mono', monospace; }
pre { background: #030005 !important; border: 1px solid rgba(204,0,255,0.2); border-radius: 0; padding: 1rem; }
pre code { background: transparent; color: var(--hk-cyan); }

/* ═══════════════════════════════════════════════════════════
   TOASTS
═══════════════════════════════════════════════════════════ */
.toast { border-radius: 0 !important; border: 1px solid rgba(204,0,255,0.5) !important; font-family: 'VGA437', 'Share Tech Mono', monospace; }
.text-bg-warning { background: rgba(20,8,0,0.97) !important; color: var(--hk-orange) !important; border-color: rgba(255,102,0,0.5) !important; }
.text-bg-danger  { background: rgba(15,0,10,0.97) !important; color: var(--hk-pink) !important; border-color: rgba(255,0,170,0.5) !important; }

/* ═══════════════════════════════════════════════════════════
   @MENTION POPUP
═══════════════════════════════════════════════════════════ */
#mentionPopup { background: #030005 !important; border: 1px solid rgba(204,0,255,0.5) !important; box-shadow: 0 8px 30px rgba(0,0,0,0.95); border-radius: 0 !important; }
#mentionPopup .list-group-item { color: rgba(204,0,255,0.8) !important; }
#mentionPopup .list-group-item:hover { background: rgba(204,0,255,0.1) !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════ */
.breadcrumb-item + .breadcrumb-item::before { color: rgba(204,0,255,0.4); content: '//'; font-size: 0.7em; }
.breadcrumb-item a { color: var(--hk-cyan); }
.breadcrumb-item.active { color: var(--hk-violet); }

/* ═══════════════════════════════════════════════════════════
   ACCORDION
═══════════════════════════════════════════════════════════ */
.accordion-item { background: #030005 !important; border-color: rgba(204,0,255,0.15) !important; border-radius: 0 !important; }
.accordion-button { background: #000000 !important; color: rgba(204,0,255,0.8) !important; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 0 !important; }
.accordion-button:not(.collapsed) { background: rgba(204,0,255,0.08) !important; color: var(--hk-violet) !important; box-shadow: inset 0 -1px 0 rgba(204,0,255,0.2) !important; }
.accordion-button::after { filter: invert(1) sepia(1) saturate(6) hue-rotate(240deg); }

/* ═══════════════════════════════════════════════════════════
   TEXT UTILITIES
═══════════════════════════════════════════════════════════ */
.text-muted    { color: rgba(204, 0, 255, 0.45) !important; }
.text-primary  { color: var(--hk-violet) !important; }
.text-success  { color: var(--hk-lime) !important; }
.text-danger   { color: var(--hk-pink) !important; }
.text-info     { color: var(--hk-cyan) !important; }
.text-warning  { color: var(--hk-orange) !important; }
.text-secondary { color: rgba(0,204,255,0.6) !important; }

/* ═══════════════════════════════════════════════════════════
   IMAGES
═══════════════════════════════════════════════════════════ */
.rounded-circle { border: 2px solid rgba(204,0,255,0.5) !important; box-shadow: 0 0 12px rgba(204,0,255,0.3); }
img.img-thumbnail { background: #030005 !important; border-color: rgba(204,0,255,0.3) !important; border-radius: 0 !important; }

/* ═══════════════════════════════════════════════════════════
   HACK THE PLANET — clickable easter egg trigger
═══════════════════════════════════════════════════════════ */
.htp-trigger {
  font-size: 0.5rem !important;
  letter-spacing: 3px !important;
  font-family: 'Orbitron', monospace !important;
  font-weight: 700 !important;
  opacity: 0.38;
  transition: opacity 0.2s, text-shadow 0.2s !important;
  background: linear-gradient(90deg, var(--hk-violet), var(--hk-cyan), var(--hk-lime));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: htp-cycle 3s linear infinite;
  padding-top: 0.6rem !important;
}

.htp-trigger:hover {
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(204, 0, 255, 0.8));
}

@keyframes htp-cycle {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════════════════════════
   HACKERS TRIBUTE MODAL
═══════════════════════════════════════════════════════════ */
.htp-modal.modal-content {
  background: #000000 !important;
  border: 1px solid var(--hk-violet) !important;
  box-shadow:
    0 0 60px rgba(204, 0, 255, 0.4),
    0 0 120px rgba(0, 204, 255, 0.1),
    inset 0 0 40px rgba(204, 0, 255, 0.04) !important;
}

.htp-header {
  background: #000000 !important;
  border-bottom: 1px solid rgba(204, 0, 255, 0.4) !important;
  justify-content: center;
  position: relative;
}

.htp-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--hk-violet), var(--hk-cyan), var(--hk-lime), var(--hk-pink), var(--hk-cyan), var(--hk-violet));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: htp-title-sweep 4s linear infinite;
}

@keyframes htp-title-sweep {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.htp-body {
  background: #000000 !important;
  padding: 1.5rem 2rem !important;
}

.htp-meta {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(204, 0, 255, 0.55);
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
}

.htp-tribute {
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  border-left: 2px solid rgba(204, 0, 255, 0.4);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.htp-section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--hk-cyan);
  text-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.htp-crew {
  margin-bottom: 1.4rem;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
}

.htp-row {
  display: flex;
  align-items: baseline;
  padding: 0.18rem 0;
  font-size: 0.82rem;
}

.htp-handle {
  color: var(--hk-lime);
  text-shadow: 0 0 8px rgba(170, 255, 0, 0.5);
  min-width: 160px;
  font-weight: bold;
}

.htp-sep {
  color: rgba(204, 0, 255, 0.3);
  margin: 0 0.5rem;
  letter-spacing: 2px;
}

.htp-name {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.htp-quotes {
  margin-bottom: 1.4rem;
}

.htp-quote {
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: rgba(204, 0, 255, 0.8);
  border-left: 2px solid rgba(170, 255, 0, 0.35);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}

.htp-quote:hover {
  color: var(--hk-violet);
  border-color: var(--hk-lime);
  text-shadow: 0 0 8px rgba(204, 0, 255, 0.4);
}

.htp-terminal {
  background: #000000;
  border: 1px solid rgba(170, 255, 0, 0.3);
  padding: 0.75rem 1rem;
  font-family: 'VGA437', 'Share Tech Mono', monospace;
  font-size: 0.82rem;
  color: var(--hk-lime);
  white-space: pre;
  min-height: 3.5rem;
  box-shadow: inset 0 0 20px rgba(170, 255, 0, 0.04), 0 0 10px rgba(170, 255, 0, 0.08);
}

.htp-prompt {
  color: var(--hk-cyan);
  margin-right: 0.5rem;
}

.htp-cursor {
  animation: htp-blink 0.8s step-end infinite;
  color: var(--hk-lime);
}

@keyframes htp-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.htp-footer {
  background: #000000 !important;
  border-top: 1px solid rgba(204, 0, 255, 0.25) !important;
  justify-content: center;
}

.htp-close-btn {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 2px !important;
  border: 1px solid var(--hk-violet) !important;
  color: var(--hk-violet) !important;
  background: transparent !important;
  transition: all 0.2s !important;
}

.htp-close-btn:hover {
  background: rgba(204, 0, 255, 0.15) !important;
  box-shadow: 0 0 20px rgba(204, 0, 255, 0.6) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar-brand { font-size: 1rem !important; letter-spacing: 2px; }
  h1 { font-size: 1.3rem; letter-spacing: 1.5px; }
  .btn { font-size: 0.65rem; letter-spacing: 1px; }
  .navbar::after { display: none; }
}
