/* ===================================================================
   Graphos Security — Navbar & Mobile Menu
   Premium dark glass design — NO template look
   =================================================================== */

/* ─── Base Navbar ─── */
.navbar{
  position:sticky;top:0;z-index:1000;
  height:72px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 max(2rem,calc((100vw - 1400px)/2));
  background:rgba(6,0,15,0.65);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border-bottom:1px solid rgba(160,0,255,0.1);
  transition:all 0.3s ease;
}
.navbar.scrolled{
  background:rgba(6,0,15,0.92);
  border-bottom-color:rgba(180,0,255,0.25);
  box-shadow:0 4px 30px rgba(100,0,200,0.12);
}

/* ─── Logo ─── */
.nav-logo{flex-shrink:0;display:flex;align-items:center;text-decoration:none}
.nav-logo-img{height:42px;width:auto;object-fit:contain;display:block}

/* ─── Center Nav Links (desktop) ─── */
.nav-links{
  flex:1;display:flex;align-items:center;justify-content:center;gap:0.25rem;
  margin:0 2rem;
}
.nav-link{
  color:rgba(153,102,187,0.9);font-size:0.875rem;font-weight:500;
  padding:0.5rem 0.9rem;border-radius:8px;
  transition:all 0.25s;position:relative;white-space:nowrap;
  text-decoration:none;
}
.nav-link::after{
  content:'';position:absolute;bottom:4px;left:50%;right:50%;
  height:2px;background:#b800ff;border-radius:1px;
  transition:all 0.25s;opacity:0;
}
.nav-link:hover,.nav-link.active{color:#fff;background:rgba(180,0,255,0.08)}
.nav-link:hover::after,.nav-link.active::after{left:20%;right:20%;opacity:1}
.nav-link-esim{
  background:linear-gradient(135deg,rgba(184,0,255,0.12),rgba(255,0,204,0.12))!important;
  border:1px solid rgba(184,0,255,0.25);
  color:#d44dff!important;
  border-radius:999px!important;padding:0.4rem 1rem!important;
}
.nav-link-esim:hover{
  background:linear-gradient(135deg,rgba(184,0,255,0.25),rgba(255,0,204,0.2))!important;
  border-color:#b800ff!important;
}
.nav-link-esim::after{display:none!important}

/* ─── Right Actions (desktop) ─── */
.nav-actions{display:flex;align-items:center;gap:0.6rem;flex-shrink:0}
.lang-switcher{display:flex;align-items:center;background:rgba(255,255,255,0.03);border:1px solid rgba(160,0,255,0.15);border-radius:999px;overflow:hidden}
.lang-btn{padding:0.3rem 0.65rem;font-size:0.72rem;font-weight:700;color:rgba(153,102,187,0.8);transition:all 0.25s;cursor:pointer;border:none;background:none;font-family:inherit}
.lang-btn.active,.lang-btn:hover{background:linear-gradient(135deg,#b800ff,#7b00ff);color:#fff}
.auth-btn{
  padding:0.45rem 1.1rem;font-size:0.82rem;font-weight:600;
  border-radius:999px;
  background:linear-gradient(135deg,#b800ff,#7b00ff);
  color:#fff;transition:all 0.25s;text-decoration:none;white-space:nowrap;
  box-shadow:0 0 8px rgba(184,0,255,0.3);
}
.auth-btn:hover{box-shadow:0 0 20px rgba(184,0,255,0.5);transform:translateY(-1px);color:#fff}

/* ─── Cart Button — Clean, NO background box ─── */
.cart-btn{
  position:relative;
  width:42px;height:42px;
  display:flex;align-items:center;justify-content:center;
  background:none;border:none;
  color:rgba(153,102,187,0.9);
  transition:color 0.25s;
  cursor:pointer;
}
.cart-btn svg{width:20px;height:20px}
.cart-btn:hover{color:#d44dff}
.cart-count{
  position:absolute;top:2px;right:0;
  min-width:18px;height:18px;border-radius:999px;
  background:linear-gradient(135deg,#b800ff,#ff00cc);
  color:#fff;font-size:0.65rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  padding:0 4px;
  box-shadow:0 0 10px rgba(184,0,255,0.5);
}

/* ─── Hamburger — Clean, NO background box ─── */
.hamburger{
  display:none;
  flex-direction:column;gap:6px;
  width:42px;height:42px;
  justify-content:center;align-items:center;
  background:none;border:none;
  cursor:pointer;flex-shrink:0;
  padding:0;
}
.hamburger span{
  display:block;width:22px;height:2px;
  background:rgba(153,102,187,0.9);
  border-radius:2px;transition:all 0.3s ease;
}
.hamburger:hover span{background:#d44dff}
.hamburger.open span:nth-child(1){transform:translateY(8px) rotate(45deg);background:#d44dff}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg);background:#d44dff}

/* ─── Scroll lock ─── */
body.nav-open{overflow:hidden!important;touch-action:none}
body.drawer-open{overflow:hidden!important;touch-action:none}

/* ===================================================================
   MOBILE MENU — v3 Premium
   =================================================================== */

.mobile-nav{
  display:none;position:fixed;
  inset:0;z-index:9998;
  background:rgba(4,0,10,0.97);
  backdrop-filter:blur(40px);
  -webkit-backdrop-filter:blur(40px);
  flex-direction:column;
  overflow-y:auto;-webkit-overflow-scrolling:touch;
}
.mobile-nav.open{display:flex;animation:mnIn 0.3s ease}
@keyframes mnIn{from{opacity:0}to{opacity:1}}

/* ── Header ── */
.mobile-nav-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:0 1.25rem;height:64px;flex-shrink:0;
}
.mobile-nav-header .nav-logo-img{height:34px}
.mobile-nav-close{
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  border-radius:10px;cursor:pointer;
  background:rgba(255,255,255,0.04);border:1px solid rgba(160,0,255,0.1);
  color:rgba(212,77,255,0.7);transition:all 0.25s;
}
.mobile-nav-close svg{width:18px;height:18px}
.mobile-nav-close:hover{background:rgba(180,0,255,0.1);color:#fff}

/* ── Links ── */
.mobile-nav-links{
  flex:1;display:flex;flex-direction:column;justify-content:center;
  padding:0 1.25rem;gap:0.4rem;
}
.mobile-nav-links .nav-link{
  display:flex;align-items:center;gap:0.85rem;
  padding:0.9rem 1rem;border-radius:12px;
  color:rgba(240,230,255,0.55);text-decoration:none;
  transition:all 0.25s;border:1px solid transparent;
  background:none;
}
.mobile-nav-links .nav-link::after{display:none!important}
.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link:active{
  color:#fff;background:rgba(180,0,255,0.05);
  border-color:rgba(160,0,255,0.08);
}

/* Icon box */
.mn-icon{
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border-radius:9px;flex-shrink:0;
  background:rgba(180,0,255,0.05);border:1px solid rgba(160,0,255,0.1);
  transition:all 0.25s;
}
.mn-icon svg{width:17px;height:17px;stroke:rgba(212,77,255,0.5);transition:stroke 0.25s}
.mobile-nav-links .nav-link:hover .mn-icon{
  background:rgba(180,0,255,0.1);border-color:rgba(180,0,255,0.2);
  box-shadow:0 0 10px rgba(180,0,255,0.1);
}
.mobile-nav-links .nav-link:hover .mn-icon svg{stroke:#d44dff}

/* Text */
.mn-text{display:flex;flex-direction:column;min-width:0}
.mn-label{font-size:0.92rem;font-weight:600;line-height:1.2}
.mn-sub{font-size:0.68rem;color:rgba(153,102,187,0.4);margin-top:1px}

/* eSIM highlight */
.mobile-nav-links .nav-link-esim{
  background:linear-gradient(135deg,rgba(184,0,255,0.05),rgba(255,0,204,0.03));
  border:1px solid rgba(184,0,255,0.12);
}
.mobile-nav-links .nav-link-esim .mn-icon{
  background:linear-gradient(135deg,rgba(184,0,255,0.1),rgba(255,0,204,0.06));
  border-color:rgba(184,0,255,0.2);
}
.mobile-nav-links .nav-link-esim .mn-icon svg{stroke:rgba(255,0,204,0.6)}
.mobile-nav-links .nav-link-esim .mn-label{color:rgba(212,77,255,0.85)}

/* Divider */
.mobile-nav-divider{
  height:1px;margin:0.25rem 0;
  background:linear-gradient(90deg,transparent,rgba(160,0,255,0.08),transparent);
}

/* ── CTA ── */
.mobile-nav-cta{
  display:flex;align-items:center;justify-content:center;gap:0.5rem;
  padding:0.85rem;margin:0 1.25rem 0.75rem;
  background:linear-gradient(135deg,#b800ff,#7b00ff);
  color:#fff;font-weight:600;font-size:0.92rem;
  border-radius:12px;text-decoration:none;
  box-shadow:0 4px 20px rgba(184,0,255,0.25);
  transition:all 0.25s;
}
.mobile-nav-cta svg{width:17px;height:17px;opacity:0.7}
.mobile-nav-cta:hover{box-shadow:0 6px 28px rgba(184,0,255,0.4);color:#fff}

/* ── Footer ── */
.mobile-nav-footer{
  padding:1rem 1.25rem;
  border-top:1px solid rgba(160,0,255,0.05);
  display:flex;align-items:center;justify-content:space-between;
  flex-shrink:0;gap:0.75rem;
}
.lang-row{display:flex;gap:0.4rem}
.mobile-nav-footer .lang-btn{
  padding:0.4rem 1.1rem;font-size:0.78rem;font-weight:600;
  border-radius:8px;border:1px solid rgba(160,0,255,0.1);
  color:rgba(153,102,187,0.6);transition:all 0.25s;
  cursor:pointer;background:none;font-family:inherit;
}
.mobile-nav-footer .lang-btn.active,
.mobile-nav-footer .lang-btn:hover{
  background:linear-gradient(135deg,#b800ff,#7b00ff);
  color:#fff;border-color:transparent;
}
.mn-badges{display:flex;gap:0.35rem}
.mn-badge{
  font-size:0.6rem;font-weight:700;
  padding:0.2rem 0.5rem;border-radius:5px;
  background:rgba(180,0,255,0.04);border:1px solid rgba(160,0,255,0.08);
  color:rgba(153,102,187,0.35);letter-spacing:0.03em;
}

/* ── Stagger animation ── */
.mobile-nav.open .mobile-nav-links .nav-link{
  animation:mnSlide 0.35s both;
}
.mobile-nav.open .mobile-nav-links .nav-link:nth-child(1){animation-delay:0.04s}
.mobile-nav.open .mobile-nav-links .nav-link:nth-child(2){animation-delay:0.08s}
.mobile-nav.open .mobile-nav-links .nav-link:nth-child(3){animation-delay:0.12s}
.mobile-nav.open .mobile-nav-links .nav-link:nth-child(4){animation-delay:0.16s}
.mobile-nav.open .mobile-nav-cta{animation:mnSlide 0.35s 0.2s both}
@keyframes mnSlide{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ── Scroll lock ── */
body.nav-open{overflow:hidden!important;touch-action:none}
body.drawer-open{overflow:hidden!important;touch-action:none}

/* ── Mobile adjustments ── */
@media(max-width:480px){
  .mobile-nav-header{padding:0 1rem;height:58px}
  .mobile-nav-header .nav-logo-img{height:30px}
  .mobile-nav-links{padding:0 1rem;gap:0.3rem}
  .mobile-nav-links .nav-link{padding:0.8rem 0.85rem;border-radius:10px}
  .mn-icon{width:34px;height:34px;border-radius:8px}
  .mn-icon svg{width:15px;height:15px}
  .mn-label{font-size:0.85rem}
  .mn-sub{font-size:0.62rem}
  .mobile-nav-cta{margin:0 1rem 0.5rem;padding:0.75rem;font-size:0.88rem;border-radius:10px}
  .mobile-nav-close{width:36px;height:36px;border-radius:8px}
  .mobile-nav-close svg{width:16px;height:16px}
  .mobile-nav-footer{padding:0.75rem 1rem}
  .mobile-nav-footer .lang-btn{padding:0.35rem 0.9rem;font-size:0.72rem}
}
@media(max-width:360px){
  .mobile-nav-header{height:52px;padding:0 0.75rem}
  .mobile-nav-links{padding:0 0.75rem}
  .mobile-nav-cta{margin:0 0.75rem 0.4rem}
  .mobile-nav-footer{padding:0.6rem 0.75rem}
}

/* ======================== RESPONSIVE ======================== */

@media(max-width:768px){
  .navbar{
    padding:0 1rem!important;height:64px!important;gap:0.5rem;
  }
  .nav-logo-img{height:36px}
  .nav-links{display:none!important}
  .lang-switcher{display:none!important}
  .hamburger{display:flex!important}
  .nav-actions .auth-btn{display:none}
  .footer-brand .nav-logo-img{height:28px}

  /* Mobile nav header matches navbar height */
  .mobile-nav-header{height:64px;padding:0 1rem}
}

@media(max-width:480px){
  .navbar{padding:0 0.75rem!important;height:58px!important}
  .nav-logo-img{height:32px}
  .cart-btn{width:38px;height:38px}
  .cart-btn svg{width:18px;height:18px}
  .hamburger{width:38px;height:38px}
  .mobile-nav-header{height:58px;padding:0 0.75rem}
  .mobile-nav-links{padding:1.25rem 1rem}
  .mobile-nav-links .nav-link{padding:0.85rem 1rem;font-size:1rem}
  .mobile-nav-cta{margin:0 1rem;padding:0.8rem 1rem;font-size:0.95rem}
  .mobile-nav-footer{padding:1.25rem 1rem}
}

@media(max-width:360px){
  .navbar{padding:0 0.5rem!important;height:54px!important}
  .nav-logo-img{height:28px}
  .cart-btn{width:36px;height:36px}
  .hamburger{width:36px;height:36px}
  .mobile-nav-header{height:54px}
}
