/* ============================================================
   HashedMax Unity Pool — "Alienware / Razer" Dark Tech Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --bg:          #050508;
  --bg2:         #08090e;
  --panel:       rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --glass:       rgba(10, 14, 20, 0.65);
  --border:      rgba(0, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 255, 0.18);
  --text:        rgba(230, 237, 243, 0.92);
  --muted:       rgba(180, 195, 210, 0.68);
  --muted2:      rgba(140, 160, 180, 0.55);
  --cyan:        #00f0ff;
  --magenta:     #ff2d78;
  --green:       #39ff14;
  --cyan-dim:    rgba(0, 240, 255, 0.12);
  --magenta-dim: rgba(255, 45, 120, 0.10);
  --green-dim:   rgba(57, 255, 20, 0.10);
  --success:     #39ff14;
  --warning:     #ffb800;
  --danger:      #ff2d2d;
  --shadow:      0 20px 60px rgba(0, 0, 0, 0.6);
  --glow-cyan:   0 0 20px rgba(0, 240, 255, 0.15), 0 0 60px rgba(0, 240, 255, 0.06);
  --glow-mag:    0 0 20px rgba(255, 45, 120, 0.12), 0 0 60px rgba(255, 45, 120, 0.05);
  --font-body:   'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-display:'Orbitron', 'Rajdhani', monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 1100px 700px at 15% 5%, rgba(0, 240, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 20%, rgba(255, 45, 120, 0.05), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 95%, rgba(0, 240, 255, 0.04), transparent 60%);
  background-attachment: fixed;
}

/* subtle hex-grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(30deg, rgba(0,240,255,0.5) 1px, transparent 1px),
    linear-gradient(150deg, rgba(0,240,255,0.5) 1px, transparent 1px),
    linear-gradient(270deg, rgba(0,240,255,0.3) 1px, transparent 1px);
  background-size: 60px 104px;
}

/* ensure content sits above the hex overlay */
body > * { position: relative; z-index: 1; }

a { color: inherit; }

/* ---- Layout ---- */
.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(5, 5, 8, 0.78);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.35;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title strong {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-title span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav .nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav .nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 50;
  display: none;
  padding: 8px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  background: rgba(10, 14, 20, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.nav .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav .nav-dropdown:hover .nav-dropdown-menu,
.nav .nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
}

.nav .nav-dropdown-menu a:hover {
  background: rgba(0, 240, 255, 0.06);
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav a:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.04);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ---- Hero ---- */
.hero {
  padding: 44px 0 22px;
}

.hero-panel {
  position: relative;
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
  background:
    radial-gradient(700px 400px at 20% 30%, rgba(0, 240, 255, 0.07), transparent 60%),
    radial-gradient(500px 350px at 80% 50%, rgba(255, 45, 120, 0.06), transparent 60%),
    var(--glass);
  backdrop-filter: blur(12px);
}

/* top neon edge line */
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.02em;
}

.hero-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(360px, 100%);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.25)) drop-shadow(0 16px 28px rgba(0,0,0,0.5));
}

/* ---- Grid / Cards ---- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-cyan);
}

.card-inner { padding: 18px; }

.card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kpi {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.kpi-sub { color: var(--muted2); font-size: 12px; margin-top: 6px; }

/* ---- Sections ---- */
.section {
  margin-top: 16px;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.section-body {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.callout {
  border: 1px solid rgba(255, 184, 0, 0.25);
  background: rgba(255, 184, 0, 0.05);
  color: var(--text);
  border-radius: 4px;
}

.callout .section-body { color: rgba(255,255,255,0.82); }

/* ---- Forms ---- */
.form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(180, 195, 210, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 0 1px rgba(180, 195, 210, 0.15);
}

.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.08);
}

.btn {
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 45, 120, 0.08));
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(255, 45, 120, 0.12));
}

/* ---- Tables ---- */
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.table th, .table td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table th {
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  background: rgba(0, 240, 255, 0.04);
}

.table tr:hover td { background: rgba(0, 240, 255, 0.02); }

/* ---- Info Icon Tooltips ---- */
.info-icon {
  display: inline-block;
  font-size: 14px;
  color: rgba(0, 240, 255, 0.5);
  cursor: help;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: rgba(0, 240, 255, 0.9);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.badge--ok {
  border-color: rgba(57, 255, 20, 0.25);
  color: var(--green);
  background: var(--green-dim);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.badge--bad {
  border-color: rgba(255, 45, 45, 0.25);
  color: var(--danger);
  background: rgba(255, 45, 45, 0.06);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 34px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.2), rgba(255,45,120,0.15), transparent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}

/* Cookie Notice Banner */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  padding: 1rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-notice-content p {
  margin: 0;
  color: rgba(230, 237, 243, 0.92);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  min-width: 250px;
}

.cookie-notice-content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cookie-notice-content a:hover {
  border-bottom-color: var(--cyan);
}

.cookie-btn {
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 45, 120, 0.1));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 45, 120, 0.15));
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

@media (max-width: 600px) {
  #cookie-notice {
    padding: 1rem;
  }
  
  .cookie-notice-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cookie-notice-content p {
    font-size: 0.9rem;
    min-width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
