/* ==========================================================================
   IPTV Adults — installation.html page-specific styles (loaded AFTER style.css)
   Neon Noir theme
   ========================================================================== */

/* ---------- Page head (first section; clears the 72px fixed header) ---------- */
.page-head {
  padding: 140px 0 72px;
  text-align: center;
  background:
    radial-gradient(560px 320px at 86% -10%, rgba(255, 45, 120, 0.16), transparent 70%),
    radial-gradient(500px 320px at 4% 110%, rgba(124, 58, 237, 0.14), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.page-head h1 {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text);
}
.page-head h1 .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-head-sub {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body);
}

/* Device quick-pick pills inside the page head */
.device-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.device-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.device-pill:hover { border-color: rgba(255, 45, 120, 0.55); color: var(--neon-soft); transform: translateY(-2px); }
.device-pill[aria-selected="true"] {
  background: var(--grad-neon);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ---------- Device tab bar (sticky, mirrors the pills) ---------- */
.device-tabbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.device-tabbar .tab-list {
  display: flex;
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 12px 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.device-tabbar .tab-list::-webkit-scrollbar { display: none; }
.device-tabbar .tab-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 18px;
}
.device-tabbar .tab-btn .icon { width: 15px; height: 15px; }
.device-tabbar .tab-btn[aria-selected="true"] {
  background: var(--grad-neon);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
/* Override shared mobile rule that stretches tab buttons full-width */
@media (max-width: 640px) {
  .device-tabbar .tab-list { width: auto; }
  .device-tabbar .tab-btn { flex: 0 0 auto; justify-content: center; }
}

/* ---------- Guide panel ---------- */
.guide-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 0;
}

.guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.26);
  color: var(--neon-soft);
}
.guide-icon .icon { width: 28px; height: 28px; }
.guide-head h3 {
  margin: 0;
  font-size: 24px;
  color: var(--text);
}
.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.guide-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
}
.guide-chips li .icon { width: 14px; height: 14px; color: var(--neon-soft); }
.guide-chips .chip-app {
  border-color: rgba(255, 45, 120, 0.3);
  background: rgba(255, 45, 120, 0.12);
  color: var(--neon-soft);
}

/* Numbered step timeline */
.steps {
  position: relative;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px; bottom: 24px; left: 19px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 45, 120, 0.45), rgba(124, 58, 237, 0.45));
}
.steps li {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}
.steps li:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-neon);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.step-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.step-card h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.step-card p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}
.step-code {
  display: block;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--neon-soft);
  word-break: break-all;
}

/* Pro tips + Fix buffering boxes */
.guide-extras {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .guide-extras { grid-template-columns: 1fr 1fr; }
}
.tips-card {
  border: 1px solid rgba(255, 45, 120, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(255, 45, 120, 0.07);
  padding: 24px;
}
.fix-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.guide-extras-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.guide-extras-head .mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(255, 45, 120, 0.14);
  color: var(--neon-soft);
}
.fix-card .guide-extras-head .mini-icon { background: rgba(168, 85, 247, 0.14); color: var(--violet); }
.guide-extras-head .icon { width: 18px; height: 18px; }
.guide-extras-head h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--neon-soft);
}
.fix-card .guide-extras-head h4 { color: var(--text); }
.tips-list, .fix-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.tips-list li::before {
  content: '';
  width: 6px; height: 6px;
  flex-shrink: 0;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(255, 45, 120, 0.7);
}
.fix-list { counter-reset: fix; }
.fix-list li {
  counter-increment: fix;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.fix-list li::before {
  content: counter(fix);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.14);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
}

/* ---------- Troubleshooting section ---------- */
.trouble-card .feature-icon { border-radius: var(--radius-lg); }
.trouble-card .btn { margin-top: 18px; }

@media (max-width: 640px) {
  .page-head { padding: 120px 0 56px; }
  .guide-head { gap: 16px; }
}
