:root {
  --primary: #0066FF;
  --primary-hover: #0052cc;
  --primary-light: #e6f0ff;
  --accent: #00D084;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 102, 255, 0.15), 0 10px 10px -5px rgba(0, 102, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Header */
.header {
  text-align: center;
  padding: 24px 0 16px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.logo-badge svg {
  width: 16px;
  height: 16px;
}

.title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Device Bar */
.device-bar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 16px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.device-bar strong {
  color: var(--dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.device-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dot.online {
  background: var(--accent);
}

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

/* Section Title */
.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Plans Grid */
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.plan-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow);
}

.plan-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.plan-card.active {
  border-color: var(--primary);
  background: #f8fbff;
}

.plan-card.popular {
  border-color: #3b82f6;
}

.badge-popular {
  position: absolute;
  top: -10px;
  right: 18px;
  background: linear-gradient(135deg, #0066FF, #00D084);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.plan-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.plan-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-price {
  text-align: right;
}

.plan-price .currency {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.plan-price .amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.radio-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.plan-card.active .radio-check {
  border-color: var(--primary);
  background: var(--primary);
}

.radio-check::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.plan-card.active .radio-check::after {
  opacity: 1;
}

/* Pay Button */
.btn-pay {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
}

.btn-pay:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-pay:active {
  transform: scale(0.99);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Security badges */
.security-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}

.payment-methods svg {
  height: 18px;
  fill: currentColor;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 16px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Card */
.success-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.icon-success {
  width: 68px;
  height: 68px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.countdown-box {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 16px;
  margin: 20px 0;
}

.countdown-timer {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Indicador de Conexão na Rede */
.network-badge {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00D084;
  box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.2);
}

/* Card Destacado para o Celular / WhatsApp */
.phone-card {
  background: #ffffff;
  border: 1.5px solid #0066FF;
  border-radius: 16px;
  padding: 18px 16px;
  margin: 16px 0 24px;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.08);
  text-align: left;
}

.phone-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-phone-hero {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  letter-spacing: 1px;
  outline: none;
  margin-top: 8px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, monospace;
  transition: all 0.2s ease;
}

.input-phone-hero:focus {
  border-color: #0066FF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.phone-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  display: block;
  text-align: center;
}

/* Banner de Reconexão Rápida */
.banner-voucher {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: left;
  font-size: 13px;
  color: #065f46;
}

.banner-voucher strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #047857;
}

.banner-action-btn {
  display: inline-block;
  margin-top: 8px;
  background: #10b981;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
}

.btn-restore {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  margin-top: 8px;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-restore:hover {
  color: var(--primary-hover);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}


