:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #f6f9fc;
  --blue: #1265f3;
  --green: #119c65;
  --amber: #f0a900;
  --red: #c03535;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  background: #edf4ff;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 420px;
  padding: 72px clamp(18px, 5vw, 72px) 52px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 20, 41, 0.88), rgba(8, 20, 41, 0.58), rgba(8, 20, 41, 0.15)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.is-hidden {
  display: none !important;
}

#conta,
#pacotes,
#checkout,
#regras {
  scroll-margin-top: 96px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9bd0ff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(18, 101, 243, 0.28);
}

.button.secondary {
  color: #fff;
  background: var(--green);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.button.ghost.dark {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
}

.trust-strip strong {
  font-size: 15px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section,
.account-section,
.shop-section,
.payment-panel,
.rules {
  width: min(1120px, calc(100% - 36px));
  margin: 64px auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--green);
  background: #e9f9f0;
  border: 1px solid #bcebd0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.promo-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #eef6ff;
  border: 1px solid #cfe4ff;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.promo-banner.hidden {
  display: none;
}

.promo-banner span {
  color: var(--muted);
  line-height: 1.45;
}

.account-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-card.hidden,
.wallet-panel.hidden {
  display: none;
}

.auth-box,
.profile-form,
.orders-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-box h3,
.orders-head h3 {
  margin-bottom: 4px;
}

.auth-box label,
.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.auth-box input,
.profile-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.wallet-panel {
  grid-template-columns: 0.75fr 1fr;
}

.wallet-summary {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 210px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #134e8a 56%, #119c65);
  border-radius: 8px;
}

.wallet-summary span,
.wallet-summary small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.wallet-summary strong {
  font-size: clamp(32px, 5vw, 48px);
}

.orders-box {
  grid-column: 1 / -1;
}

.orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orders-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-item span,
.order-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.order-item b {
  display: block;
  text-align: right;
}

.status-pill {
  width: fit-content;
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 900;
}

.status-pill.pending {
  color: #704a00;
  background: #fef3c7;
}

.status-pill.paid,
.status-pill.completed {
  color: #075e3f;
  background: #dcfce7;
}

.status-pill.canceled,
.status-pill.failed,
.status-pill.refunded {
  color: #8a1f1f;
  background: #fee2e2;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  background: #eaf0f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab {
  min-width: 108px;
  height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

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

.empty-packages {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.package-card {
  display: grid;
  min-height: 206px;
  padding: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.package-card:hover,
.package-card.selected {
  border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(18, 101, 243, 0.16);
}

.package-card .tag {
  width: fit-content;
  padding: 6px 9px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.package-card h3 {
  margin-top: 18px;
  font-size: 34px;
}

.package-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.package-card strong {
  align-self: end;
  margin-top: 20px;
  color: var(--green);
  font-size: 22px;
}

.shop-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 28px;
  align-items: start;
}

.checkout-copy {
  padding-top: 16px;
}

.checkout-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 16px;
  background: #fff7e0;
  border: 1px solid #f6d66f;
  border-radius: 8px;
}

.notice span {
  color: #6b5300;
  line-height: 1.45;
}

.checkout {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 16px;
  background: #f2f7ff;
  border: 1px solid #d7e7ff;
  border-radius: 8px;
}

.summary span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary b {
  color: var(--green);
  font-size: 20px;
}

.checkout label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.checkout input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.coupon-hint {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.payment-methods input {
  width: 16px;
  min-height: 16px;
}

.checkout input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 101, 243, 0.12);
}

.checks {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.checks input {
  width: 16px;
  min-height: 16px;
  margin-top: 1px;
}

.form-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green);
}

.payment-panel {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  padding: 28px;
  background: #0f172a;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-panel.hidden {
  display: none;
}

.qr-wrap.hidden {
  display: none;
}

.payment-panel .eyebrow {
  color: #93c5fd;
}

.payment-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.qr-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.qr-wrap img {
  width: 230px;
  height: 230px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.qr-wrap textarea {
  width: 100%;
  min-height: 98px;
  resize: vertical;
  padding: 10px;
  border: 1px solid #334155;
  border-radius: 8px;
}

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

.rules-grid article {
  min-height: 170px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rules-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .trust-strip,
  .account-card,
  .wallet-panel,
  .package-grid,
  .shop-section,
  .payment-panel,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-panel {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 470px;
    padding-top: 54px;
  }

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

  .tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tab {
    width: 100%;
  }

  .section-head,
  .orders-head,
  .order-item,
  .footer {
    display: grid;
  }

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

  .payment-methods {
    grid-template-columns: 1fr;
  }
}
