:root {
  --bg: #0b0e17;
  --bg-elevated: #0e1524;
  --bg-card: #101828;
  --bg-card-hover: #172337;
  --border: rgba(165, 190, 228, 0.16);
  --border-amber: rgba(56, 189, 248, 0.45);
  --text: #f1f5f9;
  --text-muted: #8ea0b8;
  --text-soft: #becbdf;
  --amber: #38bdf8;
  --amber-bright: #7dd3fc;
  --amber-soft: rgba(56, 189, 248, 0.14);
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --card-grad: linear-gradient(150deg, #172337aa, #0b101cf2 66%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.16), transparent 52%), radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.14), transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.muted {
  color: var(--text-muted);
}

/* Banner de Simulação */
.sim-banner {
  background: rgba(245, 158, 11, 0.14);
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.875rem;
  color: #fde68a;
}

.sim-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.btn-sim-quick {
  margin-left: auto;
  background: #f59e0b;
  color: #090b10;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Header */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-size: 1.75rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--amber));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.btn-amber {
  background: var(--amber-soft);
  color: var(--amber-bright);
  border-color: var(--border-amber);
}

.btn-amber:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.24);
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-danger-ghost {
  background: transparent;
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
}

.btn-danger-ghost:hover:not(:disabled) {
  background: var(--red-soft);
}

.btn-link {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--text);
}

/* Main / Toast */
.main-content {
  padding-top: 44px;
  padding-bottom: 80px;
}

.toast {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.93rem;
}

.toast.erro {
  border-color: rgba(239, 68, 68, 0.5);
  background: var(--red-soft);
  color: #fecaca;
}

.toast.sucesso {
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--green-soft);
  color: #a7f3d0;
}

/* Hero & Planos */
.hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.pill-highlight {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--border-amber);
  color: var(--amber-bright);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.garantia-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(21, 26, 39, 0.9));
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}

.garantia-icon {
  color: var(--amber-bright);
  font-size: 1.3rem;
  margin-top: 2px;
}

.garantia-box p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-top: 2px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan-card {
  background: var(--card-grad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14) 0%, #0b101cf2 46%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 22px 60px rgba(56, 189, 248, 0.16);
  transform: translateY(-6px);
}

.badge-recomendado {
  position: absolute;
  top: -14px;
  right: 22px;
  background: linear-gradient(135deg, var(--blue), var(--amber));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

.plan-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 44px;
  margin-bottom: 20px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
}

.plan-price strong {
  font-size: 2.35rem;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}

.plan-features li {
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--amber-bright);
  font-weight: 800;
}

/* Auth & Checkout */
.auth-card,
.checkout-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
}

.selected-plan-chip {
  background: var(--amber-soft);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: var(--amber-bright);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.code-row input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.96rem;
}

.field input:focus {
  outline: none;
  border-color: var(--amber);
}

.payment-selector {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.pay-option input {
  margin-top: 4px;
}

.pay-option span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.waiting-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.waiting-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.waiting-box .btn-primary {
  margin-top: 16px;
}

.code-box {
  margin-top: 16px;
}

.code-box label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.code-row {
  display: flex;
  gap: 8px;
}

.sim-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid var(--border-amber);
}

.sim-card p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

/* Dashboard */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-green {
  background: var(--green-soft);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber-bright);
  border: 1px solid var(--border-amber);
}

.badge-red {
  background: var(--red-soft);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.plan-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.dash-price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-align: right;
}

.dash-price-box span {
  display: block;
  font-size: 0.78rem;
}

.dash-price-box strong {
  font-size: 1.25rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.spec-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.spec-card strong {
  font-size: 1.15rem;
}

/* Card Conectar no Auroq OS */
.connect-card {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), var(--bg-card) 55%);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.connect-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.connect-top h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.connect-top p {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 0.95rem;
}

.connect-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: #090b10;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.step-item code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* Autoatendimento */
.connect-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.token-box {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.actions-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.actions-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Modal de Upgrade */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.btn-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.upgrade-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-item.ultra-card {
  border-color: var(--border-amber);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1), var(--bg-elevated));
}

.upgrade-specs {
  font-size: 0.87rem;
  color: var(--text-muted);
}

@media (max-width: 1120px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .plans-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-card.featured {
    transform: none;
  }
  .connect-actions {
    width: 100%;
  }
}
