:root {
  --leaf: #15845a;
  --leaf-dark: #0e523b;
  --ink: #15231c;
  --muted: #607369;
  --paper: #fffaf0;
  --paper-clean: #ffffff;
  --line: #cbd9d0;
  --gold: #d99b24;
  --night: #10241a;
  --mist: #eaf4ee;
  --danger: #a33a2d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 155, 36, 0.22), transparent 32vw),
    linear-gradient(135deg, #eef4ef 0%, #f7f0df 100%);
  color: var(--ink);
  font-family: "Aptos Display", "Bahnschrift", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.access-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(16, 36, 26, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: var(--leaf);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

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

.brand strong {
  color: var(--leaf-dark);
  font-size: 20px;
}

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

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

.access-topbar a,
.access-topbar button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 900;
}

.access-topbar a:hover,
.access-topbar button:hover {
  background: var(--mist);
  color: var(--leaf-dark);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 56px;
}

.access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 20px;
  align-items: stretch;
  padding: 56px 0 22px;
}

.access-hero > div,
.status-card,
.panel,
.lottery-panel,
.access-lock,
.payment-checklist,
.notice {
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(16, 36, 26, 0.08);
}

.access-hero > div {
  min-height: 390px;
  display: grid;
  align-content: end;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(16, 36, 26, 0.94), rgba(14, 82, 59, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 82px);
  color: #fff;
  padding: 44px;
}

.access-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.98;
}

.access-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card {
  display: grid;
  align-content: end;
  min-height: 390px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 35% 20%, rgba(217, 155, 36, 0.22), transparent 34%),
    var(--paper-clean);
  padding: 30px;
}

.status-card span,
.panel.mini span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.status-card strong {
  color: var(--leaf-dark);
  font-size: 46px;
  line-height: 1;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #fff7df;
  color: #684b0f;
  padding: 18px 20px;
}

.auth-grid,
.dashboard-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel,
.lottery-panel,
.access-lock,
.payment-checklist {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 28px;
}

.panel.dark {
  background:
    linear-gradient(150deg, rgba(16, 36, 26, 0.96), rgba(14, 82, 59, 0.9)),
    var(--night);
  color: #fff;
}

.panel h2,
.section-head h2 {
  margin: 0 0 18px;
  color: var(--leaf-dark);
  font-size: 34px;
}

.panel.dark h2 {
  color: #fff;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
}

.panel.dark label {
  color: rgba(255, 255, 255, 0.78);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
}

input:focus,
select:focus {
  outline: 3px solid rgba(21, 132, 90, 0.18);
  border-color: var(--leaf);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 18px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--leaf);
  color: #fff;
}

.button.gold {
  background: var(--gold);
  color: #1f1707;
}

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

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--leaf-dark);
  font-weight: 800;
}

.panel.dark .form-message {
  color: #fff;
}

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

.dashboard,
.payment {
  display: grid;
  gap: 18px;
}

.section-head {
  max-width: 760px;
  margin: 28px 0 4px;
}

.section-head p,
.panel p,
.lottery-panel p,
.status-card p {
  color: var(--muted);
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel.mini strong {
  display: block;
  margin-top: 8px;
  color: var(--leaf-dark);
  font-size: 24px;
}

.access-lock {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border-color: rgba(217, 155, 36, 0.48);
  background:
    linear-gradient(135deg, rgba(217, 155, 36, 0.2), transparent 46%),
    #fff9e8;
}

.access-lock h3,
.payment-checklist h3 {
  margin: 0 0 10px;
  color: var(--leaf-dark);
  font-size: 27px;
}

.access-lock p,
.payment-checklist p,
.payment-checklist li {
  color: var(--muted);
}

.access-lock .button {
  flex: 0 0 auto;
  margin-top: 0;
}

.lottery-panel {
  background:
    linear-gradient(135deg, rgba(21, 132, 90, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.92);
}

.lottery-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.lottery-head h3 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: 32px;
}

.lottery-head label {
  min-width: 150px;
  margin-top: 0;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.number-grid button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.number-grid button.selected {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.lottery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-output {
  border-left: 5px solid var(--gold);
  background: #fff7df;
  padding: 14px 16px;
}

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

.plan-card {
  position: relative;
  overflow: hidden;
}

.plan-card.featured::after {
  content: "Mais vendido";
  position: absolute;
  top: 22px;
  right: -38px;
  rotate: 35deg;
  background: var(--gold);
  color: #1f1707;
  padding: 7px 44px;
  font-weight: 900;
}

.plan-price {
  margin: 8px 0;
  color: var(--leaf-dark);
  font-size: 44px;
  font-weight: 900;
}

.payment-checklist {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(21, 132, 90, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.92);
}

.payment-checklist ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.payment-checklist li + li {
  margin-top: 7px;
}

@media (max-width: 860px) {
  .access-topbar,
  .lottery-head,
  .access-lock,
  .notice {
    align-items: stretch;
    flex-direction: column;
  }

  .access-hero,
  .auth-grid,
  .dashboard-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .access-hero > div,
  .status-card {
    min-height: auto;
  }

  .access-hero > div {
    padding: 30px;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .access-topbar nav,
  .button,
  .lottery-actions button {
    width: 100%;
  }

  .number-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
