*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --text-muted: #9a9aad;
  --accent: #e84393;
  --accent-light: #fd79a8;
  --accent-glow: rgba(232, 67, 147, 0.35);
  --gradient: linear-gradient(135deg, #e84393 0%, #a855f7 50%, #6366f1 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.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(232, 67, 147, 0.15);
  top: -200px;
  right: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.12);
  bottom: 10%;
  left: -150px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  min-width: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text);
  border-color: rgba(232, 67, 147, 0.35);
}

.lang-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 140px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(232, 67, 147, 0.12);
  border: 1px solid rgba(232, 67, 147, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Wishlist */
.wishlist {
  position: relative;
  z-index: 1;
  padding: 24px 0 80px;
}

.wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head {
  margin-top: 28px;
  margin-bottom: 4px;
  padding-top: 8px;
}

.section-head:first-child {
  margin-top: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wish-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 20px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
}

.wish-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 67, 147, 0.25);
  transform: translateY(-1px);
}

.wish-card.is-priceless {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.08), rgba(99, 102, 241, 0.08));
}

.wish-card.is-gifted {
  opacity: 0.5;
  filter: grayscale(0.3);
}

.wish-card.is-gifted:hover {
  transform: none;
  border-color: var(--border);
}

.wish-card.is-gifted .btn-gift {
  opacity: 0.85;
}

.wish-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(232, 67, 147, 0.12);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.wish-body {
  min-width: 0;
}

.wish-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}

.wish-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.wish-price strong {
  color: var(--accent-light);
  font-weight: 700;
}

.wish-price.is-priceless strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gifted-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.12);
  border: 1px solid rgba(110, 231, 168, 0.25);
  vertical-align: middle;
}

.btn-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-gift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 36px 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-wrap #qrcode {
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  line-height: 0;
}

.qr-wrap #qrcode img,
.qr-wrap #qrcode canvas {
  display: block;
  border-radius: 4px;
}

.wallet-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wallet-label span {
  color: var(--accent-light);
  font-weight: 600;
}

.wallet-addr {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  line-height: 1.45;
}

.wallet-addr:hover {
  border-color: rgba(232, 67, 147, 0.4);
  background: rgba(232, 67, 147, 0.08);
}

.copy-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.copy-hint.is-ok {
  color: #6ee7a8;
}

.modal-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-toggle {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-toggle:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-toggle .toggle-dot {
  width: 36px;
  height: 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-toggle .toggle-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.btn-toggle.is-on {
  border-color: rgba(110, 231, 168, 0.4);
  background: rgba(110, 231, 168, 0.1);
  color: #6ee7a8;
}

.btn-toggle.is-on .toggle-dot {
  background: #6ee7a8;
}

.btn-toggle.is-on .toggle-dot::after {
  transform: translateX(16px);
  background: #0a0a0f;
}

@media (max-width: 640px) {
  .hero {
    padding: 110px 0 36px;
  }

  .wish-card {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .btn-gift {
    grid-column: 1 / -1;
    width: 100%;
  }

  .lang-btn {
    min-width: 36px;
    padding: 6px 8px;
  }
}
