:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --danger: #ef4444;
  --border: rgba(148, 163, 184, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top, #1e293b, var(--bg) 45%);
  color: var(--text);
}

.auth-shell,
.dashboard-shell,
.checkout-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.auth-shell {
  display: grid;
  place-items: center;
}

.auth-card,
.card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.auth-card {
  width: min(480px, 100%);
  padding: 32px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

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

.card {
  padding: 24px;
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
ol,
pre {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

label {
  font-weight: 600;
}

input,
select,
button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 1rem;
}

input {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

select {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

button {
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: var(--accent-dark);
  color: #ecfdf5;
}

.ghost-button {
  width: auto;
  min-width: 120px;
  background: transparent;
  color: var(--text);
}

.alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(20, 83, 45, 0.22);
  color: #dcfce7;
}

.alert-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

pre,
.break-all {
  overflow-wrap: anywhere;
}

ol {
  padding-left: 18px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: capitalize;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.18);
}

.pill-approved {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.pill-pending {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
}

.pill-rejected,
.pill-cancelled,
.pill-refunded {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.hero-card,
.status-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 460px);
  gap: 24px;
  align-items: stretch;
}

.status-card {
  grid-template-columns: 1fr;
}

.hero-copy,
.checkout-card,
.status-card,
.inset-card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.hero-copy,
.checkout-card,
.status-card {
  padding: 28px;
}

.hero-copy {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 30%),
    rgba(17, 24, 39, 0.92);
}

.price-box {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

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

.feature-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.trial-offer-card {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 30%),
    rgba(8, 15, 35, 0.86);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.trial-offer-header h2 {
  margin-bottom: 8px;
}

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

.trial-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.trial-license-key {
  display: inline-block;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 0.95rem;
}

.trial-expiration {
  margin: 0;
  color: #bfdbfe;
}

.summary-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
}

.summary-box span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.license-rule-note {
  margin: -2px 0 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #dcfce7;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wallet-container {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px dashed rgba(148, 163, 184, 0.35);
}

.checkout-wallet {
  width: min(980px, 100%);
  margin: 28px auto 0;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.34);
}

.pix-header h2 {
  margin-bottom: 8px;
}

.pix-header,
.pix-header > div,
.pix-code-card,
.pix-code-card textarea {
  min-width: 0;
}

.pix-header .muted,
#pix-expiration-copy {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pix-header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 8px;
}

.pix-header > div {
  max-width: 720px;
}

.pix-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(360px, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
  justify-content: center;
}

.pix-qr-card,
.pix-code-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
}

.pix-qr-card {
  justify-items: center;
  align-content: start;
  text-align: center;
}

.pix-qr-image {
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: white;
  object-fit: contain;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.pix-code-card textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px 18px;
  font-size: 1rem;
  line-height: 1.5;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

.pix-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pix-actions > * {
  min-width: 0;
}

.pix-actions button {
  min-height: 58px;
  width: 100%;
}

.ghost-link {
  color: #86efac;
  text-decoration: none;
  font-weight: 600;
}

.ghost-link:hover {
  color: #dcfce7;
}

.license-list {
  display: grid;
  gap: 12px;
}

.license-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.trial-access-current {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.trial-access-current span {
  color: var(--muted);
}

.trial-access-current strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.order-license-list {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.order-batch-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-license-key {
  display: inline-block;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 0.88rem;
}

.download-panel {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.download-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: #052e16;
  text-decoration: none;
  transition: 0.2s ease;
}

.download-link:hover {
  background: var(--accent-dark);
  color: #ecfdf5;
}

.inset-card {
  padding: 22px;
  margin-top: 20px;
}

.setup-guide {
  display: grid;
  gap: 16px;
}

.checkout-guide {
  margin-top: 8px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 26%),
    rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.checkout-guide-header h2 {
  margin-bottom: 8px;
}

.checkout-guide .guide-callout {
  padding: 16px 18px;
}

.checkout-guide .guide-callout ol {
  padding-left: 20px;
}

.guide-callout {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.guide-callout h3 {
  margin-bottom: 10px;
}

.guide-callout ol {
  margin-bottom: 0;
}

.guide-callout-warning {
  background: rgba(120, 53, 15, 0.18);
  border-color: rgba(251, 191, 36, 0.32);
}

.guide-callout-success {
  background: rgba(20, 83, 45, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
}

.guide-step {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #dbeafe;
}

.checkout-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f0fdf4;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.checkout-whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 46px rgba(34, 197, 94, 0.35);
  filter: brightness(1.04);
}

.checkout-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.checkout-whatsapp-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 720px) {
  .dashboard-header {
    flex-direction: column;
  }

  .ghost-button {
    width: 100%;
  }

  .hero-card,
  .status-card {
    grid-template-columns: 1fr;
  }

  .summary-box {
    grid-template-columns: 1fr;
  }

  .pix-grid {
    grid-template-columns: 1fr;
  }

  .pix-code-card,
  .pix-qr-card {
    padding: 18px;
  }

  .wallet-container {
    padding: 14px;
  }

  .checkout-wallet {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
  }

  .pix-grid {
    gap: 14px;
    margin-top: 18px;
  }

  .pix-code-card textarea {
    min-height: 172px;
    font-size: 0.92rem;
  }

  .pix-actions {
    grid-template-columns: 1fr;
  }

  .order-license-list {
    min-width: 0;
  }

  .checkout-guide {
    padding: 16px;
    border-radius: 18px;
  }

  .trial-offer-card {
    padding: 18px;
    border-radius: 20px;
  }

  .checkout-whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

  .checkout-whatsapp-float span:last-child {
    display: none;
  }
}
