/* ═══════════════════════════════════════════════════════
   MAEVE — Exclusive Hub  ·  Premium Mini App Theme
   Brand-matched to maevelove.online
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
:root {
  --bg: #12091f;
  --bg-glow: #2a1544;
  --card: rgba(40, 22, 62, 0.55);
  --card-hover: rgba(54, 31, 82, 0.62);
  --card-solid: #1d1030;

  --accent: #bc84ee;
  --accent-bright: #cf9bff;
  --accent-soft: rgba(188, 132, 238, 0.13);
  --accent-line: rgba(188, 132, 238, 0.38);
  --accent-glow: rgba(188, 132, 238, 0.28);

  --gold: #e8c477;
  --btc: #f7931a;
  --success: #7de0b0;

  --green: #37d99a;
  --green-bright: #5fe9b3;
  --green-soft: rgba(55, 217, 154, 0.12);
  --green-line: rgba(55, 217, 154, 0.42);
  --green-glow: rgba(55, 217, 154, 0.3);

  --text: #f5f0eb;
  --text-muted: rgba(245, 240, 235, 0.52);
  --text-faint: rgba(245, 240, 235, 0.3);

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background: radial-gradient(135% 90% at 50% -20%, var(--bg-glow) 0%, #170b28 42%, var(--bg) 78%);
  background-attachment: fixed;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.app {
  max-width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ─── Views ─── */
.view {
  display: none;
  opacity: 0;
  padding: 0 18px 28px;
}

.view.active {
  display: block;
  opacity: 1;
  animation: viewIn 0.4s var(--ease) both;
}

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

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

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent-line), 0 0 22px -6px var(--accent-glow); }
  50% { box-shadow: 0 0 0 1px var(--accent-line), 0 0 30px -4px var(--accent-glow); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; transform: scale(0.9); box-shadow: 0 0 0 5px rgba(188, 132, 238, 0); }
}

/* ─── Header ─── */
.store-header {
  padding: 24px 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg) 68%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.store-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.store-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -2px;
}

.store-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -6px 0 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  background: rgba(188, 132, 238, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(188, 132, 238, 0.2);
  width: fit-content;
}

/* ─── Language Selector ─── */
.lang-selector {
  background: var(--card);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 30px 8px 12px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='rgba(245,240,235,0.6)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s var(--ease);
}

.lang-selector:focus {
  border-color: var(--accent-line);
}

.lang-selector option {
  background: var(--card-solid);
  color: var(--text);
}

/* ─── Promo / Claim Banner ─── */
.promo-banner {
  margin: 4px 0 22px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.5s var(--ease) both;
}

/* Claimable state — refined emerald, tappable */
.promo-banner.claimable {
  background: linear-gradient(135deg, rgba(93, 211, 158, 0.09) 0%, rgba(40, 22, 62, 0.45) 100%);
  border: 1px solid rgba(93, 211, 158, 0.22);
  cursor: pointer;
  animation: fadeUp 0.5s var(--ease) both, promoGlow 3s ease-in-out 0.5s infinite;
}

.promo-banner.claimable:active { transform: scale(0.985); }

@keyframes promoGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 211, 158, 0); }
  50% { box-shadow: 0 0 20px -5px rgba(93, 211, 158, 0.2); }
}

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

.promo-title {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.promo-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Countdown timer */
.promo-countdown {
  display: flex;
  align-items: center;
  gap: 3px;
}

.cd-block {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.cd-block span {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #7ee8b8;
  min-width: 26px;
  text-align: center;
}

.cd-block small {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
}

.cd-sep {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-faint);
  margin: 0 1px;
}

.promo-cta {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a2318;
  background: linear-gradient(135deg, #51ffaa, #1ddb81);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px -3px rgba(81, 255, 170, 0.45);
  white-space: nowrap;
}

/* Claimed state — subtle, elegant confirmation */
.promo-banner.claimed {
  background: linear-gradient(135deg, rgba(93, 211, 158, 0.07) 0%, rgba(40, 22, 62, 0.3) 100%);
  border: 1px solid rgba(93, 211, 158, 0.18);
  animation: fadeUp 0.4s var(--ease) both;
  position: relative;
}

.promo-cancel {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  border-radius: 50%;
}

.promo-cancel:hover, .promo-cancel:active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.promo-claimed-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7ee8b8, #5dd39e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #0a2318;
  animation: bounceIn 0.45s var(--ease);
  box-shadow: 0 0 12px -3px rgba(93, 211, 158, 0.3);
}

.promo-banner.claimed .promo-title {
  color: #7ee8b8;
  font-family: var(--serif);
  font-size: 14.5px;
}

.promo-banner.claimed .promo-sub {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 0;
}

/* Claimed timer — compact, muted */
.claimed-timer {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(126, 232, 184, 0.6);
}

/* Price-drop reveal after claim */
.price-reveal .product-price {
  animation: pricePop 0.55s var(--ease);
}

.price-reveal .product-old-price {
  animation: fadeUp 0.5s ease;
}

@keyframes pricePop {
  0% { color: var(--green-bright); transform: scale(1.28); }
  100% { color: var(--accent-bright); transform: scale(1); }
}

/* ─── Category Tabs ─── */
.category-tabs {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 12px;
  padding: 0 16px 8px;
  margin: 0 -16px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.category-tab:active { transform: scale(0.95); }

.category-tab.active {
  background: linear-gradient(135deg, var(--accent), #9d5fd4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}

/* ─── Section Header ─── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

.section-header:first-child { margin-top: 2px; }

.section-header h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

.section-header .section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-2), transparent);
}

/* ─── Product Grid ─── */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Product Card ─── */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.15s var(--ease);
  animation: fadeUp 0.45s var(--ease) both;
}

.product-card:active {
  transform: scale(0.985);
  background: var(--card-hover);
}

.product-card.featured {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, rgba(188, 132, 238, 0.1), var(--card));
  box-shadow: 0 0 22px -8px var(--accent-glow);
}

/* Product Icon */
.product-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-bright);
}

.product-icon svg {
  width: 23px;
  height: 23px;
}

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

.product-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  margin-bottom: 6px;
}

.product-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  text-align: right;
}

.product-old-price {
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.product-price {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--accent-bright);
}

.product-price.full {
  color: var(--text);
}

/* ═══════════════════════════════════════════
   PAYMENT VIEW
   ═══════════════════════════════════════════ */

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 22px 0 6px;
}

.back-btn svg { width: 18px; height: 18px; }

.payment-view-header {
  text-align: center;
  padding: 18px 0 22px;
}

.payment-view-header h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 3px;
}

.payment-view-header p {
  color: var(--text-muted);
  font-size: 13px;
}

.payment-product-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-product-summary .product-icon {
  width: 54px;
  height: 54px;
}

.payment-product-summary .product-icon svg {
  width: 27px;
  height: 27px;
}

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

.summary-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.summary-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.summary-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 8px;
}

.summary-price {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-bright);
}

.summary-old-price {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.discount-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Payment Methods */
.payment-methods-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 11px;
}

.payment-method-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.payment-method-card:active { transform: scale(0.99); }

.payment-method-card.selected {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.method-icon.stars {
  background: rgba(232, 196, 119, 0.14);
  color: var(--gold);
}

.method-icon.crypto {
  background: rgba(247, 147, 26, 0.14);
  color: var(--btc);
  font-family: var(--sans);
}

.method-info { flex: 1; }

.method-name {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.method-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.method-check {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.payment-method-card.selected .method-check {
  border-color: var(--accent);
  background: var(--accent);
}

.method-check-inner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s var(--ease);
}

.payment-method-card.selected .method-check-inner {
  opacity: 1;
  transform: scale(1);
}

/* Price Display */
.payment-price-display {
  text-align: center;
  padding: 20px 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 7px;
}

.price-value {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.price-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Purchase Button */
.purchase-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #9d5fd4);
  color: #fff;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}

.purchase-btn:active {
  transform: scale(0.985);
  box-shadow: 0 4px 14px -8px var(--accent-glow);
}

.purchase-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.purchase-btn.loading { pointer-events: none; }

/* ═══════════════════════════════════════════
   SUCCESS VIEW
   ═══════════════════════════════════════════ */

.success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9d5fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: bounceIn 0.55s var(--ease);
  box-shadow: 0 0 42px -6px var(--accent-glow);
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: #fff;
  stroke-width: 3;
}

.success-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
  animation: fadeUp 0.5s ease 0.15s both;
}

.success-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
  animation: fadeUp 0.5s ease 0.22s both;
}

.success-order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease 0.3s both;
}

.success-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
}

.success-order-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.success-order-label {
  font-size: 13px;
  color: var(--text-muted);
}

.success-order-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.success-btn {
  width: 100%;
  max-width: 320px;
  padding: 15px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #9d5fd4);
  color: #fff;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  animation: fadeUp 0.5s ease 0.36s both;
}

.success-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  box-shadow: none;
}

/* ═══════════════════════════════════════════
   CUSTOM REQUEST + DONATION
   ═══════════════════════════════════════════ */

.custom-request-section {
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  text-align: center;
}

.custom-request-section h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.custom-request-section p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
  white-space: nowrap;
}

.custom-request-btn,
.donation-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #784ba3, #5a357f);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(188, 132, 238, 0.25);
  transition: transform 0.15s var(--ease);
}

.custom-request-btn:active,
.donation-btn:active { transform: scale(0.96); }

.donation-section {
  margin-top: 12px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, rgba(188, 132, 238, 0.06), transparent);
  text-align: center;
}

.donation-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.donation-section p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════ */

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.safe-bottom {
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 16px);
}

.store-footer {
  text-align: center;
  padding: 30px 0 16px;
  color: var(--text-faint);
  font-size: 11px;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* ═══════════════════════════════════════════
   SECTION DIVIDER (products ↔ bottom sections)
   ═══════════════════════════════════════════ */
.section-divider {
  height: 1px;
  margin: 26px 6px;
  background: linear-gradient(to right, transparent, var(--accent-line) 50%, transparent);
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px 1px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   INITIAL LOADING OVERLAY
   ═══════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(135% 90% at 50% -20%, var(--bg-glow) 0%, #170b28 42%, var(--bg) 78%);
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid rgba(188, 132, 238, 0.16);
  border-top-color: var(--accent-bright);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 26px -6px var(--accent-glow);
}

.loader-wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  animation: loaderPulse 1.6s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}
