/* Font loaded via preload in index.html to avoid render-blocking */

:root {
  /* ── Foundation Neutrals — pure gray, no blue tint ── */
  --bg: #08080a;
  --bg-accent: #0e0e11;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --separator: rgba(255, 255, 255, 0.05);

  /* ── Shadows — pure black, no navy tint ── */
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  --soft-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* ── Functional Green — positive/active states only ── */
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-bright: #4ade80;
  --accent-muted: #15803d;
  --glow-accent: none;
  --glow-accent-hover: none;

  /* ── Gold Accent — VIP only ── */
  --vip-gold: #c9a962;
  --vip-gold-dim: #9a7a2f;
  --vip-gold-bright: #ead7a2;
  --glow-vip: 0 0 12px rgba(201, 169, 98, 0.08);
  --premium-gold-rich: #d6b35d;
  --premium-gold-soft: #f3e3b4;
  --premium-gold-deep: #8a6723;
  --premium-shadow-gold: rgba(214, 179, 93, 0.18);
  --premium-black: #080808;
  --premium-black-raised: #11100d;
  --premium-black-soft: #171512;

  /* ── Legacy aliases (all map to functional green) ── */
  --accent-tech: var(--accent);
  --accent-tech-dim: var(--accent-2);
  --accent-tech-bright: var(--accent-bright);
  --accent-emerald: var(--accent);
  --premium-gold: #c9a962;
  --reward-gold: #c9a962;
  --reward-gold-bright: #ead7a2;
  --ui-gold: var(--accent-2);
  --glow-tech: none;
  --glow-tech-hover: none;

  /* ── Named surfaces — pure gray ── */
  --premium-charcoal: #131316;
  --premium-graphite: #1a1a1e;
  --premium-ice: rgba(255, 255, 255, 0.06);

  /* ── Glass system — pure gray, no tint ── */
  --glass-panel-base: rgba(14, 14, 14, 0.72);
  --glass-panel-base-strong: rgba(18, 18, 18, 0.84);
  --glass-bg: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  --glass-bg-hover: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.13);
  --glass-blur: blur(16px) saturate(160%) contrast(104%);
  --glass-prism: rgba(255, 255, 255, 0.04);
  --glass-tint: rgba(255, 255, 255, 0.02);
  --glass-shadow:
    0 28px 72px rgba(0, 0, 0, 0.7), 0 12px 34px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  --glass-shadow-soft:
    0 16px 48px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);

  /* ── Primary CTA button system — white inverted ── */
  --btn-cta-bg: #ffffff;
  --btn-cta-bg-hover: rgba(255, 255, 255, 0.88);
  --btn-cta-color: #0a0a0a;
  --btn-cta-border: rgba(255, 255, 255, 0.9);
  --btn-cta-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --btn-cta-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);

  /* ── VIP CTA button system (gold, VIP contexts only) ── */
  --btn-vip-bg: linear-gradient(
    140deg,
    rgba(50, 42, 24, 0.96),
    rgba(24, 20, 12, 0.94)
  );
  --btn-vip-bg-hover: linear-gradient(
    140deg,
    rgba(62, 52, 30, 0.97),
    rgba(32, 26, 16, 0.95)
  );
  --btn-vip-color: #ead7a2;
  --btn-vip-border: rgba(201, 169, 98, 0.44);
  --btn-vip-shadow:
    0 8px 28px rgba(0, 0, 0, 0.46), 0 0 16px rgba(201, 169, 98, 0.1),
    inset 0 1px 0 rgba(245, 226, 182, 0.14);
  --btn-vip-shadow-hover:
    0 12px 36px rgba(0, 0, 0, 0.54), 0 0 22px rgba(201, 169, 98, 0.18),
    inset 0 1px 0 rgba(245, 226, 182, 0.2);

  /* ── Depth shadows — pure black ── */
  --neuo-shadow:
    0 24px 64px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  --neuo-shadow-sm:
    0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);

  /* ── Semantic colors ── */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* ── Legacy glow aliases — disabled ── */
  --glow-blue: none;
  --glow-blue-hover: none;
  --glow-white: none;
  --glow-white-hover: none;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: #08080a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Reduce accidental text selection on mobile UI chrome. */
body,
.app,
.screen,
.card,
button,
.chip,
.nav-btn,
.toast {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Keep selection where users may still need manual copy/edit. */
input,
textarea,
[contenteditable="true"],
.copyable,
.card-sub,
.creator-links-grid,
.toast-text {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

body.grid-bg::before {
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 0.5px,
    transparent 0.5px
  );
  background-size: 3px 3px;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.glow {
  display: none;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: calc(44px + env(safe-area-inset-top)) 18px
    calc(80px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: clip;
}
.title-block h1 {
  font-family: "Fraunces", serif;
  margin: 4px 0 8px;
  font-size: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.pill.hidden {
  display: none;
}

/* Toast styles → see "Improved Toasts" section below */
.card {
  text-align: left;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.11);
  background-color: var(--glass-panel-base);
  background-image: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  display: grid;
  gap: 12px;
  animation: fadeUp 0.4s ease both;
  will-change: transform;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: -45% -32% auto -20%;
  height: 90%;
  background: radial-gradient(
    ellipse at 25% 32%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 68%
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.card.subtle {
  background-color: rgba(6, 10, 18, 0.74);
  background-image: var(--glass-bg);
  border-color: rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

/* Backdrop icon for exclusive feel */
.has-backdrop {
  position: relative;
  overflow: hidden;
}
.card-backdrop {
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.03;
  pointer-events: none;
  color: #fff;
}
.card-backdrop svg {
  width: 120px;
  height: 120px;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.card-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.5;
}

.hero {
  background-color: var(--glass-panel-base-strong);
  background-image: linear-gradient(
    160deg,
    rgba(224, 196, 132, 0.06) 0%,
    rgba(194, 160, 94, 0.025) 38%,
    rgba(140, 104, 44, 0.012) 100%
  );
  border-color: rgba(255, 255, 255, 0.23);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(228, 200, 136, 0.08),
    rgba(156, 120, 62, 0.012) 62%
  );
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.hero-title {
  font-family: system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 4px;
  color: #fff;
  line-height: 1.2;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.hero-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  min-width: 90px;
}

.hero-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

/* Credits Hero Section */
/* ── Credits bar: balance + daily claim in one unified row ── */
.credits-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: var(--glass-panel-base-strong);
  background-image: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.credits-bar::after {
  content: "";
  position: absolute;
  inset: -55% -20% auto -20%;
  height: 105%;
  background:
    radial-gradient(
      ellipse at 26% 36%,
      rgba(224, 196, 132, 0.08),
      transparent 58%
    ),
    radial-gradient(
      ellipse at 82% 14%,
      rgba(186, 150, 86, 0.07),
      transparent 62%
    );
  opacity: 0.24;
  pointer-events: none;
  z-index: -1;
}

.credits-bar-balance {
  flex: 1;
  padding: 18px 20px;
  min-width: 0;
}

.credits-bar-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.credits-bar-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.credits-bar-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Claim button state */
.credits-bar-claim {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 18px;
  background: linear-gradient(
    155deg,
    rgba(212, 184, 120, 0.07),
    rgba(160, 126, 62, 0.025)
  );
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: background 0.2s;
}

.credits-bar-claim:active {
  background: linear-gradient(
    155deg,
    rgba(224, 198, 136, 0.1),
    rgba(174, 140, 74, 0.03)
  );
}

.credits-bar-claim-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.credits-bar-claim-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.credits-bar-claim-tap {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.056);
  border-radius: 8px;
  padding: 2px 8px;
  margin-top: 3px;
}

/* Waiting/countdown state */
.credits-bar-waiting {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.claim-progress-ring-sm {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.credits-bar-waiting-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credits-bar-waiting-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1;
}

.credits-bar-waiting .claim-progress-ring .ring-fill {
  stroke: rgba(255, 255, 255, 1);
}

.credits-bar-waiting .claim-progress-ring .ring-bg {
  stroke: rgba(255, 255, 255, 0.22);
}

.credits-bar-waiting .claim-progress-ring .ring-center {
  color: rgba(255, 255, 255, 0.95);
}

.credits-bar-waiting-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
}

/* Legacy class kept for animateCountUp selector in older code */
.credits-hero-amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

/* First purchase bonus banner */
.first-purchase-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 16px 0 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  animation: fpb-glow 2s ease-in-out infinite alternate;
}

@keyframes fpb-glow {
  0% {
    border-color: rgba(255, 255, 255, 0.09);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.first-purchase-banner-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
}
.first-purchase-banner-icon svg {
  width: 22px;
  height: 22px;
}

.first-purchase-banner-text {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.4;
}

.first-purchase-banner-text strong {
  color: #22c55e;
}

.offer-discount-text {
  color: #ef4444;
  font-weight: 700;
}

.offer-discount-inline {
  color: #ef4444;
  font-weight: 800;
}

.offer-bonus-inline {
  color: #22c55e;
  font-weight: 800;
}

/* ── Price tier meter (detail page) ── */
/* Premium boost banner */

@keyframes pbb-glow {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.18);
  }
}

/* Premium badge chip (profile stat card) */

/* Legacy selectors kept empty for graceful degradation */
.credits-hero-daily {
  display: flex;
}
.credits-claim-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}
.credits-claim-subtext {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 360px) {
  .credits-bar-amount {
    font-size: 1.9rem;
  }
  .credits-bar-claim {
    min-width: 100px;
    padding: 12px 12px;
  }
  .credits-bar-claim-value {
    font-size: 1.3rem;
  }
}

/* Earn Credits Section - Row Cards */
.earn-credits-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.earn-card {
  background-color: rgba(14, 14, 14, 0.85);
  background-image: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(255, 255, 255, 0.012) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: none;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.earn-card::after {
  content: "";
  position: absolute;
  inset: -45% -25% auto -20%;
  height: 88%;
  background: radial-gradient(
    ellipse at 28% 30%,
    rgba(255, 255, 255, 0.035),
    transparent 66%
  );
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.earn-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(22, 22, 22, 0.92);
  background-image: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.016) 100%
  );
  box-shadow: none;
}

.earn-card:active {
  transform: scale(0.98);
}

.earn-card-icon {
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.24);
}
.earn-card-icon svg {
  width: 22px;
  height: 22px;
}

/* Action/Earn icon accents by action type */
.earn-card[data-action="daily_credits"] .earn-card-icon,
.earn-card[data-action="claim_daily"] .earn-card-icon {
  background: linear-gradient(
    145deg,
    rgba(165, 112, 255, 0.26),
    rgba(92, 68, 170, 0.16)
  );
  border-color: rgba(182, 142, 255, 0.4);
  color: #e8dbff;
}

.earn-card[data-action="referrals"] .earn-card-icon,
.earn-card[data-action="open_referral"] .earn-card-icon,
.earn-card[data-action="referral"] .earn-card-icon,
.earn-card[data-action="invite_friends"] .earn-card-icon {
  background: linear-gradient(
    145deg,
    rgba(45, 197, 141, 0.24),
    rgba(23, 125, 94, 0.16)
  );
  border-color: rgba(84, 230, 177, 0.38);
  color: #d7fff1;
}

.earn-card[data-action="profile_boosts"] .earn-card-icon,
.earn-card[data-action="open_boost"] .earn-card-icon {
  background: linear-gradient(
    145deg,
    rgba(79, 209, 199, 0.24),
    rgba(35, 128, 122, 0.16)
  );
  border-color: rgba(122, 236, 227, 0.36);
  color: #dcfffd;
}

.earn-card[data-action="earn_credits"] .earn-card-icon {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.098),
    rgba(120, 89, 34, 0.18)
  );
  border-color: rgba(228, 198, 132, 0.4);
  color: #f8eac9;
}

.earn-card[data-action="open_quests"] .earn-card-icon,
.earn-card[data-action="tasks"] .earn-card-icon,
.earn-card[data-action="complete_tasks"] .earn-card-icon,
.earn-card[data-action="achievements"] .earn-card-icon {
  background: linear-gradient(
    145deg,
    rgba(245, 189, 74, 0.3),
    rgba(150, 106, 26, 0.18)
  );
  border-color: rgba(248, 209, 122, 0.44);
  color: #fff1cb;
}

.earn-card[data-action="profile_settings"] .earn-card-icon,
.earn-card[data-action="settings"] .earn-card-icon,
.earn-card[data-action="profile_notifications"] .earn-card-icon,
.earn-card[data-action="notifications"] .earn-card-icon,
.earn-card[data-action="help"] .earn-card-icon,
.earn-card[data-action="support"] .earn-card-icon {
  background: linear-gradient(
    145deg,
    rgba(110, 126, 156, 0.22),
    rgba(54, 66, 92, 0.16)
  );
  border-color: rgba(166, 182, 216, 0.28);
  color: #e5ebff;
}
.earn-card-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}
.earn-card:hover .earn-card-arrow {
  transform: translateX(2px);
  color: rgba(255, 255, 255, 0.65);
}

.earn-card-content {
  flex: 1;
  min-width: 0;
}

.earn-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.earn-card-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.earn-card.featured {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(22, 22, 22, 0.96),
    rgba(14, 14, 14, 0.96)
  );
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.earn-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 2s ease-in-out;
  animation: featuredGlowFade 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes featuredGlowFade {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.5;
  }
}

.earn-card.featured:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.earn-card.featured .earn-card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}
.earn-card.featured .earn-card-arrow {
  color: rgba(255, 255, 255, 0.65);
}

/* One-Time Bundles — Rarity Deal Cards */
/* Profile Identity Card */

.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.rank-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: rankChipShine 2.8s linear infinite;
  pointer-events: none;
}

@keyframes rankChipShine {
  to {
    transform: translateX(140%);
  }
}

.rank-chip.rank-chip-sm {
  padding: 3px 9px;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
}

.rank-chip.rank-chip-xs {
  padding: 3px 7px;
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

.rank-chip.unranked {
  color: #d1d5db;
  border-color: rgba(156, 163, 175, 0.4);
  background: linear-gradient(
    135deg,
    rgba(90, 96, 107, 0.38),
    rgba(52, 57, 66, 0.28)
  );
}

.rank-chip.bronze {
  color: #ffd8b5;
  border-color: rgba(205, 127, 50, 0.55);
  background: linear-gradient(
    135deg,
    rgba(145, 95, 48, 0.55),
    rgba(106, 69, 34, 0.42)
  );
  box-shadow: 0 0 14px rgba(205, 127, 50, 0.22);
}

.rank-chip.silver {
  color: #f3f4f6;
  border-color: rgba(192, 192, 192, 0.55);
  background: linear-gradient(
    135deg,
    rgba(146, 154, 170, 0.56),
    rgba(108, 115, 128, 0.42)
  );
  box-shadow: 0 0 14px rgba(192, 192, 192, 0.2);
}

.rank-chip.gold {
  color: #fff3ce;
  border-color: rgba(251, 191, 36, 0.62);
  background: linear-gradient(
    135deg,
    rgba(191, 140, 38, 0.62),
    rgba(153, 110, 26, 0.48)
  );
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.24);
}

.rank-chip.diamond {
  color: #dff5ff;
  border-color: rgba(96, 165, 250, 0.62);
  background: linear-gradient(
    135deg,
    rgba(67, 125, 204, 0.62),
    rgba(45, 92, 160, 0.48)
  );
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.24);
}

.rank-chip.mythic {
  color: #ffe0e0;
  border-color: rgba(239, 68, 68, 0.68);
  background: linear-gradient(
    135deg,
    rgba(169, 32, 32, 0.72),
    rgba(118, 16, 16, 0.58)
  );
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.26);
}

@media (max-width: 360px) {
}

/* XP section inside identity card */

/* Reusable level progress bar (used in identity card) */

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Referral section */

/* Profile settings button */

/* Legacy profile-balance-hero (used in creator portal) */

@media (max-width: 360px) {
}

/* XP Shop Modal */

/* ── Universal Spend Confirmation Bottom Sheet ────────────────────────────── */
.spend-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.spend-backdrop.open {
  opacity: 1;
}
.spend-sheet {
  width: 100%;
  background: rgba(6, 14, 34, 0.94);
  -webkit-backdrop-filter: blur(30px) saturate(220%);
  backdrop-filter: blur(30px) saturate(220%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px 28px 0 0;
  padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 1, 0.6, 1);
  box-shadow:
    0 -16px 60px rgba(0, 5, 30, 0.7),
    0 -4px 20px rgba(0, 10, 50, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.spend-backdrop.open .spend-sheet {
  transform: translateY(0);
}
.spend-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}
.spend-icon-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
}
.spend-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-align: center;
}
.spend-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
  text-align: center;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spend-summary {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.spend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.spend-row:last-child {
  border-bottom: none;
}
.spend-row-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.spend-row-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.spend-row-value.accent {
  color: rgba(255, 255, 255, 0.85);
}
.spend-warn {
  color: #f59e0b !important;
}
.topup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.topup-item-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.topup-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}
.topup-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.topup-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topup-item-price {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.spend-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.spend-btn-cancel {
  flex: 1;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.spend-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}
.spend-btn-ok {
  flex: 2;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--btn-cta-border);
  background: var(--btn-cta-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--btn-cta-color);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--btn-cta-shadow);
}
.spend-btn-ok:active {
  opacity: 0.82;
}
.spend-btn-ok:hover {
  background: var(--btn-cta-bg-hover);
  box-shadow: var(--btn-cta-shadow-hover);
}

/* ── Onboarding overlay ── */
.onboarding-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.onboarding-backdrop.open {
  opacity: 1;
}
.onboarding-card {
  width: calc(100% - 48px);
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.32, 1, 0.6, 1),
    opacity 0.35s ease;
}
.onboarding-backdrop.open .onboarding-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.onboarding-skip {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  z-index: 2;
}
.onboarding-steps {
  position: relative;
  min-height: 260px;
}
.onboarding-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}
.onboarding-step--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.onboarding-step--exiting {
  opacity: 0;
  transform: translateX(-50px);
}
.onboarding-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.onboarding-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.onboarding-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.onboarding-sub {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 270px;
  margin-bottom: 22px;
}
.onboarding-pills {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.onboarding-pill {
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.onboarding-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}
.onboarding-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition:
    background 0.25s,
    transform 0.25s;
}
.onboarding-dot--active {
  background: var(--accent);
  transform: scale(1.2);
}
.onboarding-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.onboarding-btn:active {
  background: rgba(255, 255, 255, 0.08);
}
.onboarding-btn--primary {
  background: var(--accent);
  border-color: var(--accent-2);
  color: #fff;
}
.onboarding-btn--primary:active {
  background: var(--accent-2);
}

/* Stats Section - Premium Design */
.stats-section {
  background-color: var(--glass-panel-base-strong);
  background-image: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.stats-section::after {
  content: "";
  position: absolute;
  inset: -42% -20% auto -20%;
  height: 86%;
  background:
    radial-gradient(
      ellipse at 24% 28%,
      rgba(162, 190, 255, 0.14),
      transparent 64%
    ),
    radial-gradient(
      ellipse at 78% 12%,
      rgba(88, 126, 236, 0.12),
      transparent 58%
    );
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stats-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.stats-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4ade80;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
}

.stats-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  position: relative;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--stat-accent, rgba(34, 197, 94, 0.5)),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

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

.stat-card:active {
  transform: translateY(0);
}

/* Stat card color variants */
.stat-card.stat-boosts {
  --stat-accent: #f59e0b;
}
.stat-card.stat-daily {
  --stat-accent: #64748b;
}
.stat-card.stat-cashback {
  --stat-accent: #22c55e;
}
.stat-card.stat-referrals {
  --stat-accent: #3b82f6;
}
.stat-card.stat-creators {
  --stat-accent: #64748b;
}
.stat-card.stat-earned {
  --stat-accent: #22c55e;
}

.stat-card.stat-boosts .stat-card-icon {
  background: rgba(245, 158, 11, 0.15);
}
.stat-card.stat-daily .stat-card-icon {
  background: rgba(100, 116, 139, 0.15);
}
.stat-card.stat-cashback .stat-card-icon {
  background: rgba(255, 255, 255, 0.052);
}
.stat-card.stat-referrals .stat-card-icon {
  background: rgba(59, 130, 246, 0.15);
}
.stat-card.stat-creators .stat-card-icon {
  background: rgba(100, 116, 139, 0.15);
}
.stat-card.stat-earned .stat-card-icon {
  background: rgba(255, 255, 255, 0.052);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
}
.stat-card-icon svg {
  width: 20px;
  height: 20px;
}
.stat-card.stat-boosts .stat-card-icon {
  color: #f59e0b;
}
.stat-card.stat-referrals .stat-card-icon {
  color: #3b82f6;
}
.stat-card.stat-creators .stat-card-icon {
  color: #64748b;
}
.stat-card.stat-earned .stat-card-icon {
  color: #22c55e;
}

.stat-card-content {
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.stat-card-action {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--stat-accent, #22c55e);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.stat-card:hover .stat-card-action {
  opacity: 1;
}

/* Legacy stat-grid for other pages */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.stat:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 6px;
  color: #fff;
}

.stat-action {
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.action-list {
  display: grid;
  gap: 8px;
}

.action-btn {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(8, 11, 16, 0.92);
  background-image: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.014)
  );
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: rgba(255, 255, 255, 0.94);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.action-btn::before {
  display: none;
}

.action-btn.secondary {
  background: rgba(12, 15, 22, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.action-btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(16, 20, 28, 0.9);
  color: rgba(255, 255, 255, 0.92);
}

.action-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(11, 14, 20, 0.94);
  background-image: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.016)
  );
  box-shadow: none;
}

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

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 22, 36, 0.58);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
}

.chip.active {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.17),
    rgba(255, 255, 255, 0.08)
  );
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-shadow: none;
}

.tag.muted {
  background: linear-gradient(
    135deg,
    rgba(110, 106, 100, 0.15),
    rgba(110, 106, 100, 0.08)
  );
  color: var(--muted);
  border-color: rgba(110, 106, 100, 0.2);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
/* Owned Creators Button */
/* My Creators Pill (compact header button) */
.my-creators-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 16px rgba(0, 0, 0, 0.3);
}
.my-creators-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.88;
  flex-shrink: 0;
}
.my-creators-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}
.my-creators-pill:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.browse-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browse-pagination-bottom {
  margin-top: 12px;
  padding: 0 16px 12px;
  justify-content: center;
}

.browse-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.browse-page-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.browse-page-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

@media (max-width: 720px) {
  .my-creators-pill {
    height: 34px;
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

/* ── Grid Load More Button ── */
.grid-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  font-family: "Manrope", sans-serif;
  margin-top: 4px;
}
.grid-load-more svg {
  opacity: 0.5;
}
.grid-load-more:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Grid Pagination */
.grid-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 4px;
}
.grid-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.grid-page-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.grid-page-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.grid-page-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  min-width: 50px;
  text-align: center;
}

/* ── Grid Card Entrance Animation ── */
@keyframes gridCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── View Mode Toggle ── */
.view-mode-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 2px;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.view-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
  padding: 0;
}

.view-mode-btn svg {
  width: 13px;
  height: 13px;
}

.view-mode-btn.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #4ade80;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.view-mode-btn:not(.active):hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Grid Card Favorite Button ── */
.grid-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  padding: 0;
  line-height: 1;
}

.grid-card-fav-btn:active {
  transform: scale(1.2);
}

.grid-card-fav-btn.active {
  background: rgba(220, 40, 60, 0.45);
  border-color: rgba(220, 40, 60, 0.4);
}

/* Grid card status tag */
.grid-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.grid-card-tag.owned {
  background: rgba(255, 255, 255, 0.088);
  color: #34d399;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.grid-card-tag.free {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.grid-card-tag.vip {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.28),
    rgba(154, 122, 47, 0.26)
  );
  color: #f5deb3;
  border: 1px solid rgba(201, 169, 98, 0.4);
  cursor: pointer;
}

/* Grid card platform row */
.grid-card-platform-row {
  display: flex;
  gap: 6px;
  overflow: hidden;
}
.grid-card-platform {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ── Swipe Creator Carousel ── */
.swipe-carousel-container {
  overflow: hidden;
  margin: 12px 0 0;
  border-radius: 0 0 12px 12px;
}

.swipe-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.swipe-carousel-track {
  display: flex;
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
}

/* Progress bar */
.swipe-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  z-index: 10;
  touch-action: none;
}

.swipe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 0 2px 2px 0;
  transition: width 0.25s ease;
}

.swipe-progress-label {
  position: absolute;
  top: 8px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

/* Card */
.swipe-card {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  background: #0a0c10;
  overflow: hidden;
}

.swipe-card-media-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0a0c10;
}

.swipe-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swipe-card-media-placeholder {
  background: rgba(255, 255, 255, 0.03);
}

/* Full overlay on top of media */
.swipe-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

/* Heart button */
.swipe-card-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  padding: 0;
  line-height: 1;
  pointer-events: auto;
}

.swipe-card-heart:active {
  transform: scale(1.3);
}

.swipe-card-heart.active {
  background: rgba(220, 40, 60, 0.35);
  border-color: rgba(220, 40, 60, 0.5);
}

/* Bottom gradient + info */
.swipe-card-bottom {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 55%,
    transparent 100%
  );
  padding: 48px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.swipe-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swipe-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.swipe-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.swipe-card-vip-tag {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.26),
    rgba(154, 122, 47, 0.24)
  );
  color: #f5deb3;
  border: 1px solid rgba(201, 169, 98, 0.4);
  cursor: pointer;
}

.swipe-card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.swipe-card-buy {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--btn-cta-border);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease;
  background: var(--btn-cta-bg);
  color: var(--btn-cta-color);
  letter-spacing: 0.02em;
  box-shadow: var(--btn-cta-shadow);
}

.swipe-card-buy:active {
  transform: scale(0.97);
}

.swipe-card-buy.owned {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swipe-card-buy.free {
  background: linear-gradient(135deg, #2ea043, #238636);
  color: #fff;
}

.creator-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(244, 246, 248, 0.08);
  background: linear-gradient(
    135deg,
    rgba(15, 21, 29, 0.9),
    rgba(11, 15, 20, 0.95)
  );
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.creator-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.creator-card:hover {
  border-color: rgba(216, 179, 106, 0.4);
  transform: none;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(216, 179, 106, 0.2);
  background: linear-gradient(
    135deg,
    rgba(15, 21, 29, 0.95),
    rgba(11, 15, 20, 1)
  );
}

.creator-card:hover::before {
  transform: scaleY(1);
}

.creator-preview-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    rgba(18, 24, 32, 0.98),
    rgba(8, 12, 18, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.creator-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(216, 179, 106, 0.12),
    transparent 55%
  );
  opacity: 0.9;
  pointer-events: none;
}

.creator-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 179, 106, 0.45);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(216, 179, 106, 0.2);
}

.browse-platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.browse-platform-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.58rem;
  font-weight: 600;
  border: 1px solid;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.creator-preview-media {
  border-radius: 14px;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
  background: rgba(0, 0, 0, 0.28);
}

.creator-preview-media[poster],
.creator-preview-media:not([poster]) {
  background: rgba(0, 0, 0, 0.25);
}

.creator-preview-card video.creator-preview-media {
  pointer-events: none;
  object-position: center 20%;
}

.creator-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.creator-title-inline {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.creator-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-weight: 700;
}

.creator-price-row {
  display: flex;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Maintenance Screen ── */
.maintenance-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  min-height: 60vh;
  animation: cdFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.maintenance-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.maintenance-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.maintenance-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  max-width: 280px;
}

.maintenance-retry {
  margin-top: 24px;
  padding: 10px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.maintenance-retry:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.maintenance-retry:active {
  transform: scale(0.96);
}

/* ── Creator Detail Page (Redesign) ── */
@keyframes cdFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cdHeroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

/* ========================================
   Creator Detail Page — Clean Media-First
   ======================================== */
.creator-detail-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 32px;
  margin-left: -18px;
  margin-right: -18px;
  width: calc(100% + 36px);
  background: transparent;
  position: relative;
  z-index: 1;
}

.app:has(.creator-detail-page) {
  padding-top: 0;
}
.screen:has(.creator-detail-page) {
  position: relative;
  gap: 0;
}

/* ── Hero Media ── */
.cd-hero {
  position: relative;
  overflow: hidden;
  background: #08080a;
  max-height: 65vh;
}

/* Grid overlay on hero images to unify with page grid */
body.grid-bg .cd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
}

.cd-hero-fade {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40%;
  pointer-events: none;
  z-index: 2;
}

/* ── Scroll-snap carousel track ── */
.cd-hero-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  /* Hide iOS Safari's overlay scroll indicator below the clipped hero area. */
  padding-bottom: 14px;
  margin-bottom: -14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.cd-hero-track::-webkit-scrollbar {
  display: none;
}

.cd-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  max-height: 65vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  position: relative;
}

.cd-hero-slide img,
.cd-hero-slide video {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: cover;
}

.cd-hero-slide .media-container {
  display: block;
  width: 100%;
}

/* ── Hero bottom bar (name + share + dots) ── */
.cd-hero-bottom {
  position: relative;
  z-index: 3;
  margin-top: -46px;
  padding: 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-hero-bottom--stepped::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -8px;
  height: 12px;
  background: #08080a;
  pointer-events: none;
  z-index: 1;
}

.cd-hero-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 2px;
}

/* ── Media step bar ── */
.cd-hero-steps {
  display: flex;
  gap: 4px;
  padding: 2px 2px 0;
  position: relative;
  z-index: 4;
}

.cd-hero-step {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease;
}

.cd-hero-step.active {
  background: rgba(255, 255, 255, 0.85);
}

img.media-container {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

video.media-container {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000;
}

.cd-hero-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.cd-hero-action-btn svg {
  width: 20px;
  height: 20px;
}

.cd-hero-action-btn:active {
  transform: scale(0.88);
}

/* ── Body (below hero) ── */
.cd-body {
  position: relative;
  z-index: 2;
  padding: 10px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Name (inside hero overlay) ── */
.cd-name {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ── CTA Buy Button ── */
.cd-cta {
  width: 100%;
}

.cd-cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}

.cd-cta-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.cd-cta-btn.btn-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Pack Detail — Vault Card ── */
.pack-vault {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pack-vault--owned {
  background: linear-gradient(
    160deg,
    rgba(34, 197, 94, 0.09),
    rgba(13, 148, 136, 0.04)
  );
  border-color: rgba(34, 197, 94, 0.16);
}

.pack-vault-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pack-vault-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pack-vault--owned .pack-vault-icon {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.22);
}

.pack-vault-copy {
  flex: 1;
  min-width: 0;
}

.pack-vault-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

.pack-vault-subtitle {
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

.pack-vault-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pack-vault-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.pack-vault-tag svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.pack-vault-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.pack-vault-note {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.35);
}

.pack-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.pack-file-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pack-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.pack-file-row--owned {
  background: rgba(34, 197, 94, 0.04);
}
.pack-file-type {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pack-file-type--photo {
  color: rgba(96, 165, 250, 0.7);
}
.pack-file-type--video {
  color: rgba(167, 139, 250, 0.7);
}
.pack-file-duration {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 6px;
}
.pack-file-row--owned .pack-file-type {
  color: rgba(34, 197, 94, 0.5);
}
.pack-file-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
}
.pack-file-row--owned .pack-file-label {
  color: rgba(34, 197, 94, 0.6);
}
.pack-file-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pack-file-badge--locked {
  color: rgba(255, 255, 255, 0.15);
}
.pack-file-badge--preview {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}
.pack-file-badge--owned {
  color: #22c55e;
}
.pack-file-hint {
  font-size: 12px;
  color: var(--hint);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Pack Detail — Price Row ── */
.pack-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
.pack-price-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pack-price-value {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Pack Detail — CTA Section ── */
.pack-cta-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pack-cta-resend {
  background: linear-gradient(135deg, #374151, #4b5563);
  justify-content: center;
  text-align: center;
}
.pack-cta-free {
  background: linear-gradient(135deg, #059669, #10b981);
  justify-content: center;
  text-align: center;
}

.pack-buy-section {
  gap: 10px;
}

/* ── Shared payment method toggle (used on pack + subscription pages) ── */
.pay-method-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pay-method-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pay-method-opt:active {
  transform: scale(0.98);
}

.pay-method-opt.selected {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.pay-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pack-buy-btn {
  padding: 14px 16px;
  border-radius: 14px;
  border-width: 1px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
}

.pack-buy-btn.pack-buy-btn--stars {
  background: linear-gradient(
    180deg,
    rgba(146, 97, 24, 0.5),
    rgba(84, 53, 10, 0.72)
  );
  border-color: rgba(245, 158, 11, 0.22);
}

.pack-buy-btn.pack-buy-btn--stripe {
  background: linear-gradient(
    180deg,
    rgba(99, 91, 255, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  border-color: rgba(99, 91, 255, 0.18);
}

.pack-buy-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pack-buy-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Card panels ── */
.cd-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cd-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}

/* ── Locked Links ── */
.cd-links-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.cd-links-locked svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.4;
}

.cd-links-locked-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.cd-links-locked-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
}

/* ── Unlocked Links ── */
.cd-links-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cd-link-row:active {
  transform: scale(0.98);
  opacity: 0.8;
}

.cd-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.cd-link-icon svg {
  width: 24px;
  height: 24px;
}

.cd-link-icon-tg {
}

.cd-link-icon-tg img {
  width: 26px;
  height: 26px;
}

.cd-link-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cd-link-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.cd-link-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
}

.cd-link-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
}

.cd-link-tag-open {
  background: rgba(46, 125, 50, 0.2);
  color: #81c784;
}

.cd-link-tag-paid {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}

.cd-link-row > svg:last-child {
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ── Bio ── */
.cd-bio {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-height: 4.8em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cd-bio a {
  color: rgba(100, 180, 255, 0.85);
  text-decoration: none;
}

.cd-bio.expanded {
  max-height: 1000px;
}

.cd-bio-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
}

.cd-bio-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Subscription Detail Page
   ======================================== */

/* ── Headline & description ── */
.sub-headline {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.3px;
}

.sub-description {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  margin: 0;
}

/* ── Active subscription badge ── */
.sub-active-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.06),
    rgba(22, 163, 74, 0.03)
  );
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.sub-active-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-active-info {
  flex: 1;
  min-width: 0;
}

.sub-active-title {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
}

.sub-active-detail {
  font-size: 12px;
  color: var(--hint);
  margin-top: 3px;
}

/* ── Benefits list ── */
.sub-benefits-card {
  padding: 4px 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.04),
    rgba(255, 255, 255, 0.025) 40%,
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2.5px solid rgba(34, 197, 94, 0.4);
  overflow: hidden;
}

.sub-benefits-list {
  display: flex;
  flex-direction: column;
}

.sub-benefit-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(5px);
  animation: benefitFadeIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.sub-benefit-row:last-child {
  border-bottom: none;
}

@keyframes benefitFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.1);
  color: #34d399;
  flex-shrink: 0;
}

.sub-benefit-icon svg {
  width: 15px;
  height: 15px;
}

.sub-benefit-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sub-benefit-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.sub-benefit-desc {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.35;
}

/* ── Tier card list ── */
.sub-tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-tier-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  color: inherit;
}

.sub-tier-card:active {
  transform: scale(0.98);
}

.sub-tier-card.selected {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.06);
}

/* Radio circle */
.sub-tier-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.sub-tier-card.selected .sub-tier-radio {
  border-color: #7c3aed;
}

.sub-tier-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.15s ease;
}

.sub-tier-card.selected .sub-tier-radio-dot {
  background: #7c3aed;
}

/* Tier info */
.sub-tier-info {
  flex: 1;
  min-width: 0;
}

.sub-tier-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.sub-tier-badge {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.sub-tier-badge-trial {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.sub-tier-badge-lifetime {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.sub-tier-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  line-height: 1.4;
}

/* Tier price column */
.sub-tier-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.sub-tier-price {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.sub-tier-price .sub-sel-free {
  font-size: 15px;
  font-weight: 700;
  color: #22c55e;
}

.sub-tier-price .sub-sel-amount {
  font-size: 15px;
}

.sub-tier-dur {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}

.sub-trial-used {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ── Premium / payment card ── */
.sub-premium-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Payment method toggle (Stars / Card) */
.sub-pay-buttons {
  display: flex;
  gap: 6px;
}

.sub-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
}

.sub-pay-btn:active {
  transform: scale(0.97);
}

.sub-pay-btn.selected {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.14);
  color: #fff;
}

.sub-pay-btn-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sub-pay-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-pay-btn-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ── Main CTA button ── */
.sub-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
  text-align: left;
  box-shadow: none;
}

.sub-cta-btn.sub-cta-stars {
  background: transparent;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  box-shadow: none;
  color: #fbbf24;
}

.sub-cta-btn.sub-cta-stars .sub-cta-title {
  color: #fbbf24;
}

.sub-cta-btn.sub-cta-stars .sub-cta-sub {
  color: rgba(251, 191, 36, 0.6);
}

.sub-cta-btn.sub-cta-stars .sub-cta-price {
  color: #fbbf24;
}

.sub-cta-btn.sub-cta-stripe {
  background: linear-gradient(135deg, #635bff, #4f46e5);
  box-shadow: none;
}

.sub-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.sub-cta-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.sub-cta-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  line-height: 1.25;
}

.sub-cta-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (max-width: 360px) {
  .sub-cta-btn {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-cta-price {
    justify-content: flex-start;
  }

  .pack-buy-btn {
    flex-direction: row;
    align-items: center;
  }

  .pack-buy-price {
    justify-content: flex-end;
  }
}

.sub-cta-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.sub-cta-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ── CTA stack ── */
.sub-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Subscription page layout ── */
.cd-body--sub {
  gap: 16px;
}

.sub-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Join channel button ── */
.sub-join-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(22, 163, 74, 0.12)
  );
  color: #22c55e;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-join-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ── Manage / cancel button ── */
.sub-manage-btn {
  width: 100%;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.sub-manage-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.sub-manage-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Admin Section ── */
.cd-admin-section {
  margin-top: 8px;
}

.cd-action-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cd-action-row svg {
  width: 14px;
  height: 14px;
}

.cd-action-row:active {
  transform: scale(0.95);
}

.tg-star {
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}

.carousel-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 18px;
  pointer-events: none;
  z-index: 2;
  position: absolute;
  top: 8px;
  left: 8px;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cd-tag-category {
  background: rgba(29, 191, 115, 0.15);
  color: #2dd48a;
  border: 1px solid rgba(29, 191, 115, 0.25);
}

.creator-media-body {
  width: 100%;
}

.creator-media-body .media-container {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Admin panel ── */
.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-menu-section {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
}
.admin-menu-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.admin-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ── Bulk Select ── */
.bulk-select-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
}
.bulk-select-bar label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.bulk-select-bar #bulkCount {
  margin-left: auto;
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 600;
}
.bulk-check {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
  cursor: pointer;
  flex-shrink: 0;
}
.bulk-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.bulk-action-bar button {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bulk-action-bar button:active {
  transform: scale(0.95);
  opacity: 0.9;
}
.admin-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  text-align: center;
  font-family: inherit;
}
.admin-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}
.admin-btn:active {
  transform: scale(0.97);
}
.admin-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Analytics dashboard ---------------------------------------------- */
.ana-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.ana-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  font-family: inherit;
}
.ana-tab.active {
  background: rgba(224, 196, 132, 0.12);
  border-color: rgba(224, 196, 132, 0.3);
  color: #e0c484;
}
.ana-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.07);
}
.ana-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ana-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.ana-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ana-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 0;
}
.ana-stat-row small {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: 4px;
}
.ana-positive {
  color: #4ade80;
}
.ana-negative {
  color: #f87171;
}
.ana-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ana-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .ana-stat-grid {
    grid-template-columns: 1fr;
  }
  .ana-two-col {
    grid-template-columns: 1fr;
  }
}
.ana-days-row {
  display: flex;
  gap: 6px;
}
.ana-days-row .chip.active {
  background: rgba(224, 196, 132, 0.15);
  border-color: rgba(224, 196, 132, 0.3);
  color: #e0c484;
}

/* ---- Unified media slot grid ------------------------------------------ */
.media-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.media-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.media-slot-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 11px;
}

.media-slot-img img,
.media-slot-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-slot--empty {
  border: 2px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 4px;
}

.media-slot-num {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 1px 4px;
  z-index: 2;
  pointer-events: none;
}

.media-slot--empty .media-slot-num {
  position: static;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.media-slot-plus {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.media-slot-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-slot-x:hover {
  background: rgba(210, 35, 35, 0.88);
}

.media-slot-make-primary {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fbbf24;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-slot-make-primary:hover {
  background: rgba(40, 40, 40, 0.88);
  color: #fcd34d;
}

.media-slot-arrows {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  gap: 2px;
  z-index: 3;
}

.media-slot-arrow {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-slot-arrow:hover {
  background: rgba(40, 40, 40, 0.88);
  color: #fff;
}

.media-slot-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
/* ----------------------------------------------------------------------- */

.creator-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-title-text {
  flex: 1 1 auto;
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-title-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.credits-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.042) !important;
  color: #22c55e !important;
  border: 1px solid rgba(255, 255, 255, 0.077) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 0.7rem !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.category-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(29, 191, 115, 0.15),
    rgba(29, 191, 115, 0.06)
  ) !important;
  color: #1dbf73 !important;
  border: 1px solid rgba(29, 191, 115, 0.22) !important;
  box-shadow:
    0 2px 8px rgba(29, 191, 115, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 0.7rem !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.creator-price-row.muted {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.creator-actions {
  display: grid;
  gap: 10px;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Unlocked badge */
.unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(29, 191, 115, 0.15),
    rgba(29, 191, 115, 0.06)
  );
  color: #1dbf73;
  border: 1px solid rgba(29, 191, 115, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.unlocked-badge svg {
  width: 16px;
  height: 16px;
}

.unlocked-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(29, 191, 115, 0.2);
  font-size: 0.65rem;
  font-weight: 800;
}

/* Owned creator links (moved to cd- section above) */

.link-list {
  display: grid;
  gap: 8px;
}

.link-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  word-break: break-all;
}

.link-actions {
  display: flex;
  gap: 8px;
}

.back-row {
  display: flex;
  justify-content: flex-start;
}

.back-inline {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.back-inline:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.price-shiny {
  background: linear-gradient(
    90deg,
    #ead7a2 0%,
    #ffd700 25%,
    #ffec80 50%,
    #ffd700 75%,
    #ead7a2 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: priceShine 3s linear infinite;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes priceShine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.platform-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.toggle-title {
  font-weight: 700;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3b4657;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-tech);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.text-area {
  width: 100%;
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px;
  font-family: "Manrope", sans-serif;
  background: var(--surface-2);
  color: var(--ink);
}

.list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  border-radius: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.list-row > * {
  min-width: 0;
}

.list-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.request-details {
  display: grid;
  gap: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.request-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
}

.request-link {
  display: grid;
  gap: 4px;
  max-width: 100%;
}

.request-link-name {
  font-weight: 600;
  color: var(--ink);
}

.request-link-url {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.code-wrap {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px 2px;
}
.screen {
  display: grid;
  gap: 16px;
  min-height: 260px;
  min-width: 0;
}

/* ── Bottom Tab Bar ── */
.bottom-nav {
  display: flex;
  align-items: stretch;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  z-index: 120;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.98)),
    linear-gradient(
      90deg,
      rgba(201, 169, 98, 0.03) 0%,
      transparent 40%,
      transparent 60%,
      rgba(201, 169, 98, 0.03) 100%
    );
  border-top: none;
  border-radius: 24px 24px 0 0;
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.5),
    0 -1px 0 rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: visible;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 9px;
  border: none;
  border-radius: 0;
  min-width: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn[hidden] {
  display: none !important;
}

/* White indicator line at top of active tab */
.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.26);
  transition: transform 0.18s ease-out;
}

.nav-btn.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
}

.nav-btn:active {
  color: rgba(255, 255, 255, 0.7);
}

.nav-btn.active {
  color: #ffffff;
}

.nav-btn.active .nav-icon {
  transform: translateY(-1px);
}

/* ── Home Page ── */
.home-page {
  padding: 0 0 110px;
  position: relative;
}

.home-hero {
  text-align: left;
  padding: 40px 20px 20px;
  position: relative;
}

/* ── "Your Balance" label ── */
.home-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

/* ── Balance row: number + earned tag inline ── */
.home-hero-balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Big balance number ── */
.home-hero-balance {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Earned today tag (sits beside balance) ── */
.home-hero-earned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  flex-shrink: 0;
}

.home-hero-earned svg {
  width: 14px;
  height: 14px;
  stroke: #4ade80;
}

.home-hero-earned--zero {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Action buttons row: [Add Credits (wide)] [Invite] [VIP] ── */
.home-actions-row {
  display: flex;
  gap: 8px;
  padding: 4px 20px 24px;
}

.home-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s ease-out;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.home-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.home-action-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.97);
}

/* Primary button takes remaining space */
.home-action-btn--primary {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.home-action-btn--primary svg {
  width: 20px;
  height: 20px;
}

.home-action-btn--primary:active {
  background: rgba(255, 255, 255, 0.16);
}

/* ── Home Section Overline Label ── */
.home-section-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 18px;
  margin-bottom: 10px;
}

/* ── Overview Stats Row ── */
.home-stats-row {
  display: flex;
  gap: 10px;
  padding: 0 18px 20px;
}

.home-stat-tile {
  flex: 1;
  text-align: center;
  padding: 14px 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.home-stat-tile:active {
  background: rgba(255, 255, 255, 0.07);
}

.home-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.home-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── XP Progress Card ── */
.home-xp-card {
  margin: 0 18px 20px;
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.home-xp-card:active {
  background: rgba(255, 255, 255, 0.07);
}

.home-xp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.home-xp-rank {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.home-xp-pct {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.home-xp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.home-xp-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  transition: width 0.6s ease-out;
}

.home-xp-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  text-align: center;
}

/* ── More Links ── */
.home-links {
  margin: 0 18px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

.home-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.home-link-row + .home-link-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-link-row:active {
  background: rgba(255, 255, 255, 0.06);
}

.home-link-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
}

.home-link-icon svg {
  width: 18px;
  height: 18px;
}

.home-link-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.home-link-badge {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

.home-link-chevron {
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
}

.home-link-chevron svg {
  width: 14px;
  height: 14px;
}

.home-link-row--vip .home-link-icon {
  color: #fbbf24;
}

.home-link-row--vip .home-link-text {
  color: #fbbf24;
}

.home-link-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(251, 191, 36, 0.5);
  margin-top: 1px;
}

/* ── VIP Upgrade Banner (above More links) ── */
.home-vip-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px 10px;
  padding: 12px 14px;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.12),
    rgba(232, 212, 139, 0.05)
  );
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.home-vip-banner:active {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.2),
    rgba(232, 212, 139, 0.1)
  );
}

.home-vip-banner-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0d896;
  flex-shrink: 0;
}

.home-vip-banner-icon svg {
  width: 24px;
  height: 24px;
}

.home-vip-banner-body {
  flex: 1;
  min-width: 0;
}

.home-vip-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0d896;
  letter-spacing: 0.01em;
}

.home-vip-banner-sub {
  font-size: 11px;
  color: rgba(240, 216, 150, 0.55);
  margin-top: 1px;
  letter-spacing: 0.01em;
}

.home-vip-banner-chevron {
  color: rgba(240, 216, 150, 0.4);
  flex-shrink: 0;
}

.home-vip-banner-chevron svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 480px) {
  .home-section-label {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-links {
    margin-left: 12px;
    margin-right: 12px;
  }

  .home-hero {
    padding: 32px 14px 16px;
  }

  .home-hero-balance {
    font-size: 44px;
  }

  .home-hero-balance-row {
    gap: 8px;
  }

  .home-actions-row {
    padding: 4px 14px 20px;
  }

  .home-action-btn {
    padding: 12px 12px;
    font-size: 12px;
  }

  .home-action-btn--primary {
    font-size: 14px;
  }
}

/* ── Studio Pill (creator-only, fixed top-right on Home screen) ── */
.studio-pill {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.studio-pill[hidden] {
  display: none !important;
}

.studio-pill:active {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.96);
}

/* ── Profile Page (settings-style) ── */

/* Mobile tweaks: adjust spacing on phones */
@media (max-width: 480px) {
}

/* ── Identity card: avatar + info top, XP bar bottom ── */

/* Meta row: rank chip + VIP/FREE badge side by side */

/* Stats bar */

/* Group label spacing */

@keyframes premium-cta-shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Premium upsell row variant */

/* Premium identity card glow */

/* Coming-soon row: non-interactive */

/* Footer fine-print */

.action-btn:focus-visible,
.chip:focus-visible,
.nav-btn:focus-visible,
.back-inline:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

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

.form-group {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.bio-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.bio-tb-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bio-tb-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Ensure select option dropdowns are readable on dark theme */
select.form-input,
select.filter-select,
select.browse-sort-select,
select.gender-filter {
  color-scheme: dark;
}
select.form-input option,
select.filter-select option,
select.browse-sort-select option,
select.gender-filter option {
  background: #1e1e1e;
  color: #ffffff;
}

select.gender-filter {
  padding: 10px 12px;
  min-width: 90px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.form-input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.form-input[type="file"]::file-selector-button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.form-input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.card.warning {
  border-left: 3px solid #ff9800;
  background: rgba(255, 152, 0, 0.05);
}

.card.danger {
  border-left: 3px solid #f44336;
  background: rgba(244, 67, 54, 0.05);
}

.action-btn.danger {
  background: rgba(244, 67, 54, 0.14);
  border-color: rgba(244, 67, 54, 0.35);
  color: #ff6b6b;
}

.action-btn.danger:hover {
  background: rgba(244, 67, 54, 0.22);
  border-color: rgba(244, 67, 54, 0.5);
}

/* ── Modal System ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: overlayFadeIn 0.2s ease;
}

.modal {
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalScaleIn 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-content {
  background: var(--surface);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalScaleIn 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.modal-body {
  padding: 20px;
}

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

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.pagination span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.pagination .chip {
  min-width: 80px;
}

/* Responsive media container */
.media-container {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.media-error {
  width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.media-error.error-message {
  flex-direction: column;
  color: #f44336;
  padding: 20px;
  text-align: center;
}

/* ========================================
   Daily Spin — Full-Bleed Prize Carousel
   ======================================== */

/* ── Spin Section (full-bleed, no card wrapper) ── */

/* ── Integrated Header: balance · spins · next/claim ── */

/* Daily claim button integrated into header */

/* Win state — subtle glow on the section */

/* ── Carousel Layout (edge-to-edge) ── */

/* ── Wheel Switcher (segmented control) ── */
.wheel-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  margin: 4px 14px 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.wheel-switcher-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.wheel-switcher-tab:active {
  transform: scale(0.97);
}

.wheel-switcher-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* VIP tab — subtle gold hint even when inactive */
.wheel-switcher-tab[data-wheel="vip"] {
  color: rgba(201, 169, 98, 0.35);
}

.wheel-switcher-tab[data-wheel="vip"].active {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.22),
    rgba(232, 212, 139, 0.1)
  );
  color: #f0d896;
  box-shadow:
    0 0 14px rgba(201, 169, 98, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.12);
  text-shadow: 0 0 8px rgba(232, 212, 139, 0.25);
}

/* ── Wheel Outcomes (inline chips under switcher) ── */
.wheel-outcomes {
  padding: 0 14px;
  margin-bottom: 2px;
}

.wheel-outcomes .chip-row {
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.wheel-outcomes .chip {
  font-size: 0.55rem;
  padding: 2px 5px;
  gap: 2px;
  opacity: 0.8;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

/* ── Blurred Free Wheel (for VIP users) ── */

.wheel-free-locked {
  background: rgba(0, 0, 0, 0.45);
}

.wheel-free-locked .wheel-locked-content {
  color: #d4b866;
}

/* ── Locked VIP Wheel Overlay ── */
.wheel-locked-overlay {
  position: absolute;
  inset: -2px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
}

/* ── VIP Preview Hint (shown when VIP views free wheel) ── */
.wheel-preview-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(20, 18, 12, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 20px;
  color: #d4b866;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  z-index: 15;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wheel-locked-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 98, 0.2),
    rgba(232, 212, 139, 0.1)
  );
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 12px;
  color: #e8d48b;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wheel-locked-content svg {
  opacity: 0.8;
  stroke: #e8d48b;
}

/* Bottom center pill bar (Gifty-style) */

/* Top center pointer indicator (points down at center card) */

/* Downward-pointing triangle */

/* Spinning state: brighten the indicator */

/* ── Prize Cards ── */

/* Top edge highlight on each card */

/* ── Rarity bottom bar (colored strip at card bottom) ── */

/* ── Rarity: Miss (nothing — no color) ── */

/* ── Rarity: Common — grey (+2) ── */

/* ── Rarity: Uncommon — green (+5) ── */

/* ── Rarity: Rare — blue (+10) ── */

/* ── Rarity: Epic — purple/magenta (Fortnite-style) ── */

/* ── Rarity: Legendary — gold/orange (Fortnite-style) ── */

/* Winner highlight — applied after spin lands */

/* Amplify rarity glow on winner */

@keyframes prizeCardWin {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Prize card contents */

/* ── Shockwave effect (reused from wheel) ── */

@keyframes shockwave {
  0% {
    transform: scale(1);
    opacity: 1;
    border-width: 3px;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-width: 0.5px;
  }
}

/* Screen flash on big win */

@keyframes screenFlash {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ── Spin action buttons ── */

@keyframes btnShimmer {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

/* Button row for spin actions — adapts to 1 or 2 buttons */

/* All spin action buttons support two-line layout */

/* ── Buy Spins split layout (Gifty-style) ── */

/* Compact pay button keeps same padding as primary */

/* ── Spin Shop Bottom Sheet ──────────────────────────────────────────────── */
/* Header */
/* Prize display */
/* Perks / guarantees */
/* Pack buttons */

/* Try Again button */

/* ── Reward Popup Modal ── */

/* Subtle rotating glow for win */

@keyframes modalRays {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Top glow accent */

@keyframes iconEntrance {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes iconEntranceWin {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.25) rotate(8deg);
  }
  70% {
    transform: scale(0.95) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes valueGlow {
  0%,
  100% {
    text-shadow:
      0 0 20px rgba(var(--reward-rgb), 0.72),
      0 0 40px rgba(var(--reward-rgb), 0.18);
  }
  50% {
    text-shadow:
      0 0 28px rgba(var(--reward-rgb), 0.95),
      0 0 50px rgba(var(--reward-rgb), 0.4);
  }
}

/* Reward popup rarity mapping */

/* ── Spin outcome pills ── */

/* ========================================
   Premium Page (redesigned)
   ======================================== */

.prem-page {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}

.prem-page::before {
  content: "";
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 160vw;
  min-width: 820px;
  max-width: 1400px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(214, 179, 93, 0.12) 0%,
    rgba(214, 179, 93, 0.075) 22%,
    rgba(214, 179, 93, 0.035) 40%,
    rgba(214, 179, 93, 0.014) 56%,
    transparent 80%
  );
  filter: blur(54px);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.prem-page > * {
  position: relative;
  z-index: 1;
}

/* Hero */
.prem-hero {
  position: relative;
  text-align: center;
  padding: 24px 8px 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prem-hero-glow {
  position: absolute;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(214, 179, 93, 0.12) 0%,
    rgba(214, 179, 93, 0.055) 34%,
    transparent 76%
  );
  filter: blur(12px);
  opacity: 0.85;
  pointer-events: none;
  animation: prem-glow-pulse 3s ease-in-out infinite;
}

@keyframes prem-glow-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

.prem-hero-icon {
  position: relative;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 18px rgba(214, 179, 93, 0.28));
}

.prem-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.prem-hero-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.prem-hero-warn {
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Perks checklist */
.prem-perks {
  display: flex;
  flex-direction: column;
  gap: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0%,
      rgba(255, 255, 255, 0.01) 100%
    ),
    linear-gradient(180deg, rgba(18, 16, 13, 0.98) 0%, rgba(9, 9, 9, 0.98) 100%);
  border: 1px solid rgba(214, 179, 93, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.prem-perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
}

.prem-perk + .prem-perk {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prem-perk-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4ade80;
  font-size: 15px;
  font-weight: 800;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.prem-perk-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prem-perk-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.prem-perk-desc {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 400;
  line-height: 1.3;
}

/* CTA section */
.prem-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prem-cta-note {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}

.prem-cta-sale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Premium CTA button overrides for clean single-line layout */
.prem-cta-btn {
  gap: 6px;
  white-space: nowrap;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.prem-sale-copy,
.prem-sale-badge {
  color: #ffb56b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prem-sale-meta {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
}

.prem-cta-orig {
  opacity: 0.5;
  text-decoration: line-through;
  margin-right: 2px;
  color: rgba(255, 255, 255, 0.62);
}

.prem-cta-period {
  opacity: 0.72;
  font-weight: 500;
  margin-left: 1px;
}

/* Active banner */
.prem-active-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(180deg, rgba(20, 18, 14, 0.98) 0%, rgba(9, 9, 9, 0.98) 100%);
  border: 1px solid rgba(214, 179, 93, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.prem-active-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(214, 179, 93, 0.12);
  border: 1px solid rgba(214, 179, 93, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--premium-gold-rich);
  flex-shrink: 0;
}

.prem-active-icon svg {
  width: 18px;
  height: 18px;
}

.prem-active-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--premium-gold-rich);
}

.prem-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
  animation: overlayFadeIn 0.2s ease;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.prem-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 34px;
  border-radius: 26px 26px 0 0;
  border-top: 1px solid rgba(214, 179, 93, 0.22);
  border-left: 1px solid rgba(214, 179, 93, 0.08);
  border-right: 1px solid rgba(214, 179, 93, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.012) 100%
    ),
    linear-gradient(180deg, rgba(18, 16, 13, 0.99) 0%, rgba(7, 7, 7, 0.99) 100%);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.46),
    0 0 30px rgba(214, 179, 93, 0.08);
  animation: premModalSlideUp 0.24s ease;
}

.prem-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.prem-modal-close:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(214, 179, 93, 0.16);
  color: rgba(255, 255, 255, 0.86);
}

.prem-modal-top {
  text-align: center;
  margin-bottom: 22px;
}

.prem-modal-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(214, 179, 93, 0.1);
  border: 1px solid rgba(214, 179, 93, 0.14);
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(214, 179, 93, 0.08);
}

.prem-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--premium-gold-soft);
  letter-spacing: -0.3px;
}

.prem-modal-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 4px;
}

.prem-modal-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid rgba(214, 179, 93, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.prem-modal-perk {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prem-modal-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(214, 179, 93, 0.12);
  border: 1px solid rgba(214, 179, 93, 0.18);
  color: var(--premium-gold-rich);
  font-size: 14px;
  font-weight: 800;
}

.prem-modal-perk-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.prem-modal-sale {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.prem-modal-buy {
  width: 100%;
}

.prem-modal-orig {
  opacity: 0.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

.prem-modal-period {
  font-weight: 400;
  opacity: 0.72;
}

.prem-modal-note {
  text-align: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  margin-top: 10px;
}

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

.prem-active-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* ========================================
   Premium Page Styles (legacy)
   ======================================== */

/* Premium Stats */

/* Premium Breakdown */

/* Premium Section Header */

/* Premium Upgrade Styles */

/* Premium Info Box */

/* Premium Reward Banner */

/* Premium Link Box */

/* Premium Leaderboard */

/* Premium Action Button */

/* ── Boosts Page (red / covert) ── */

/* ── Referrals Page (purple / pink) ── */

/* Premium Boost Status */

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ── Landing Page ── */
.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 16px;
  gap: 0;
}

.landing-header {
  text-align: center;
  padding: 4px 0 20px;
}

.landing-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.landing-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 5px 0 0;
  font-weight: 500;
}

.landing-loader {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.landing-list {
  display: flex;
  flex-direction: column;
  background: var(--glass-panel-base);
  background-image: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background-clip: padding-box;
  box-shadow: var(--glass-shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.landing-creator-row {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ink, #fff);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.landing-creator-row:last-child {
  border-bottom: none;
}

.landing-creator-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.landing-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.landing-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  margin-right: 11px;
}

.landing-creator-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-creator-arrow {
  opacity: 0.18;
  flex-shrink: 0;
  margin-left: 6px;
}

.landing-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.landing-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(0, 110, 177, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.22);
  color: #7ec8f0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 14px;
}

.landing-channel-btn:active {
  background: rgba(0, 110, 177, 0.26);
  transform: scale(0.97);
}

.landing-channel-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── Empty State ── */
.landing-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 8px;
}

.landing-empty-icon {
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.landing-empty-icon svg {
  width: 48px;
  height: 48px;
}

.landing-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.landing-empty-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
  max-width: 260px;
}

/* ── Creator Landing Page ── */
.creator-landing-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 0 40px;
  min-width: 0;
  overflow: hidden;
}

.cl-header {
  position: relative;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cl-header-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.cl-share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 14, 0.42);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.cl-share-btn:active {
  transform: scale(0.96);
}

.cl-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 6px 8px 4px;
}

.cl-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.cl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-avatar-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(
    145deg,
    rgba(29, 78, 216, 0.35),
    rgba(15, 118, 110, 0.35)
  );
}

.cl-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}

.cl-bio {
  max-width: 320px;
  font-size: 0.87rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.cl-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.cl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cl-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.82;
}

.cl-links-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.cl-link-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  color: #fff;
}

.cl-link-icon:active {
  transform: scale(0.96);
}

.cl-link-icon-inner {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.24));
}

.cl-link-icon-inner img,
.cl-link-icon-inner svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cl-primary-btn,
.cl-secondary-btn,
.cl-ghost-btn {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.cl-primary-btn,
.cl-secondary-btn {
  flex: 1 1 0;
  min-width: 0;
}

.cl-primary-btn {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #06120f;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.2);
}

.cl-secondary-btn {
  background: rgba(9, 16, 23, 0.44);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.cl-ghost-btn {
  width: 100%;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.cl-primary-btn:active,
.cl-secondary-btn:active,
.cl-ghost-btn:active {
  transform: scale(0.98);
}

.cl-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.cl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
}

.cl-card-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cl-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.cl-section-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.cl-section-sub {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.56);
}

.cl-offer-card {
  gap: 12px;
}

.cl-offer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  opacity: 0.95;
}

.cl-offer-card--sub::before {
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.8),
    rgba(45, 212, 191, 0.08)
  );
}

.cl-offer-card--pack::before {
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.82),
    rgba(14, 165, 233, 0.08)
  );
}

.cl-offer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.cl-offer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cl-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
}

.cl-price-chip .tg-star {
  width: 13px;
  height: 13px;
}

.cl-offer-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.cl-offer-copy {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

.cl-sub-banner {
  position: relative;
  min-height: 248px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 211, 238, 0.18),
      transparent 36%
    ),
    radial-gradient(
      circle at top right,
      rgba(16, 185, 129, 0.16),
      transparent 32%
    ),
    linear-gradient(180deg, #0b1016 0%, #101922 52%, #12141c 100%);
}

.cl-sub-banner-media-wrap {
  position: absolute;
  inset: 0;
}

.cl-sub-banner-media,
.cl-sub-banner-media-wrap img,
.cl-sub-banner-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-sub-banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
}

.cl-sub-banner-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 12, 0.15) 0%,
      rgba(5, 8, 12, 0.38) 38%,
      rgba(5, 8, 12, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 8, 12, 0.2) 0%,
      transparent 42%,
      rgba(5, 8, 12, 0.18) 100%
    );
}

.cl-sub-banner-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 248px;
  padding: 16px;
}

.cl-sub-banner-top {
  display: flex;
  justify-content: flex-end;
}

.cl-sub-banner-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cl-sub-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cl-sub-banner-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.cl-sub-banner-title {
  max-width: 230px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cl-sub-banner-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(6, 10, 14, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.cl-sub-banner-btn {
  min-width: 96px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #0a0f14;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cl-sub-banner-btn:active {
  transform: scale(0.97);
}

.cl-packs-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cl-pack-grid--single {
  grid-template-columns: 1fr;
}

.cl-pack-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.84;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 18% 16%,
      rgba(255, 233, 177, 0.08),
      transparent 28%
    ),
    linear-gradient(165deg, rgba(17, 20, 27, 0.98), rgba(5, 7, 10, 1));
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.cl-pack-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    transparent 22%,
    transparent 72%,
    rgba(255, 214, 143, 0.08)
  );
  pointer-events: none;
  z-index: 0;
}

.cl-pack-card::after {
  content: "";
  position: absolute;
  inset: -18% 10% auto;
  height: 58%;
  background: radial-gradient(
    circle at center,
    rgba(255, 208, 120, 0.12) 0%,
    rgba(255, 208, 120, 0) 72%
  );
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.cl-pack-card--locked::after {
  opacity: 0.7;
}

.cl-pack-card:active {
  transform: scale(0.985);
}

.cl-pack-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    rgba(12, 15, 20, 0.98),
    rgba(5, 8, 12, 0.98)
  );
  z-index: 1;
}

.cl-pack-card-media::before {
  content: "";
  position: absolute;
  inset: -8% -22% 40%;
  background: radial-gradient(
    circle at center,
    rgba(255, 223, 158, 0.1),
    transparent 70%
  );
  filter: blur(12px);
  pointer-events: none;
}

.cl-pack-card-media::after {
  content: "";
  position: absolute;
  inset: 44% -16% -10%;
  background: radial-gradient(
    circle at center,
    rgba(88, 110, 255, 0.1),
    transparent 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.cl-pack-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(20px) saturate(0.88) brightness(0.42) contrast(1.08);
  transform: scale(1.22);
}

.cl-pack-card video.cl-pack-card-img {
  filter: blur(22px) saturate(0.8) brightness(0.36) contrast(1.08);
}

.cl-pack-card--unlocked .cl-pack-card-img {
  filter: blur(9px) saturate(1.02) brightness(0.72);
  transform: scale(1.1);
}

.cl-pack-card--unlocked video.cl-pack-card-img {
  filter: blur(11px) saturate(0.98) brightness(0.68);
}

.cl-pack-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(
      circle at 24% 18%,
      rgba(255, 217, 153, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 74% 24%,
      rgba(90, 112, 255, 0.16),
      transparent 32%
    ),
    linear-gradient(160deg, rgba(16, 18, 25, 0.98), rgba(5, 7, 10, 1));
}

.cl-pack-card-fallback svg {
  width: 24px;
  height: 24px;
}

.cl-pack-card-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(255, 255, 255, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 54%,
      rgba(255, 204, 102, 0.05),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      rgba(5, 8, 12, 0) 0%,
      rgba(5, 8, 12, 0.12) 28%,
      rgba(5, 8, 12, 0.46) 60%,
      rgba(5, 8, 12, 0.92) 100%
    );
  z-index: 2;
}

.cl-pack-card--locked .cl-pack-card-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 12, 0.02) 0%,
      rgba(5, 8, 12, 0.14) 44%,
      rgba(5, 8, 12, 0.52) 76%,
      rgba(5, 8, 12, 0.9) 100%
    );
}

.cl-pack-card--locked .cl-pack-card-img {
  filter: blur(4px) saturate(0.98) brightness(0.72) contrast(1.06);
  transform: scale(1.04);
}

.cl-pack-card--locked video.cl-pack-card-img {
  filter: blur(5px) saturate(0.92) brightness(0.68) contrast(1.05);
}

.cl-pack-card-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.cl-pack-card-lock-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.05) 34%,
      rgba(10, 13, 18, 0.9) 70%
    ),
    linear-gradient(
      155deg,
      rgba(255, 223, 158, 0.18),
      rgba(10, 13, 18, 0.94)
    );
  border: 1px solid rgba(255, 230, 179, 0.26);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(255, 201, 107, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.cl-pack-card--locked .cl-pack-card-lock-badge {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.cl-pack-card-lock-badge::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 145, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.cl-pack-card--locked .cl-pack-card-lock-badge::before,
.cl-pack-card--locked .cl-pack-card-lock-badge::after {
  display: none;
}

.cl-pack-card-lock-badge::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    transparent 38%,
    transparent 68%,
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
}

.cl-pack-card-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  color: #fff3d0;
  filter: drop-shadow(0 4px 12px rgba(255, 208, 120, 0.24));
}

.cl-pack-card-lock-icon svg {
  width: 26px;
  height: 26px;
}

.cl-pack-card--locked .cl-pack-card-lock-icon {
  width: 34px;
  height: 34px;
  color: rgba(255, 244, 214, 0.96);
  filter:
    drop-shadow(0 6px 16px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 8px rgba(255, 214, 143, 0.08));
}

.cl-pack-card--locked .cl-pack-card-lock-icon svg {
  width: 28px;
  height: 28px;
}

.cl-pack-card-stack {
  position: absolute;
  inset: 18px 12px 58px;
  pointer-events: none;
  z-index: 1;
}

.cl-pack-card--locked .cl-pack-card-stack {
  inset: 56px 18px auto;
  height: 28%;
}

.cl-pack-layer {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 244, 214, 0.14);
  background: rgba(7, 10, 14, 0.28);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cl-pack-layer--left {
  top: 28px;
  left: -2px;
  width: 50%;
  height: 45%;
  transform: rotate(-13deg);
}

.cl-pack-layer--right {
  top: 12px;
  right: 2px;
  width: 50%;
  height: 44%;
  transform: rotate(10deg);
}

.cl-pack-layer--front {
  top: 40px;
  left: 50%;
  width: 60%;
  height: 62%;
  transform: translateX(-50%) rotate(-3deg);
}

.cl-pack-layer-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(11px) saturate(0.84) brightness(0.56);
  transform: scale(1.14);
}

.cl-pack-layer--front .cl-pack-layer-media {
  filter: blur(8px) saturate(0.92) brightness(0.68);
  transform: scale(1.1);
}

.cl-pack-card--unlocked .cl-pack-layer-media {
  filter: blur(6px) saturate(1) brightness(0.78);
  transform: scale(1.08);
}

.cl-pack-card--unlocked .cl-pack-layer--front .cl-pack-layer-media {
  filter: blur(4px) saturate(1.02) brightness(0.86);
  transform: scale(1.04);
}

.cl-pack-card--locked .cl-pack-layer--left,
.cl-pack-card--locked .cl-pack-layer--right {
  opacity: 0.82;
}

.cl-pack-card--locked .cl-pack-layer--left .cl-pack-layer-media,
.cl-pack-card--locked .cl-pack-layer--right .cl-pack-layer-media {
  filter: blur(16px) saturate(0.64) brightness(0.4);
  transform: scale(1.18);
}

.cl-pack-card--locked .cl-pack-layer--front {
  top: 0;
  width: 58%;
  height: 100%;
  transform: translateX(-50%) rotate(-2deg);
  border-color: rgba(255, 239, 207, 0.24);
  box-shadow:
    0 26px 46px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cl-pack-card--locked .cl-pack-layer--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      transparent 34%,
      transparent 68%,
      rgba(8, 12, 16, 0.14)
    ),
    linear-gradient(
      180deg,
      rgba(255, 214, 143, 0.08),
      rgba(8, 12, 16, 0.12)
    );
  pointer-events: none;
}

.cl-pack-card--locked .cl-pack-layer--front .cl-pack-layer-media {
  filter: blur(6px) saturate(1.06) brightness(0.9) contrast(1.04);
  transform: scale(1.04);
}

.cl-pack-card--locked .cl-pack-card-stack {
  display: none;
}

.cl-pack-layer-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.12),
      transparent 42%
    ),
    linear-gradient(145deg, rgba(19, 28, 38, 0.96), rgba(12, 91, 124, 0.46));
}

.cl-pack-layer-fallback svg {
  width: 20px;
  height: 20px;
}

.cl-pack-card-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.cl-pack-card--locked .cl-pack-card-top {
  top: 12px;
  left: 12px;
  right: 12px;
  gap: 0;
  justify-content: flex-end;
  align-items: flex-start;
}

.cl-pack-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 14, 0.6);
  border: 1px solid rgba(255, 228, 176, 0.2);
  color: rgba(255, 244, 214, 0.96);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.cl-pack-card-status--unlocked {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.28);
  color: #dcfce7;
}

.cl-pack-card-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.cl-pack-card-status-icon svg {
  width: 14px;
  height: 14px;
}

.cl-pack-card-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  max-width: 100%;
  min-height: 34px;
  min-width: 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
}

.cl-pack-card-price--chip {
  background: rgba(6, 10, 14, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cl-pack-card-price--unlocked {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #dcfce7;
}

.cl-pack-card-price--free {
  color: rgba(255, 255, 255, 0.88);
}

.cl-pack-card-price .tg-star,
.cl-sub-banner-price .tg-star {
  width: 12px;
  height: 12px;
  display: block;
}

.cl-pack-card-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  z-index: 4;
}

.cl-pack-card-copy--locked {
  top: 50%;
  right: 12px;
  bottom: 12px;
  left: 12px;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(10, 13, 18, 0.58) 0%,
    rgba(10, 13, 18, 0.82) 34%,
    rgba(10, 13, 18, 0.96) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.cl-pack-card-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 215, 142, 0.88);
}

.cl-pack-card-title {
  max-width: 100%;
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-pack-card-copy--locked .cl-pack-card-title {
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.05;
}

.cl-pack-card-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-pack-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.cl-pack-card-copy--locked .cl-pack-card-footer {
  margin-top: auto;
}

.cl-pack-card-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.cl-pack-card-copy--locked .cl-pack-card-count {
  color: rgba(255, 255, 255, 0.76);
}

.cl-pack-card-copy--locked-title {
  right: 12px;
  bottom: 12px;
  left: 12px;
  gap: 4px;
  padding: 0;
}

.cl-pack-card-copy--locked-title .cl-pack-card-title {
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.04;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.62);
}

.cl-pack-card-copy--locked-title .cl-pack-card-count {
  color: rgba(255, 255, 255, 0.8);
}

.cl-pack-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3d8, #ffd184);
  color: #0b1118;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.cl-pack-card-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.cl-pack-card-cta-icon svg {
  width: 14px;
  height: 14px;
}

.cl-pack-card--wide {
  grid-column: 1 / -1;
  aspect-ratio: 1.56;
}

.cl-pack-card--wide .cl-pack-card-stack {
  inset: 18px 16px 60px;
}

.cl-pack-card--wide.cl-pack-card--locked .cl-pack-card-stack {
  inset: 54px 16px auto;
  height: 36%;
}

.cl-pack-card--wide .cl-pack-layer--left {
  width: 34%;
  height: 56%;
  top: 18px;
  left: 10px;
}

.cl-pack-card--wide .cl-pack-layer--right {
  width: 34%;
  height: 54%;
  top: 10px;
  right: 18px;
}

.cl-pack-card--wide .cl-pack-layer--front {
  width: 40%;
  height: 72%;
  top: 18px;
}

.cl-pack-card--wide.cl-pack-card--locked .cl-pack-layer--front {
  top: 0;
  width: 38%;
  height: 100%;
}

.cl-pack-grid--single .cl-pack-card,
.cl-pack-grid--single .cl-pack-card--wide {
  aspect-ratio: 1.56;
}

.cl-pack-card--wide .cl-pack-card-copy {
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(58%, 300px);
}

.cl-pack-card--wide .cl-pack-card-top {
  top: 14px;
  left: 16px;
  right: 16px;
}

.cl-pack-card--wide .cl-pack-card-copy--locked-title {
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(56%, 280px);
}

.cl-pack-card--wide .cl-pack-card-copy--locked-title .cl-pack-card-title {
  max-width: 100%;
  font-size: 1.2rem;
}

.cl-pack-card--wide .cl-pack-card-copy--locked {
  top: 54%;
  left: 16px;
  right: auto;
  bottom: 16px;
  width: 58%;
  max-width: calc(100% - 32px);
  padding: 16px;
}

.cl-pack-card--wide .cl-pack-card-title {
  max-width: 100%;
  font-size: 1.24rem;
}

.cl-pack-card--wide .cl-pack-card-copy--locked .cl-pack-card-title {
  max-width: 100%;
  font-size: 1.18rem;
}

.cl-pack-card--wide .cl-pack-card-desc {
  -webkit-line-clamp: 2;
}

.cl-pack-card--wide .cl-pack-card-count {
  font-size: 0.78rem;
}

.cl-pack-card--locked:not(.cl-pack-card--wide) .cl-pack-layer--left,
.cl-pack-card--locked:not(.cl-pack-card--wide) .cl-pack-layer--right {
  display: none;
}

.cl-pack-card--locked:not(.cl-pack-card--wide) .cl-pack-card-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cl-pack-card--locked:not(.cl-pack-card--wide) .cl-pack-card-footer .cl-pack-card-count {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.cl-pack-card-footer .cl-pack-card-count {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 390px) {
  .cl-pack-card-copy--locked {
    top: 52%;
    padding: 12px;
    gap: 6px;
  }

  .cl-pack-card--wide .cl-pack-card-copy,
  .cl-pack-card--wide .cl-pack-card-copy--locked-title {
    width: min(62%, 232px);
  }

  .cl-pack-card-status,
  .cl-pack-card-price {
    font-size: 0.66rem;
    padding: 5px 9px;
    min-height: 30px;
  }

  .cl-pack-card-title {
    font-size: 1rem;
  }

  .cl-pack-card-desc {
    font-size: 0.69rem;
  }

  .cl-pack-card-cta {
    padding: 6px 9px;
    font-size: 0.64rem;
  }
}

/* ── Tip Card (Landing Page) ──────────────────────────── */

.cl-tip-card {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s;
}

.cl-tip-card:active {
  transform: scale(0.985);
}

.cl-tip-card-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(
    ellipse at center,
    rgba(232, 69, 122, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cl-tip-card-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cl-tip-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(232, 69, 122, 0.15),
    rgba(240, 96, 141, 0.08)
  );
  color: #e8457a;
}

.cl-tip-card-icon svg {
  fill: currentColor;
  stroke: currentColor;
}

.cl-tip-card-icon img {
  display: block;
}

.cl-tip-card-copy {
  flex: 1;
  min-width: 0;
}

.cl-tip-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.cl-tip-card-subtitle {
  margin-top: 2px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-tip-card-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.25);
}

.cl-tip-card--telegram .cl-tip-card-glow {
  background: radial-gradient(
    ellipse at center,
    rgba(34, 158, 217, 0.16) 0%,
    transparent 70%
  );
}

.cl-tip-card--telegram .cl-tip-card-icon {
  background: linear-gradient(
    135deg,
    rgba(34, 158, 217, 0.18),
    rgba(34, 158, 217, 0.08)
  );
  color: #229ed9;
}

/* ── Tip Screen ─────────────────────────────────────────── */

.tip-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 16px 44px;
  width: calc(100% + 12px);
  max-width: none;
  margin: 0 -6px;
}

.tip-hero {
  text-align: center;
  margin-bottom: 0;
  padding-top: 12px;
}

.tip-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.tip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tip-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
}

.tip-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.tip-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.tip-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding: 6px;
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.tip-methods--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tip-method-btn {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.12s;
}

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

.tip-method-btn.selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tip-method-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-methods--3 .tip-method-btn {
  gap: 6px;
  min-height: 46px;
  padding: 0 10px;
  font-size: 0.88rem;
}

.tip-section {
  margin: 0;
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tip-section-header {
  margin-bottom: 16px;
}

.tip-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

.tip-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.tip-amount-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 16px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tip-amount-btn:active {
  transform: scale(0.95);
}

.tip-amount-btn.selected {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.tip-amount-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tip-field {
  margin-bottom: 16px;
}

.tip-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
}

.tip-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-currency {
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}

.tip-custom-input,
.tip-message-input {
  flex: 1;
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.tip-custom-input:focus,
.tip-message-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
}

.tip-message-input {
  font-weight: 400;
  font-size: 0.92rem;
}

.tip-send-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  margin-top: 4px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.4;
  transition:
    opacity 0.2s,
    transform 0.12s;
}

.tip-send-btn--stars {
  background: linear-gradient(135deg, #a16207 0%, #854d0e 100%);
}

.tip-send-btn--stripe {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.tip-send-btn.active {
  opacity: 1;
}

.tip-send-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tip-send-btn svg {
  fill: currentColor;
  stroke: currentColor;
  opacity: 0.85;
}

/* Divider */
.tip-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.tip-divider::before,
.tip-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tip-divider span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* PayPal button */
.tip-paypal-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.12s,
    background 0.15s;
}

.tip-paypal-btn:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.tip-hidden {
  display: none !important;
}

@media (max-width: 390px) {
  .tip-page {
    gap: 16px;
    padding-top: 20px;
  }
}

@media (max-width: 560px) {
  .tip-page {
    width: calc(100% + 20px);
    margin: 0 -10px;
    padding: 20px 10px 36px;
  }

  .tip-section {
    padding: 14px;
  }

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

.cl-empty-note {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.landing-empty-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.landing-empty-browse:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.landing-empty-browse:active {
  transform: scale(0.97);
}

.landing-empty-browse svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

@media (max-width: 520px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

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

  /* Mobile-friendly aspect ratio for media */
  .media-container {
    aspect-ratio: 4/5;
  }

  .media-error {
    aspect-ratio: 4/5;
  }

  /* Premium page responsive */
}

/* Utility Classes - Optimized inline styles */
.u-chip-sm {
  cursor: default;
  font-size: 0.7rem;
}

.u-icon-lg {
  font-size: 2em;
  margin-bottom: 10px;
}

.u-flex-gap-8 {
  display: flex;
  gap: 8px;
}

.u-mt-12 {
  margin-top: 12px;
}

.u-mb-12 {
  margin-bottom: 12px;
}

/* ── My Collection Page ── */
.collection-shell {
  display: grid;
  gap: 16px;
}

.admin-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
}
.admin-home-btn:active {
  background: rgba(255, 255, 255, 0.04);
}
.admin-home-btn svg {
  opacity: 0.5;
}

.collection-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collection-browse-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.collection-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 0;
}

/* Keep creators grid comfortably inside the panel on narrow screens */
#creatorsList.collection-grid {
  width: 100%;
  margin: 0;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 12px 0;
  overflow: hidden;
  box-sizing: border-box;
  align-content: start;
}

#creatorsList.collection-grid .collection-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
}

#creatorsList.collection-grid .collection-card:hover {
  border: none;
  box-shadow: none;
}

#creatorsList.collection-grid .collection-card-media,
#creatorsList.collection-grid .collection-card-media-placeholder {
  border-radius: 0;
}

/* Creators grid: render media clean/full-bleed without panel background edges */
#creatorsList.collection-grid .collection-card-media,
#creatorsList.collection-grid .creator-preview-media {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#creatorsList.collection-grid .collection-card-media-placeholder {
  background: transparent;
  color: rgba(255, 255, 255, 0.2);
}

.collection-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.collection-card:hover {
  border-color: rgba(255, 255, 255, 0.105);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.035);
}

.collection-card:active {
  transform: scale(0.97);
}

.collection-card-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 15%;
  background: rgba(255, 255, 255, 0.03);
  display: block;
}

.collection-card-media-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.014),
    rgba(255, 255, 255, 0.01)
  );
  color: rgba(255, 255, 255, 0.07);
}

.collection-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 10px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    transparent 100%
  );
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.collection-card-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.01em;
}

.collection-card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.collection-card-platforms .browse-platform-chip {
  font-size: 0.54rem;
  padding: 1px 5px;
}

.collection-card-links {
  font-size: 0.7rem;
  color: var(--muted);
}

.collection-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.collection-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.collection-empty-text {
  font-size: 0.9rem;
}

/* ── Home Creators Carousel/Shelf ── */
.home-creators-shelf {
  margin: 0;
  overflow: hidden;
}

.home-creators-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0;
  gap: 8px;
  min-width: 0;
}

.home-creators-title {
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-creators-see-all {
  font-size: 12px;
  color: var(--accent-tech);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.home-creators-see-all:hover {
  color: var(--accent-tech-dim);
}

.home-creators-scroll {
  --chips-per-view: 4;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.home-creators-scroll::-webkit-scrollbar {
  display: none;
}

.home-creator-chip {
  flex: 0 0
    calc((100% - (var(--chips-per-view) - 1) * 10px) / var(--chips-per-view));
  max-width: calc(
    (100% - (var(--chips-per-view) - 1) * 10px) / var(--chips-per-view)
  );
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease-out;
}

.home-creator-chip:hover {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.13);
}

.home-creator-chip:active {
  transform: scale(0.97);
}

.home-creator-chip-media {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 25%;
  background: rgba(0, 0, 0, 0.25);
  display: block;
}

.home-creator-chip-placeholder {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.home-creator-chip-name {
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .home-creators-scroll {
    --chips-per-view: 3;
  }
}

@media (max-width: 420px) {
  .home-creators-scroll {
    --chips-per-view: 2;
  }
}

@media (max-width: 320px) {
  .home-creators-scroll {
    --chips-per-view: 1;
  }
}

/* ── VIP Styles ── */
/* 1. Animated VIP badge with shimmer */
@keyframes badgeShimmer {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0;
  line-height: 1;
}

/* VIP Status Card (profile - active VIP) */

/* VIP Upsell Banner (profile - non-VIP) */

/* Profile boost banner — shown under VIP section, only if Premium and not yet boosting */

/* VIP Spin Banner */

/* VIP Tab in Creators */

/* VIP Coming Soon (creators VIP tab content) */

/* ── VIP Page ── */

/* ── VIP Compare Table ── */

/* Hero — neutral, not gold, so earnings card pops */

/* Plans + CTA section */

/* Plan toggle — card pair */

/* Telegram Star icon */
.tg-star {
  display: inline-block;
  vertical-align: -0.12em;
}

/* Actions */

/* ── 2. Quick Actions Row ── */
.quick-actions-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.quick-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(12, 20, 34, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  border-top-color: rgba(220, 235, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.quick-action:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}
.quick-action-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0.85;
}
.quick-action-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ── 3. Balance Count-up Animation ── */
.credits-hero-amount.counting,
.credits-bar-amount.counting {
  transition: none;
}

/* ── 5. Creator Card Tap Effect ── */
.collection-grid .collection-card {
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* ── 6. Skeleton Loading ── */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 0 0;
}
.skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 70%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
.skeleton-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 70%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
.skeleton-line.short {
  width: 60%;
}
.skeleton-line.medium {
  width: 80%;
}
/* ── Page spinner ── */
.page-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-spinner::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.45);
  animation: btn-spin 0.7s linear infinite;
}

@keyframes skeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-detail {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 10. Daily Claim Progress Ring ── */
.claim-progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
}
.claim-progress-ring svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
.claim-progress-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 5;
}
.claim-progress-ring .ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.claim-progress-ring .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* ── 11. Credit History Icons ── */
.credit-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.credit-history-item:last-child {
  border-bottom: none;
}
.credit-history-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.credit-history-item.earned .credit-history-icon {
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
}
.credit-history-item.earned .credit-history-delta {
  color: #4caf50;
}
.credit-history-item.spent .credit-history-icon {
  background: rgba(239, 83, 80, 0.12);
  color: #ef5350;
}
.credit-history-item.spent .credit-history-delta {
  color: #ef5350;
}
.credit-history-item.vip .credit-history-icon {
  background: rgba(201, 169, 98, 0.12);
  color: #c9a962;
}
.credit-history-item.vip .credit-history-delta {
  color: #c9a962;
}
.credit-history-icon svg {
  width: 14px;
  height: 14px;
}
.credit-history-info {
  flex: 1;
  min-width: 0;
}
.credit-history-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
  min-width: 0;
}
.credit-history-delta {
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Credits screen: panel stack spacing ── */
.credits-panels-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.credits-panels-stack > .card {
  margin: 0;
}
.credits-panels-stack > .first-purchase-banner {
  margin: 0;
}

.credits-panels-stack > .credits-panel-extra-space {
  margin-bottom: 8px;
}

/* ── 12. Page Transition Animations ── */
.screen {
  animation: screenFadeIn 0.2s ease-out;
}
@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 14. Improved Toasts ── */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  z-index: 260;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* ── Toast type accents ── */
.toast.success {
  border-color: rgba(34, 197, 94, 0.25);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08),
    var(--surface) 70%
  );
}
.toast.success .toast-icon {
  color: var(--accent);
}
.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.08),
    var(--surface) 70%
  );
}
.toast.error .toast-icon {
  color: #ef4444;
}
.toast.info {
  border-color: rgba(255, 255, 255, 0.1);
}
.toast.info .toast-icon {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Toast exit ── */
.toast.toast-exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.toast.hidden {
  display: none;
}

/* ── Creator detail context ── */
.toast.toast-creator-context {
  bottom: var(
    --toast-creator-bottom,
    calc(156px + env(safe-area-inset-bottom))
  );
  width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 14px;
}
.toast.toast-creator-context .toast-icon {
  width: 16px;
  height: 16px;
}
.toast.toast-creator-context .toast-text {
  font-size: 0.82rem;
  line-height: 1.3;
}
.toast.toast-creator-context .toast-close {
  font-size: 17px;
}
.toast.toast-creator-context .toast-progress {
  height: 1.5px;
}

/* ── Toast children ── */
.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.toast-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.toast-close {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.toast-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

/* ── Toast progress bar ── */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 16px 16px;
  animation: toastProgress var(--toast-duration, 2.4s) linear forwards;
}
.toast.success .toast-progress {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.toast.error .toast-progress {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}
.toast.info .toast-progress {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Toast animations ── */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.96);
  }
}
@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ── 15. Empty States ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.empty-state-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.empty-state-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 240px;
  line-height: 1.4;
}

/* ── Desktop: remove the narrow mobile constraint ── */
@media (min-width: 768px) {
  .app {
    max-width: 960px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .bottom-nav {
    max-width: 430px;
  }

  .modal {
    max-width: 560px;
  }
}

/* ── Studio Header ── */
.studio-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  margin-bottom: 16px;
}

.studio-header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.studio-header-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
}

.studio-header-name {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.studio-header-share {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-header-share:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.studio-header-share:active {
  transform: scale(0.95);
}

/* ── Studio Performance ── */
.studio-perf {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.studio-perf-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.studio-perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.studio-perf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  transition: border-color 0.2s ease;
}

.studio-perf-card.accent {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.012)
  );
}

.studio-perf-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.studio-perf-card.accent .studio-perf-icon {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

.studio-perf-icon svg {
  width: 14px;
  height: 14px;
}

.studio-perf-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.studio-perf-label {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 420px) {
  .studio-perf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Payment button loading state ── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Link URL validation inline hint ── */
.form-input.url-valid {
  border-color: #22c55e;
}
.form-input.url-invalid {
  border-color: #ef4444;
}
.form-url-hint {
  font-size: 11px;
  margin-top: 4px;
  min-height: 16px;
  transition: color 0.15s;
}
.form-url-hint.valid {
  color: #22c55e;
}
.form-url-hint.invalid {
  color: #ef4444;
}

/* ── Grid view: video creator placeholder ── */
.collection-card-video-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 0;
}

/* ========================================
   Theme Consistency Pass (non-deeplink screens)
   ======================================== */
.spend-sheet,
.quick-action {
  background-color: rgba(10, 10, 10, 0.9);
  background-image: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.017) 0%,
    rgba(255, 255, 255, 0.01) 48%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border-color: rgba(255, 255, 255, 0.056);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.spend-sheet,
.quick-action {
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

.first-purchase-banner {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

@keyframes pbb-glow {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.18);
  }
}

.spend-sheet {
  border-top-color: rgba(255, 255, 255, 0.084);
}

.spend-handle {
  background: rgba(255, 255, 255, 0.119);
}

.spend-icon-ring {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07),
    rgba(118, 93, 46, 0.08)
  );
  border-color: rgba(255, 255, 255, 0.126);
}

.spend-subtitle,
.spend-row-label {
  color: rgba(226, 214, 187, 0.46);
}

.spend-summary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.042);
}

.spend-row {
  border-bottom-color: rgba(255, 255, 255, 0.035);
}

.spend-row-value.accent {
  color: #22c55e;
}

.spend-btn-cancel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.049);
  color: rgba(233, 224, 203, 0.62);
}

.spend-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(255, 255, 255, 0.084);
  color: rgba(255, 255, 255, 0.88);
}

.stats-section::after {
  background:
    radial-gradient(
      ellipse at 24% 28%,
      rgba(226, 196, 132, 0.11),
      transparent 64%
    ),
    radial-gradient(
      ellipse at 78% 12%,
      rgba(174, 138, 70, 0.1),
      transparent 58%
    );
}

.stats-badge {
  color: #7ef2ad;
  background: rgba(255, 255, 255, 0.056);
  border-color: rgba(255, 255, 255, 0.119);
  box-shadow: inset 0 1px 0 rgba(190, 255, 214, 0.08);
}

.stats-badge::before {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.stat-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.028),
    rgba(255, 255, 255, 0.01) 55%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border-color: rgba(255, 255, 255, 0.049);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.084);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(255, 255, 255, 0.021);
}

.stat-card.stat-boosts,
.stat-card.stat-daily,
.stat-card.stat-cashback,
.stat-card.stat-referrals,
.stat-card.stat-creators,
.stat-card.stat-earned {
  --stat-accent: #22c55e;
}

.stat-card-icon {
  background: rgba(255, 255, 255, 0.046);
  border: 1px solid rgba(255, 255, 255, 0.077);
  color: #ddc58c;
}

.stat-card.stat-creators {
  --stat-accent: #8e9bff;
}

.stat-card.stat-creators .stat-card-icon {
  background: rgba(112, 128, 255, 0.2);
  border-color: rgba(156, 170, 255, 0.36);
  color: #c0cbff;
}

.stat-card.stat-earned {
  --stat-accent: #22c55e;
}

.stat-card.stat-earned .stat-card-icon {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(52, 211, 153, 0.38);
  color: #a7f3d0;
}

.stat-card.stat-referrals {
  --stat-accent: #56c8ff;
}

.stat-card.stat-referrals .stat-card-icon {
  background: rgba(86, 200, 255, 0.2);
  border-color: rgba(130, 218, 255, 0.36);
  color: #d5f2ff;
}

.stat-card.stat-boosts {
  --stat-accent: #59db95;
}

.stat-card.stat-boosts .stat-card-icon {
  background: rgba(89, 219, 149, 0.2);
  border-color: rgba(129, 235, 177, 0.36);
  color: #d7ffe9;
}

.quick-action {
  background: rgba(10, 10, 10, 0.9);
  border-color: rgba(255, 255, 255, 0.056);
  border-top-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quick-action:active {
  background: rgba(255, 255, 255, 0.021);
  border-color: rgba(255, 255, 255, 0.077);
}

.quick-action-label {
  color: rgba(233, 221, 196, 0.58);
}

/* Profile quick actions: unique color per button */
.quick-action[data-action="claim_daily"] {
  background: linear-gradient(
    155deg,
    rgba(60, 130, 255, 0.09),
    rgba(24, 60, 122, 0.04)
  );
  border-color: rgba(120, 174, 255, 0.24);
  border-top-color: rgba(156, 198, 255, 0.3);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 16px rgba(96, 160, 255, 0.12),
    inset 0 1px 0 rgba(156, 198, 255, 0.1);
}
.quick-action[data-action="claim_daily"] .quick-action-icon {
  color: #8fc0ff;
  filter: drop-shadow(0 0 8px rgba(116, 177, 255, 0.35));
}

.quick-action[data-action="open_spin"] {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.032),
    rgba(18, 98, 52, 0.04)
  );
  border-color: rgba(94, 232, 147, 0.24);
  border-top-color: rgba(133, 241, 174, 0.3);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 16px rgba(88, 216, 136, 0.12),
    inset 0 1px 0 rgba(133, 241, 174, 0.1);
}
.quick-action[data-action="open_spin"] .quick-action-icon {
  color: #80e7ac;
  filter: drop-shadow(0 0 8px rgba(105, 230, 157, 0.35));
}

.quick-action[data-action="open_referral"] {
  background: linear-gradient(
    155deg,
    rgba(167, 85, 247, 0.09),
    rgba(88, 40, 130, 0.04)
  );
  border-color: rgba(201, 137, 255, 0.24);
  border-top-color: rgba(218, 171, 255, 0.3);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 16px rgba(188, 125, 247, 0.12),
    inset 0 1px 0 rgba(218, 171, 255, 0.1);
}
.quick-action[data-action="open_referral"] .quick-action-icon {
  color: #d9a8ff;
  filter: drop-shadow(0 0 8px rgba(200, 145, 255, 0.35));
}

.quick-action[data-action="open_vip"] {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.035),
    rgba(120, 89, 34, 0.05)
  );
  border-color: rgba(230, 201, 142, 0.26);
  border-top-color: rgba(245, 223, 175, 0.33);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.56),
    0 0 16px rgba(228, 194, 122, 0.12),
    inset 0 1px 0 rgba(245, 223, 175, 0.1);
}
.quick-action[data-action="open_vip"] .quick-action-icon {
  color: #f1d59a;
  filter: drop-shadow(0 0 8px rgba(241, 213, 154, 0.35));
}

.grid-card-tag.owned {
  background: rgba(255, 255, 255, 0.07);
  color: #ecd6a6;
  border-color: rgba(255, 255, 255, 0.105);
}

.grid-card-tag.free {
  background: rgba(255, 255, 255, 0.056);
  color: #d8bf83;
  border-color: rgba(255, 255, 255, 0.091);
}
.grid-card-tag.vip {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.098),
    rgba(154, 122, 47, 0.26)
  );
  color: #f5deb3;
  border-color: rgba(255, 255, 255, 0.14);
}

.earnings-big {
  color: var(--accent, #22c55e);
}

.milestone-bar-fill {
  background: linear-gradient(
    90deg,
    rgba(154, 122, 47, 0.95),
    rgba(34, 197, 94, 0.95)
  );
}

.view-mode-toggle {
  background: rgba(12, 10, 8, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 2px;
}

.view-mode-btn {
  width: 30px;
  height: 28px;
  border-radius: 7px;
}

.view-mode-btn svg {
  width: 13px;
  height: 13px;
}
/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — Top Nav, Carousels, Filter Modal
   ═══════════════════════════════════════════════════════════════ */

/* ── Home Top Navigation ── */
.creators-shell {
  display: grid;
  gap: 16px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.home-top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.home-nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  border-radius: 11px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}
.home-nav-tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.5;
}
.home-nav-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.4);
}
.home-nav-tab.active svg {
  opacity: 1;
}
.home-nav-tab:not(.active):active {
  background: rgba(255, 255, 255, 0.05);
}
.home-nav-tab:not(.active):hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Home Toolbar (search + filter) ── */
.home-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.home-search-wrap {
  flex: 1;
  min-width: 0;
}
.home-toolbar .form-input {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  width: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.home-toolbar .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.home-toolbar .form-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.filter-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease-out;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-trigger-btn svg {
  width: 14px;
  height: 14px;
}
.filter-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.filter-trigger-btn:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.97);
}
.filter-trigger-btn.has-filters {
  border-color: rgba(255, 255, 255, 0.14);
  color: #22c55e;
}

/* ── Carousel Sections ── */
.carousel-section {
  margin-bottom: 6px;
}
.carousel-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 10px;
}
.carousel-section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 100%
  );
  margin-left: 4px;
}
.carousel-section-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.carousel-section-icon svg {
  width: 18px;
  height: 18px;
}
.carousel-section-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.carousel-section-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  border-radius: 999px;
}
.carousel-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -18px;
  padding: 0 0 4px;
  width: min(100vw, 430px);
}
.carousel-track-wrap::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  display: flex;
  gap: 10px;
  padding: 0 18px;
  width: max-content;
}

/* ── Carousel Card ── */
.carousel-card {
  flex: 0 0 158px;
  width: 158px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.042);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  font-family: "Manrope", sans-serif;
}
.carousel-card:active {
  transform: scale(0.97);
  border-color: rgba(255, 255, 255, 0.105);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-card.cascade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: cascade-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cascade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.carousel-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.021),
    rgba(255, 255, 255, 0.01)
  );
  color: rgba(255, 255, 255, 0.5);
}
/* ── Bottom gradient overlay for card readability ── */
.carousel-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Name + category overlaid bottom-left ── */
.carousel-card-info-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  right: 64px;
  max-width: calc(100% - 78px);
  pointer-events: none;
  display: flex;
  align-items: center;
  min-height: 22px;
}

/* ── Creator Card Tag ── */
.carousel-card-tag.owned {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.28);
}
.carousel-card-tag.new {
  background: rgba(99, 179, 237, 0.15);
  color: #90cdf4;
  border: 1px solid rgba(99, 179, 237, 0.25);
}
.carousel-card-tag.early-access {
  background: rgba(201, 169, 98, 0.18);
  color: #ffd966;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.carousel-card-tag.paid {
  background: rgba(255, 255, 255, 0.08);
  color: #e8c97a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Tier: cheap (25 and under) */
.carousel-card-tag.paid.price-cheap {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

/* Tier: mid (50) */
.carousel-card-tag.paid.price-mid {
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

/* Tier: high (100) — visible gold hint */
.carousel-card-tag.paid.price-high {
  background: rgba(201, 169, 98, 0.08);
  color: rgba(232, 201, 122, 0.78);
  border: 1px solid rgba(201, 169, 98, 0.18);
  box-shadow: 0 2px 6px rgba(201, 169, 98, 0.06);
}

/* Tier: premium (150+) — full gold pop */
.carousel-card-tag.paid.price-premium {
  background: rgba(201, 169, 98, 0.14);
  color: #e8c97a;
  border: 1px solid rgba(201, 169, 98, 0.32);
  box-shadow: 0 2px 10px rgba(201, 169, 98, 0.12);
}

.carousel-card-deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.92),
    rgba(220, 38, 38, 0.92)
  );
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 3;
}

/* ── Trending badge ── */
.carousel-card-hot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  min-height: 18px;
  background: rgba(255, 149, 0, 0.15);
  color: #ffb84d;
  border: 1px solid rgba(255, 149, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 3;
}

.carousel-card-hot-badge.has-top-tag {
  top: 30px;
}

/* ── Price rising badge ── */
.carousel-card-price-rising {
  position: absolute;
  top: auto;
  bottom: 36px;
  left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: rgba(0, 0, 0, 0.45);
  color: var(--premium-gold);
  border: 1px solid rgba(201, 169, 98, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 3;
}

/* Home lanes: align name row and tag to same vertical middle */
.carousel-track .carousel-card-info-overlay {
  bottom: 9px;
  left: 10px;
  right: 56px;
  max-width: calc(100% - 66px);
  min-height: 20px;
  display: flex;
  align-items: center;
}

.carousel-track .carousel-card-name {
  font-size: 0.78rem;
  line-height: 1;
}

.carousel-track .carousel-card-tag {
  bottom: 9px;
  display: inline-flex;
  align-items: center;
}

.carousel-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}
.carousel-card-fav:active {
  transform: scale(1.2);
}
.carousel-card-fav.active {
  background: rgba(220, 40, 60, 0.4);
  border-color: rgba(220, 40, 60, 0.3);
}
.carousel-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
}
.creator-name-hidden {
  font-style: normal;
  color: #fff;
  letter-spacing: inherit;
  font-weight: inherit;
}
.carousel-card-category {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Home Creator Grid (My Creators / Favorites) ── */
.home-creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.home-creator-grid .carousel-card {
  flex: none;
  width: 100%;
}
.home-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .app:has(.creators-shell) {
    max-width: 1240px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .app:has(.creators-shell) .creators-shell {
    width: 100%;
  }

  .app:has(.creators-shell) .carousel-track-wrap {
    width: 100%;
    margin: 0;
  }

  .app:has(.creators-shell) .carousel-track {
    padding: 0 2px;
  }

  .app:has(.creators-shell) .home-creator-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
}

/* ── View More Card (end of carousel lane) ── */
.carousel-view-more-card {
  flex: 0 0 90px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.088);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Manrope", sans-serif;
  padding: 0;
  min-height: 0;
  aspect-ratio: 3/5;
}
.carousel-view-more-card:active {
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5deb3;
  background: rgba(255, 255, 255, 0.021);
}
.carousel-vm-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.carousel-view-more-card svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* ── Explore All Creators Button ── */
.explore-all-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  color: rgba(255, 255, 255, 0.85);
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease-out,
    box-shadow 0.18s ease;
  margin-top: 8px;
  overflow: hidden;
}
.explore-all-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.explore-all-btn:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.97);
}
.explore-all-btn-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
}
.explore-all-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.explore-all-btn-icon svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}
.explore-all-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.explore-all-btn-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.explore-all-btn-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}
.explore-all-btn > .explore-all-btn-inner > svg:last-child {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.explore-all-btn:hover > .explore-all-btn-inner > svg:last-child {
  transform: translateX(2px);
}

/* ── Explore Page ── */
.explore-shell {
  display: grid;
  gap: 16px;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}
.explore-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.explore-search-wrap {
  flex: 1;
  min-width: 0;
}
.explore-search-wrap .form-input {
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  width: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.explore-search-wrap .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.explore-search-wrap .form-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.explore-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease-out;
  white-space: nowrap;
  flex-shrink: 0;
}
.explore-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.explore-filter-btn svg {
  width: 15px;
  height: 15px;
}
.explore-filter-btn:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.97);
}
.explore-filter-btn.has-filters {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--accent-tech);
}
.explore-toolbar .home-search-wrap {
  flex: 1;
  min-width: 0;
}
.explore-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}
.explore-page-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease-out;
}
.explore-page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.explore-page-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.explore-page-btn:active {
  transform: scale(0.97);
}
.explore-page-btn svg {
  width: 14px;
  height: 14px;
}
.explore-page-info {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Manrope", sans-serif;
  min-width: 52px;
  text-align: center;
}
.explore-page-jump {
  padding: 8px 10px;
  opacity: 0.75;
}
.explore-page-jump:not(:disabled):hover {
  opacity: 1;
}

/* ── Trending badge pulse ── */
@keyframes trending-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.08);
  }
}
.carousel-card-hot-badge {
  animation: trending-pulse 2.5s ease-in-out infinite;
}

/* ── Filter Bottom Sheet Modal ── */
.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.filter-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.filter-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.filter-overlay.visible .filter-sheet {
  transform: translateY(0);
}
.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filter-sheet-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.filter-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.filter-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}
.filter-group {
  margin-bottom: 16px;
}
.filter-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.filter-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #22c55e;
}
.filter-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.077);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-family: "Manrope", sans-serif;
}
.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.filter-actions .action-btn {
  flex: 1;
}

@media (max-width: 720px) {
  .home-nav-tab {
    padding: 10px 4px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .home-nav-tab svg {
    width: 14px;
    height: 14px;
  }
  .home-toolbar .form-input {
    height: 34px;
    font-size: 0.77rem;
  }
  .filter-trigger-btn {
    height: 34px;
    font-size: 0.74rem;
    padding: 0 10px;
  }
  .carousel-card {
    flex: 0 0 138px;
    width: 138px;
  }
  .carousel-section-title {
    font-size: 0.95rem;
  }
  .carousel-track-wrap {
    margin: 0 -18px;
    width: min(100vw, 430px);
  }
}
