/* Bruhtel - neo-noir theme with neon accents
   - Noir first: dark surfaces, readable typography
   - Neon is informational: sparing highlights, glows, separators
*/

:root {
    --bg-main: #0e0f12;
    --bg-panel: rgba(20, 22, 28, 0.78);
    --bg-panel-solid: #14161c;
  
    --text-main: #e9e9ea;
    --text-muted: rgba(233, 233, 234, 0.72);
  
    --border-soft: rgba(255, 255, 255, 0.10);
  
    --neon-yellow: #eaff00; /* cash, warnings */
    --neon-purple: #b026ff; /* risk, influence */
    --shadow-neon-yellow: rgba(234, 255, 0, 0.45);
    --shadow-neon-purple: rgba(176, 38, 255, 0.45);
  
    --hero-overlay-1: rgba(0, 0, 0, 0.78);
    --hero-overlay-2: rgba(10, 0, 18, 0.55);
  
    --radius-lg: 1.1rem;
  }
  
  html, body {
    height: 100%;
  }
  
  body {
    background: radial-gradient(1200px 600px at 20% 10%, rgba(176, 38, 255, 0.10), transparent 55%),
                radial-gradient(1200px 600px at 80% 20%, rgba(234, 255, 0, 0.06), transparent 50%),
                var(--bg-main);
    color: var(--text-main);
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Thin topbar */
.bruhtel-topbar {
    background: rgba(10,10,12,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .bruhtel-logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 12px rgba(187, 133, 255, 0.45), 0 0 12px rgba(255, 233, 89, 0.25);
  }
  
  /* Footer */
  .bruhtel-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,10,12,0.92);
    backdrop-filter: blur(10px);
  }

  /* HUD + Topbar stickiness */
  .bruhtel-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  /* HUD (global strip under the topbar) */
  .bruhtel-hud {
    position: sticky;
    top: 48px; /* sits under topbar */
    z-index: 1025;
    background: rgba(12, 12, 16, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .bruhtel-hud-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .hud-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    flex: 1;
  }

  .hud-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
  }

  .hud-ident {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 4px;
    min-width: 0;
  }

  .hud-name {
    font-weight: 650;
    letter-spacing: -0.01em;
    color: rgba(233,233,234,0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
  }

  .hud-sub {
    font-size: 12px;
    color: rgba(233,233,234,0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
  }

  .hud-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(233,233,234,0.88);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .hud-chip .hud-label {
    color: rgba(233,233,234,0.58);
    font-size: 12px;
    letter-spacing: 0.3px;
  }

  .hud-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .hud-mini-bar {
    width: 84px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
  }

  .hud-mini-bar > div {
    height: 100%;
    width: 0%;
    background: rgba(234,255,0,0.55);
  }

  .hud-mini-bar.purple > div {
    background: rgba(176,38,255,0.55);
  }

  .bruhtel-hud-ticker {
    padding: 0 0 10px;
    margin-top: -2px;
    font-size: 12px;
    color: rgba(233,233,234,0.55);
    letter-spacing: 0.3px;
  }

  /* Avoid “double info” on desktop: keep ticker as a mobile-only helper */
  @media (min-width: 768px) {
    .bruhtel-hud-ticker { display: none; }
  }

  /* Mobile tightening */
  @media (max-width: 575.98px) {
    .bruhtel-hud { top: 44px; }
    .bruhtel-hud-inner { padding: 8px 0; }
    .hud-mini-bar { width: 72px; }
    .hud-chip { font-size: 12px; padding: 6px 9px; }
    .hud-name { max-width: 220px; }
    .hud-sub { max-width: 240px; }
  }
  
  /* HERO */
  .bruhtel-hero {
    min-height: 100vh; /* above the fold */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .bruhtel-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hero-overlay-1), var(--hero-overlay-2));
  }
  
  .bruhtel-hero > .container {
    position: relative;
    z-index: 1;
  }
  
  /* Subtle film grain */
  .grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  }
  
  /* Cards / panels */
  .neo-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  
  /* Neon separator line (used sparingly) */
  .neon-rule {
    height: 2px;
    border: 0;
    background: linear-gradient(90deg,
      transparent,
      rgba(234,255,0,0.55),
      rgba(176,38,255,0.55),
      transparent
    );
    box-shadow: 0 0 18px rgba(176,38,255,0.12);
  }
  
  /* Neon text accents */
  .neon-yellow {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--shadow-neon-yellow), 0 0 22px rgba(234,255,0,0.18);
  }
  
  .neon-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--shadow-neon-purple), 0 0 22px rgba(176,38,255,0.18);
  }
  
  /* Badge that looks noir */
  .noir-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-main);
  }
  
  /* Inputs */
  .form-control {
    background: rgba(10, 11, 14, 0.70);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-main);
    border-radius: 0.9rem;
  }
  
  .form-control::placeholder {
    color: rgba(233,233,234,0.45);
  }
  
  .form-control:focus {
    border-color: rgba(234,255,0,0.55);
    box-shadow: 0 0 0 0.25rem rgba(234,255,0,0.12);
    background: rgba(10, 11, 14, 0.80);
    color: var(--text-main);
  }
  
  /* Buttons */
  .btn-neon {
    border-radius: 0.95rem;
    border: 1px solid rgba(234,255,0,0.35);
    background: rgba(234,255,0,0.08);
    color: var(--text-main);
  }
  
  .btn-neon:hover {
    border-color: rgba(234,255,0,0.65);
    background: rgba(234,255,0,0.12);
    box-shadow: 0 0 18px rgba(234,255,0,0.16);
  }
  
  .small-links a {
    color: rgba(233,233,234,0.78);
    text-decoration: none;
  }
  
  .small-links a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(176,38,255,0.22);
    text-decoration: underline;
  }
  
  /* Place login top-right on larger screens */
  @media (min-width: 992px) {
    .login-wrap {
      display: flex;
      justify-content: flex-end;
      align-items: flex-start;
    }
  }
  
  /* Tighten typography a bit */
  h1, h2, h3 {
    letter-spacing: -0.02em;
  }
  
  /* Segmented stat bars */
.statbar { display: flex; flex-direction: column; gap: 6px; }
.statbar-head { display: flex; justify-content: space-between; align-items: baseline; }
.statbar-label { font-size: 12px; color: rgba(233,233,234,0.70); letter-spacing: 0.4px; }
.statbar-value { font-size: 12px; }

.statbar-track {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.statseg {
  height: 10px;
  border-radius: 6px;
  background: rgba(233,233,234,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.statseg.filled { box-shadow: 0 0 10px rgba(200,200,255,0.10); }

/* Color buckets */
.statseg.filled.stat-red    { background: rgba(255, 70, 90, 0.85); }
.statseg.filled.stat-orange { background: rgba(255, 150, 70, 0.85); }
.statseg.filled.stat-yellow { background: rgba(255, 230, 90, 0.85); }
.statseg.filled.stat-green  { background: rgba(120, 255, 190, 0.85); }

/* Sizes */
.statbar-sm .statbar-track { padding: 6px 8px; gap: 3px; }
.statbar-sm .statseg { height: 8px; }

.statbar-md .statseg { height: 10px; }

.statbar-lg .statbar-track { padding: 10px 12px; gap: 5px; }
.statbar-lg .statseg { height: 12px; }
