/* =========================================
   VARIABLES & THEME CONFIG
   ========================================= */
:root {
  --bg-dark: #0A0C0F;
  --hud-bg: rgba(15, 18, 22, 0.9);
  --hud-border: 1px solid rgba(255, 255, 255, 0.08);
  --input-bg: rgba(0, 0, 0, 0.4);

  --neon-teal: #1dcd9f;
  --neon-blue: #00f3ff;
  --neon-dim: rgba(29, 205, 159, 0.3);

  --text-main: #EEEEEE;
  --text-label: #64748b;

  --max-width: 1200px;
}

/* =========================================
   GLOBAL RESETS
   ========================================= */
html {
  background-color: var(--bg-dark);
}

html,
body {
  font-family: 'Fira Mono', monospace;
  font-size: 16px;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.panel {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;

  /* --- ADD THESE 2 LINES --- */
  position: relative;
  z-index: 1;
}

/* =========================================
   CYBER HUD (HEADER)
   ========================================= */
.cyber-hud {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 30px auto;
  padding: 0 20px;
  height: 80px;
  box-sizing: border-box;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neon-teal);
  box-shadow: 0 5px 20px rgba(29, 205, 159, 0.15);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 98% 100%, 2% 100%, 0 85%);
}

.hud-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-glitch {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 2px 2px 0px var(--neon-teal);
}

.version-tag {
  font-size: 10px;
  color: var(--neon-teal);
  letter-spacing: 3px;
  opacity: 0.8;
}

.hud-nav {
  display: flex;
  gap: 15px;
  height: 100%;
  align-items: center;
}

.hud-status {
  font-size: 11px;
  text-align: right;
  line-height: 1.4;
  color: #555;
  border-left: 2px solid #333;
  padding-left: 15px;
}

.val-green {
  color: var(--neon-teal);
  text-shadow: 0 0 5px var(--neon-teal);
}

.val-blue {
  color: var(--neon-blue);
}

/* =========================================
   CYBER CONSOLE LAYOUT
   ========================================= */
.cyber-console {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
  animation: hudFadeIn 0.5s ease-out;
}

.cyber-console.center-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

@keyframes hudFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cyber-deck {
  background: var(--hud-bg);
  border: var(--hud-border);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 98%, 98% 100%, 0 100%);
}

.config-deck {
  border-top: 2px solid var(--neon-teal);
}

.assets-deck {
  border-top: 2px solid var(--neon-blue);
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.deck-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.deck-status {
  font-size: 10px;
  color: var(--neon-teal);
  border: 1px solid var(--neon-teal);
  padding: 2px 6px;
  border-radius: 2px;
}

.deck-status.blink {
  animation: blink 2s infinite;
  /* Disabled */
  opacity: 1;
  /* Force it to stay visible */
}

.deck-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .cyber-console {
    grid-template-columns: 1fr;
  }

  .cyber-hud {
    height: auto;
    flex-direction: column;
    padding: 15px;
    clip-path: none;
  }

  .hud-brand {
    margin-bottom: 15px;
    align-items: center;
  }

  .hud-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hud-status {
    display: none;
  }
}

/* --- FORCE MOBILE HUD VISIBILITY --- */
@media screen and (max-width: 768px) {
  .hud-status {
    /* 1. Force it to appear */
    display: flex !important;

    /* 2. Position it safely at the top-right or top-center */
    position: absolute;
    top: 44px;
    /* Adjust this to sit below your main menu */
    right: 5%;
    /* Keep it slightly away from the edge */

    /* 3. Ensure it sits ON TOP of everything else */
    z-index: 99999;

    /* 4. Style adjustments for small screens */
    background: rgba(0, 0, 0, 0.8);
    /* Dark background to make text pop */
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #333;
    font-size: 10px;
    /* Smaller font */
    gap: 10px;
  }

  /* Fix the text inside */
  .hud-status span {
    white-space: nowrap;
  }
}


/* Make sure this is at the bottom of main.css */
@keyframes blink {
  50% {
    opacity: 0.5;
  }
}
