/* ═══════════════════════════════════════════
   GALACTIC LAND REGISTRY — Master Stylesheet
   V2: MAXIMUM ANIMATIONS EDITION
   ═══════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep:       #07060e;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --bg-glass:      rgba(255, 255, 255, 0.06);
  --border-glass:  rgba(255, 255, 255, 0.10);
  --text-primary:  #f0eef6;
  --text-muted:    #9993b0;
  --accent-blue:   #6ea8fe;
  --accent-purple: #b07aff;
  --accent-pink:   #ff6eb4;
  --accent-gold:   #ffd866;
  --accent-green:  #6effa0;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --font-sans:     'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:     'Space Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Canvas Starfield ─────────────────────── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Interactive Cursor Follower & Trail ─── */
#cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(176, 122, 255, 0.14) 0%, rgba(110, 168, 254, 0.08) 35%, rgba(255, 110, 180, 0.03) 60%, transparent 75%);
  transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: screen;
  will-change: left, top;
}

#cursor-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Nebula Overlay ───────────────────────── */
.nebula-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(110, 60, 200, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(60, 120, 220, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(200, 60, 140, 0.06) 0%, transparent 50%);
  animation: nebulaDrift 20s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(15deg) brightness(1.1); }
  100% { filter: hue-rotate(-10deg) brightness(0.95); }
}

/* ── App Container ────────────────────────── */
#root {
  position: relative;
  z-index: 1;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

/* ── Header ───────────────────────────────── */
.site-header {
  text-align: center;
  padding: 50px 0 30px;
  animation: headerDrop 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-40px) scale(0.95); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink), var(--accent-gold));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
  margin-bottom: 10px;
}

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

.site-header .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  animation: fadeSlideUp 0.8s 0.3s ease-out both;
}

.site-header .disclaimer {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  background: rgba(255, 214, 102, 0.1);
  border: 1px solid rgba(255, 214, 102, 0.2);
  border-radius: 20px;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  animation: fadeSlideUp 0.8s 0.5s ease-out both, pulseGlow 3s 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 214, 102, 0.1); }
  50%      { box-shadow: 0 0 20px rgba(255, 214, 102, 0.25); }
}

/* ── Progress Bar ─────────────────────────── */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 30px auto 40px;
  max-width: 700px;
  animation: fadeSlideUp 0.6s 0.2s ease-out both;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  position: relative;
}

.step-dot.active {
  border-color: var(--accent-purple);
  background: rgba(176, 122, 255, 0.15);
  color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(176, 122, 255, 0.3), 0 0 40px rgba(176, 122, 255, 0.1);
  transform: scale(1.15);
  animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(176, 122, 255, 0.3), 0 0 40px rgba(176, 122, 255, 0.1); }
  50%      { box-shadow: 0 0 30px rgba(176, 122, 255, 0.5), 0 0 60px rgba(176, 122, 255, 0.2); }
}

.step-dot.completed {
  border-color: var(--accent-green);
  background: rgba(110, 255, 160, 0.12);
  color: var(--accent-green);
  animation: completePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes completePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.step-line {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  transition: all 0.6s ease;
  position: relative;
  overflow: hidden;
}

.step-line.filled {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
  box-shadow: 0 0 8px rgba(110, 255, 160, 0.3);
}

.step-line.filled::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: lineShimmer 2s ease-in-out infinite;
}

@keyframes lineShimmer {
  to { left: 200%; }
}

/* ── Section Titles ───────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Page Transition Wrapper ──────────────── */
.step-transition {
  animation: stepEnter 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Staggered Grid Items ─────────────────── */
.stagger-item {
  opacity: 0;
  animation: staggerIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Planet Grid ──────────────────────────── */
.planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.planet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  cursor: pointer;
  transition: transform 0.15s ease-out, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* animated gradient border on hover */
.planet-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from var(--angle, 0deg), var(--accent-purple), var(--accent-pink), var(--accent-blue), var(--accent-green), var(--accent-purple));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderSpin 4s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderSpin {
  to { --angle: 360deg; }
}

.planet-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  z-index: -1;
}

.planet-card:hover::before {
  opacity: 0.6;
}

.planet-card .card-glow-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.planet-card:hover .card-glow-spot {
  opacity: 1;
}

.planet-card:hover {
  background: var(--bg-card-hover);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(176, 122, 255, 0.15);
}

.planet-card.selected {
  border-color: var(--accent-purple);
  background: rgba(176, 122, 255, 0.08);
  box-shadow:
    0 0 30px rgba(176, 122, 255, 0.2),
    0 0 60px rgba(176, 122, 255, 0.08),
    inset 0 0 30px rgba(176, 122, 255, 0.03);
  animation: selectedPulse 2.5s ease-in-out infinite;
}

@keyframes selectedPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(176, 122, 255, 0.2), 0 0 60px rgba(176, 122, 255, 0.08); }
  50%      { box-shadow: 0 0 40px rgba(176, 122, 255, 0.35), 0 0 80px rgba(176, 122, 255, 0.15); }
}

.planet-card.selected .check-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: var(--accent-purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(176, 122, 255, 0.4);
}

@keyframes badgePop {
  from { transform: scale(0) rotate(-90deg); }
  to   { transform: scale(1) rotate(0deg); }
}

.planet-emoji {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatEmoji 4s ease-in-out infinite;
}

.planet-card:hover .planet-emoji {
  transform: scale(1.2) rotate(5deg);
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.planet-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.planet-card .planet-tagline {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.planet-card .planet-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.planet-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(110, 255, 160, 0.3);
}

.planet-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  text-shadow: none;
}

/* ── Plot Selection ───────────────────────── */
.plot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.plot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  cursor: pointer;
  transition: transform 0.15s ease-out, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.plot-card .card-glow-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(110, 168, 254, 0.2) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.plot-card:hover .card-glow-spot {
  opacity: 1;
}

.plot-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(110, 168, 254, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plot-card:hover::before {
  opacity: 1;
}

.plot-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.plot-card.selected {
  border-color: var(--accent-blue);
  background: rgba(110, 168, 254, 0.08);
  box-shadow: 0 0 30px rgba(110, 168, 254, 0.15), 0 0 60px rgba(110, 168, 254, 0.06);
}

.plot-card .plot-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
  animation: floatEmoji 5s ease-in-out infinite;
}

.plot-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.plot-card .plot-size {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.plot-card .plot-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-green);
  font-size: 0.95rem;
}

/* ── Perks Grid ───────────────────────────── */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.perk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 110, 180, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.perk-card:hover::after {
  opacity: 1;
}

.perk-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px) scale(1.01);
  border-color: rgba(255, 110, 180, 0.2);
}

.perk-card.selected {
  border-color: var(--accent-pink);
  background: rgba(255, 110, 180, 0.06);
  box-shadow: 0 0 20px rgba(255, 110, 180, 0.1);
}

.perk-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.perk-card:hover .perk-emoji {
  transform: scale(1.2) rotate(-10deg);
}

.perk-info {
  position: relative;
  z-index: 1;
}

.perk-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.perk-info .perk-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.perk-info .perk-price {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  margin-top: 4px;
}

.perk-check {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  align-self: center;
  position: relative;
  z-index: 1;
}

.perk-card.selected .perk-check {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px rgba(255, 110, 180, 0.4);
}

/* ── Gift Form ────────────────────────────── */
.gift-form {
  max-width: 560px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(176, 122, 255, 0.15), 0 0 40px rgba(176, 122, 255, 0.05);
  background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  font-family: var(--font-mono);
}

/* ── Tone Selector ────────────────────────── */
.tone-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tone-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tone-pill:hover {
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

.tone-pill.selected {
  border-color: var(--accent-purple);
  background: rgba(176, 122, 255, 0.12);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(176, 122, 255, 0.2);
  transform: scale(1.05);
}

/* ── Buttons ──────────────────────────────── */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
  animation: fadeSlideUp 0.5s 0.3s ease-out both;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.btn:disabled::after {
  display: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: white;
  box-shadow: 0 4px 20px rgba(176, 122, 255, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px rgba(176, 122, 255, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd866, #ffb347, #ffd866);
  background-size: 200% auto;
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(255, 216, 102, 0.25);
  font-size: 1.05rem;
  padding: 16px 40px;
  animation: shimmerGold 3s linear infinite;
}

@keyframes shimmerGold {
  to { background-position: 200% center; }
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 40px rgba(255, 216, 102, 0.45);
}

/* ── Checkout Layout ──────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.checkout-summary, .checkout-payment {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.checkout-summary:hover, .checkout-payment:hover {
  box-shadow: 0 0 30px rgba(176, 122, 255, 0.06);
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.9rem;
  gap: 12px;
}

.summary-row span:first-child { color: var(--text-muted); }

.summary-price {
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: nowrap;
}

.summary-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-total span:first-child { color: var(--text-primary) !important; }
.summary-total span:last-child {
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 1.2rem;
  text-shadow: 0 0 15px rgba(110, 255, 160, 0.3);
}

.gift-to {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(176, 122, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gift-to strong { color: var(--accent-purple); }

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-badges {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 6px;
  animation: pulseGlow 4s ease-in-out infinite;
}

/* ── Terms & Conditions ───────────────────── */
.terms-section { margin-top: 32px; }

.terms-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.terms-toggle:hover { background: var(--bg-card-hover); }

.terms-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.terms-box {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  animation: expandDown 0.4s ease-out;
}

@keyframes expandDown {
  from { opacity: 0; max-height: 0; padding: 0 24px; }
  to   { opacity: 1; max-height: 320px; padding: 24px; }
}

.terms-box::-webkit-scrollbar { width: 6px; }
.terms-box::-webkit-scrollbar-track { background: transparent; }
.terms-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.terms-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.5;
}

.terms-agree:hover { border-color: rgba(255,255,255,0.2); }

.terms-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

.terms-agree strong { color: var(--accent-gold); }

.terms-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: inherit;
  padding: 0;
}

.terms-link:hover { color: var(--accent-purple); }

.terms-hint {
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(255, 214, 102, 0.08);
  border: 1px solid rgba(255, 214, 102, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--accent-gold);
  text-align: center;
  animation: fadeSlideUp 0.3s ease-out both;
}

/* ── Certificate ──────────────────────────── */
.certificate-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
}

.certificate {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #1a1a2e 100%);
  border: 3px solid;
  border-image: linear-gradient(135deg, var(--accent-gold), #c9a74e, var(--accent-gold)) 1;
  border-radius: 4px;
  padding: 50px 40px;
  max-width: 650px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: certReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

@keyframes certReveal {
  from {
    opacity: 0;
    transform: scale(0.8) rotateX(10deg);
    filter: blur(10px) brightness(2);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
    filter: blur(0) brightness(1);
  }
}

/* shimmer sweep across certificate */
.certificate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 102, 0.05), rgba(255,255,255,0.08), transparent);
  animation: certShimmer 4s 1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes certShimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.certificate > *:not(.certificate::after) {
  position: relative;
  z-index: 1;
}

.certificate::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 216, 102, 0.2);
  pointer-events: none;
}

.cert-seal {
  font-size: 4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 30px rgba(255,216,102,0.4));
  animation: sealFloat 3s ease-in-out infinite;
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

.cert-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(255, 216, 102, 0.3);
  animation: certTextReveal 0.8s 0.4s ease-out both;
}

.cert-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 28px;
  animation: certTextReveal 0.8s 0.6s ease-out both;
}

@keyframes certTextReveal {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.cert-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: certTextReveal 0.8s 0.8s ease-out both;
}

.cert-body strong { color: var(--accent-purple); }
.cert-body .highlight { color: var(--accent-gold); font-weight: 600; }

.cert-perks {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  text-align: left;
  animation: certTextReveal 0.8s 1s ease-out both;
}

.cert-perks h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-pink);
  margin-bottom: 10px;
}

.cert-perks ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cert-perks li { font-size: 0.9rem; color: var(--text-muted); }

.cert-message {
  margin-top: 24px;
  padding: 20px;
  background: rgba(176, 122, 255, 0.06);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
  animation: certTextReveal 0.8s 1.2s ease-out both;
}

.cert-message .msg-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  margin-bottom: 6px;
}

.cert-message .msg-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}

.cert-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  animation: certTextReveal 0.8s 1.4s ease-out both;
}

.cert-footer .cert-id, .cert-footer .cert-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cert-stamp {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(-6deg);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: stampSlam 0.6s 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 15px rgba(255, 216, 102, 0.2);
}

@keyframes stampSlam {
  from { opacity: 0; transform: rotate(-6deg) scale(3); filter: blur(4px); }
  to   { opacity: 0.7; transform: rotate(-6deg) scale(1); filter: blur(0); }
}

.cert-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.6s 1.8s ease-out both;
}

/* ── Confetti Canvas ──────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

/* ── Utility Animations ───────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.8rem; }

  .planet-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .planet-card { padding: 16px 12px; }
  .planet-emoji { font-size: 2.2rem; }
  .planet-card .planet-desc { display: none; }
  .certificate { padding: 30px 20px; }

  .cert-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .perks-grid { grid-template-columns: 1fr; }

  .nav-buttons { flex-direction: column-reverse; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Print Styles ─────────────────────────── */
@media print {
  body { background: white; color: #1a1a2e; }
  #stars-canvas, .nebula-bg, .nav-buttons, .progress-bar, .site-header, .cert-actions, #confetti-canvas { display: none !important; }
  .certificate {
    border: 3px solid #c9a74e;
    max-width: 100%;
    box-shadow: none;
    animation: none;
  }
  .certificate::after { display: none; }
  .cert-title { color: #b8860b; -webkit-text-fill-color: #b8860b; }
  .cert-body strong { color: #6b21a8; }
  .cert-body .highlight { color: #b8860b; }
  .cert-perks h4 { color: #db2777; }
  .cert-message { border-left-color: #6b21a8; }
  .cert-message .msg-label { color: #6b21a8; }
  .cert-stamp { color: #b8860b; border-color: #b8860b; animation: none; }
  * { animation: none !important; }
}
