/* Hacker Theme - Global Overrides */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

:root,
[data-theme],
body.hacker-ui {
  --neon: #00ff41;
  --neon-2: #00f6ff;
  --neon-soft: rgba(0, 255, 65, 0.18);
  --neon-glow: rgba(0, 255, 65, 0.35);
  --amber: #ffb300;
  --red: #ff3860;

  --bg: #04080f;
  --bg2: #070d18;
  --bg3: #0a1322;
  --surface: #0c1626;
  --surface-2: #0f1b30;
  --surface-3: #111f36;

  --text: #e6f7eb;
  --text2: #7fae93;
  --text3: #3f6b54;
  --text-dim: rgba(230, 247, 235, 0.55);

  --border: rgba(0, 255, 65, 0.28);
  --border-soft: rgba(0, 255, 65, 0.14);
  --shadow: 0 0 24px rgba(0, 255, 65, 0.12), 0 10px 24px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --font-head: 'Orbitron', monospace;
  --font-body: 'JetBrains Mono', monospace;

  /* Common variable overrides from existing pages */
  --pink: var(--neon);
  --pink-dark: #00cc35;
  --pink-light: rgba(0, 255, 65, 0.14);
  --pink-mid: rgba(0, 255, 65, 0.18);
  --pink-glow: rgba(0, 255, 65, 0.25);
  --purple: var(--neon-2);
  --purple-light: rgba(0, 246, 255, 0.12);
  --cyan: var(--neon-2);
  --green: var(--neon);
  --gold: var(--amber);

  --primary-hue: 140;
  --primary-color: hsl(140, 90%, 60%);
  --primary-dark: hsl(140, 90%, 50%);
  --secondary-color: hsl(175, 90%, 55%);
  --accent-color: hsl(190, 90%, 55%);
  --success-color: var(--neon);
  --warning-color: var(--amber);
  --error-color: var(--red);

  --bg-primary: var(--bg);
  --bg-secondary: var(--bg2);
  --bg-tertiary: var(--bg3);
  --text-primary: var(--text);
  --text-secondary: var(--text2);
  --text-muted: var(--text3);
  --border-color: var(--border);

  --sh-sm: var(--shadow);
  --sh-md: var(--shadow);
  --sh-lg: var(--shadow);
  --sh-card: var(--shadow);
  --sh-hover: 0 0 32px rgba(0, 255, 65, 0.2), 0 12px 28px rgba(0, 0, 0, 0.65);
  --sh-pink: 0 0 26px rgba(0, 255, 65, 0.22), 0 8px 20px rgba(0, 0, 0, 0.55);

  --white: var(--surface);

  --font: var(--font-body);
  --font2: var(--font-body);
  --mono: var(--font-body);
}

body.hacker-ui {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(0, 255, 65, 0.12), transparent 60%),
              radial-gradient(900px 600px at 120% 20%, rgba(0, 246, 255, 0.12), transparent 60%),
              var(--bg);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

body.hacker-ui::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body.hacker-ui::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0.25) 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

body.hacker-ui > * {
  position: relative;
  z-index: 2;
}

body.hacker-ui ::selection {
  background: rgba(0, 255, 65, 0.25);
  color: var(--text);
}

body.hacker-ui h1,
body.hacker-ui h2,
body.hacker-ui h3,
body.hacker-ui h4,
body.hacker-ui h5,
body.hacker-ui h6 {
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  color: var(--text);
}

body.hacker-ui a {
  color: var(--neon);
  text-decoration: none;
  transition: var(--t);
}

body.hacker-ui a:hover {
  color: var(--neon-2);
  text-shadow: 0 0 10px rgba(0, 246, 255, 0.35);
}

body.hacker-ui hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.6;
}

body.hacker-ui nav,
body.hacker-ui header,
body.hacker-ui .top-nav,
body.hacker-ui .topbar,
body.hacker-ui .navbar,
body.hacker-ui .nav,
body.hacker-ui .nav-bar {
  background: rgba(7, 13, 24, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

body.hacker-ui .sidebar,
body.hacker-ui .side-nav,
body.hacker-ui .side-menu {
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.95) 0%, rgba(10, 19, 34, 0.95) 100%);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.hacker-ui .nav-link,
body.hacker-ui .sidebar-nav a,
body.hacker-ui .menu-link {
  color: var(--text2);
  transition: var(--t);
}

body.hacker-ui .nav-link:hover,
body.hacker-ui .sidebar-nav a:hover,
body.hacker-ui .menu-link:hover {
  color: var(--neon);
}

body.hacker-ui .nav-brand,
body.hacker-ui .nav-brand-name {
  color: var(--text);
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.2);
}

body.hacker-ui .nav-brand-icon,
body.hacker-ui .brand-icon {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.35), rgba(0, 246, 255, 0.2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.hacker-ui .hero,
body.hacker-ui .header,
body.hacker-ui .banner,
body.hacker-ui .jumbotron {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.16), rgba(0, 246, 255, 0.12));
  border-bottom: 1px solid var(--border);
}

body.hacker-ui .left-panel,
body.hacker-ui .right-panel {
  background: linear-gradient(160deg, rgba(6, 14, 26, 0.95), rgba(10, 22, 34, 0.95));
  border-right: 1px solid var(--border);
}

body.hacker-ui .left-panel::before {
  background: radial-gradient(circle at 20% 20%, rgba(0, 255, 65, 0.18), transparent 60%);
}

body.hacker-ui .auth-tab,
body.hacker-ui .tab,
body.hacker-ui .tab-btn {
  color: var(--text2);
  border: 1px solid transparent;
}

body.hacker-ui .auth-tab.active,
body.hacker-ui .tab.active,
body.hacker-ui .tab-btn.active {
  background: rgba(0, 255, 65, 0.12);
  border: 1px solid var(--border);
  color: var(--neon);
}

body.hacker-ui .card,
body.hacker-ui .panel,
body.hacker-ui .box,
body.hacker-ui .widget,
body.hacker-ui .status-card,
body.hacker-ui .stat-card,
body.hacker-ui .pricing-card,
body.hacker-ui .feature-card,
body.hacker-ui .content-card,
body.hacker-ui .modal-content,
body.hacker-ui .form-card,
body.hacker-ui .glass,
body.hacker-ui .section-card {
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.95), rgba(9, 16, 30, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

body.hacker-ui .badge,
body.hacker-ui .tag,
body.hacker-ui .chip,
body.hacker-ui .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.12);
  border: 1px solid var(--border);
  color: var(--neon);
  font-weight: 600;
  letter-spacing: 0.3px;
}

body.hacker-ui button,
body.hacker-ui .btn,
body.hacker-ui .button,
body.hacker-ui input[type="button"],
body.hacker-ui input[type="submit"],
body.hacker-ui .btn-primary,
body.hacker-ui .primary {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 246, 255, 0.18));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: var(--t);
}

body.hacker-ui button:hover,
body.hacker-ui .btn:hover,
body.hacker-ui .button:hover,
body.hacker-ui input[type="button"]:hover,
body.hacker-ui input[type="submit"]:hover,
body.hacker-ui .btn-primary:hover,
body.hacker-ui .primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-hover);
}

body.hacker-ui .btn.ghost,
body.hacker-ui .btn-outline,
body.hacker-ui .outline,
body.hacker-ui .ghost {
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--border);
  box-shadow: none;
}

body.hacker-ui .btn.ghost:hover,
body.hacker-ui .btn-outline:hover,
body.hacker-ui .outline:hover,
body.hacker-ui .ghost:hover {
  background: rgba(0, 255, 65, 0.08);
  color: var(--text);
}

body.hacker-ui .text-primary {
  color: var(--neon) !important;
}

body.hacker-ui .text-success {
  color: var(--neon) !important;
}

body.hacker-ui .text-info {
  color: var(--neon-2) !important;
}

body.hacker-ui .text-warning {
  color: var(--amber) !important;
}

body.hacker-ui .text-danger {
  color: var(--red) !important;
}

body.hacker-ui .text-muted,
body.hacker-ui .text-secondary {
  color: var(--text3) !important;
}

body.hacker-ui .bg-light,
body.hacker-ui .bg-white {
  background-color: var(--surface) !important;
}

body.hacker-ui .bg-primary {
  background-color: rgba(0, 255, 65, 0.22) !important;
}

body.hacker-ui .bg-secondary {
  background-color: rgba(0, 246, 255, 0.18) !important;
}

body.hacker-ui input,
body.hacker-ui select,
body.hacker-ui textarea,
body.hacker-ui .form-control,
body.hacker-ui .form-select {
  background: rgba(6, 12, 22, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.06);
  transition: var(--t);
}

body.hacker-ui input:focus,
body.hacker-ui select:focus,
body.hacker-ui textarea:focus,
body.hacker-ui .form-control:focus,
body.hacker-ui .form-select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2);
}

body.hacker-ui input::placeholder,
body.hacker-ui textarea::placeholder {
  color: var(--text3);
}

body.hacker-ui label,
body.hacker-ui .form-label {
  color: var(--text2);
  font-weight: 600;
}

body.hacker-ui table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(7, 13, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

body.hacker-ui th,
body.hacker-ui td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}

body.hacker-ui th {
  background: rgba(0, 255, 65, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

body.hacker-ui tr:nth-child(even) td {
  background: rgba(0, 255, 65, 0.04);
}

body.hacker-ui pre,
body.hacker-ui code,
body.hacker-ui .code-block {
  font-family: var(--font-body);
  background: rgba(6, 12, 22, 0.9);
  color: #8affb2;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

body.hacker-ui pre {
  padding: 14px 16px;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.06);
}

body.hacker-ui .alert,
body.hacker-ui .notice,
body.hacker-ui .toast,
body.hacker-ui .callout {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

body.hacker-ui .alert-success {
  background: rgba(0, 255, 65, 0.12) !important;
  border-color: var(--neon) !important;
  color: var(--text) !important;
}

body.hacker-ui .alert-info {
  background: rgba(0, 246, 255, 0.12) !important;
  border-color: var(--neon-2) !important;
  color: var(--text) !important;
}

body.hacker-ui .alert-warning {
  background: rgba(255, 179, 0, 0.15) !important;
  border-color: var(--amber) !important;
  color: var(--text) !important;
}

body.hacker-ui .alert-danger {
  background: rgba(255, 56, 96, 0.12) !important;
  border-color: var(--red) !important;
  color: var(--text) !important;
}

body.hacker-ui .progress,
body.hacker-ui .progress-bar {
  background: rgba(0, 255, 65, 0.08);
}

body.hacker-ui .progress-bar {
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
}

body.hacker-ui .modal,
body.hacker-ui .modal-overlay,
body.hacker-ui .overlay {
  background: rgba(3, 6, 12, 0.8);
  backdrop-filter: blur(4px);
}

body.hacker-ui .avatar,
body.hacker-ui .profile-avatar,
body.hacker-ui .user-avatar {
  border: 1px solid var(--border);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.2);
}

body.hacker-ui .status-indicator,
body.hacker-ui .dot,
body.hacker-ui .signal {
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.5);
}

body.hacker-ui .footer,
body.hacker-ui footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.8);
}

@media (max-width: 768px) {
  body.hacker-ui h1 {
    letter-spacing: 0.3px;
  }
  body.hacker-ui nav,
  body.hacker-ui header,
  body.hacker-ui .top-nav,
  body.hacker-ui .topbar,
  body.hacker-ui .navbar {
    backdrop-filter: blur(8px);
  }
}
