/* =========================================
   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;

}
:root {
  /* Dark Cyber Backgrounds */
  --panel-bg: #0b0e11;
  --panel-glass: rgba(11, 14, 17, 0.85);
  --border-color: rgba(29, 205, 159, 0.1); /* Subtle Teal Border */

  /* The Original "CoinBot" Neon */
  --primary-accent: #1dcd9f; 
  --primary-gradient: linear-gradient(135deg, #1dcd9f 0%, #0fb589 100%);
  
  /* Status Colors */
  --success-green: #1dcd9f; /* Using main brand for success */
  --danger-red: #ff4d4d;

  /* Typography */
  --text-main: #FFFFFF;
  --text-muted: #8899a6;

  /* Spacing & Radius */
  --radius-card: 16px;
  --radius-btn: 8px;
  --max-width: 979px; /* Strictly aligned */
}
/* =========================================
   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;

  /* --- FIX: Sticky Footer Setup --- */
  min-height: 100vh;      /* Force full viewport height */
  display: flex;          /* Enable Flexbox */
  flex-direction: column; /* Stack elements vertically */
}

.panel {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  min-height: 50vh;      /* Force full viewport height */
  position: relative;
  z-index: 1;

  /* --- FIX: Push Footer Down --- */
  flex: 1; /* This forces the panel to take up all available space */
}

/* =========================================
   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;
}

/* 1. The Class Configuration */
.deck-status.blink {
  /* Use a unique name "soft-pulse" to avoid conflicts */
  animation: soft-pulse 1s infinite ease-in-out !important;
  
  /* Ensure it starts fully visible */
  opacity: 1; 
}

/* 2. The Animation Logic (You must include this!) */
@keyframes soft-pulse {
  0%, 100% { 
    opacity: 1;   /* Fully Bright */
  }
  50% { 
    opacity: 0.7; /* Dims slightly (reducing light by 20%) */
  }
}

.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;
  }
}

/* =========================================
   MODERN HEADER REDESIGN
   ========================================= */

.pro-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 72px;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;

  /* Modern Glass Effect */
  background: rgba(10, 12, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- LEFT: BRANDING --- */
.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;          
  transition: opacity 0.2s; 
}

.brand-section:hover {
  opacity: 0.8;
}

.brand-logo {
  font-family: 'Rajdhani', sans-serif; /* kept your font */
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--neon-teal);
  font-size: 18px;
}

.brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- CENTER: NAVIGATION --- */
.pro-nav {
  display: flex;
  gap: 8px;
  height: 100%;
}

.nav-item {
  background: transparent;
  border: none;
  height: 100%;
  padding: 0 20px;
  
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #94a3b8; /* Muted text */
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

/* Active State - Simple Bottom Line */
.nav-item.active {
  color: #fff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-teal);
  box-shadow: 0 -2px 10px rgba(29, 205, 159, 0.4);
}

/* --- RIGHT: STATUS --- */
.status-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Status Pills */
.status-pill, .gas-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-text {
  color: #94a3b8;
  font-size: 11px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}

.status-dot.online {
  background: var(--neon-teal);
  box-shadow: 0 0 8px rgba(29, 205, 159, 0.4);
}

.gas-pill {
  color: #e2e8f0;
  min-width: 80px;
  justify-content: center;
}

.gas-icon {
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .pro-header {
    padding: 0 15px;
    height: 60px;
  }
  
  .brand-tag, .status-text {
    display: none;
  }
  
  .nav-item {
    padding: 0 10px;
    font-size: 12px;
  }
}

/* --- FOOTER STYLES --- */
.pro-footer {
  width: 100%;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  
  /* Ensure it sits at bottom naturally via Flexbox on body */
}

.copyright-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b; /* Muted slate color */
  letter-spacing: 1px;
}

.copyright-text .owner {
  color: var(--neon-teal); /* Highlights "Coinbot.locker" */
  font-weight: bold;
}
