/* ==========================================================
   XTREAM-IPTV.SITE — GLOBAL STYLESHEET
   Components: Header · Footer · Base Reset
   ========================================================== */

/* ── CSS VARIABLES ── */
:root {
  --blue:        #0A2E66;
  --blue-hover:  #08224d;
  --accent:      #046bd2;
  --ink:         #0B1220;
  --muted:       #6b7280;
  --line:        #e9edf4;
  --bg:          #F0F5FA;
  --h:           78px;
  --radius:      12px;
  --shadow:      0 2px 12px rgba(2,6,23,.07);
  --font:        Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  padding-top: var(--h);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */

.aii-head, .aii-head * {
  box-sizing: border-box;
  font-family: var(--font);
}
.aii-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--h);
  z-index: 999999;
  background: #fff;
  border-bottom: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 8px 18px rgba(2,6,23,.04);
  display: flex;
  align-items: center;
}

/* Inner wrapper */
.aii-head .inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.aii-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
  flex-shrink: 0;
}
.aii-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.aii-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.5px;
  line-height: 1;
  white-space: nowrap;
}
.aii-logo-text span { color: var(--accent); }

/* Desktop nav */
.aii-nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.aii-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 9px 12px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.aii-link:hover {
  background: rgba(10,46,102,.07);
  color: var(--blue);
}
.aii-link.active {
  color: var(--accent);
  background: rgba(4,107,210,.07);
}

/* Right CTA zone */
.aii-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* CTA button */
.aii-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 900;
  font-size: .92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.aii-btn.aii-buy {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10,46,102,.25);
}
.aii-btn.aii-buy:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10,46,102,.32);
}
.aii-btn.aii-buy:active { transform: translateY(0); }

/* Burger icon */
.aii-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.aii-burger span,
.aii-burger::before,
.aii-burger::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.aii-burger span         { top: 50%; }
.aii-burger::before      { top: 50%; transform: translateX(-50%) translateY(-6px); }
.aii-burger::after       { top: 50%; transform: translateX(-50%) translateY(6px); }
.aii-burger[aria-expanded="true"]::before { transform: translateX(-50%) rotate(45deg); }
.aii-burger[aria-expanded="true"]::after  { transform: translateX(-50%) rotate(-45deg); }
.aii-burger[aria-expanded="true"] span    { opacity: 0; }

/* Mobile dropdown panel */
.aii-panel {
  display: none;
  position: fixed;
  top: var(--h);
  left: 0; right: 0;
  background: #fff;
  padding: 16px 18px 22px;
  box-shadow: 0 16px 30px rgba(2,6,23,.12);
  z-index: 999998;
  border-top: 1px solid var(--line);
}
.aii-panel.open   { display: block; }
.aii-panel a {
  display: block;
  padding: 13px 12px;
  font-weight: 700;
  font-size: .97rem;
  color: var(--blue);
  text-decoration: none;
  border-radius: 8px;
  transition: background .13s;
}
.aii-panel a:hover           { background: rgba(10,46,102,.06); }
.aii-panel a.active          { color: var(--accent); background: rgba(4,107,210,.06); }
.aii-panel .aii-btn.aii-buy  { width: 100%; margin-top: 12px; justify-content: center; }

/* Responsive breakpoint */
@media (max-width: 1024px) {
  .aii-nav-left,
  .aii-nav-right { display: none; }
  .aii-burger    { display: flex; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */

#aii-footer {
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
  -webkit-font-smoothing: antialiased;
}
#aii-footer .aii-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 18px 28px;
}

/* 4-column grid */
#aii-footer .aii-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}
@media (min-width: 600px) {
  #aii-footer .aii-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  #aii-footer .aii-grid { grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 32px; }
}

/* Column headings */
#aii-footer h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
}

/* Link lists */
#aii-footer .aii-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
#aii-footer .aii-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: border-color .15s, color .15s;
}
#aii-footer .aii-links a:hover {
  border-color: var(--accent);
  color: var(--blue);
}

/* Contact list */
#aii-footer .aii-contact {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
#aii-footer .aii-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
#aii-footer .aii-contact a:hover { border-color: var(--accent); }

/* Trust badges */
#aii-footer .aii-social   { margin: 4px 0 8px; text-align: center; }
#aii-footer .aii-badges   { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#aii-footer .aii-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10,46,102,.06);
  border: 1px solid #e6eefb;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}
#aii-footer .aii-chip i { color: var(--blue); }

/* Divider */
#aii-footer .aii-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

/* Bottom bar */
#aii-footer .aii-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
#aii-footer .aii-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  justify-self: start;
}
#aii-footer .aii-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#aii-footer .aii-brand .aii-logo-text {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.4px;
  white-space: nowrap;
}
#aii-footer .aii-brand .aii-logo-text span { color: var(--accent); }
#aii-footer .aii-legal-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-wrap: wrap;
}
#aii-footer .aii-legal-inline a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
#aii-footer .aii-legal-inline a:hover {
  color: var(--ink);
  border-color: var(--blue);
}
#aii-footer .aii-sep { color: #cbd5e1; }

@media (max-width: 680px) {
  #aii-footer .aii-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #aii-footer .aii-copy          { justify-self: center; }
  #aii-footer .aii-brand         { justify-content: center; }
  #aii-footer .aii-legal-inline  { justify-self: center; justify-content: center; }
}
