/* ====================================================================
   IPTV Nordic — Tools Pages
   ================================================================ */

.page-tools {
  background: #f8fafc;
  min-height: 60vh;
}

/* === Tool Hero === */
.tool-hero {
  position: relative;
  color: #fff;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

.tool-hero h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.tool-hero .hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: #dbeafe;
}

.tool-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  font-size: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* === Tool Container === */
.tool-container {
  max-width: 800px;
  margin: -2rem auto 2rem;
  background: #fff;
  padding: 2.25rem;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 5;
}

.tool-input h3 {
  color: #1976d2;
  margin: 1.75rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.tool-input h3:first-child { margin-top: 0; }

.tool-input small {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

/* === Checkbox Group === */
.checkbox-group {
  display: grid;
  gap: 0.65rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.checkbox-group label:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1976d2;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: #0f172a;
}

.checkbox-group input[type="checkbox"]:checked ~ * {
  font-weight: 600;
}

.checkbox-group label:has(input:checked) {
  background: #eff6ff;
  border-color: #1976d2;
}

.custom-cost {
  margin-left: auto;
  width: 110px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: right;
}

/* === Radio Group === */
.radio-group {
  display: grid;
  gap: 0.55rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.radio-group label:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1976d2;
  cursor: pointer;
}

.radio-group label:has(input:checked) {
  background: #eff6ff;
  border-color: #1976d2;
  font-weight: 600;
  color: #0f172a;
}

/* === Slider === */
.slider-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
}

.slider-group input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #1976d2 var(--p, 10%), #e2e8f0 var(--p, 10%));
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #1976d2;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(25,118,210,0.4);
  cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #1976d2;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(25,118,210,0.4);
  cursor: pointer;
}

.slider-group output {
  font-weight: 800;
  font-size: 1.25rem;
  color: #1976d2;
  min-width: 110px;
  text-align: right;
}

/* === Device Buttons === */
.device-buttons {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
  flex-wrap: wrap;
}

.device-btn {
  flex: 1;
  min-width: 60px;
  padding: 1rem;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #334155;
}

.device-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.device-btn.active {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  border-color: #1565c0;
  box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}

/* === Quality Radio (4-col on desktop) === */
.quality-radio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.quality-radio label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.92rem;
}

.quality-radio label:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.quality-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1976d2;
}

.quality-radio label:has(input:checked) {
  background: #eff6ff;
  border-color: #1976d2;
  font-weight: 600;
  color: #0f172a;
}

/* === Calculate Button === */
.calculate-btn {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
  font-family: inherit;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,163,74,0.4);
}

.calculate-btn:active {
  transform: translateY(0);
}

/* === Result === */
.tool-result {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 16px;
  border: 2px solid #16a34a;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-result h3 {
  color: #14532d !important;
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.tool-result h4 {
  color: #14532d !important;
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.result-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.result-card {
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.result-card.highlight {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(25,118,210,0.3);
}

.result-card.highlight .result-label,
.result-card.highlight .result-value,
.result-card.highlight .result-percentage {
  color: #fff !important;
}

.result-label {
  font-weight: 600;
  color: #334155;
  font-size: 0.95rem;
}

.result-value {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
}

.result-value.big {
  font-size: 2rem;
  font-weight: 900;
}

.result-percentage {
  display: block;
  width: 100%;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: 0.25rem;
}

.result-summary {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1f2937;
}

.result-summary strong { color: #0f172a; }

.result-cta {
  display: block;
  text-align: center;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(25,118,210,0.3);
}

.result-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25,118,210,0.4);
}

/* === Result Status (bandwidth) === */
.result-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1.25rem;
}

.result-status #statusIcon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.result-status h3 {
  margin: 0;
  font-size: 1.25rem;
}

.result-details {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.result-details p {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

/* === Diagnostic Wizard === */
.diagnostic-wizard {
  text-align: center;
}

.question-step {
  display: none;
}

.question-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.question-step h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1976d2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.question-step h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.answer-options {
  display: grid;
  gap: 0.75rem;
  max-width: 540px;
  margin: 0 auto;
}

.answer-options button {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  color: #1f2937;
}

.answer-options button:hover {
  background: #eff6ff;
  border-color: #1976d2;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(25,118,210,0.15);
}

.diagnosis-summary {
  padding: 1.25rem;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  margin: 1rem 0 1.5rem;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #1f2937;
}

.solutions-list {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  margin: 1rem 0 1.5rem;
}

.solutions-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
}

.solutions-list li::marker {
  color: #1976d2;
  font-weight: 700;
}

.restart-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: transparent;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.85rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.restart-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* === Progress Bar (diagnostic) === */
.diagnostic-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.diagnostic-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1976d2 0%, #2563eb 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 20%;
}

/* === Tools Index Grid === */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1.5rem;
}

.tool-card {
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid #e2e8f0;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.1);
  border-color: #1976d2;
}

.tool-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.tool-card h2,
.tool-card h3 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 0.5rem !important;
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1976d2;
  font-weight: 700;
  font-size: 0.95rem;
}

.tool-card.coming-soon {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.tool-card.coming-soon::after {
  content: '🚧 Kommer snart';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fef3c7;
  color: #78350f;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* === Generic Article Section === */
.tool-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tool-article h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.tool-article h2:first-child { margin-top: 0; }

.tool-article p,
.tool-article li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #1f2937;
}

.tool-article ul,
.tool-article ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.tool-article li {
  margin-bottom: 0.4rem;
}

.tool-article a {
  color: #1976d2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === FAQ in Tool === */
.tool-faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.tool-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-faq summary::-webkit-details-marker { display: none; }

.tool-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #1976d2;
  flex-shrink: 0;
}

.tool-faq[open] summary::after { content: '−'; }

.tool-faq[open] {
  border-color: #1976d2;
}

.tool-faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: #334155;
  font-size: 0.93rem;
  line-height: 1.7;
}

/* === Mobile === */
@media (max-width: 600px) {
  .tool-container {
    padding: 1.5rem 1.25rem;
    margin: -1.5rem 1rem 2rem;
  }

  .quality-radio {
    grid-template-columns: 1fr;
  }

  .device-buttons {
    flex-wrap: wrap;
  }

  .device-btn {
    flex: 1 0 calc(33% - 0.5rem);
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-value.big {
    font-size: 1.65rem;
  }

  .question-step h4 {
    font-size: 1.2rem;
  }
}

/* ====================================================================
   TOOLS BATCH 2 — Speed Test, DNS, Channel Finder, App Finder, Router
   ================================================================ */

/* === Speed Test === */
.speed-test-container {
  text-align: center;
  padding: 1rem 0;
}

.speed-display {
  margin: 1rem auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.speed-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 36px rgba(25,118,210,0.35);
  position: relative;
  transition: transform 0.3s ease;
}

.speed-circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  pointer-events: none;
}

.speed-circle.testing {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.speed-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.speed-unit {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.85;
}

.speed-status {
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

.speed-details {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.93rem;
}

.detail-row span { color: #475569; }
.detail-row strong { color: #0f172a; font-weight: 700; }

.quality-recommendations {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.quality-recommendations h4 {
  font-size: 1rem !important;
  margin: 0 0 0.6rem !important;
  color: #14532d !important;
}

.quality-recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quality-recommendations li {
  padding: 0.4rem 0;
  font-size: 0.93rem;
  color: #1f2937;
}

/* === DNS Checker === */
.dns-test-container {
  text-align: center;
}

.dns-intro {
  color: #475569;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.dns-results {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.dns-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.dns-row:hover {
  border-color: #93c5fd;
}

.dns-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.dns-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

.dns-ip {
  font-family: monospace;
  font-size: 0.85rem;
  color: #64748b;
}

.dns-latency {
  font-weight: 800;
  font-size: 1.1rem;
  font-family: monospace;
  color: #475569;
  padding: 0.4rem 0.85rem;
  background: #fff;
  border-radius: 8px;
  min-width: 80px;
  text-align: right;
}

.dns-latency.testing {
  color: #1976d2;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dns-latency.fast {
  background: #dcfce7;
  color: #166534;
}

.dns-latency.medium {
  background: #fef3c7;
  color: #854d0e;
}

.dns-latency.slow {
  background: #fee2e2;
  color: #991b1b;
}

.winner-card {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  text-align: center;
  margin: 1rem 0 1.5rem;
}

.winner-card .winner-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.winner-card .winner-latency {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: monospace;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.winner-card p {
  font-size: 0.92rem;
  opacity: 0.95;
  line-height: 1.5;
  margin: 0;
}

.dns-instructions h4 {
  font-size: 1.05rem !important;
  margin: 0 0 0.5rem !important;
}

/* === Channel Finder === */
.channel-search-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.channel-search-input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 4px rgba(25,118,210,0.12);
}

.channel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #475569;
}

.filter-btn:hover {
  background: #e0f2fe;
  color: #1976d2;
}

.filter-btn.active {
  background: #1976d2;
  color: #fff;
  border-color: #1565c0;
}

.channel-counter {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0.5rem 0 1rem;
}

.channel-counter span {
  font-weight: 700;
  color: #1976d2;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.channel-card:hover {
  background: #eff6ff;
  border-color: #1976d2;
  transform: translateY(-1px);
}

.channel-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.channel-info {
  flex: 1;
  min-width: 0;
}

.channel-info h4 {
  font-size: 0.93rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 0.15rem !important;
  line-height: 1.3;
}

.channel-info p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-channels {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #64748b;
  background: #fef3c7;
  border-radius: 10px;
}

.channels-cta {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
}

.channels-cta p {
  font-size: 1rem;
  color: #14532d;
  margin: 0 0 1rem;
  font-weight: 600;
}

/* === App Finder === */
.app-finder-wizard {
  text-align: center;
}

.app-recommendation {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  margin: 1rem 0 1.5rem;
  text-align: center;
}

.app-recommendation h4 {
  font-size: 1.7rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 0 0 0.6rem !important;
}

.app-recommendation p {
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

/* === Router Config === */
.router-form {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.router-form label {
  display: block;
}

.router-form label strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
}

.router-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.97rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #1f2937;
}

.router-form select:focus {
  border-color: #1976d2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25,118,210,0.12);
}

.config-steps {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.25rem 2rem;
  margin: 1rem 0;
  list-style: none;
  counter-reset: config-step;
}

.config-steps li {
  position: relative;
  padding: 1rem 0 1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  counter-increment: config-step;
}

.config-steps li:last-child { border-bottom: none; }

.config-steps li strong {
  display: block;
  font-size: 1rem;
  color: #1976d2;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.config-steps li p {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .speed-circle {
    width: 180px;
    height: 180px;
  }
  .speed-number { font-size: 2.75rem; }

  .channels-grid {
    grid-template-columns: 1fr;
    max-height: 400px;
  }

  .channel-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn { flex-shrink: 0; }

  .winner-card .winner-latency { font-size: 1.85rem; }
}
