/* ==========================================================================
   IPTVDEQUALIDADE.SITE — SISTEMA DE DESIGN & ESTILOS GLOBAIS
   Conceito: Studio Premium Fidelity, Obsidian & Dourado Âmbar, Glassmorphism & SXO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  /* Cores Base de Fundo */
  --bg-deep: #07090e;
  --bg-surface: #0e131d;
  --bg-surface-elevated: #151c2b;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.9);

  /* Acentos de Marca IPTV de Qualidade (Ouro Âmbar + Safira + Esmeralda) */
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.28);
  --accent-blue: #38bdf8;
  --accent-blue-deep: #0284c7;
  --accent-emerald: #10b981;
  --accent-green-bright: #34d399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);

  /* Gradientes */
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --gold-gradient-btn: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --wpp-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --blue-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);

  /* Tipografia */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Texto e Contrastes */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #fbbf24;

  /* Bordas e Sombras */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.22);
  --shadow-wpp: 0 0 25px rgba(16, 185, 129, 0.4);

  /* Espaçamento e Raios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --container-max: 1200px;
}

/* Reset Universal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #161e30 0%, #07090e 75%);
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: 0.85rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--text-highlight);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

/* Layout Utilitário */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 5rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Botões de Conversão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient-btn);
  color: #07090e;
  box-shadow: 0 4px 20px var(--accent-gold-glow);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
  color: #000000;
}

.btn-wpp {
  background: var(--wpp-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-wpp);
  font-weight: 800;
}

.btn-wpp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.55);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.35rem;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 1.15rem 2.5rem;
  font-size: 1.15rem;
}

/* Header & Navegação */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  width: auto;
  border-radius: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-gold-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
}

.trust-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
}

.hero-media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
}

.hero-media-card img {
  border-radius: var(--radius-md);
  width: 100%;
}

.hero-badge-float {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: rgba(14, 19, 29, 0.95);
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Cards & Grid de Recursos */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--accent-gold-light);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.card-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Seção de Planos & Teste a R$ 0,00 */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-md);
}

.plan-featured {
  background: rgba(21, 28, 43, 0.85);
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #07090e;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.plan-price-wrap {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price-free {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--accent-green-bright);
}

.plan-price-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  flex-shrink: 0;
}

/* Tabelas Semânticas de Dados Técnicos */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.tech-table th, .tech-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-table th {
  background: rgba(245, 158, 11, 0.08);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Mega FAQ Accordion */
.faq-wrap {
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--border-gold);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-trigger:hover {
  color: var(--accent-gold-light);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-gold);
  color: #07090e;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-body {
  padding: 0 1.6rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.02rem;
}

/* Depoimentos & Avaliações Rich Snippets 4.9★ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.review-text {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Box CTA Final */
.cta-box {
  background: linear-gradient(135deg, rgba(21, 28, 43, 0.95) 0%, rgba(14, 19, 29, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.cta-box h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-box p {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
}

/* Botão Flutuante de WhatsApp */
.floating-wpp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wpp-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-wpp:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.7);
  color: #ffffff;
}

.floating-wpp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* Rodapé Institucional (Zero Links Comerciais) */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 360px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--accent-gold-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Página 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 650px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.error-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.error-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0;
  text-align: left;
}

.link-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 600;
  display: block;
  transition: all 0.2s ease;
}

.link-item:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateX(5px);
}

/* Responsividade Mobile */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-badge, .hero-ctas, .hero-trust {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }
}

/* ==========================================================================
   ACESSIBILIDADE WCAG 2.1 AA & OTIMIZAÇÕES AVANÇADAS (INSTRUÇÃO 10)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  background: var(--accent-gold);
  color: #07090e;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  z-index: 9999;
  transition: top 0.25s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.skip-link:focus {
  top: 20px;
}

/* Calculadora Interativa de Velocidade (Ferramenta de Retenção & Dwell Time) */
.speed-calc-box {
  background: linear-gradient(135deg, rgba(21, 28, 43, 0.85) 0%, rgba(14, 19, 29, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  margin: 3rem auto;
  max-width: 900px;
}
.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.calc-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
}
.calc-btn-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.calc-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.calc-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: #ffffff;
}
.calc-btn.active {
  background: var(--gold-gradient);
  color: #07090e;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px var(--accent-gold-glow);
}
.calc-result-box {
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  position: relative;
}
.calc-speed-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent-green-bright);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.calc-speed-unit {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 700;
}
.calc-tech-note {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 1rem 0 1.5rem;
}
.calc-tech-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Seletor Rápido de Dispositivos & Códigos Downloader */
.device-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.tab-btn.active, .tab-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}
.tab-btn.active {
  background: var(--gold-gradient);
  color: #07090e;
}
.device-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.device-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.app-code-num {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .calc-controls {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
