@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

:root {
  --bg: #0e1014;
  --panel: #151920;
  --panel-border: #232936;
  --text: #f2f4f8;
  --muted: #8b94a7;
  --blue: #2b6fe3;
  --blue-hover: #2361c9;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 8px;
  text-align: center;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 15px;
}

.tiers {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}

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

@media (max-width: 560px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

.section-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 24px 0;
  text-align: center;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-head p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

.tiers.extras {
  padding-top: 26px;
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 560px) {
  .tiers.extras {
    grid-template-columns: 1fr;
  }
}

.tier-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: #35405a;
}

.tier-card.trimmed {
  border-color: rgba(201, 164, 74, 0.55);
  box-shadow: 0 0 10px rgba(201, 164, 74, 0.07);
}

.tier-card.trimmed:hover {
  border-color: rgba(201, 164, 74, 0.8);
  box-shadow: 0 0 16px rgba(201, 164, 74, 0.14);
}

.tier-card.trimmed .tier-banner {
  border-bottom: 1px solid rgba(201, 164, 74, 0.45);
}

.tier-card.featured {
  position: relative;
  animation: founder-glow 4s ease-in-out infinite;
}

.tier-card.featured:hover {
  transform: translateY(-4px);
}

@keyframes founder-glow {
  0%, 100% {
    border-color: rgba(0, 163, 82, 0.75);
    box-shadow: 0 0 18px rgba(0, 163, 82, 0.28), 0 0 3px rgba(0, 224, 122, 0.35);
  }
  33% {
    border-color: rgba(0, 224, 122, 0.8);
    box-shadow: 0 0 32px rgba(0, 224, 122, 0.4), 0 0 6px rgba(138, 255, 196, 0.55);
  }
  66% {
    border-color: rgba(138, 255, 196, 0.6);
    box-shadow: 0 0 32px rgba(53, 232, 143, 0.38), 0 0 6px rgba(0, 163, 82, 0.5);
  }
}

.limited-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.limited-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35e88f;
  animation: limited-pulse 1.6s ease-in-out infinite;
}

@keyframes limited-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53, 232, 143, 0.55); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(53, 232, 143, 0); }
}

.tier-card.featured .tier-btn {
  background: linear-gradient(120deg, #00522e 0%, #00a352 30%, #00e07a 55%, #8affc4 78%, #00522e 100%);
  background-size: 300% 300%;
  animation: shimmer 6s ease infinite;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 45, 25, 0.45);
}

.tier-card.featured .tier-btn:hover {
  filter: brightness(1.12);
}

.tier-card.featured .tier-perks li::before {
  border-left-color: #00e07a;
  border-bottom-color: #00e07a;
}

.tier-card.featured .tier-price {
  background: linear-gradient(120deg, #00c46a 0%, #00e07a 45%, #8affc4 90%);
  background-size: 300% 300%;
  animation: shimmer 6s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.tier-card.featured .tier-btn.in-cart {
  background: #1d2634;
  filter: none;
}

.tier-banner {
  padding: 20px;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.shimmer {
  background-size: 300% 300% !important;
  animation: shimmer 6s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tier-banner img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.tier-banner .divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.35);
}

.tier-banner h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tier-banner span {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 5px;
  font-weight: 400;
}

.tier-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tier-price {
  font-size: 30px;
  font-weight: 700;
}

.tier-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.tier-perks {
  list-style: none;
  margin: 18px 0 22px;
  flex: 1;
}

.tier-perks li {
  color: #d7dde8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 0 5px 24px;
  position: relative;
}

.tier-perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.tier-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 9px;
  transition: background 0.15s ease;
}

.tier-btn:hover {
  background: var(--blue-hover);
}

.tier-btn.in-cart {
  background: #1d2634;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 11px;
}

.tier-btn.in-cart:hover {
  background: #223048;
}

/* ---- switch packs ------------------------------------------------------- */

.tiers.packs {
  padding-top: 26px;
  padding-bottom: 40px;
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 560px) {
  .tiers.packs {
    grid-template-columns: 1fr;
  }
}

.pack-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 80% at 50% 45%, color-mix(in srgb, var(--pack-glow) 26%, transparent) 0%, transparent 70%),
    #10131a;
  border-bottom: 1px solid var(--panel-border);
}

.pack-img {
  max-width: min(60%, 175px);
  max-height: 72%;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.pack-card:hover .pack-img {
  transform: translateY(-4px) scale(1.03);
}

.pack-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pack-card .tier-price {
  margin-bottom: 0;
}

.pack-delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 11px 0 16px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(53, 232, 143, 0.12);
  border: 1px solid rgba(53, 232, 143, 0.32);
  color: #35e88f;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pack-delivery svg {
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}

.pack-card {
  position: relative;
}

.odds-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(8, 12, 20, 0.82);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.odds-badge:hover,
.odds-badge:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(43, 111, 227, 0.55);
  outline: none;
}

/* Covers the card exactly (min-height matches a 10px inset) but is allowed to grow
   past its bottom edge on narrow cards, where the description wraps onto enough
   extra lines to push rows out of view. */
.odds-pop {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  min-height: calc(100% - 20px);
  max-height: min(calc(100vh - 40px), 520px);
  z-index: 4;
  background: #10151d;
  border: 2px solid var(--blue);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(43, 111, 227, 0.45), 0 0 60px rgba(43, 111, 227, 0.15);
  padding: 18px 18px 10px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.odds-badge:hover ~ .odds-pop,
.odds-badge:focus-visible ~ .odds-pop,
.odds-pop:hover,
.pack-card.odds-open .odds-pop {
  opacity: 1;
  visibility: visible;
}

.odds-pop h3 {
  color: #f2f5f7;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.odds-pop p {
  color: #9aa4b2;
  font-size: 11.5px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.odds-rows {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
  margin-right: -10px;
}

.odds-rows::-webkit-scrollbar {
  width: 5px;
}

.odds-rows::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.odds-rows::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}

.odds-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.odds-row:last-child {
  border-bottom: none;
}

.rarity-badge {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #1a212b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #c3cad4;
}

.rarity-badge svg {
  width: 16px;
  height: 16px;
  display: block;
}

.rarity-badge.prestige { color: #ffc93d; border-color: rgba(255, 201, 61, 0.35); }
.rarity-badge.epic     { color: #b06cff; border-color: rgba(176, 108, 255, 0.35); }
.rarity-badge.rare     { color: #4da6ff; border-color: rgba(77, 166, 255, 0.35); }

.odds-name {
  flex: 1;
  color: #f2f5f7;
  font-size: 13px;
  font-weight: 600;
}

.odds-pct {
  color: #9aa4b2;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cart-item .chip.chip-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

footer {
  border-top: 1px solid var(--panel-border);
  padding: 22px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: auto;
}

footer a {
  color: #b9c3d4;
}

/* ---- plan changes (upgrade / downgrade) --------------------------------- */

.plan-banner {
  margin: 20px auto 0;
  max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #c3cad8;
}

.plan-banner b {
  color: var(--text);
}

.plan-banner button {
  background: none;
  border: none;
  color: #7fb3ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.tier-btn.plan-action[data-plan='downgrade'] {
  background: #1d2634;
  border: 1px solid var(--panel-border);
  color: #b9c3d4;
  padding: 11px;
}

.tier-btn.plan-action[data-plan='downgrade']:hover {
  background: #232d3e;
}

.tier-btn.plan-action:disabled {
  background: #1d2634;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  padding: 11px;
  cursor: default;
}

.tier-card.featured .tier-btn.plan-action:disabled,
.tier-card.featured .tier-btn.plan-action[data-plan='downgrade'] {
  background: #1d2634;
  animation: none;
  text-shadow: none;
}

/* Account page: current plan and the tiers they can move to. */
.plan-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--panel-border);
}

.plan-current b {
  display: block;
  font-size: 15px;
}

.plan-current span {
  color: var(--muted);
  font-size: 12.5px;
}

.plan-pending {
  margin-top: 14px;
  background: #10151f;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #d8ad55;
  line-height: 1.7;
}

.plan-pending b {
  color: #f0d9a8;
}

.plan-pending button {
  background: none;
  border: none;
  color: #7fb3ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 0 6px;
  text-decoration: underline;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.plan-option + .plan-option {
  border-top: 1px solid var(--panel-border);
}

.plan-option .info b {
  display: block;
  font-size: 13.5px;
}

.plan-option .info span {
  color: var(--muted);
  font-size: 12px;
}

.plan-option-btn {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.plan-option-btn:hover {
  background: var(--blue-hover);
}

.plan-option-btn.quiet {
  background: #1d2634;
  border: 1px solid var(--panel-border);
  color: #b9c3d4;
}

.plan-option-btn.quiet:hover {
  background: #232d3e;
}

.plan-option-btn:disabled {
  background: #1d2634;
  border: 1px solid var(--panel-border);
  color: var(--muted);
  cursor: default;
}

.billing-note {
  margin: 18px auto 0;
  max-width: 520px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13px;
  color: #d8ad55;
}
