/* HERO — matches channels-hero / faq-hero */
.setup-hero {
  background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px 40px;
  text-align: center;
}
.setup-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 10px; }
.setup-hero p { font-size: 17px; color: var(--text-muted); }

/* APP TABS — matches faq-categories style */
.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.tab-btn.active { color: var(--primary); border-color: var(--primary); background: rgba(240,165,0,0.08); }

/* PAGE LAYOUT */
.setup-page {
  padding: 36px 24px 80px;
  max-width: 1100px;
}

/* APP SECTION */
.app-section { display: none; }
.app-section.active { display: block; }

/* APP HEADER */
.app-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  flex-wrap: wrap;
}
.app-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.app-icon.tivimate  { background: linear-gradient(135deg, #1a6bff, #0d4ad4); color: #fff; }
.app-icon.smarters  { background: linear-gradient(135deg, #ff6b35, #e84400); color: #fff; }
.app-icon.ibo       { background: linear-gradient(135deg, #9b59b6, #6c3483); color: #fff; }
.app-icon.gse       { background: linear-gradient(135deg, #27ae60, #1a7340); color: #fff; }
.app-icon.vlc       { background: linear-gradient(135deg, #f0a500, #c77f00); color: #fff; }
.app-header > div:nth-child(2) { flex: 1; min-width: 200px; }
.app-header h2 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.app-header > div:nth-child(2) > p { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.platform-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.badge.android { color: #4caf50; border-color: rgba(76,175,80,0.3); background: rgba(76,175,80,0.08); }
.badge.fire    { color: #ff9800; border-color: rgba(255,152,0,0.3); background: rgba(255,152,0,0.08); }
.badge.windows { color: #00b4d8; border-color: rgba(0,180,216,0.3); background: rgba(0,180,216,0.08); }
.badge.mac     { color: #bdbdbd; border-color: rgba(189,189,189,0.3); background: rgba(189,189,189,0.08); }
.badge.ios     { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.08); }
.badge.linux   { color: #f97316; border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.08); }
.badge.smart   { color: #38bdf8; border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.08); }
.download-btn {
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* GUIDES GRID */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.guide-header {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  background: rgba(240,165,0,0.05);
}
.steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.steps li::before {
  content: counter(step-counter);
  min-width: 22px;
  height: 22px;
  background: rgba(240,165,0,0.15);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.steps li strong { color: #fff; }

/* CREDENTIALS BOX */
.creds-box {
  background: rgba(240,165,0,0.06);
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 8px;
}
.creds-box h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
}
.creds-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0;
}
.creds-box code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 13px;
  color: #fff;
}

/* SECTION TITLE */
.section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 36px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i { color: var(--primary); font-size: 16px; }

/* TROUBLESHOOTING */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.trouble-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.trouble-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trouble-card h4 i { color: #ef4444; font-size: 13px; }
.trouble-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trouble-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.trouble-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* INFO NOTE */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.info-note i { color: #3b82f6; font-size: 15px; flex-shrink: 0; margin-top: 2px; }

/* PLATFORM TABS (within app section) */
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ptab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.ptab:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.ptab.active { color: var(--primary); border-color: var(--primary); background: rgba(240,165,0,0.08); }

.platform-content { display: none; margin-bottom: 28px; }
.platform-content.active { display: block; }

/* METHOD SECTIONS */
.method-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.method-section.alt {
  background: rgba(255,255,255,0.02);
}
.method-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.method-section h3 i { color: var(--primary); }
.recommended-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  background: rgba(240,165,0,0.15);
  color: var(--primary);
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* CREDENTIALS BOX inside method-section */
.credentials-box {
  background: rgba(240,165,0,0.06);
  border: 1px solid rgba(240,165,0,0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.credentials-box > p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.cred-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.cred-label {
  font-weight: 700;
  color: var(--primary);
  min-width: 90px;
  flex-shrink: 0;
}
.cred-val { color: var(--text-muted); }

/* STEPS LARGE (inside method-section) */
.steps-lg {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps-lg li {
  counter-increment: step-counter;
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.steps-lg li::before {
  content: counter(step-counter);
  min-width: 26px;
  height: 26px;
  background: rgba(240,165,0,0.15);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.steps-lg li strong { color: #fff; }
.steps-lg li code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: monospace;
  font-size: 13px;
  color: #fff;
}

/* TIPS BOX */
.tips-box {
  background: rgba(240,165,0,0.05);
  border: 1px solid rgba(240,165,0,0.18);
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 8px;
  margin-bottom: 36px;
}
.tips-box.warning {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.2);
}
.tips-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}
.tips-box.warning h4 { color: #ef4444; }
.tips-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tips-box ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.tips-box ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.tips-box.warning ul li::before { color: #ef4444; }
.tips-box ul li strong { color: #fff; }
.tips-box ul li code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: monospace;
  font-size: 12px;
  color: #fff;
}

/* TROUBLESHOOT SECTION */
.troubleshoot-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.troubleshoot-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.troubleshoot-section h2 i { color: var(--primary); font-size: 20px; }
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.trouble-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.trouble-icon {
  width: 40px;
  height: 40px;
  background: rgba(240,165,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 12px;
}
.trouble-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.trouble-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trouble-card ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.trouble-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.trouble-card ul li code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 12px;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .setup-hero { padding: 50px 16px 0; }
  .setup-hero h1 { font-size: 30px; }
  .app-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
  .tab-btn i { display: none; }
  .app-header { flex-direction: column; }
  .download-btn { margin-left: 0; width: 100%; justify-content: center; }
  .guides-grid, .troubleshoot-grid { grid-template-columns: 1fr; }
  .setup-page { padding: 24px 16px 60px; }
}
