:root {
  --bg: #07070a;
  --bg-elevated: rgba(18, 18, 24, 0.72);
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f7;
  --muted: #9b9bad;
  --accent: #ff2d55;
  --accent-2: #ff6b35;
  --accent-soft: rgba(255, 45, 85, 0.15);
  --of: #00aff0;
  --of-soft: rgba(0, 175, 240, 0.16);
  --success: #34d399;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 440px;
}

.lang-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: min(100% - 2rem, var(--max));
  margin: 0.75rem auto 0;
}

.lang-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.lang-select {
  appearance: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 2rem 0.4rem 0.85rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #9b9bad 50%),
    linear-gradient(135deg, #9b9bad 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.05);
}

.lang-select:focus {
  outline: none;
  border-color: rgba(255, 45, 85, 0.45);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.bg-orb-1 {
  width: 340px;
  height: 340px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, #ff2d55 0%, transparent 70%);
}

.bg-orb-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: -80px;
  background: radial-gradient(circle, #00aff0 0%, transparent 70%);
  animation-delay: -4s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 24px) scale(1.05); }
}

/* Shell */
.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.25rem 0 3rem;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Profile */
.profile {
  text-align: center;
  margin-bottom: 1.5rem;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 6px rgba(255, 45, 85, 0.12), var(--shadow);
}

.online-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  background: var(--success);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.handle {
  margin-top: 0.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.bio {
  margin: 0.75rem auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.2rem;
}

.stat strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.stat span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Featured */
.featured {
  margin-bottom: 0.85rem;
}

.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(0, 175, 240, 0.35);
  background:
    linear-gradient(145deg, rgba(0, 175, 240, 0.16), rgba(255, 45, 85, 0.08) 55%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 40px rgba(0, 175, 240, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 175, 240, 0.55);
  box-shadow: 0 16px 48px rgba(0, 175, 240, 0.2);
}

.feature-glow {
  position: absolute;
  inset: -40% auto auto 40%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 175, 240, 0.35), transparent 70%);
  pointer-events: none;
}

.feature-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.pill-hot {
  color: #ffd0d8;
  background: var(--accent-soft);
  border-color: rgba(255, 45, 85, 0.3);
}

.pill-live {
  color: #b8ecff;
  background: var(--of-soft);
  border-color: rgba(0, 175, 240, 0.3);
}

.feature-body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.of-icon {
  color: #fff;
  background: linear-gradient(135deg, #00aff0, #0077a8);
}

.shop-icon {
  font-size: 1.35rem;
  background: linear-gradient(135deg, #ff2d55, #ff6b35);
}

.shop-feature {
  border-color: rgba(255, 45, 85, 0.35) !important;
  background:
    linear-gradient(145deg, rgba(255, 45, 85, 0.16), rgba(255, 107, 53, 0.08) 55%, rgba(255, 255, 255, 0.03)) !important;
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.12) !important;
  margin-bottom: 0.7rem;
}

.shop-glow {
  background: radial-gradient(circle, rgba(255, 45, 85, 0.35), transparent 70%) !important;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-text p {
  color: var(--muted);
  font-size: 0.85rem;
}

.chevron {
  font-size: 1.25rem;
  color: var(--of);
  font-weight: 700;
}

/* Links */
.links {
  display: grid;
  gap: 0.7rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.link-btn:hover {
  transform: translateY(-1px);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.link-btn:active {
  transform: scale(0.985);
}

.link-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.of-bg {
  color: #fff;
  background: linear-gradient(135deg, #00aff0, #0086b8);
}

.x-bg {
  color: #fff;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ig-bg {
  color: #fff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.tg-bg {
  color: #fff;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
}

.copy-bg,
.share-bg {
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.05rem;
}

.link-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.link-label strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.link-label small {
  color: var(--muted);
  font-size: 0.78rem;
}

.link-meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* Highlights */
.highlights {
  margin-top: 1.6rem;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hl-card {
  padding: 0.95rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.hl-emoji {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.hl-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.hl-card p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* QR */
.qr-section {
  margin-top: 1.4rem;
  text-align: center;
}

.qr-toggle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.qr-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.qr-panel {
  margin-top: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  display: inline-block;
}

.qr-panel p {
  margin-top: 0.5rem;
  color: #333;
  font-size: 0.78rem;
  font-weight: 600;
}

#qr-canvas {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Footer */
.footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.disclaimer {
  margin-top: 0.25rem;
  opacity: 0.75;
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

.age-gate[hidden],
.age-gate.age-gate-hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.age-card {
  width: min(100%, 380px);
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #121218;
  box-shadow: var(--shadow);
  text-align: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.age-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.age-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.age-actions {
  display: grid;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
}

.btn-ghost {
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 50;
  transform: translateX(-50%) translateY(12px);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #1a1a22;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 480px) {
  .name {
    font-size: 1.7rem;
  }
}
