:root {
  color-scheme: light;
  --bg: #f5fbff;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #5f748a;
  --line: rgba(8, 120, 242, 0.14);
  --blue: #28a8ff;
  --blue-strong: #0878f2;
  --blue-deep: #0051d8;
  --blue-soft: #e6f5ff;
  --aqua: #72d7ff;
  --ice: #f0fbff;
  --danger: #e0527d;
  --shadow: 0 18px 48px rgba(0, 114, 242, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 6%, rgba(40, 168, 255, 0.24), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(114, 215, 255, 0.58), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 42%, #eef9ff 100%),
    var(--bg);
  color: var(--ink);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  padding: env(safe-area-inset-top) 14px calc(88px + env(safe-area-inset-bottom));
}

.topbar {
  min-height: 76px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 251, 255, 0.86);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-lockup div { min-width: 0; }
.brand-lockup strong, .brand-lockup small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-lockup small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.brand-mark, .avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7dd3fc, var(--blue-strong));
  color: white;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.26);
  flex: 0 0 auto;
}

.brand-logo {
  padding: 0;
  overflow: hidden;
  background: #0878f2;
}

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(44, 58, 100, 0.08);
  flex: 0 0 auto;
}

.icon-btn span { font-size: 28px; line-height: 1; transform: translateY(-1px); }
.icon-btn.ghost { background: transparent; box-shadow: none; }
.topbar-spacer {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.screen { display: none; animation: rise 0.22s ease both; }
.screen.active { display: block; }

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

.hero {
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(178deg) saturate(0.78) brightness(1.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(186,230,253,0.34));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.88) 70%, #fff);
  z-index: 2;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow { color: #0284c7; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(38px, 11vw, 58px); line-height: 0.95; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 28px; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.5; }

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.mode-card {
  text-align: left;
  border-radius: 20px;
  padding: 16px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 128px;
}

.mode-card.selected {
  border-color: rgba(14, 165, 233, 0.34);
  background: linear-gradient(145deg, #fff, var(--blue-soft));
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.12);
}

.mode-card strong, .mode-card small { display: block; }
.mode-card small { color: var(--muted); margin-top: 8px; line-height: 1.35; }
.mode-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #e8f9ff; color: var(--blue-strong); margin-bottom: 14px; font-weight: 900; }

.choice-panel, .admin-form, .checkout-panel, .bonus-board, .progress-card, .history-card, .ref-card, .start-admin, .coin-rule, .seller-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(35, 49, 96, 0.08);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.time-label { margin-top: 8px; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16); }
select[multiple] {
  min-height: 148px;
}

select[multiple] option {
  padding: 8px;
}

.primary-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 17px;
  background: linear-gradient(135deg, #67d4ff, var(--blue-strong));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.24);
}

.open-catalog-btn { margin-top: 12px; }

.secondary-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 900;
}

.start-admin summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.start-admin form { margin-top: 14px; }

.manage-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.manage-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-row button, .seller-actions button, .order-row button {
  min-height: 34px;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--danger);
  background: #fff1f6;
  font-weight: 900;
}

.search-panel, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px 14px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 8px 0 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 49, 96, 0.09);
}

.cart-pill strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-strong);
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 14px 0 12px;
  min-height: 56px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 49, 96, 0.08);
}

.search-box input { border: 0; padding: 0; box-shadow: none; }

.search-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: var(--blue-strong);
  background: var(--blue-soft);
  flex: 0 0 auto;
}

.search-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-toggle {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 64px;
  min-height: 56px;
  border-radius: 20px;
  color: var(--blue-strong);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(35, 49, 96, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.filter-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
}

.filter-toggle.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-strong));
}

.filter-panel {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(35, 49, 96, 0.07);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.filter-head strong {
  color: var(--ink);
  font-size: 14px;
}

.filter-head span {
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sort-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.sort-strip::-webkit-scrollbar { display: none; }

.sort-strip button {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 120, 242, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.sort-strip button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-strong));
  box-shadow: 0 10px 22px rgba(8, 120, 242, 0.18);
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

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

.category-strip button {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.category-strip button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #67d4ff, var(--blue-strong));
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), #0878f2 58%, #72d7ff);
  box-shadow: var(--shadow);
}

.promo-banner span { display: block; margin-top: 4px; font-size: 13px; opacity: 0.85; }
.promo-banner button, .ref-card button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--blue-strong);
  background: #fff;
  font-weight: 900;
}

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

.product-card {
  min-width: 0;
  min-height: 304px;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(35, 49, 96, 0.08);
  display: flex;
  flex-direction: column;
}

.product-art {
  height: 124px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f9ff, #ffffff);
}

.product-art::before {
  content: "";
  width: 54px;
  height: 92px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(125,211,252,0.58), rgba(2,132,199,0.46));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.76), 0 16px 22px rgba(14, 116, 144, 0.14);
}

.product-art img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art .favorite-btn,
.product-art .nic-badge {
  z-index: 2;
}

.nic-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(7, 89, 133, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.favorite-btn {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: var(--blue-strong);
  background: rgba(255, 255, 255, 0.9);
}

.product-card h3 {
  min-height: 38px;
  margin: 12px 0 6px;
  font-size: 15px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card p {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
}

.product-foot strong { white-space: nowrap; }
.product-foot button {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  background: var(--blue-strong);
  font-size: 22px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  min-width: 0;
  min-height: 54px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav button > span:not(.nav-icon) {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.bottom-nav button.active {
  color: var(--blue-strong);
  background: var(--blue-soft);
}

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

.cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f9ff, #ffffff);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 900;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 14px;
}

.checkout-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--muted);
  font-size: 13px;
}

.coin-balance {
  border-radius: 999px;
  padding: 10px 13px;
  background: #fff;
  color: var(--blue-strong);
}

.coin-rule {
  display: grid;
  gap: 6px;
}

.coin-rule strong { color: var(--blue-strong); }
.coin-rule span { color: var(--muted); line-height: 1.45; }

.promo-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  margin-top: 2px;
  padding: 18px;
  min-height: 168px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 81, 216, 0.96), rgba(40, 168, 255, 0.9)),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.42), transparent 30%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.promo-hero-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 78px;
  height: 108px;
  border-radius: 24px 24px 15px 15px;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(255,255,255,0.42), rgba(114,215,255,0.34));
  opacity: 0.55;
}

.promo-hero-card div,
.promo-hero-card button {
  position: relative;
  z-index: 1;
}

.promo-hero-card span,
.promo-hero-card strong,
.promo-hero-card p {
  display: block;
}

.promo-hero-card span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.78;
}

.promo-hero-card strong {
  margin-top: 8px;
  max-width: 260px;
  font-size: 28px;
  line-height: 1.02;
}

.promo-hero-card p {
  max-width: 290px;
  margin: 10px 0 0;
  color: rgba(255,255,255,0.84);
}

.promo-hero-card button {
  min-height: 42px;
  border-radius: 15px;
  padding: 0 14px;
  color: var(--blue-strong);
  background: #fff;
  font-weight: 900;
}

.promo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.promo-metrics div {
  padding: 13px 8px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.07);
}

.promo-metrics strong,
.promo-metrics span {
  display: block;
}

.promo-metrics strong {
  color: var(--blue-deep);
  font-size: 18px;
}

.promo-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.bonus-board {
  display: grid;
  grid-template-columns: 144px 1fr;
  align-items: center;
  gap: 16px;
}

.wheel {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 18deg, #bae6fd, #38bdf8, #0284c7, #7dd3fc, #e0f7ff, #38bdf8);
  box-shadow: var(--shadow);
  transition: transform 1.2s cubic-bezier(.15,.85,.25,1);
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: #fff;
}

.wheel span {
  position: absolute;
  z-index: 1;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.wheel span:nth-child(1) { left: 56px; top: 10px; }
.wheel span:nth-child(2) { right: 12px; top: 62px; }
.wheel span:nth-child(3) { left: 56px; bottom: 10px; }
.wheel span:nth-child(4) { left: 12px; top: 62px; }

.progress { height: 10px; margin-top: 12px; border-radius: 999px; background: #e9edf8; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7dd3fc, var(--blue-strong)); }

.promo-list { display: grid; gap: 12px; }
.progress-card + .promo-list { margin-top: 16px; }
.promo-card {
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(35, 49, 96, 0.08);
}
.promo-card strong { display: block; font-size: 18px; margin-bottom: 6px; }

.combo-card {
  overflow: hidden;
  padding: 0;
}

.promo-featured {
  border-radius: 28px;
}

.promo-bonus-card {
  background: linear-gradient(180deg, #fff 0%, #f4fbff 100%);
}

.combo-card strong, .combo-card p, .promo-foot {
  margin-left: 18px;
  margin-right: 18px;
}

.combo-card strong {
  margin-top: 16px;
}

.combo-card p {
  min-height: 42px;
}

.combo-photo {
  display: block;
  width: 100%;
  height: 164px;
  object-fit: cover;
}

.promo-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.promo-foot .primary-btn {
  min-height: 44px;
}

.profile-dashboard {
  margin-top: 10px;
  padding: 16px;
  border-radius: 26px;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 81, 216, 0.96), rgba(40, 168, 255, 0.9)),
    radial-gradient(circle at 84% 16%, rgba(255,255,255,0.32), transparent 32%);
  box-shadow: var(--shadow);
}

.profile-main {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 12px;
}

.profile-dashboard .eyebrow,
.profile-dashboard span {
  color: rgba(255,255,255,0.82);
}

.profile-main h2 { margin-bottom: 3px; font-size: 24px; }
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  box-shadow: none;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-progress {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.profile-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.profile-progress strong { color: #fff; }

.profile-wallet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.profile-wallet div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
}

.profile-wallet span,
.profile-wallet strong {
  display: block;
}

.profile-wallet span {
  font-size: 11px;
}

.profile-wallet strong {
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}

.profile-dashboard .progress {
  background: rgba(255,255,255,0.26);
}

.profile-dashboard .progress i {
  background: linear-gradient(90deg, #fff, #bff0ff);
}

.profile-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.profile-perks article {
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.profile-perks strong,
.profile-perks span {
  display: block;
}

.profile-perks strong {
  color: var(--blue-deep);
  margin-bottom: 5px;
}

.profile-perks span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-quick-actions,
.profile-extra-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-extra-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.profile-action-tile {
  min-width: 0;
  height: 82px;
  border-radius: 18px;
  padding: 11px 8px;
  display: grid;
  justify-items: center;
  align-items: center;
  align-content: center;
  gap: 7px;
  color: var(--blue-deep);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.profile-extra-actions .profile-action-tile {
  height: 82px;
  padding: 11px 8px;
  justify-items: center;
  text-align: center;
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(35, 49, 96, 0.07);
}

.profile-extra-actions .profile-action-tile span {
  width: 34px;
  height: 34px;
  border-radius: 13px;
}

.profile-action-tile:active {
  transform: translateY(1px);
}

.profile-action-tile span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-strong));
}

.profile-action-tile svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-action-tile b {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.08;
}

.action-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.action-list button {
  min-height: 62px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.action-list button {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.action-list button:active {
  transform: translateY(1px);
}

.action-list button {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  column-gap: 12px;
}

.action-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  color: var(--blue-strong);
  background: var(--blue-soft);
  font-weight: 900;
}

.action-list b {
  display: block;
  align-self: end;
}

.action-list small {
  display: block;
  align-self: start;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.recent-card {
  margin: 14px 0;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(35, 49, 96, 0.08);
}

.recent-list {
  display: grid;
  gap: 9px;
}

.recent-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border-radius: 18px;
  background: var(--ice);
  color: var(--ink);
  text-align: left;
}

.recent-thumb {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, #e8f9ff, #ffffff);
  position: relative;
}

.recent-thumb::after {
  content: "";
  position: absolute;
  inset: 9px 13px 7px;
  border-radius: 10px 10px 7px 7px;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(40,168,255,0.44));
}

.recent-item b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item small {
  color: var(--blue-strong);
  font-weight: 900;
  white-space: nowrap;
}

.help-article {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(35, 49, 96, 0.08);
}

.help-article p {
  margin-bottom: 12px;
}

.section-head.compact {
  padding: 0 0 12px;
}

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

.seller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.seller-row strong, .seller-row span { display: block; }
.seller-row span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.seller-row b { color: var(--blue-strong); white-space: nowrap; }

.seller-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.compact-btn {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-summary div {
  min-width: 0;
  padding: 13px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
  border: 1px solid var(--line);
}

.finance-summary span,
.finance-summary strong {
  display: block;
}

.finance-summary span {
  color: var(--muted);
  font-size: 11px;
}

.finance-summary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
}

.finance-rule {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(125deg, var(--blue-deep), var(--lilac), var(--pink));
}

.finance-rule span {
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  line-height: 1.45;
}

.manager-finance-row {
  align-items: flex-start;
}

.manager-finance-row .seller-actions {
  min-width: 128px;
}

.manager-finance-row .secondary-btn {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.order-row button {
  color: var(--blue-strong);
  background: var(--blue-soft);
}

.ref-card {
  display: grid;
  gap: 14px;
  color: var(--ink);
  background: #fff;
}

.ref-card-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
}

.ref-card-head strong,
.ref-card-head span {
  display: block;
}

.ref-card-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ref-icon {
  display: grid !important;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 !important;
  border-radius: 16px;
  color: var(--pink-deep) !important;
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
}

.ref-icon svg,
.ref-card button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ref-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  background: var(--pink-soft);
}

.ref-code-row strong {
  color: var(--pink-deep);
  letter-spacing: 0.04em;
}

.ref-link-box {
  gap: 7px;
  margin: 0;
}

.ref-link-box span {
  color: var(--muted);
  font-size: 12px;
}

.ref-link-box input {
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--ice);
  font-size: 12px;
  font-weight: 700;
}

.ref-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ref-card button {
  min-height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--lilac) 55%, var(--blue-strong));
  font-weight: 900;
}

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

.setting-row {
  min-height: 78px;
  margin: 0;
  padding: 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(101, 72, 157, 0.07);
}

.setting-row span,
.setting-row b,
.setting-row small {
  display: block;
}

.setting-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.setting-row input {
  width: 46px;
  height: 26px;
  margin: 0;
  accent-color: var(--pink);
  flex: 0 0 auto;
}

.settings-info {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
  border: 1px solid var(--line);
}

.settings-info p {
  margin: 6px 0 0;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 50;
  transform: translate(-50%, 12px);
  width: min(calc(100% - 32px), 460px);
  padding: 13px 16px;
  border-radius: 17px;
  background: rgba(23, 32, 51, 0.94);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.install-sheet[hidden] {
  display: none;
}

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.install-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 23, 62, 0.34);
  backdrop-filter: blur(8px);
}

.install-card {
  position: relative;
  width: min(100%, 460px);
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 251, 0.96)),
    var(--surface);
  border: 1px solid rgba(224, 188, 237, 0.8);
  box-shadow: 0 24px 70px rgba(83, 55, 130, 0.26);
}

.install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 236, 255, 0.95);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.install-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 26px rgba(201, 39, 140, 0.22);
}

.install-badge svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-card h3 {
  margin: 16px 0 8px;
}

.install-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.install-steps div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(224, 188, 237, 0.65);
  color: var(--ink);
  font-weight: 800;
}

.install-steps span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  font-size: 13px;
}

@media (max-width: 380px) {
  .app-shell { padding-inline: 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .bonus-board { grid-template-columns: 1fr; }
  .wheel { margin: 0 auto; }
  h1 { font-size: 42px; }
  .profile-wallet { grid-template-columns: 1fr; }
  .profile-perks { grid-template-columns: 1fr; }
  .profile-quick-actions,
  .profile-extra-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-hero-card { grid-template-columns: 1fr; }
  .promo-hero-card button { width: max-content; }
}

/* Unicorn theme experiment. The previous blue theme is stored in design-backups/blue-v48. */
:root {
  --bg: #fff8ff;
  --panel: #ffffff;
  --ink: #261937;
  --muted: #75677f;
  --line: rgba(175, 69, 196, 0.15);
  --blue: #47bdf5;
  --blue-strong: #4678ee;
  --blue-deep: #5a49d7;
  --blue-soft: #edf6ff;
  --aqua: #75dcf8;
  --ice: #f7fbff;
  --pink: #f238a5;
  --pink-deep: #c8278c;
  --pink-soft: #fff0fa;
  --lilac: #a566e8;
  --gold: #f4b83d;
  --shadow: 0 18px 44px rgba(129, 61, 171, 0.15);
}

body {
  background:
    linear-gradient(160deg, rgba(255, 233, 249, 0.92) 0%, rgba(238, 248, 255, 0.88) 42%, rgba(250, 244, 255, 0.96) 74%, #fff 100%),
    var(--bg);
}

.topbar {
  background: rgba(255, 249, 255, 0.88);
  border-bottom: 1px solid rgba(242, 56, 165, 0.08);
}

.brand-mark,
.avatar {
  background: linear-gradient(135deg, var(--pink), var(--lilac) 54%, var(--blue));
  box-shadow: 0 12px 28px rgba(242, 56, 165, 0.24);
}

.brand-logo {
  padding: 3px;
  background: linear-gradient(135deg, var(--pink), var(--gold) 45%, var(--blue));
}

.brand-logo img {
  border-radius: 13px;
  filter: saturate(1.1);
}

.hero {
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 54px rgba(174, 58, 163, 0.2);
}

.hero-media {
  object-position: 50% 35%;
  filter: saturate(1.04) brightness(1.04);
}

.hero::before {
  background: linear-gradient(115deg, rgba(255,255,255,0.12), rgba(255,216,246,0.08));
}

.hero::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 22%, rgba(255,255,255,0.5) 58%, #fff 88%);
}

.hero-overlay {
  min-height: 300px;
  padding: 24px;
}

.hero .eyebrow,
.eyebrow {
  color: var(--pink-deep);
}

.hero h1 {
  max-width: 310px;
  color: #22142f;
  text-shadow: 0 2px 0 rgba(255,255,255,0.72);
}

.hero p {
  max-width: 390px;
  margin-bottom: 0;
  color: #665873;
}

.mode-card {
  border-color: rgba(165, 102, 232, 0.14);
  box-shadow: 0 12px 28px rgba(95, 73, 165, 0.07);
}

.mode-card.selected {
  border-color: rgba(242, 56, 165, 0.32);
  background: linear-gradient(145deg, #fff 25%, #fff0fa 100%);
  box-shadow: 0 15px 34px rgba(242, 56, 165, 0.13);
}

.mode-icon {
  color: var(--pink-deep);
  background: linear-gradient(145deg, #fff0fa, #edf6ff);
}

.choice-panel,
.admin-form,
.checkout-panel,
.bonus-board,
.progress-card,
.history-card,
.ref-card,
.start-admin,
.coin-rule,
.seller-panel,
.filter-panel {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(101, 72, 157, 0.08);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(242, 56, 165, 0.12);
}

.primary-btn {
  background: linear-gradient(120deg, var(--pink) 0%, var(--lilac) 52%, var(--blue-strong) 100%);
  box-shadow: 0 14px 34px rgba(207, 54, 159, 0.23);
}

.secondary-btn {
  color: var(--pink-deep);
  background: var(--pink-soft);
}

.search-box,
.filter-toggle,
.product-card,
.promo-card,
.profile-perks article,
.promo-metrics div,
.cart-item {
  box-shadow: 0 12px 28px rgba(101, 72, 157, 0.08);
}

.search-icon {
  color: var(--pink-deep);
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
}

.filter-toggle {
  color: var(--lilac);
}

.filter-toggle.active,
.sort-strip button.active {
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  box-shadow: 0 10px 22px rgba(201, 39, 140, 0.2);
}

.filter-head span,
.sort-strip button,
.favorite-btn,
.coin-balance,
.coin-rule strong,
.profile-perks strong,
.profile-action-tile {
  color: var(--pink-deep);
}

.category-strip button.active {
  background: linear-gradient(135deg, var(--pink), var(--lilac) 58%, var(--blue-strong));
  box-shadow: 0 10px 22px rgba(201, 39, 140, 0.17);
}

.promo-banner {
  background: linear-gradient(120deg, #553cd1, var(--lilac) 48%, var(--pink));
  box-shadow: 0 18px 40px rgba(112, 62, 193, 0.22);
}

.promo-banner button,
.ref-card button {
  color: var(--pink-deep);
}

.product-art,
.thumb {
  background: linear-gradient(145deg, #fff0fa, #f3f9ff 54%, #fff9e8);
}

.product-art::before {
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(247,167,223,0.6), rgba(91,139,238,0.48));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.82), 0 16px 22px rgba(151, 57, 153, 0.14);
}

.nic-badge {
  background: rgba(154, 43, 147, 0.86);
}

.product-foot button {
  background: linear-gradient(145deg, var(--pink), var(--lilac));
  box-shadow: 0 9px 18px rgba(201, 39, 140, 0.2);
}

.bottom-nav {
  background: rgba(255, 251, 255, 0.92);
  border-top-color: rgba(165, 102, 232, 0.14);
  box-shadow: 0 -10px 34px rgba(99, 65, 147, 0.08);
}

.bottom-nav button.active {
  color: var(--pink-deep);
  background: linear-gradient(145deg, var(--pink-soft), var(--blue-soft));
}

.qty-controls button,
.checkout-note {
  color: var(--pink-deep);
  background: var(--pink-soft);
}

.promo-hero-card,
.profile-dashboard {
  background:
    linear-gradient(125deg, rgba(74, 92, 225, 0.98), rgba(165, 102, 232, 0.96) 50%, rgba(242, 56, 165, 0.94)),
    radial-gradient(circle at 84% 16%, rgba(255,255,255,0.32), transparent 32%);
  box-shadow: 0 20px 46px rgba(126, 62, 180, 0.22);
}

.promo-hero-card::after {
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(255,190,235,0.5), rgba(244,184,61,0.4));
}

.promo-hero-card button {
  color: var(--pink-deep);
}

.promo-metrics strong {
  color: var(--lilac);
}

.wheel {
  background: conic-gradient(from 18deg, #ffd2ef, #f238a5, #a566e8, #4b8df2, #8be1f5, #f4b83d, #ffd2ef);
  box-shadow: 0 18px 42px rgba(170, 62, 173, 0.2);
}

.progress i {
  background: linear-gradient(90deg, var(--pink), var(--lilac), var(--blue));
}

.promo-bonus-card {
  background: linear-gradient(180deg, #fff 0%, #fff4fb 100%);
}

.profile-dashboard .progress i {
  background: linear-gradient(90deg, #fff, #ffd2ef, #bdefff);
}

.profile-action-tile {
  border-color: rgba(255,255,255,0.62);
}

.profile-action-tile span {
  color: var(--pink-deep);
  background: linear-gradient(145deg, #fff0fa, #edf6ff);
}

.toast {
  background: #3f2550;
}

.ref-card button {
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}
