.rewards-page {
  min-height: 100vh;
  padding: 0;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), transparent 34%),
    linear-gradient(220deg, rgba(99, 102, 241, 0.18), transparent 34%),
    linear-gradient(180deg, #060914 0%, #0a1020 48%, #07111b 100%);
  -webkit-font-smoothing: antialiased;
}

.rewards-page .site-header {
  background: rgba(6, 9, 20, 0.76);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rewards-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.rewards-hero {
  padding: 146px 0 68px;
}

.rewards-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.rewards-hero-copy,
.rewards-status-card,
.earn-grid article,
.reward-card {
  position: relative;
  border-radius: 8px;
  background: rgba(8, 13, 28, 0.74);
  box-shadow:
    0 24px 70px rgba(2, 6, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rewards-hero-copy {
  min-height: 460px;
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
}

.rewards-hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(251, 191, 36, 0.12), transparent 34%),
    linear-gradient(320deg, rgba(94, 234, 212, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.rewards-hero-copy > * {
  position: relative;
  z-index: 1;
}

.rewards-label {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  color: #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.24);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rewards-hero h1,
.section-heading h2 {
  margin: 16px 0 0;
  color: #fff;
  letter-spacing: 0;
  text-wrap: balance;
}

.rewards-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
}

.rewards-lead,
.section-heading p,
.catalog-title-row p,
.earn-grid p,
.reward-card p,
.rewards-status-card p {
  color: #cbd5e1;
  line-height: 1.68;
  text-wrap: pretty;
}

.rewards-lead {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 18px;
}

.rewards-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rewards-page .btn,
.rewards-page button {
  min-height: 42px;
  transition-property: transform, background, color, box-shadow, opacity;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.rewards-page .btn:active,
.rewards-page button:active {
  transform: scale(0.96);
}

.rewards-status-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
}

.status-header,
.catalog-title-row,
.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.status-header span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-refresh {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
}

.status-points {
  min-height: 76px;
  display: flex;
  align-items: center;
  color: #fbbf24;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.status-grid span {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.status-grid b {
  color: #f8fafc;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.status-grid small {
  color: #94a3b8;
  line-height: 1.35;
}

.rewards-login {
  display: grid;
  gap: 8px;
}

.rewards-login[hidden],
.rewards-logout[hidden] {
  display: none;
}

.rewards-login label {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}

.login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.login-row input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.login-row input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(94, 234, 212, 0.8),
    0 0 0 3px rgba(94, 234, 212, 0.16);
}

.login-row button,
.reward-action {
  min-width: 128px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #04111d;
  cursor: pointer;
  font-weight: 900;
}

.rewards-message {
  min-height: 24px;
  margin: 0;
  color: #bfdbfe;
  font-size: 14px;
}

.rewards-message.is-error {
  color: #fecaca;
}

.rewards-message.is-success {
  color: #bbf7d0;
}

.rewards-band,
.rewards-catalog-section {
  padding: 72px 0;
}

.rewards-band {
  background: rgba(2, 6, 23, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
}

.section-heading p {
  margin: 14px 0 0;
  font-size: 17px;
}

.section-heading--split {
  max-width: none;
}

.section-heading--split p {
  max-width: 500px;
}

.earn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.earn-grid article {
  min-height: 224px;
  padding: 24px;
}

.earn-grid span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.earn-grid h3,
.catalog-title-row h3,
.reward-card h4 {
  margin: 16px 0 0;
  color: #fff;
  letter-spacing: 0;
}

.earn-grid h3 {
  font-size: 21px;
}

.earn-grid p {
  margin: 10px 0 0;
}

.catalog-group {
  margin-top: 38px;
}

.catalog-title-row {
  padding-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.catalog-title-row h3 {
  margin: 0;
  font-size: 26px;
}

.catalog-title-row p {
  max-width: 460px;
  margin: 0;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.reward-card {
  min-height: 276px;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.reward-card--wide {
  min-height: 220px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  margin-top: 16px;
}

.reward-card h4 {
  margin: 0;
  font-size: 22px;
}

.reward-card p {
  margin: 0;
}

.reward-price {
  color: #fbbf24;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.reward-price span {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
}

.quantity-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reward-controls {
  display: grid;
  gap: 12px;
}

.quantity-row button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 900;
}

.quantity-row button.is-selected {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.36);
}

.reward-action {
  width: 100%;
  margin-top: 20px !important;
}

.reward-action[disabled],
.login-row button[disabled],
.status-refresh[disabled] {
  cursor: not-allowed;
  opacity: 0.56;
}

.reward-note {
  min-height: 20px;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 900px) {
  .rewards-hero-grid,
  .reward-card--wide,
  .earn-grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .rewards-hero-copy {
    min-height: 380px;
  }

  .section-heading--split {
    display: grid;
  }
}

@media (max-width: 640px) {
  .rewards-shell {
    width: min(100% - 28px, 1180px);
  }

  .rewards-hero {
    padding-top: 120px;
  }

  .rewards-hero-copy,
  .rewards-status-card,
  .earn-grid article,
  .reward-card {
    padding: 20px;
  }

  .rewards-hero h1 {
    font-size: 42px;
  }

  .login-row,
  .status-grid,
  .quantity-row {
    grid-template-columns: 1fr;
  }

  .login-row button {
    width: 100%;
  }
}
