/* ============================================================
   Smart4K IPTV - shared styles (background + navbar + footer)
   Ye file har page par /css/shared.css se load hoti hai.
   Navbar/footer/background ka design yahan se change karein,
   sab pages par automatically update ho jayega.
   ============================================================ */

/* Variables - sirf nav/footer/bg ke andar (page ke apne :root se conflict nahi) */
#navbar, .mobile-nav, .ft-root, .bg-wrap {
  --black:   #000000;
  --deep:    #030810;
  --cyan:    #00d4ff;
  --blue:    #0095ff;
  --text:    #e8f4ff;
  --muted:   rgba(255,255,255,0.50);
  --dim:     rgba(255,255,255,0.25);
  --card-bg: rgba(255,255,255,0.03);
  --border:  rgba(0,212,255,0.15);
  --glow:    rgba(0,212,255,0.25);
  --ff-display: 'Bebas Neue', 'DM Sans', sans-serif;
  --ff-mono:    'DM Mono', monospace;
  --ff-body:    'DM Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --nav-h: 70px;
  font-family: var(--ff-body);
}

/* Light reset (specificity 0, taake page ki apni styling na tootay) */
:where(#navbar, #navbar *, .mobile-nav, .mobile-nav *, .ft-root, .ft-root *, .bg-wrap, .bg-wrap *) {
  margin: 0; padding: 0; box-sizing: border-box;
}
:where(#navbar a, .mobile-nav a, .ft-root a) { text-decoration: none; color: inherit; }
:where(#navbar img, .ft-root img) { display: block; max-width: 100%; }

@keyframes ft-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }


          /* ══════════════════════════════════════════
       ANIMATED CANVAS BACKGROUND
    ══════════════════════════════════════════ */
    .bg-wrap {
      position: fixed;
      inset: 0;
      z-index: -1;
      background: linear-gradient(135deg, #000 0%, #0a0a1a 50%, #000033 100%);
    }
    #networkCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    /* ══════════════════════════════════════════
       NAVIGATION — sleek floating pill style
    ══════════════════════════════════════════ */
    nav#navbar {
      position: fixed;
      top: 14px;
      left: 50%;
      transform: translateX(-50%);
      width: min(1200px, calc(100% - 32px));
      height: var(--nav-h);
      padding: 0 10px 0 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border: 1px solid rgba(0, 212, 255, 0.12);
      border-radius: 100px;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
      z-index: 1000;
      transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
      background: rgba(0,212,255,0.07);
     box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.12);
    }
    nav#navbar.scrolled {
    background: rgba(0,212,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.12);
    }

    /* Logo */
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      text-decoration: none;
    }
    .logo-icon {
      width: 40px;
      height: 36px;
      background: linear-gradient(135deg, #3464a7, #49c5ce, #10228b);
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
      flex-shrink: 0;
      
    }
    .logo-icon::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(45deg, transparent, rgba(255,255,255,0.18), transparent);
      animation: logo-shine 3s infinite;
    }
    @keyframes logo-shine {
      0%   { transform: translateX(-120%) rotate(45deg); }
      100% { transform: translateX(120%)  rotate(45deg); }
    }
    .logo-play {
      width: 0; height: 0;
      border-left: 13px solid #fff;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      margin-left: 3px;
      position: relative; z-index: 1;
    }
    .logo-text { display: flex; flex-direction: column; line-height: 1; }
    .logo-brand {
      font-size: 1.35rem;
      font-weight: 700;
      background: linear-gradient(135deg, #69f0fa, #8cdbe0, #3bc5cf);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .logo-tagline {
      font-size: 0.55rem;
      color: #aaa;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-top: 2px;
    }

    /* Desktop nav links — soft pill hover instead of underline */
    .nav-links {
      display: flex;
      gap: 4px;
      align-items: center;
    }
    .nav-links a {
      font-size: 13.5px;
      font-weight: 500;
      letter-spacing: 0.02em;
      color: #fff;
      text-decoration: none;
      padding: 8px 15px;
      border-radius: 30px;
      transition: color 0.2s, background 0.2s;
    }
    .nav-links a:hover {
      color: var(--cyan);
      background: rgba(0, 212, 255, 0.08);
    }
    .nav-links a[aria-current="page"] {
      color: var(--cyan);
      background: rgba(0, 212, 255, 0.1);
    }

    /* CTA button */
    .btn-cta {
      background: linear-gradient(135deg, var(--cyan), var(--blue));
      color: #000;
      font-weight: 700;
      font-size: 13.5px;
      padding: 11px 26px;
      border-radius: 30px;
      border: none;
      cursor: pointer;
      flex-shrink: 0;
      white-space: nowrap;
      text-decoration: none;
      box-shadow: 0 4px 20px rgba(0,149,255,0.35);
      transition: transform 0.25s, box-shadow 0.25s;
      display: inline-block;
    }
    .btn-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(0,149,255,0.55);
    }

    /* Hamburger (mobile only) */
    .hamburger {
      display: none;
      background: rgba(0, 212, 255, 0.08);
      border: 1px solid rgba(0, 212, 255, 0.2);
      border-radius: 50%;
      width: 42px;
      height: 42px;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      flex-shrink: 0;
      line-height: 1;
      transition: 0.25s;
    }
    .hamburger:hover { border-color: var(--cyan); color: var(--cyan); }

    /* Mobile dropdown — floating card matching the pill nav */
    .mobile-nav {
      display: none;
      position: fixed;
      top: calc(var(--nav-h) + 24px);
      left: 16px;
      right: 16px;
      background: rgba(4, 9, 20, 0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      padding: 12px 20px 20px;
      border: 1px solid rgba(0, 212, 255, 0.2);
      border-radius: 22px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
      z-index: 999;
    }
    .mobile-nav.open {
      display: block;
      animation: navDrop 0.3s ease;
    }
    @keyframes navDrop {
      from { opacity: 0; transform: translateY(-12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .mobile-nav a {
      display: block;
      padding: 13px 4px;
      font-size: 15px;
      font-weight: 500;
      color: #fff;
      text-decoration: none;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      transition: color 0.2s, padding-left 0.2s;
    }
    .mobile-nav a:hover { color: var(--cyan); padding-left: 10px; }
    .mobile-nav .btn-cta { margin-top: 16px; display: block; text-align: center; border-bottom: none; }

    @media (max-width: 768px) {

        nav#navbar {
            top: 10px;
            width: calc(100% - 20px);
            padding: 0 8px 0 16px;
        }

        .nav-links { display: none; }

        nav#navbar > .btn-cta { display: none; } /* Fixed: was .btn-nav in your old code */

        .hamburger { display: flex; align-items: center; justify-content: center; } /* Fixed: was .mobile-menu-btn */

        .mobile-nav { top: calc(var(--nav-h) + 18px); left: 10px; right: 10px; }
}

    @media (max-width: 480px) {

        nav#navbar { top: 8px; width: calc(100% - 16px); padding: 0 6px 0 14px; }
        
        .logo-brand { font-size: 1.1rem; } /* Fixed: was .logo-1 .brand */
        .logo-tagline { font-size: 0.45rem; } /* Fixed: was .logo-1 .tagline */
        .logo-icon { width: 34px; height: 30px; border-radius: 9px; } /* Fixed: was .logo-1 .icon-box */
        .logo-play { border-left-width: 11px; border-top-width: 6px; border-bottom-width: 6px; } 
        .hamburger { width: 36px; height: 36px; font-size: 18px; }
}

/* ══ FOOTER — glassmorphism ══ */
.ft-root {
  font-family: 'DM Sans', sans-serif;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ft-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.6;
}

.ft-arc {
  position: absolute; top: -380px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(56,189,248,0.10) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}

.ft-line-top {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.4) 40%, rgba(99,102,241,0.4) 60%, transparent 100%);
}

.ft-inner { position: relative; z-index: 1; padding: 28px; }

/* the glass panel itself */
.ft-glass {
 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  backdrop-filter: blur(2px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255, 252, 252, 0.06);
  overflow: hidden;
}

.ft-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 0;
  padding: 52px 48px 40px;
}

.ft-col { padding: 0 28px 0 0; }
.ft-col:last-child { padding-right: 0; }
.ft-col + .ft-col { border-left: 1px solid rgba(255,255,255,0.06); padding-left: 28px; }

.ft-logo-wrap { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.ft-brand { display: flex; flex-direction: column; }
.ft-brand-name { font-size: 20px; font-weight: 700; }
.ft-brand-name span { color: #38bdf8; }
.ft-brand-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: #7d8ba0; text-transform: uppercase; margin-top: 4px; }

.ft-desc { font-size: 13.5px; line-height: 1.78; color: #d5dee9; margin-bottom: 24px; max-width: 240px; font-weight: 300; }

.ft-social { display: flex; gap: 8px; }
.ft-soc-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #d6dee9; font-size: 15px; cursor: pointer;
  transition: all 0.25s; text-decoration: none;
}
.ft-soc-btn:hover { border-color: rgba(56,189,248,0.5); color: #38bdf8; background: rgba(56,189,248,0.1); transform: translateY(-2px); }
.ft-soc-btn i { font-size: 16px; }

.ft-col-head {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #38bdf8; margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.ft-col-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(56,189,248,0.25), transparent); }

.ft-nav { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ft-nav li a {
  font-size: 14px; color: #b2bfcf; text-decoration: none;
  display: flex; align-items: center; gap: 9px; transition: all 0.22s; font-weight: 400;
}
.ft-nav li a i { font-size: 14px; transition: transform 0.22s; }
.ft-nav li a:hover { color: #e2e8f0; padding-left: 3px; }
.ft-nav li a:hover i { color: #38bdf8; transform: translateX(2px); }

.ft-contact { display: flex; flex-direction: column; gap: 16px; }
.ft-citem { display: flex; align-items: flex-start; gap: 12px; }
.ft-cicon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid rgba(56,189,248,0.18);
  background: rgba(56,189,248,0.06);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #38bdf8;
}
.ft-cicon i { font-size: 15px; }
.ft-ctext { font-size: 13px; line-height: 1.55; }
.ft-ctext strong { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #ffffff; margin-bottom: 3px; }
.ft-ctext span { color: #a7b4c4; }

/* payment chips — icon + label, no images */
.ft-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.ft-pay-chip i { font-size: 15px; color: #38bdf8; flex-shrink: 0; }

.ft-pay-icon {
  width: 15px; height: 15px; flex-shrink: 0;
  fill: #38bdf8;
  transition: fill 0.25s;
}
.ft-pay-chip:hover .ft-pay-icon { fill: #7dd3fc; }
.ft-pay-chip:hover { border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.06); transform: translateY(-1px); }
.ft-pay-chip i { font-size: 15px; color: #38bdf8; flex-shrink: 0; }
.ft-pay-chip span { font-size: 11.5px; font-weight: 500; color: #cbd5e1; white-space: nowrap; }

.ft-ssl {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(52,211,153,0.22);
  background: rgba(52,211,153,0.06);
  backdrop-filter: blur(6px);
  border-radius: 10px; padding: 9px 13px;
}
.ft-ssl i { font-size: 15px; color: #34d399; }
.ft-ssl-text { font-size: 12px; color: rgba(52,211,153,0.9); font-weight: 500; }
.ft-ssl-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; flex-shrink: 0; animation: ft-blink 2.2s ease-in-out infinite; }

.ft-bottom {
  padding: 20px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.ft-copy { font-size: 12.5px; color: #b8c2d0; }
.ft-copy span { color: #38bdf8; font-weight: 500; }
.ft-blinks { display: flex; gap: 22px; }
.ft-blinks a { font-size: 12.5px; color: #b8c2d0; text-decoration: none; transition: color 0.2s; }
.ft-blinks a:hover { color: #ffffff; }
.ft-sep { color: #334155; }

@media (max-width: 900px) {
  .ft-inner { padding: 16px; }
  .ft-main { grid-template-columns: 1fr 1fr; padding: 40px 28px 32px; }
  .ft-col + .ft-col { border-left: none; padding-left: 0; }
  .ft-col { border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 28px; }
  .ft-col:last-child { border-bottom: none; }
  .ft-bottom { padding: 18px 28px; }
}
@media (max-width: 560px) {
  .ft-main { grid-template-columns: 1fr; padding: 32px 20px 24px; }
  .ft-pay-grid { grid-template-columns: 1fr 1fr; }
  .ft-bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
/* ══ Payment methods — card-style chips ══ */
.ft-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ft-pay-chip {
  height: 38px;
  min-width: 58px;
  padding: 0 11px;
  border-radius: 8px;
  background: #86acd3;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ft-pay-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 18px rgba(136, 166, 219, 0.4), 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.ft-pay-chip svg { display: block; }/* ══ Payment methods — card-style chips ══ */
.ft-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ft-pay-chip {
  height: 38px;
  min-width: 58px;
  padding: 0 11px;
  border-radius: 8px;
  background: #dce9fe;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ft-pay-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.ft-pay-chip svg { display: block; }/* Contact dropdown */
/* ── Contact dropdown ── */
.has-sub{position:relative;display:flex;align-items:center}
.has-sub>a{padding-right:4px!important}

.sub-toggle{
  display:flex;align-items:center;justify-content:center;
  width:26px;height:26px;margin-right:4px;
  background:none;border:none;border-radius:50%;
  color:rgba(255,255,255,.6);cursor:pointer;
  transition:color .2s,background .2s
}
.sub-toggle svg{width:10px;height:6px;transition:transform .25s}
.has-sub:hover .sub-toggle,.sub-toggle:focus-visible{color:var(--cyan);background:rgba(0,212,255,.1)}
.has-sub:hover .sub-toggle svg,.sub-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}

.has-sub .submenu{
  position:absolute;top:100%;left:50%;right:auto;
  width:max-content;min-width:260px;
  padding:8px;margin-top:14px;
  background:rgba(4,9,20,.97);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(0,212,255,.2);border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 24px rgba(0,212,255,.12);
  opacity:0;visibility:hidden;
  transform:translate(-50%,-8px);
  transition:opacity .2s,transform .2s,visibility .2s;
  z-index:1100
}
/* pointer on top of the panel */
.has-sub .submenu::after{
  content:'';position:absolute;top:-6px;left:50%;
  width:10px;height:10px;margin-left:-5px;
  background:rgba(4,9,20,.97);
  border-top:1px solid rgba(0,212,255,.2);
  border-left:1px solid rgba(0,212,255,.2);
  transform:rotate(45deg)
}
/* invisible bridge so the menu stays open while the mouse moves down */
.has-sub .submenu::before{content:'';position:absolute;top:-16px;left:0;right:0;height:16px}

.has-sub:hover .submenu,.has-sub.open .submenu,.has-sub:focus-within .submenu{
  opacity:1;visibility:visible;transform:translate(-50%,0)
}

.has-sub .submenu a{
  display:flex!important;flex-direction:row;align-items:center;gap:12px;
  padding:10px 14px!important;border-radius:14px;
  white-space:nowrap;text-decoration:none;
  transition:background .2s
}
.has-sub .submenu a+a{margin-top:2px}
.has-sub .submenu a:hover,.has-sub .submenu a:focus-visible{
  background:linear-gradient(90deg,rgba(0,212,255,.12),rgba(0,149,255,.03));outline:none
}

.submenu .sub-icon{
  flex-shrink:0;width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,212,255,.08);border:1px solid rgba(0,212,255,.2);
  color:var(--cyan);transition:background .2s,border-color .2s
}
.submenu .sub-icon svg{width:17px;height:17px}
.submenu a:hover .sub-icon{background:rgba(0,212,255,.16);border-color:rgba(0,212,255,.45)}

.submenu .sub-text{display:block;line-height:1.3}
.submenu .sub-title{display:block;font-size:14px;font-weight:600;color:#fff;transition:color .2s}
.submenu .sub-desc{display:block;font-size:11.5px;font-weight:400;color:rgba(255,255,255,.45);margin-top:2px}
.submenu a:hover .sub-title{color:var(--cyan)}

/* ── Mobile menu group ── */
.mobile-nav .sub-group{margin:2px 0 8px 6px;padding-left:14px;border-left:2px solid rgba(0,212,255,.25)}
.mobile-nav .sub-group a{font-size:14px;font-weight:500;color:rgba(255,255,255,.72);padding:10px 4px;border-bottom:1px solid rgba(255,255,255,.05)}
.mobile-nav .sub-group a:last-child{border-bottom:none}
.mobile-nav .sub-group a:hover{color:var(--cyan)}
/* panel: gradient background, slim width */
.has-sub .submenu{
  width:max-content;min-width:0;max-width:none;
  padding:4px;margin-top:12px;
  background:linear-gradient(180deg,rgba(12,38,76,.97) 0%,rgba(5,12,28,.97) 100%);
  border:1px solid rgba(0,212,255,.28);
  border-radius:14px;
  box-shadow:0 16px 44px rgba(0,0,0,.55),0 0 24px rgba(0,149,255,.18),inset 0 1px 0 rgba(255,255,255,.06);
}

/* pointer */
.has-sub .submenu::after{
  background:rgb(12,38,76);
  border-top:1px solid rgba(0,212,255,.28);
  border-left:1px solid rgba(0,212,255,.28);
}

/* items: one slim line each */
.has-sub .submenu a{
  gap:8px;
  padding:5px 10px 5px 6px!important;
  border-radius:10px;
}
.submenu .sub-icon{width:24px;height:24px}
.submenu .sub-icon svg{width:12px;height:12px}
.submenu .sub-title{font-size:12.5px;font-weight:500;letter-spacing:0}
.submenu .sub-desc{display:none}
