/* ===== DOPE TONE NAV – CLEAN ===== */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:68px;
  background:rgba(5,15,35,0.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.navbar::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg,#4da6ff,#00c3ff,#ff4d4d);
}
.nav-inner{
  max-width:1200px; height:100%; margin:0 auto;
  padding:0 clamp(16px,3vw,48px);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  position:relative;
}

/* logo */
.logo{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:#fff; flex-shrink:0;
}
.logo img{ width:42px; height:42px; object-fit:contain; }
.logo span{
  font-family:'Orbitron',sans-serif; font-size:18px; letter-spacing:2px; text-transform:uppercase;
  background:linear-gradient(120deg,#ffffff,#b0c4de,#4da6ff,#ffffff);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}

/* desktop links */
.nav-links{
  display:flex; gap:28px; align-items:center;
  position:absolute; left:50%; transform:translateX(-50%);
  white-space:nowrap;
}
.nav-links a{ color:#fff; text-decoration:none; font-size:14px; font-family:'Poppins',sans-serif; opacity:.85; }
.nav-links a:hover{ opacity:1; }

/* right cluster */
.auth-buttons{ display:flex; align-items:center; gap:12px; margin-left:auto; }

/* buttons */
.btn-login{
  padding:8px 16px; border-radius:20px; font-size:13px; cursor:pointer;
  background:rgba(0,140,255,0.08); color:#00cfff;
  border:1px solid rgba(0,140,255,0.3);
}
.btn-signup{
  padding:8px 16px; border-radius:20px; font-size:13px; cursor:pointer; border:none;
  background:linear-gradient(45deg,#00cfff,#ff003c); color:#fff; font-weight:600;
}
.nav-icon-btn{
  width:46px; height:46px; border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color:#fff; font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.avatar-btn{
  width:44px; height:44px; border-radius:50%; padding:0; overflow:hidden;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06);
  cursor:pointer;
}
.avatar-btn img{ width:100%; height:100%; object-fit:cover; }
.cart-count{
  position:absolute; top:-4px; right:-4px;
  min-width:20px; height:20px; padding:0 5px; border-radius:999px;
  background:linear-gradient(135deg,#00e5ff,#7b61ff);
  color:#fff; font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.auth-guest{ display:flex; gap:8px; align-items:center; }
.auth-user{ display:flex; align-items:center; gap:12px; }

/* overlay */
.overlay{
  position:fixed; inset:0; z-index:9998;
  background:rgba(0,0,0,.6); backdrop-filter:blur(6px);
  opacity:0; pointer-events:none; transition:opacity.3s;
}
.overlay.active{ opacity:1; pointer-events:auto; }

/* mobile panel */
.mobile-panel{
  position:fixed; top:0; right:0; z-index:9999;
  width:min(320px,88vw); height:100dvh;
  background:rgba(10,10,20,0.95); backdrop-filter:blur(18px);
  transform:translateX(100%); transition:transform.32s ease;
  display:flex; flex-direction:column; align-items:center;
  padding:68px 24px 24px; gap:24px; overflow-y:auto;
}
.mobile-panel.active{ transform:translateX(0); }

/* close X */
.panel-close{
  position:absolute; top:16px; right:16px;
  width:36px; height:36px; border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:#fff; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.panel-close:hover{ background:rgba(255,255,255,.12); }

/* profile head */
.panel-profile-head{
  width:100%; display:flex; align-items:center; gap:14px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px; padding:14px;
  color:#fff; cursor:pointer; text-align:left;
}
.panel-profile-head img{
  width:52px; height:52px; border-radius:50%; object-fit:cover;
  border:2px solid rgba(0,234,255,0.3); flex-shrink:0;
}
.panel-profile-text{ display:flex; flex-direction:column; }
.panel-profile-text strong{ font-size:15px; font-weight:600; }
.panel-profile-text span{ font-size:12px; color:#8892b0; }
.panel-profile-head:hover{ background:rgba(0,234,255,0.08); border-color:#00eaff; }

.panel-links{ display:flex; flex-direction:column; gap:22px; width:100%; align-items:center; padding-top:10px; }
.panel-links a{ color:#fff; text-decoration:none; font-size:19px; }
.panel-links a:hover{ color:#00eaff; }

/* mobile breakpoint */
.mobile-cart{ display:none; }
.menu-toggle{ display:none; }
@media (max-width:768px){
 .nav-links,.auth-guest,.cart-desktop{ display:none!important; }
 .mobile-cart,.menu-toggle{ display:flex!important; }
 .logo{ position:absolute; left:50%; transform:translateX(-50%); }
 .logo span{ font-size:16px; }
}
@media (min-width:769px){
 .mobile-cart,.mobile-panel,.overlay{ display:none!important; }
}
body.panel-open{ overflow:hidden; }
/* close X */
.panel-close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px; border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:#fff; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.panel-close:hover{ background:rgba(255,255,255,.12); }

/* panel logo – top */
.panel-logo{
  width:90px; height:90px; object-fit:contain;
  filter:drop-shadow(0 0 15px rgba(0,240,255,0.5));
  margin-top:8px;
}

/* links */
.panel-links{ display:flex; flex-direction:column; gap:22px; width:100%; align-items:center; }
.panel-links a{ color:#fff; text-decoration:none; font-size:19px; }
.panel-links a:hover{ color:#00eaff; }

/* profile – bottom */
.panel-profile{
  margin-top:auto; padding-top:20px;
  border-top:1px solid rgba(255,255,255,.08);
  width:100%; text-align:center;
}
.panel-profile button{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  color:#fff; cursor:pointer;
  width:100%; display:flex; align-items:center; gap:12px;
  padding:12px 14px; text-align:left;
}
.panel-profile button:hover{ background:rgba(0,234,255,0.08); border-color:#00eaff; }
.panel-profile img{
  width:44px; height:44px; border-radius:50%; object-fit:cover;
  border:2px solid rgba(0,234,255,0.3); flex-shrink:0;
}
.panel-profile-text{ display:flex; flex-direction:column; }
.panel-profile-text strong{ font-size:14px; font-weight:600; }
.panel-profile-text span{ font-size:12px; color:#8892b0; }
/* === HERO MOBILE TIGHTEN – paste at bottom === */
@media (max-width: 768px) {
  /* 1. Kill the full-screen hero, shrink-wrap to content */
  .hero,
  .hero-section,
  .hero-wrapper {
    min-height: auto !important;
    height: auto !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 76px !important; /* 68px navbar + 8px gap – lift close to nav */
    padding-bottom: 24px !important;
    background-position: top center !important;
  }

  /* 2. Glass panel hugs the content, ends right after CTAs */
  .hero-content,
  .glass-panel,
  .glass-title {
    width: 92% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 18px 16px 16px !important;
    border-radius: 16px !important;
  }

  /* 3. Tighter text so it fits higher */
  .top-line,
  .bottom-line {
    font-size: clamp(28px, 9vw, 44px) !important;
    letter-spacing: 2px !important;
    line-height: 1.05 !important;
  }

  .hero-subtitle,
  .hero-subtext {
    margin-top: 10px !important;
    font-size: 0.85rem !important;
  }

  /* 4. CTAs close to the bottom edge of the panel */
  .hero-buttons {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px !important;
  }

  .cta-btn,
  .btn-primary,
  .btn-secondary {
    padding: 10px 18px !important;
    font-size: 13px !important;
  }
}
/* === HERO CTA – PC BALANCE === */
@media (min-width: 769px) {
  .hero-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 18px !important;
    margin-top: 28px !important;
  }

  .hero-buttons .cta-btn,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    min-width: 170px !important;
    height: 46px !important;
    padding: 0 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* make the borders match so heights stay identical */
  .hero-buttons .btn-primary,
  .hero-buttons .primary {
    border: 1px solid transparent !important;
  }
}
/* === REMOVE LINK UNDERLINE === */
.hero-buttons a,
.btn-primary,
.btn-secondary,
.cta-btn,
.nav-links a,
.panel-links a {
  text-decoration: none !important;
}
.hero-buttons a:hover,
.btn-primary:hover,
.btn-secondary:hover,
.cta-btn:hover,
.nav-links a:hover,
.panel-links a:hover {
  text-decoration: none !important;
}
/* === HERO – MOBILE TIGHTEN + ORBIT CTAs – ALL DEVICES === */

/* --- Mobile hero layout --- */
@media (max-width: 768px) {
  .hero,
  .hero-section,
  .hero-wrapper {
    min-height: auto !important;
    height: auto !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 76px !important;
    padding-bottom: 24px !important;
    background-position: top center !important;
  }
  .hero-content,
  .glass-panel,
  .glass-title {
    width: 92% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 18px 16px 16px !important;
    border-radius: 16px !important;
  }
  .top-line,
  .bottom-line {
    font-size: clamp(28px, 9vw, 44px) !important;
    letter-spacing: 2px !important;
    line-height: 1.05 !important;
  }
  .hero-subtitle,
  .hero-subtext {
    margin-top: 10px !important;
    font-size: 0.85rem !important;
  }
}

/* --- CTA buttons – identical, orbit inside, all devices --- */
.hero-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.hero-buttons .cta-btn,
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary,
.hero-buttons a {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;

  /* identical glass base */
  background: rgba(10, 15, 30, 0.55) !important;
  color: #a5f3fc !important;
  border: 1px solid rgba(165, 243, 252, 0.45) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

/* orbit ring 1 – inside */
.hero-buttons .cta-btn::before,
.hero-buttons .btn-primary::before,
.hero-buttons .btn-secondary::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: conic-gradient(from 0deg, #00f0ff, #7b61ff, #ff3a7a, #00f0ff) !important;
  filter: blur(12px) !important;
  opacity: 0.28 !important;
  z-index: -1 !important;
  animation: orbitSpin 3.5s linear infinite !important;
  pointer-events: none !important;
}

/* orbit ring 2 – counter spin, inside */
.hero-buttons .cta-btn::after,
.hero-buttons .btn-primary::after,
.hero-buttons .btn-secondary::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: conic-gradient(from 180deg, transparent 0%, #00f0ff 15%, transparent 30%, #ff3a7a 50%, transparent 70%) !important;
  filter: blur(8px) !important;
  opacity: 0.18 !important;
  z-index: -1 !important;
  animation: orbitSpinRev 5s linear infinite !important;
  pointer-events: none !important;
}

.hero-buttons .cta-btn:hover,
.hero-buttons .btn-primary:hover,
.hero-buttons .btn-secondary:hover {
  transform: translateY(-2px) scale(1.03) !important;
  border-color: #6ee7ff !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25) inset !important;
  color: #eaffff !important;
  text-decoration: none !important;
}

.hero-buttons .cta-btn:hover::before,
.hero-buttons .btn-primary:hover::before,
.hero-buttons .btn-secondary:hover::before {
  opacity: 0.55 !important;
  animation-duration: 1.8s !important;
}

.hero-buttons .cta-btn:hover::after,
.hero-buttons .btn-primary:hover::after,
.hero-buttons .btn-secondary:hover::after {
  opacity: 0.38 !important;
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinRev { to { transform: rotate(-360deg); } }

/* --- PC sizing --- */
@media (min-width: 769px) {
  .hero-buttons { gap: 18px !important; margin-top: 28px !important; }
  .hero-buttons .cta-btn,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    min-width: 170px !important;
    height: 46px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
  }
}

/* --- Mobile sizing --- */
@media (max-width: 768px) {
  .hero-buttons { gap: 10px !important; margin-top: 16px !important; }
  .hero-buttons .cta-btn,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    min-width: 140px !important;
    height: 42px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
  }
}
/* ===== SCOFIELD: MOBILE MENU + PLAYER Z-INDEX FIX ===== */
@media (max-width: 768px) {
  
  /* SCOFIELD: Backdrop overlay - fades background */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9998; /* Below panel, above player */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .overlay.active {
    background: rgba(0, 0, 0, 0.7); /* SCOFIELD: BG fade */
    backdrop-filter: blur(4px);
    opacity: 1;
    pointer-events: auto; /* Click to close */
  }

  /* SCOFIELD: Mobile panel - MUST be above player */
  .mobile-panel {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: #0a0a0a;
    border-right: 1px solid #2a2a2a;
    z-index: 9999; /* SCOFIELD: Above everything */
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px;
  }
  
  .mobile-panel.active {
    left: 0; /* Slide in */
  }

  /* SCOFIELD: Force player below menu when open */
  body.menu-open .quick-player,
  body.menu-open .global-player,
  body.menu-open #audioPlayer {
    z-index: 9997 !important; /* Drop player below overlay */
  }

  /* Panel close button styling */
  .panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1a1a1a;
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
  }
}
/* ===== SCOFIELD: NUCLEAR Z-INDEX FIX ===== */
@media (max-width: 768px) {

  /* SCOFIELD: Overlay MUST cover everything including player */
  .overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0) !important;
    backdrop-filter: blur(0px) !important;
    z-index: 99998 !important; /* SCOFIELD: BEAT THE PLAYER */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .overlay.active {
    background: rgba(0, 0, 0, 0.85) !important; /* Darker fade */
    backdrop-filter: blur(8px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* SCOFIELD: Panel above overlay */
  .mobile-panel {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 300px !important;
    height: 100vh !important;
    background: #0a0a0a !important;
    border-left: 1px solid #2a2a2a !important;
    z-index: 99999 !important; /* SCOFIELD: TOP LAYER */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    padding: 20px !important;
  }
  
  .mobile-panel.active {
    right: 0 !important;
  }

  /* SCOFIELD: KILL PLAYER WHEN MENU OPEN - NO MERCY */
  body.menu-open .quick-player,
  body.menu-open .global-player,
  body.menu-open #audioPlayer,
  body.menu-open .player-bar,
  body.menu-open [class*="player"],
  body.menu-open [id*="player"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(100px) !important; /* SCOFIELD: Yeet it off screen */
    transition: all 0.2s ease !important;
  }
}
