*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07070f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 16px;
  --font: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(168, 85, 247, 0.15);
  top: -200px;
  left: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(34, 211, 238, 0.1);
  bottom: -150px;
  right: -100px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(7, 7, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.4rem;
}

.logo-icon {
  color: var(--purple);
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.logo-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-btn.active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

/* Main */
.main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Tabs */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.section-desc strong {
  color: var(--cyan);
}

/* Vendor grid */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.purchase-section {
  margin-bottom: 3rem;
}

.purchase-section .hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.purchase-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.vendor-section {
  margin-bottom: 3rem;
}

.vendor-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vendor-info {
  margin-top: 1.5rem;
}

.vendor-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: all 0.25s;
}

a.vendor-card {
  text-decoration: none;
}

.vendor-card:hover {
  background: var(--surface-hover);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.vendor-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0a0a0f;
  background: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.vendor-btn:hover {
  background: #f4f4f5;
  transform: translateY(-2px);
}

.vendor-card.featured {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
}

.vendor-card.featured-secondary {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.05);
}

.badge-secondary {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
}

.vendor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vendor-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vendor-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.vendor-link {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card.warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-card ol,
.info-card ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-card li {
  margin-bottom: 0.5rem;
}

.info-card strong {
  color: var(--text);
}

/* Redeem */
.redeem-container {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.redeem-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  text-align: center;
  overflow: hidden;
}

.pulse-ring {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: translateX(-50%) scale(0.8); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.8); opacity: 0; }
}

.redeem-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.redeem-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.redeem-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.redeem-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.redeem-form input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.redeem-form input[type="text"]:focus {
  outline: none;
  border-color: var(--purple);
}

/* Tier picker */
.tier-picker {
  border: none;
  padding: 0;
  margin: 0.75rem 0 0;
  min-width: 0;
}

.tier-picker legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 0.65rem;
}

.tier-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tier-option {
  cursor: pointer;
}

.tier-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tier-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tier-option:hover .tier-option-card {
  background: var(--surface-hover);
  border-color: rgba(168, 85, 247, 0.25);
}

.tier-option input:focus-visible + .tier-option-card {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.tier-option input:checked + .tier-option-card {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.tier-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.tier-reward {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-option input:checked + .tier-option-card .tier-reward {
  color: var(--purple);
}

.redeem-form input::placeholder {
  color: rgba(136, 136, 160, 0.5);
}

#gift-code {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.15em;
  font-size: 1.05rem;
}

.submit-btn {
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: 10px;
  color: white;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.form-message {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.form-message.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Terms */
.terms-container {
  max-width: 700px;
  margin: 0 auto;
}

.terms-container h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.terms-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.terms-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.terms-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--purple);
}

.terms-section ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.terms-section li {
  margin-bottom: 0.4rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-dot {
  margin: 0 0.5rem;
}

/* Stellar-style donate page */
.donate-page .donate-hero {
  padding: 2.5rem 0 1rem;
}

.donate-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.donate-sub {
  max-width: 640px;
  line-height: 1.7;
}

.nav-link {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--purple);
}

.terms-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.terms-full p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.terms-full strong {
  color: var(--text);
}

.nav-discord {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a5b4fc;
}

.nav-discord:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #c7d2fe;
}

.tier-showcase {
  margin-bottom: 3rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.donate-tier-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.donate-tier-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tier-accent) 40%, transparent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.donate-tier-card.featured {
  border-color: color-mix(in srgb, var(--tier-accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier-accent) 25%, transparent);
}

.donate-tier-card.selected {
  border-color: color-mix(in srgb, var(--tier-accent) 70%, transparent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--tier-accent) 35%, transparent),
    0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.donate-tier-card[role='button'] {
  cursor: pointer;
}

.tier-step-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tier-checkout {
  margin-top: 2rem;
  animation: fadeIn 0.35s ease;
}

.tier-checkout.hidden {
  display: none;
}

.tier-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.checkout-back-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.checkout-back-btn:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.35);
  background: var(--surface-hover);
}

.tier-checkout-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.checkout-preview-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050508;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tier-accent, var(--purple)) 25%, transparent);
}

.tier-limited-pill {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.45);
}

.limited-stock {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.checkout-preview-art .limited-stock {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  margin-bottom: 0;
  backdrop-filter: blur(8px);
  background: rgba(20, 10, 18, 0.82);
}

.limited-stock-lg {
  margin-bottom: 1rem;
}

.limited-stock-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.limited-stock-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.limited-stock-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fda4af;
}

.limited-stock-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.limited-stock-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.limited-stock-count strong {
  color: #fda4af;
}

.checkout-preview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-preview-perks {
  margin-top: 1rem;
}

.checkout-preview-perks h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.checkout-preview-perks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-preview-perks li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
}

.checkout-preview-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tier-accent, var(--purple));
  font-weight: 700;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}

.checkout-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tier-accent, var(--purple));
  margin-bottom: 0.35rem;
}

.checkout-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.checkout-price {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.checkout-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.checkout-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.checkout-hint strong {
  color: var(--cyan);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-buy-btn {
  display: block;
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--tier-accent, var(--purple)), var(--pink));
  transition: opacity 0.2s, transform 0.2s;
}

.checkout-buy-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.checkout-redeem-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.checkout-redeem-btn:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.35);
}

.tier-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.tier-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050508;
  overflow: hidden;
}

.tier-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tier-perks-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

.tier-perks-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.tier-perks-overlay li {
  font-size: 0.8rem;
  color: var(--text);
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
}

.tier-perks-overlay li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--tier-accent, var(--purple));
}

.tier-body {
  padding: 1.1rem 1.15rem 1.25rem;
  text-align: center;
}

.donate-tier-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.tier-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tier-accent);
  margin-top: 0.15rem;
}

.tier-price {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.preview-cosmetics-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 0.75rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.preview-cosmetics-btn:hover {
  color: var(--text);
}

.play-icon {
  font-size: 0.65rem;
  color: var(--text);
}

.tier-rewarble-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tier-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.tier-btn-buy {
  background: linear-gradient(135deg, var(--tier-accent, var(--purple)), var(--pink));
  color: white;
}

.tier-btn-redeem {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.tier-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.tier-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.tier-footnote a {
  color: var(--cyan);
}

.redeem-section {
  padding: 1rem 0 2rem;
}

.stellar-redeem {
  max-width: 520px;
  text-align: left;
}

.stellar-redeem h2 {
  text-align: center;
}

.stellar-redeem .redeem-desc {
  text-align: center;
}

.auth-panel {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.discord-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #5865f2;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.discord-login-btn:hover {
  background: #4752c4;
}

.auth-logged-in {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.user-meta {
  flex: 1;
  min-width: 0;
}

.user-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-display {
  font-weight: 700;
  font-size: 0.95rem;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
}

.logout-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.redeem-tier-options .tier-options {
  grid-template-columns: repeat(5, 1fr);
}

.tier-option input:checked + .tier-option-card {
  border-color: color-mix(in srgb, var(--tier-accent, var(--purple)) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier-accent, var(--purple)) 25%, transparent);
}

.tier-option input:checked + .tier-option-card .tier-reward {
  color: var(--tier-accent, var(--purple));
}

.terms-strip {
  max-width: 520px;
  margin: 0 auto 2rem;
}

.terms-details summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.terms-inner {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.logo {
  text-decoration: none;
  color: inherit;
}

/* Responsive */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .vendor-grid {
    grid-template-columns: 1fr;
  }

  .tier-checkout-inner {
    grid-template-columns: 1fr;
  }

  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-options,
  .redeem-tier-options .tier-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) and (min-width: 521px) {
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .redeem-tier-options .tier-options {
    grid-template-columns: 1fr;
  }
}
