/* ═══════════════════════════════════════════════
   XtremeIPTV HD — setup.css  v4.0
   Clean pill-button device grid (no icons)
   matching the reference design screenshots
═══════════════════════════════════════════════ */

/* ── Hero ── */
.setup-hero {
  padding: 140px 24px 56px;
  text-align: center;
}
.setup-hero-title {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.setup-hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.78;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Panel ── */
.setup-panel { padding: 0 24px 80px; }
.setup-panel-inner { max-width: 1060px; margin: 0 auto; }

/* ── Step label ── */
.setup-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-d);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 18px;
}
.setup-step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-1), var(--teal-1));
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(108,63,212,.4);
}

/* ════════════════════════════════════════
   DEVICE GRID — clean text pills, 5×2
   Matches reference screenshots exactly
════════════════════════════════════════ */
.setup-devices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 44px;
}

.device-btn {
  /* Pure text pill — no icon element */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  min-height: 68px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: rgba(255,255,255,.80);
  font-family: var(--ff-b);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  text-align: center;
  line-height: 1.3;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.device-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,200,.18), rgba(108,63,212,.14));
  opacity: 0;
  transition: opacity .22s ease;
}
.device-btn:hover {
  border-color: rgba(0,212,200,.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.device-btn:hover::before { opacity: 1; }

/* Active state — teal-to-purple gradient fill like the reference */
.device-btn.active {
  background: linear-gradient(135deg, #00b4a6 0%, #008a9e 50%, #0070bd 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,180,166,.35);
  transform: translateY(-1px);
}
.device-btn.active::before { opacity: 0; }

/* ════════════════════════════════════════
   APP BUTTONS — text pills, same style
════════════════════════════════════════ */
.setup-app-row {
  display: none;
  margin-bottom: 40px;
  animation: fadeInUp .3s ease both;
}
.setup-app-row.visible { display: block; }

.setup-apps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  min-height: 60px;
  min-width: 160px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: rgba(255,255,255,.80);
  font-family: var(--ff-b);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s ease;
  text-align: center;
}
.app-btn:hover {
  border-color: rgba(0,212,200,.5);
  color: #fff;
  background: rgba(255,255,255,.12);
}
.app-btn.active {
  background: linear-gradient(135deg, #00b4a6 0%, #008a9e 50%, #0070bd 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,180,166,.35);
}

/* ════════════════════════════════════════
   GUIDE CONTENT WRAPPER
════════════════════════════════════════ */
.setup-guide-wrap {
  display: none;
  animation: fadeInUp .4s ease both;
}
.setup-guide-wrap.visible { display: block; }

.setup-guide-content {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 36px 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 48px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.07);
}

/* ── Guide inner elements ── */
.sg-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sg-header h2 {
  font-family: var(--ff-d);
  font-size: 1.45rem; font-weight: 800;
  margin-bottom: 8px; color: var(--text-1);
}
.sg-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sg-meta-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-3); }
.sg-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal-1); flex-shrink: 0; }
.sg-meta-val { color: var(--teal-1); font-weight: 600; }

/* Quick requirements */
.sg-quick {
  background: rgba(108,63,212,.09);
  border: 1px solid rgba(108,63,212,.22);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.sg-quick-title {
  font-family: var(--ff-d); font-size: .8rem; font-weight: 700;
  color: var(--purple-2); letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 10px;
}
.sg-quick-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sg-quick-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--text-2); line-height: 1.6; }
.sg-check {
  width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-1), var(--teal-1));
  position: relative; flex-shrink: 0; margin-top: 2px;
}
.sg-check::after {
  content: ''; position: absolute;
  width: 4px; height: 6px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(45deg); top: 3px; left: 5px;
}

/* Compatibility note */
.sg-compat {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(0,212,200,.06); border: 1px solid rgba(0,212,200,.2);
  border-radius: 12px; padding: 14px 16px;
  margin-bottom: 24px; font-size: .86rem; color: var(--text-2); line-height: 1.65;
}
.sg-compat-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-1), var(--purple-1));
  position: relative; flex-shrink: 0; margin-top: 1px;
}
.sg-compat-icon::after {
  content: 'i'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff; font-family: var(--ff-d);
}

/* Why section */
.sg-why { margin-bottom: 28px; }
.sg-section-title {
  font-family: var(--ff-d); font-size: 1rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 13px;
  display: flex; align-items: center; gap: 9px;
}
.sg-section-title::before {
  content: ''; width: 3px; height: 18px;
  background: linear-gradient(180deg, var(--purple-1), var(--teal-1));
  border-radius: 2px; flex-shrink: 0;
}
.sg-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-feature-item { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--text-2); line-height: 1.5; }
.sg-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-1); flex-shrink: 0; margin-top: 5px;
  box-shadow: 0 0 6px var(--teal-1);
}

/* Steps */
.sg-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.sg-step {
  display: flex; gap: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 18px 20px;
  transition: border-color .22s ease;
}
.sg-step:hover { border-color: rgba(0,212,200,.25); }
.sg-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-1), var(--teal-1));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-d); font-weight: 800; font-size: .82rem; color: #fff;
  flex-shrink: 0; box-shadow: 0 3px 12px rgba(108,63,212,.4);
}
.sg-step-body h4 {
  font-family: var(--ff-d); font-weight: 700; font-size: .95rem;
  margin-bottom: 6px; color: var(--text-1);
}
.sg-step-body p { font-size: .87rem; color: var(--text-2); line-height: 1.74; margin: 0; }
.sg-step-body p strong { color: var(--text-1); }
.sg-step-body .sg-note {
  margin-top: 9px; padding: 9px 13px;
  background: rgba(0,212,200,.06);
  border-left: 2px solid var(--teal-1);
  border-radius: 0 8px 8px 0;
  font-size: .8rem; color: var(--text-2);
}

/* Credentials box */
.sg-credentials {
  background: linear-gradient(135deg, rgba(108,63,212,.12), rgba(0,212,200,.06));
  border: 1px solid rgba(0,212,200,.28);
  border-radius: 12px; padding: 16px 20px;
  margin-top: 12px; font-size: .85rem; color: var(--text-2);
}
.sg-credentials strong { color: var(--teal-1); }
.sg-cred-items { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.sg-cred-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-cred-label {
  font-family: var(--ff-d); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); width: 90px; flex-shrink: 0;
}
.sg-cred-val {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; padding: 4px 12px;
  font-size: .82rem; color: var(--teal-1); font-family: monospace;
  word-break: break-all;
}

/* Troubleshooting */
.sg-trouble { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.sg-trouble-list { display: flex; flex-direction: column; gap: 11px; }
.sg-trouble-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 17px;
}
.sg-trouble-q { font-family: var(--ff-d); font-size: .88rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.sg-trouble-a { font-size: .84rem; color: var(--text-2); line-height: 1.7; }

/* CTA inside guide */
.sg-cta {
  margin-top: 30px;
  background: linear-gradient(135deg, rgba(108,63,212,.18), rgba(0,212,200,.08));
  border: 1px solid rgba(155,93,229,.28);
  border-radius: 22px; padding: 28px 32px;
  text-align: center;
}
.sg-cta h3 { font-family: var(--ff-d); font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.sg-cta p { font-size: .88rem; color: var(--text-2); margin-bottom: 20px; line-height: 1.6; }

/* ── Help section ── */
.setup-help { padding: 0 24px 80px; }
.setup-help-inner {
  max-width: 1060px; margin: 0 auto;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px; padding: 36px 40px;
  display: flex; align-items: center; gap: 28px;
  backdrop-filter: blur(16px); flex-wrap: wrap;
}
.setup-help-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-1), var(--teal-1));
  flex-shrink: 0; position: relative;
  box-shadow: 0 6px 20px rgba(108,63,212,.45);
}
.setup-help-icon::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -55%);
}
.setup-help-icon::after {
  content: ''; position: absolute;
  width: 3px; height: 7px; background: #fff; border-radius: 2px;
  bottom: 11px; left: 50%; transform: translateX(-50%);
}
.setup-help-title { font-family: var(--ff-d); font-size: 1.25rem; font-weight: 800; margin-bottom: 5px; }
.setup-help-sub { font-size: .88rem; color: var(--text-2); line-height: 1.6; }
.setup-help-btn { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.setup-help-btn-icon {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%; position: relative; flex-shrink: 0;
}
.setup-help-btn-icon::before {
  content: ''; position: absolute;
  width: 6px; height: 6px; border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 50%; top: 2px; left: 4px;
}
.setup-help-btn-icon::after {
  content: ''; position: absolute;
  width: 2px; height: 4px; background: rgba(255,255,255,.8);
  border-radius: 1px; bottom: 1px; left: 6px;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 960px) {
  .setup-devices { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .device-btn { font-size: .88rem; padding: 18px 10px; min-height: 60px; }
}
@media (max-width: 700px) {
  .setup-devices { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .setup-apps { gap: 9px; }
  .app-btn { min-width: 0; flex: 1 1 calc(50% - 5px); padding: 15px 10px; font-size: .88rem; }
  .setup-help-inner { flex-direction: column; text-align: center; }
  .setup-help-btn { margin-left: 0; }
  .setup-guide-content { padding: 22px 18px; }
  .sg-step { flex-direction: column; gap: 10px; }
  .sg-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .setup-hero { padding: 120px 16px 40px; }
  .setup-panel { padding: 0 16px 60px; }
  .setup-guide-content { padding: 18px 14px; }
  .device-btn { font-size: .82rem; padding: 16px 8px; min-height: 54px; }
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
