@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --bg-1: #ffffff;
  --bg-2: #f4eaff;
  --bg-3: #e9d7ff;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #2a2140;
  --muted: #6f6686;
  --accent: #7d4dff;
  --accent-2: #b65cff;
  --accent-3: #ff6bdc;
  --stroke: rgba(125, 91, 255, 0.18);
  --shadow: 0 18px 45px rgba(58, 36, 104, 0.15);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-highlight: rgba(255, 255, 255, 0.65);
  --glass-glow: 0 10px 24px rgba(125, 91, 255, 0.25), 0 0 18px rgba(255, 107, 220, 0.22);
}

body.neon-body.theme-dark {
  --bg-1: #0f0b1a;
  --bg-2: #19132a;
  --bg-3: #221a38;
  --panel: rgba(28, 22, 48, 0.92);
  --panel-strong: rgba(20, 16, 36, 0.92);
  --text: #f3eefc;
  --muted: #b6aeca;
  --stroke: rgba(140, 120, 255, 0.28);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --glass: rgba(30, 24, 52, 0.6);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-glow: 0 10px 24px rgba(125, 91, 255, 0.35), 0 0 18px rgba(255, 107, 220, 0.25);
}

* {
  box-sizing: border-box;
}

body.neon-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(125, 91, 255, 0.22), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255, 107, 220, 0.18), transparent 38%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  overflow-x: hidden;
  padding-bottom: 120px;
}

body.neon-body.theme-dark .grid {
  opacity: 0.45;
}

body.neon-body.theme-dark .vapor {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  mix-blend-mode: lighten;
}

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

.grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 91, 255, 0.22), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255, 107, 220, 0.16), transparent 38%);
  opacity: 0.75;
}

.vapor {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  filter: blur(18px);
  animation: drift 18s ease-in-out infinite;
  mix-blend-mode: screen;
}

.vapor-1 { top: -120px; left: -60px; animation-delay: 0s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-20px) scale(1.08); opacity: 1; }
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 18px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.logo-block,
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Unbounded", sans-serif;
}

.logo-mark,
.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--glass-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title,
.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.logo-sub,
.subtitle {
  font-size: 12px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  min-width: 0;
  padding: 6px 10px;
}

.theme-toggle .theme-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: #fff;
  font-size: 14px;
}

.theme-toggle .theme-label {
  font-size: 12px;
  font-weight: 700;
}

.top-profile,
.pill {
  background: linear-gradient(135deg, rgba(125, 91, 255, 0.25), rgba(255, 107, 220, 0.22));
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.top-profile::before,
.pill::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--glass-highlight), transparent 46%);
  opacity: 0.6;
  pointer-events: none;
}


.top-profile-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 6px 14px rgba(125, 91, 255, 0.25);
}

.page-shell {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.section,
.card {
  background: var(--panel-strong);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section {
  padding: 18px;
}

.card {
  padding: 14px;
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-header > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.section-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px 0;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}
@media (max-width: 600px) {
  .section-title { font-size: 22px; }
  .section-header { gap: 10px; }
}

/* Checkout steps */
.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.step-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.step-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

/* Hidden radio fix for iOS */
.hidden-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
}

/* Order card improvements */
.order-card-v2 {
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  display: grid;
  gap: 14px;
}
.order-card-v2 .order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.order-card-v2 .order-id {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 2px;
}
.order-card-v2 .order-date {
  font-size: 12px;
  color: var(--muted);
}
.order-card-v2 .order-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.order-card-v2 .order-items-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.order-card-v2 .item-pill {
  background: rgba(125,91,255,0.08);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
}
body.neon-body.theme-dark .order-card-v2 .item-pill {
  background: rgba(140,120,255,0.12);
}
.order-card-v2 .order-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}
.order-card-v2 .order-total-bar .price {
  font-size: 20px;
  font-weight: 800;
}
.order-card-v2 .order-actions-v2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.order-card-v2 .order-actions-v2 .btn,
.order-card-v2 .order-actions-v2 form .btn {
  flex: 1 1 120px;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 12px;
}
.order-card-v2 .order-details-toggle {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.order-card-v2 .order-details-collapsed {
  display: none;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
}
.order-card-v2 .order-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.order-card-v2 .order-detail-row .label {
  color: var(--muted);
}

.list,
.list-item,
.soft-card,
.promo-form,
.cart-summary,
.table-scroll,
.empty-state {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(125, 91, 255, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

body.neon-body.theme-dark .list,
body.neon-body.theme-dark .list-item,
body.neon-body.theme-dark .soft-card,
body.neon-body.theme-dark .promo-form,
body.neon-body.theme-dark .cart-summary,
body.neon-body.theme-dark .table-scroll,
body.neon-body.theme-dark .empty-state {
  background: rgba(22, 18, 40, 0.88);
  border-color: rgba(140, 120, 255, 0.3);
}

body.neon-body.theme-dark .home-image,
body.neon-body.theme-dark .glass-card,
body.neon-body.theme-dark .cart-item,
body.neon-body.theme-dark .profile-hero {
  background: rgba(22, 18, 40, 0.85);
  border-color: rgba(140, 120, 255, 0.3);
}

body.neon-body.theme-dark .hero-card,
body.neon-body.theme-dark .spec-card,
body.neon-body.theme-dark .step-pill,
body.neon-body.theme-dark .toggle-pill,
body.neon-body.theme-dark .message-preview,
body.neon-body.theme-dark .stat-card,
body.neon-body.theme-dark .btn-copy,
body.neon-body.theme-dark .invitations-list,
body.neon-body.theme-dark .info-box,
body.neon-body.theme-dark .invitation-item,
body.neon-body.theme-dark .wallet-block,
body.neon-body.theme-dark .referral-link-input {
  background: rgba(22, 18, 40, 0.9);
  color: var(--text);
  border-color: rgba(140, 120, 255, 0.3);
}

body.neon-body.theme-dark .hero-card {
  background: linear-gradient(140deg, rgba(26, 20, 44, 0.95), rgba(20, 16, 36, 0.9));
}

body.neon-body.theme-dark .store-reviews .review-card,
body.neon-body.theme-dark .store-reviews .stat-card,
body.neon-body.theme-dark .store-reviews .star-rating,
body.neon-body.theme-dark .store-reviews .photo-card {
  background: rgba(22, 18, 40, 0.9);
  border-color: rgba(140, 120, 255, 0.3);
  color: var(--text);
}

body.neon-body.theme-dark .store-reviews .rating-text,
body.neon-body.theme-dark .store-reviews .stat-title {
  color: var(--muted);
}

body.neon-body.theme-dark .store-reviews .star-btn {
  color: rgba(140, 120, 255, 0.35);
}

body.neon-body.theme-dark .message-preview {
  box-shadow: var(--shadow);
}

body.neon-body.theme-dark .btn-copy {
  color: var(--text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.list { padding: 0; }
.list-item { padding: 14px 16px; }

html,
body,
.app,
.page-shell {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  html,
  body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }
}
.soft-card { padding: 14px 16px; }
.promo-form, .cart-summary { padding: 14px 16px; }
.empty-state { padding: 18px; }


.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-row .btn {
  flex: 1 1 160px;
}

.detail-btn {
  
  min-width: 120px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.inline-actions .btn,
.inline-actions .detail-btn,
.inline-actions form .btn {
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
}

.section-header .btn {
  min-width: 180px;
}

.cart-actions .btn {
  min-width: 200px;
}

@media (max-width: 720px) {
  .pill-row .btn,
  .inline-actions .btn,
  .inline-actions .detail-btn,
  .inline-actions form .btn,
  .cart-actions .btn,
  .section-header .btn {
    width: 100%;
    min-width: 0;
  }
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 91, 255, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.neon-body.theme-dark input,
body.neon-body.theme-dark select,
body.neon-body.theme-dark textarea {
  background: rgba(24, 20, 46, 0.85);
  border-color: rgba(140, 120, 255, 0.32);
}

.bottom-nav {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bottom-nav.keyboard-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.neon-body.theme-dark .bottom-nav {
  background: rgba(18, 14, 34, 0.85);
}

.nav-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(125, 91, 255, 0.2);
  box-shadow: 0 8px 18px rgba(125, 91, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

body.neon-body.theme-dark .nav-item {
  background: rgba(20, 16, 40, 0.9);
  border-color: rgba(140, 120, 255, 0.3);
}

.nav-item.nav-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(125, 91, 255, 0.35);
}

body.neon-body.theme-dark .nav-item.nav-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

@media (hover: hover) {
  .nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(125, 91, 255, 0.24);
  }
  .nav-item.nav-active:hover {
    box-shadow: 0 12px 28px rgba(125, 91, 255, 0.45);
  }
}

.nav-icon { font-size: 18px; }

.card, .glass-card, .cart-item, .soft-card, .list-item {
  transition: box-shadow 0.25s ease;
}

@media (hover: hover) {
  .card:hover, .glass-card:hover, .cart-item:hover, .soft-card:hover, .list-item:hover {
    box-shadow: 0 18px 40px rgba(58, 36, 104, 0.15);
  }
  body.neon-body.theme-dark .card:hover,
  body.neon-body.theme-dark .glass-card:hover,
  body.neon-body.theme-dark .cart-item:hover,
  body.neon-body.theme-dark .soft-card:hover,
  body.neon-body.theme-dark .list-item:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 600px) {
  .app { padding: 16px 14px 56px; }
  .topbar { flex-wrap: wrap; }
  .logo-sub { display: none; }
}

.profile-page {
  display: grid;
  gap: 18px;
}

.profile-hero {
  text-align: center;
  padding: 22px 18px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(125, 91, 255, 0.18), rgba(255, 107, 220, 0.12));
  border: 1px solid rgba(125, 91, 255, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.35);
  border: 3px solid rgba(180, 120, 255, 0.6);
  box-shadow: 0 0 24px rgba(180, 120, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
}

.avatar-ring.has-photo .avatar-photo {
  display: block;
}

.avatar-ring.has-photo .avatar-icon {
  display: none;
}

.avatar-icon {
  font-size: 40px;
}

.profile-name {
  margin: 6px 0 4px;
  font-size: 24px;
}

.profile-status {
  margin: 0 0 12px;
  color: var(--muted);
}

.profile-action {
  min-width: 220px;
  margin: 0 auto;
}

.profile-cards {
  display: grid;
  gap: 14px;
}

.glass-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(125, 91, 255, 0.2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 600;
}

.info-label { color: var(--muted); }
.info-value { color: var(--text); }
.info-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.balance-card {
  background: linear-gradient(135deg, rgba(125, 91, 255, 0.12), rgba(182, 92, 255, 0.08));
  border: 1px solid rgba(125, 91, 255, 0.25);
  color: #e8e0ff;
}

.balance-title {
  font-weight: 600;
  opacity: 0.8;
}

.balance-amount {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

body.neon-body.theme-dark .balance-card {
  background: rgba(22, 18, 40, 0.9);
  border-color: rgba(140, 120, 255, 0.3);
  color: #f6f2ff;
}

body.neon-body.theme-dark .balance-title {
  color: rgba(200, 190, 255, 0.85);
}

body.neon-body.theme-dark .balance-amount {
  color: #c4b5fd;
  text-shadow: 0 0 16px rgba(125, 91, 255, 0.35);
}

.referral-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.ref-title { font-weight: 700; }
.ref-sub { color: var(--muted); font-size: 13px; }
.ref-arrow { font-size: 20px; }

.manager-card {
  display: grid;
  gap: 10px;
}

.manager-btn {
  width: 100%;
}

.cart-page .section-header {
  align-items: center;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(125, 91, 255, 0.2);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cart-info strong {
  font-size: 16px;
}

.cart-qty {
  min-width: 150px;
  gap: 8px;
}

.cart-qty input {
  text-align: center;
}

.cart-remove {
  width: 100%;
}

.cart-summary-card {
  padding: 18px;
}

.cart-promo-row {
  gap: 12px;
}

.cart-summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}

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

.cart-actions .btn {
  min-width: 180px;
}

@media (max-width: 720px) {
  .cart-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .cart-qty {
    min-width: 0;
  }
  .cart-summary-grid {
    grid-template-columns: 1fr;
  }
  .cart-actions .btn {
    width: 100%;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, rgba(132, 92, 240, 0.98) 0%, rgba(108, 68, 220, 0.98) 46%, rgba(86, 52, 200, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 14px 26px rgba(102, 70, 200, 0.35),
    0 0 18px rgba(160, 110, 255, 0.28),
    inset 0 3px 14px rgba(255, 255, 255, 0.6),
    inset 0 -4px 12px rgba(70, 40, 160, 0.5);
  text-shadow: 0 1px 10px rgba(45, 20, 90, 0.45);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 60%);
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.5s ease;
}

.btn:hover::before {
  top: -60%;
  left: -60%;
  transform: rotate(45deg);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 8px rgba(255, 255, 255, 0.25);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 3px rgba(255, 255, 255, 0.25),
    inset 0 -2px 5px rgba(255, 255, 255, 0.2);
}

.lucky-wheel-fab {
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  margin-left: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(110% 110% at 20% 20%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.1)),
    linear-gradient(140deg, rgba(31, 209, 195, 0.9), rgba(132, 92, 240, 0.95));
  box-shadow: 0 18px 35px rgba(71, 58, 160, 0.35), 0 0 18px rgba(31, 209, 195, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  color: #0f0a19;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  overflow: hidden;
}

.lucky-wheel-static {
  align-self: flex-end;
  margin-bottom: 8px;
}

.lucky-wheel-top {
  width: 40px;
  height: 40px;
  box-shadow: 0 10px 22px rgba(71, 58, 160, 0.3), 0 0 14px rgba(31, 209, 195, 0.35);
}

.lucky-wheel-top .lucky-wheel-fab__icon {
  font-size: 12px;
  padding: 4px 6px;
}

.lucky-wheel-fab__icon {
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 8px;
  border-radius: 999px;
}

.lucky-wheel-fab__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: luckyPulse 1.8s infinite;
}

@keyframes luckyPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.lucky-wheel-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 7, 18, 0.55);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
}

.lucky-wheel-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lucky-wheel-dialog {
  width: min(100%, 980px);
  border-radius: 26px;
  background: radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, 0.3), rgba(10, 6, 24, 0.92)),
    linear-gradient(140deg, rgba(33, 25, 58, 0.94), rgba(18, 12, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  color: #f5f2ff;
  position: relative;
  padding: 26px;
}

.lucky-wheel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.lucky-wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.lucky-wheel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  opacity: 0.7;
  margin: 0 0 10px;
}

.lucky-wheel-title {
  font-size: 30px;
  margin: 0 0 10px;
}

.lucky-wheel-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
}

.lucky-wheel-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.lucky-wheel-possible-text,
.lucky-wheel-rules {
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin: 0 0 6px;
}

.lucky-wheel-section {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lucky-wheel-section-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.lucky-wheel-list {
  display: grid;
  gap: 10px;
}

.lucky-wheel-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.lucky-wheel-item-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lucky-wheel-item-title {
  font-weight: 700;
}

.lucky-wheel-item-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.lucky-wheel-item-chance {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.lucky-wheel-stage {
  display: grid;
  place-items: center;
  position: relative;
  gap: 14px;
}

.lucky-wheel-wheel {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

#lucky-wheel-canvas {
  width: 320px;
  height: 320px;
}

.lucky-wheel-center {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), rgba(255, 180, 84, 0.8));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #23112d;
  box-shadow: inset 0 6px 12px rgba(255, 255, 255, 0.6);
}

.lucky-wheel-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 28px solid #ffb454;
  position: absolute;
  top: -8px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.lucky-wheel-result {
  min-height: 22px;
  font-weight: 700;
  color: #ffd166;
  text-align: center;
}

@media (max-width: 900px) {
  .lucky-wheel-grid {
    grid-template-columns: 1fr;
  }
  .lucky-wheel-wheel {
    width: 260px;
    height: 260px;
  }
  #lucky-wheel-canvas {
    width: 260px;
    height: 260px;
  }
}

/* ========== ORDER FLOW UI ========== */

/* Currency */
.currency {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-left: 2px;
}

/* Badges — in site purple theme */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-success {
  background: linear-gradient(135deg, rgba(125,91,255,0.15), rgba(182,92,255,0.12));
  color: var(--accent);
  border-color: rgba(125,91,255,0.3);
}
.badge-danger {
  background: linear-gradient(135deg, rgba(255,80,120,0.1), rgba(255,100,80,0.08));
  color: #c44;
  border-color: rgba(255,80,120,0.25);
}
.badge-warning {
  background: linear-gradient(135deg, rgba(255,180,60,0.12), rgba(255,140,60,0.08));
  color: #b56b00;
  border-color: rgba(255,180,60,0.25);
}
.badge-info {
  background: linear-gradient(135deg, rgba(80,160,255,0.1), rgba(100,120,255,0.08));
  color: #4a7dc8;
  border-color: rgba(80,160,255,0.25);
}
body.neon-body.theme-dark .badge-success { color: #b898ff; background: linear-gradient(135deg, rgba(125,91,255,0.2), rgba(182,92,255,0.15)); }
body.neon-body.theme-dark .badge-danger { color: #ff7a8a; background: linear-gradient(135deg, rgba(255,80,120,0.15), rgba(255,100,80,0.1)); }
body.neon-body.theme-dark .badge-warning { color: #ffcc66; background: linear-gradient(135deg, rgba(255,180,60,0.15), rgba(255,140,60,0.1)); }
body.neon-body.theme-dark .badge-info { color: #88bbff; background: linear-gradient(135deg, rgba(80,160,255,0.15), rgba(100,120,255,0.1)); }

/* Checkout Steps */
.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.step-pill {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--stroke);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: all .2s ease;
}
.step-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(125,91,255,0.35);
}
body.neon-body.theme-dark .step-pill {
  background: rgba(255,255,255,0.06);
}

/* Form Cards */
.form-card-v2 {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.form-card-v2 .form-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.form-card-v2 .form-header .icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}
.field-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.form-group-v2 {
  display: grid;
  gap: 6px;
}
.form-group-v2 label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.form-group-v2 input,
.form-group-v2 select,
.form-group-v2 textarea {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--stroke);
  background: var(--panel-strong);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.form-group-v2 input:focus,
.form-group-v2 select:focus,
.form-group-v2 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(125,91,255,0.12);
}

/* Big Choice Buttons */
.choice-grid {
  display: grid;
  gap: 12px;
}
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.choice-card:hover {
  border-color: var(--stroke);
  transform: translateY(-1px);
}
.choice-card input {
  display: none;
}
.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(125,91,255,0.06);
  box-shadow: 0 4px 18px rgba(125,91,255,0.12);
}

/* Defect check choices */
.defect-choices .choice-card {
  padding: 20px;
}
.defect-choices .choice-card .choice-title {
  font-size: 16px;
}
.defect-choices .choice-card .choice-desc {
  font-size: 13px;
  line-height: 1.5;
}
.defect-choices .choice-card.defect-yes:has(input:checked) {
  border-color: #2ecc71;
  background: rgba(46,204,113,0.06);
  box-shadow: 0 4px 18px rgba(46,204,113,0.12);
}
.defect-choices .choice-card.defect-yes:has(input:checked) .choice-icon {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.defect-choices .choice-card.defect-no:has(input:checked) {
  border-color: var(--accent);
  background: rgba(125,91,255,0.06);
  box-shadow: 0 4px 18px rgba(125,91,255,0.12);
}
.choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}
.choice-body {
  flex: 1;
}
.choice-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}
.choice-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.choice-price {
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
  font-size: 14px;
}

/* Order Success */
.success-hero {
  text-align: center;
  padding: 30px 20px;
}
.success-hero .big-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 300;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(125,91,255,0.35);
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}
.success-hero h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}
.success-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-card {
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--stroke);
}
.status-card.accent { background: linear-gradient(135deg, rgba(125,91,255,0.08), rgba(182,92,255,0.06)); border-color: rgba(125,91,255,0.25); }
.status-card.muted { background: rgba(125,91,255,0.04); }
.status-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}
.status-title { font-weight: 800; font-size: 14px; margin: 0 0 2px; }
.status-text { font-size: 13px; color: var(--muted); margin: 0; }

.next-steps {
  display: grid;
  gap: 10px;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--stroke);
}
.next-step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}
.next-step p { margin: 0; font-size: 13px; }

/* Tracking in orders history */
.tracking-mini {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125,91,255,0.08), rgba(182,92,255,0.05));
  border: 1px solid rgba(125,91,255,0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tracking-mini .track-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}
.tracking-mini .track-text { font-size: 13px; }
.tracking-mini .track-text strong { display: block; font-size: 14px; margin-bottom: 2px; }

/* Big Submit Button */
.btn-big {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 18px;
}

/* Summary sticky card */
.summary-card-v2 {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 90px;
  padding: 18px;
}
.summary-card-v2 .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.summary-card-v2 .summary-row.total {
  font-size: 24px;
  font-weight: 800;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
}
.summary-card-v2 .summary-row.discount { color: var(--accent); font-weight: 700; }

/* Empty state icon */
.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
}

@media (max-width: 900px) {
  .summary-card-v2 { position: static; }
  .field-grid-v2 { grid-template-columns: 1fr; }
}

/* ========== MOTION EFFECTS ========== */

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

.fade-in {
  animation: softFadeIn 0.5s ease both;
}

.fade-in:nth-child(1) { animation-delay: 0.04s; }
.fade-in:nth-child(2) { animation-delay: 0.09s; }
.fade-in:nth-child(3) { animation-delay: 0.14s; }
.fade-in:nth-child(4) { animation-delay: 0.19s; }
.fade-in:nth-child(5) { animation-delay: 0.24s; }
.fade-in:nth-child(6) { animation-delay: 0.29s; }
.fade-in:nth-child(7) { animation-delay: 0.34s; }
.fade-in:nth-child(8) { animation-delay: 0.39s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
