:root {
  --bg: #0b0c10;
  --panel: #12141b;
  --panel-2: #171a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f5f7fb;
  --ink-soft: #c4cad6;
  --muted: #8b93a3;
  --faint: #616978;
  --accent: #c9f36b;
  --accent-2: #7aa2ff;
  --accent-ink: #0b0d10;
  --warn: #ffcf70;
  --danger: #ff7080;
  --success: #64f0b0;
  --radius: 22px;
  --mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid rgba(201, 243, 107, 0.72);
  outline-offset: 3px;
}

.shop-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 460px at 8% -10%, rgba(201, 243, 107, 0.14), transparent 62%),
    radial-gradient(760px 520px at 94% 0%, rgba(122, 162, 255, 0.12), transparent 64%),
    radial-gradient(900px 620px at 50% 108%, rgba(255, 207, 112, 0.06), transparent 66%),
    linear-gradient(180deg, #0b0c10 0%, #090a0e 100%);
}

.shop-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
}

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

.shop-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #9bdc32);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(201, 243, 107, 0.35), 0 12px 32px rgba(201, 243, 107, 0.16);
}

.shop-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.shop-brand-copy b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.shop-brand-copy small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

.shop-nav a {
  transition: color 0.2s ease;
}

.shop-nav a:hover {
  color: var(--ink);
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-quota {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.shop-quota span {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.shop-quota b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, color 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: #0b0c10;
  box-shadow: 0 16px 40px rgba(245, 247, 251, 0.08);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #aee63f);
  color: var(--accent-ink);
  box-shadow: 0 14px 38px rgba(201, 243, 107, 0.22);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.btn-redeem {
  border-color: rgba(255, 207, 112, 0.4);
  background: linear-gradient(135deg, #ffe08a, #ffb347);
  color: #241503;
  box-shadow: 0 14px 38px rgba(255, 179, 71, 0.24);
  font-weight: 750;
}

.btn-sm {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
}

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

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 116px) 0 clamp(44px, 6vw, 76px);
}

.shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.shop-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 243, 107, 0.12);
}

.shop-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(30px, 5.3vw, 64px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.02;
  white-space: nowrap;
}

.shop-hero h1 em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 40px rgba(201, 243, 107, 0.24);
}

.shop-lede {
  max-width: 60ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.8;
}

.shop-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.shop-hero-points span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  font-size: 11.5px;
}

.shop-hero-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--accent);
}

.shop-hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(255, 207, 112, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 44%),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.shop-hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 207, 112, 0.32);
  border-radius: 999px;
  color: var(--warn);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.shop-hero-card h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.shop-hero-card p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.shop-section {
  padding: 38px 0 22px;
}

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

.shop-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.shop-section-head .shop-eyebrow {
  margin-bottom: 12px;
}

.shop-section-note {
  max-width: 42ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: right;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.package-loading {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--panel);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.package-card.is-featured {
  border-color: rgba(201, 243, 107, 0.34);
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(201, 243, 107, 0.13), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--panel);
}

.package-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.package-badge {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.package-card.is-featured .package-badge {
  border-color: rgba(201, 243, 107, 0.3);
  color: var(--accent);
}

.package-type {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.package-card h3 {
  margin: 20px 0 6px;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.package-desc {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 4px;
}

.package-price b {
  color: var(--ink);
  font-size: 38px;
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1;
}

.package-price b small {
  margin-right: 2px;
  font-size: 16px;
  font-weight: 600;
}

.package-price del {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.package-price-note {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.package-features li {
  display: flex;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
}

.package-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.package-card .btn {
  margin-top: auto;
}

.shop-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 52px 0 66px;
}

.shop-step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.shop-step span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.shop-step b {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
}

.shop-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.shop-footer-links {
  display: flex;
  gap: 18px;
}

.shop-footer-links a:hover {
  color: var(--ink);
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(20, 22, 29, 0.96);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
  animation: toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.toast::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.toast.is-error {
  border-color: rgba(255, 112, 128, 0.3);
}

.toast.is-error::before {
  content: "!";
  color: var(--danger);
}

.shop-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 6, 8, 0.74);
  backdrop-filter: blur(10px);
}

.shop-modal {
  width: min(430px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%),
    var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
  animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shop-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.shop-modal-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.shop-modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.shop-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.shop-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.shop-tabs button.is-active {
  background: rgba(201, 243, 107, 0.1);
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.field-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.input::placeholder {
  color: var(--faint);
}

.input:hover {
  border-color: var(--line-strong);
}

.input:focus {
  outline: none;
  border-color: rgba(201, 243, 107, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.shop-modal-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.spin {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@media (max-width: 980px) {
  .shop-header {
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .shop-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .shop-actions {
    margin-left: auto;
  }

  .shop-hero {
    grid-template-columns: 1fr;
  }

  .shop-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-section-note {
    text-align: left;
  }

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

@media (max-width: 680px) {
  main,
  .shop-footer {
    width: calc(100% - 32px);
  }

  .shop-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shop-brand-copy small {
    display: none;
  }

  .shop-nav {
    gap: 16px;
    overflow-x: auto;
    font-size: 12px;
  }

  .shop-hero h1 {
    font-size: clamp(24px, 8vw, 44px);
  }

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

  .shop-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
