:root {
  color-scheme: dark;
  --gold: #ffd64d;
  --gold-soft: #ffe894;
  --purple: #0fb86b;
  --purple-2: #35e08a;
  --deep: #062617;
  --deep-2: #0b3b24;
  --green: #1fda72;
  --cyan: #3fe7ff;
  --text: #fff8dc;
  --white: #ffffff;
  --muted: #c1dccb;
  --line: rgba(255, 214, 77, .28);
  --panel: rgba(8, 56, 34, .78);
  --panel-2: rgba(10, 70, 42, .92);
  --shadow: 0 18px 54px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 6%, rgba(31,218,114,.42), transparent 26rem),
    radial-gradient(circle at 82% 12%, rgba(255,214,77,.26), transparent 24rem),
    radial-gradient(circle at 50% 88%, rgba(4,128,72,.28), transparent 26rem),
    linear-gradient(145deg, #032013 0%, #075332 46%, #02150d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid rgba(255, 214, 77, .62);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 22px;
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 0 22px 32px;
}

.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9,63,39,.92), rgba(4,33,21,.84));
  box-shadow: var(--shadow), inset 0 0 42px rgba(31,218,114,.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand--side {
  display: flex;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.brand--side strong,
.brand--side span {
  display: block;
}

.brand--side span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand__logo {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,214,77,.2), 0 8px 24px rgba(20,211,142,.18);
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.side-nav button {
  height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 14px;
  font-weight: 800;
}

.side-nav button:hover,
.side-nav button.is-active {
  color: #241500;
  border-color: rgba(255,214,77,.4);
  background: linear-gradient(135deg, var(--gold), #ff9f2e);
  box-shadow: 0 8px 22px rgba(255,180,45,.22);
}

.app {
  min-width: 0;
  padding-bottom: 72px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(3, 26, 16, .86);
  backdrop-filter: blur(18px);
}

.topbar .brand {
  min-width: 0;
  font-size: 20px;
}

.topbar .brand__logo {
  flex: 0 0 auto;
}

.topbar .brand span {
  line-height: 1;
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--white);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 18px rgba(255,214,77,.08);
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,214,77,.4);
  border-radius: 26px;
  box-shadow: 0 24px 68px rgba(0,0,0,.28), inset 0 0 90px rgba(255,214,77,.12);
}

.hero-track {
  position: relative;
  min-height: 330px;
}

.hero {
  position: relative;
  min-height: inherit;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 16px;
  background:
    linear-gradient(110deg, rgba(4,31,20,.96) 0%, rgba(8,75,45,.9) 48%, rgba(22,155,87,.72) 100%),
    url("./assets/gold-mall-popup-v2.png") center/cover;
  opacity: 0;
  transition: opacity .36s ease;
}

.hero:not(.is-active) {
  position: absolute;
  inset: 0;
}

.hero.is-active {
  opacity: 1;
}

.hero--reward,
.hero--vip {
  background:
    linear-gradient(110deg, rgba(4,31,20,.92) 0%, rgba(8,75,45,.82) 48%, rgba(255,214,77,.22) 100%),
    url("./assets/reward-bundle-card.png") center/cover;
}

.hero--vip {
  background-position: 60% center;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}

.hero-dots span.is-active {
  width: 16px;
  background: var(--gold);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(255,214,77,.42), transparent 11rem),
    radial-gradient(circle at 54% 12%, rgba(20,211,142,.18), transparent 12rem),
    linear-gradient(90deg, rgba(2,18,11,.72), transparent 68%);
}

.hero::after {
  right: -70px;
  bottom: -92px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,214,77,.32), transparent 68%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 15%, rgba(255,255,255,.48) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 33%, rgba(255,214,77,.65) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 50%, rgba(20,211,142,.52) 0 2px, transparent 3px);
  background-size: 120px 100px;
  opacity: .58;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 46px);
}

.hero__kicker,
.section__head span,
.sheet__kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 670px;
  margin: 10px 0 8px;
  color: var(--gold);
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
  letter-spacing: 0;
  text-shadow: 0 4px 0 #7b3b05, 0 0 28px rgba(255,214,77,.44);
}

.hero p {
  margin: 0;
  color: var(--white);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero__tags span {
  padding: 8px 12px;
  border: 1px solid rgba(20,211,142,.5);
  border-radius: 999px;
  color: #dcfff2;
  background: rgba(20,211,142,.12);
  font-size: 12px;
  font-weight: 900;
}

.primary-cta,
.buy,
.confirm {
  border: 0;
  color: #251600;
  background: linear-gradient(135deg, var(--gold), #ffb22f 54%, #fff08d);
  font-weight: 1000;
  box-shadow: 0 8px 0 #a25d00, 0 18px 32px rgba(255,178,47,.24);
}

.primary-cta {
  min-width: 166px;
  height: 52px;
  margin-top: 24px;
  border-radius: 16px;
  font-size: 16px;
}

.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 300px;
}

.vip-card,
.gift-box,
.coin-stack {
  position: absolute;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}

.vip-card {
  right: 12%;
  top: 22%;
  width: 210px;
  height: 122px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,214,77,.9);
  border-radius: 22px;
  color: var(--gold);
  background: linear-gradient(135deg, #05331f, #096b40 62%, #031c12);
  font-size: 42px;
  font-weight: 1000;
  transform: rotate(-8deg);
}

.gift-box {
  right: 18%;
  bottom: 34px;
  width: 128px;
  height: 112px;
  border-radius: 18px 18px 24px 24px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(255,255,255,.72) 44% 56%, transparent 57%),
    linear-gradient(#ffd64d 0 35%, #12b768 36%);
}

.gift-box::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 28px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.coin-stack {
  right: 44%;
  bottom: 26px;
  width: 78px;
  height: 92px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to bottom, #fff0a7 0 8px, #d08a12 9px 15px);
}

.member-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 0 48px rgba(31,218,114,.14);
}

.member-panel__main {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 12px;
}

.balance-card,
.level-card,
.quick-actions button,
.product-card,
.trust article,
.profile-card,
.profile-menu button,
.record-list > div {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9,65,39,.9), rgba(3,31,20,.86));
}

.balance-card,
.level-card {
  padding: 16px;
  border-radius: 18px;
}

.balance-card span,
.level-card span,
.product-card__body p,
.sold,
.record-list small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.balance-card strong,
.level-card strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1;
}

.balance-card small {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(220, 255, 242, .7);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-card {
  display: grid;
  align-content: center;
  gap: 12px;
}

.level-card strong {
  font-size: 18px;
}

.level-card span {
  margin-top: 5px;
  font-size: 13px;
}

.level-bar,
.stock {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}

.level-bar span,
.stock span,
.mini-level span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.mini-level {
  overflow: hidden;
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}

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

.quick-actions button {
  min-height: 46px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 900;
}

.tabs {
  position: sticky;
  top: 76px;
  z-index: 9;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(3,48,29,.94), rgba(3,48,29,.68));
  scrollbar-width: none;
}

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

.tab {
  flex: 0 0 116px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,214,77,.28);
  border-radius: 18px;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 8%, rgba(255,214,77,.18), transparent 38%),
    linear-gradient(180deg, rgba(8,73,43,.86), rgba(3,36,23,.86));
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 20px rgba(31,218,114,.08);
}

.tab__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--gold);
  background: rgba(255,214,77,.09);
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 0 14px rgba(255,214,77,.1);
}

.tab.is-active {
  color: #241500;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.55), transparent 38%),
    linear-gradient(135deg, var(--gold), #fff0a2);
  box-shadow: 0 8px 24px rgba(255,214,77,.22);
}

.tab.is-active .tab__icon {
  color: #10210e;
  background: rgba(255,255,255,.38);
}

.page-view { display: none; }
.page-view.is-active { display: block; }

.section {
  margin-top: 16px;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section__head h2 {
  margin: 4px 0 0;
  color: var(--white);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.section__head button,
.section__head time {
  border: 0;
  color: var(--gold);
  background: transparent;
  font-weight: 1000;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card {
  overflow: hidden;
  align-self: stretch;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 0 38px rgba(31,218,114,.1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,214,77,.66);
  box-shadow: 0 24px 70px rgba(78,34,180,.32), inset 0 0 48px rgba(255,214,77,.1);
}

.product-card__visual {
  min-height: 196px;
  display: grid;
  place-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 72% 16%, rgba(255,214,77,.24), transparent 40%),
    linear-gradient(135deg, rgba(31,218,114,.18), rgba(255,214,77,.08));
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.product-card__body h3 {
  margin: 0;
  min-height: 58px;
  color: var(--white);
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.16;
}

.product-card__body p {
  min-height: 22px;
  margin: 8px 0 12px;
  font-size: 13px;
}

.price-row {
  min-height: 48px;
}

.price-row strong,
.flash-price strong {
  display: block;
  color: var(--gold);
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.05;
}

.old-price,
.flash-price span {
  display: inline-block;
  color: rgba(255,255,255,.62);
  font-weight: 900;
  text-decoration: line-through;
}

.sold {
  margin: 8px 0 14px;
  font-size: 13px;
}

.buy {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border-radius: 14px;
  font-size: 16px;
}

.coupon-ticket {
  position: relative;
  width: 100%;
  min-height: 184px;
  display: grid;
  grid-template-columns: minmax(58px, 22%) 8px minmax(0, 1fr);
  grid-template-areas:
    "icon divider content"
    "button button button";
  align-items: center;
  gap: 8px 6px;
  overflow: hidden;
  padding: 14px 12px;
  border: 3px solid #1b84ff;
  border-radius: 15px;
  color: #07428f;
  background:
    linear-gradient(180deg, rgba(255,255,255,.26), transparent 20%),
    linear-gradient(135deg, #5cecff 0%, #27aef2 52%, #42c8ff 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.24), 0 10px 22px rgba(0,0,0,.22);
}

.coupon-ticket__holes {
  position: absolute;
  top: 24px;
  bottom: 24px;
  width: 17px;
  background:
    radial-gradient(circle at 50% 15px, #07184a 0 10px, transparent 11px) 0 0 / 17px 46px repeat-y;
}

.coupon-ticket__holes--left { left: -8px; }
.coupon-ticket__holes--right { right: -8px; }

.coupon-ticket__icon {
  position: relative;
  z-index: 1;
  grid-area: icon;
  display: grid;
  place-items: center;
  min-width: 0;
}

.coupon-ticket__icon img {
  width: min(88px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.coupon-ticket__divider {
  grid-area: divider;
  height: 118px;
  border-left: 5px dotted rgba(0,81,175,.72);
}

.coupon-ticket__content {
  grid-area: content;
  min-width: 0;
}

.coupon-ticket h4 {
  margin: 0 0 8px;
  color: #0043aa;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.1;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

.coupon-ticket p {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0;
  color: #173f82;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.12;
  font-weight: 900;
}

.coupon-ticket p span {
  color: #245ca3;
}

.coupon-ticket p strong {
  color: #002f8c;
}

.coupon-ticket time {
  display: block;
  margin-top: 9px;
  color: #05366e;
  font-size: clamp(11px, .95vw, 13px);
  line-height: 1.15;
  font-weight: 900;
}

.coupon-ticket__button {
  position: relative;
  z-index: 1;
  grid-area: button;
  justify-self: end;
  width: min(118px, 42%);
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  border: 4px solid #ffd64d;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(180deg, #55ff83, #00a65e 62%, #006f4a);
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.05;
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(0,0,0,.38);
  box-shadow: 0 5px 0 #006747, inset 0 4px 10px rgba(255,255,255,.32);
}

.coupon-ticket__cut {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  border-bottom: 3px dashed rgba(255,255,255,.78);
}

.coupon-ticket__cut span {
  position: absolute;
  left: -12px;
  top: -14px;
  width: 34px;
  height: 24px;
}

.coupon-ticket__cut span::before {
  content: "✂";
  color: #eff7ff;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 2px 0 #1b84ff;
}

.visual {
  position: relative;
  width: 100%;
  min-height: 184px;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border-radius: 16px;
}

.reward-art {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31,218,114,.26), rgba(255,214,77,.12));
}

.reward-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.typed-art,
.flash-art {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9,65,39,.92), rgba(255,214,77,.12));
}

.typed-art img,
.flash-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.typed-art img {
  object-fit: cover;
}

.typed-art--spin img,
.typed-art--vip img {
  object-position: center;
}

.visual strong {
  display: block;
  color: var(--white);
  font-size: clamp(24px, 2.3vw, 44px);
  line-height: 1;
}

.visual span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 1000;
}

.visual--pulsa { background: linear-gradient(135deg, rgba(20,211,142,.36), rgba(255,214,77,.1)); }
.visual--spin { background: linear-gradient(135deg, rgba(255,214,77,.24), rgba(255,45,122,.23)); }
.visual--vip { background: linear-gradient(135deg, rgba(20,211,142,.34), rgba(255,214,77,.17)); }
.visual--item { background: linear-gradient(135deg, rgba(63,231,255,.16), rgba(20,211,142,.26)); }
.visual--voucher { background: linear-gradient(135deg, rgba(255,214,77,.26), rgba(20,211,142,.28)); }

.phone-icon,
.mini-ticket {
  width: 112px;
  height: 132px;
  border: 4px solid var(--green);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(3,12,34,.48);
}

.phone-icon span {
  width: 62px;
  height: 10px;
  margin: 4px;
  border-radius: 99px;
  background: var(--gold-soft);
}

.spin-wheel {
  position: relative;
  width: 130px;
  height: 130px;
  border: 8px solid var(--gold);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255,214,77,.94), rgba(3,38,23,.82) 14%, rgba(20,211,142,.7) 25%, rgba(3,38,23,.82) 38%, rgba(255,183,53,.68) 50%, rgba(3,38,23,.82) 64%, rgba(19,170,93,.8) 77%, rgba(3,38,23,.82) 88%, rgba(255,214,77,.94));
}

.spin-wheel::before,
.spin-wheel span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.spin-wheel::before {
  inset: 42px;
  background: var(--gold);
}

.spin-wheel span {
  left: 50%;
  top: -20px;
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 30px solid var(--gold);
  transform: translateX(-50%);
}

.vip-crown {
  width: 142px;
  height: 94px;
  background: linear-gradient(135deg, var(--gold), #ff9f2e);
  clip-path: polygon(0 100%, 100% 100%, 92% 34%, 67% 58%, 50% 0, 33% 58%, 8% 34%);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.35));
}

.treasure {
  width: 130px;
  height: 104px;
  border: 4px solid var(--gold);
  border-radius: 18px 18px 26px 26px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,.52) 46% 54%, transparent 55%),
    linear-gradient(#0ba765 0 42%, #14d38e 43%);
  box-shadow: inset 0 0 20px rgba(255,255,255,.18);
}

.mini-ticket {
  height: 104px;
  border-color: var(--gold);
  border-style: dashed;
  font-size: 34px;
  font-weight: 1000;
  color: var(--gold);
}

.flash-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
}

.flash-card__art {
  height: 132px;
  padding: 14px;
  border-right: 1px solid rgba(255,214,77,.22);
  background:
    radial-gradient(circle at 48% 45%, rgba(255,214,77,.18), transparent 54%),
    linear-gradient(135deg, rgba(7,73,43,.5), rgba(3,31,20,.32));
}

.flash-card__body {
  display: grid;
  grid-template-columns: 1fr 190px 210px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.flash-card h3 {
  grid-column: 1;
  margin: 0 0 4px;
  color: var(--white);
  font-size: clamp(20px, 2.1vw, 30px);
}

.flash-card p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff3c4;
  background: linear-gradient(135deg, #14d38e, #087a49);
  font-size: 12px;
  font-weight: 1000;
}

.flash-card .badge {
  display: none;
}

.flash-price {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.stock {
  grid-column: 3;
  width: min(360px, 100%);
  margin: 0;
}

.flash-card small {
  grid-column: 3;
  display: block;
  margin: -3px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.flash-card .buy {
  grid-column: 3;
  min-height: 44px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.trust article {
  min-height: 94px;
  padding: 18px;
  border-radius: 18px;
}

.trust strong,
.trust span {
  display: block;
}

.trust strong {
  color: var(--gold);
  font-size: 17px;
}

.trust span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.records,
.profile {
  margin-top: 18px;
}

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

.record-list > div {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
}

.record-list span {
  color: var(--white);
  font-weight: 900;
}

.ok { color: var(--green); }
.pending { color: var(--gold); }

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #10210e;
  background: linear-gradient(135deg, var(--gold), var(--green));
  font-size: 28px;
  font-weight: 1000;
}

.profile-card h2 {
  margin: 0 0 6px;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-menu {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.profile-menu button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--white);
  text-align: left;
}

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

.profile-menu span {
  font-weight: 1000;
}

.profile-menu strong {
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav {
  display: none;
}

.product-card__body p {
  display: none;
}

.member-panel--compact .member-panel__main {
  grid-template-columns: 1.25fr .75fr;
}

.profile-level {
  margin-top: 14px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: end;
  justify-content: center;
  background: rgba(4,6,20,.66);
  backdrop-filter: blur(10px);
}

.sheet.is-open {
  display: flex;
}

.sheet__panel {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19,30,77,.98), rgba(9,17,46,.98));
  box-shadow: 0 -18px 60px rgba(0,0,0,.44);
}

.sheet__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.sheet h2 {
  margin: 8px 0;
}

.sheet p {
  color: var(--muted);
  font-weight: 800;
}

.receipt {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.receipt span {
  color: var(--muted);
  font-weight: 800;
}

.confirm {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
}

.confirm:disabled {
  cursor: default;
  opacity: .82;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding-inline: 16px;
  }
}

@media (max-width: 1120px) {
  .catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    padding: 0 clamp(12px, 3vw, 18px) 0;
  }

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

  .sidebar {
    display: none;
  }

  .hero-carousel,
  .hero-track {
    min-height: 220px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

  .member-panel__main {
    grid-template-columns: 1fr 1fr;
  }

  .level-card {
    grid-column: 1 / -1;
  }

  .flash-card {
    grid-template-columns: 1fr;
  }

  .trust,
  .profile-menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,214,77,.22);
    border-radius: 0;
    background: rgba(2, 28, 17, .97);
    backdrop-filter: blur(18px);
    box-shadow: 0 -10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  }

  .bottom-nav button {
    position: relative;
    min-width: 0;
    height: 46px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 14px;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
  }

  .bottom-nav .nav-icon {
    display: block;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 13px;
    line-height: 1;
    opacity: .9;
  }

  .bottom-nav button.is-active {
    color: var(--gold);
    background: rgba(255,214,77,.1);
  }

  .bottom-nav button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: var(--gold);
    transform: translateX(-50%);
  }

  .bottom-nav__primary {
    top: 0;
    width: 58px;
    height: 46px;
    justify-self: center;
    gap: 1px;
    color: #251600 !important;
    background: linear-gradient(135deg, var(--gold), #ff9f2e) !important;
    border-radius: 16px;
    box-shadow: 0 3px 0 #8a4d00, 0 9px 18px rgba(255,176,43,.2);
  }

  .bottom-nav__primary .nav-icon {
    font-size: 14px;
  }

  .bottom-nav__primary span:last-child {
    font-size: 10px;
  }

  .bottom-nav button.bottom-nav__primary {
    width: 58px;
    height: 46px;
    border-radius: 16px;
  }

  .bottom-nav button.bottom-nav__primary::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-inline: 10px;
  }

  .topbar {
    height: 52px;
  }

  .topbar .brand {
    font-size: 18px;
  }

  .brand__logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .hero-carousel,
  .hero-track {
    height: 132px;
    min-height: 132px;
    border-radius: 18px;
  }

  .hero {
    min-height: 132px;
  }

  .hero__content {
    padding: 15px 16px;
  }

  .hero h1 {
    max-width: 280px;
    margin: 4px 0 3px;
    font-size: 27px;
    line-height: .95;
  }

  .hero p {
    max-width: 260px;
    font-size: 14px;
  }

  .hero__tags {
    display: none;
  }

  .primary-cta {
    width: auto;
    min-width: 128px;
    height: 34px;
    margin-top: 10px;
    border-radius: 13px;
    font-size: 12px;
    box-shadow: 0 5px 0 #a25d00, 0 12px 24px rgba(255,178,47,.2);
  }

  .member-panel {
    margin-top: 6px;
    padding: 6px;
    border-radius: 15px;
  }

  .member-panel__main {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .balance-card,
  .level-card {
    padding: 7px 9px;
    border-radius: 14px;
  }

  .balance-card span {
    font-size: 10px;
  }

  .balance-card strong {
    margin-top: 3px;
    font-size: 15px;
  }

  .flash-section {
    margin-top: 7px;
  }

  .section__head--flash {
    align-items: center;
    margin-bottom: 6px;
  }

  .section__head--flash h2::before {
    content: "⚡ ";
  }

  .flash-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    height: auto;
    min-height: 0;
    border-radius: 15px;
  }

  .flash-card__art {
    height: 104px;
    padding: 8px;
    border-right: 1px solid rgba(255,214,77,.18);
  }

  .flash-art {
    border-radius: 11px;
  }

  .flash-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 10px 9px;
  }

  .flash-card p {
    display: none;
  }

  .flash-card .badge {
    display: none;
  }

  .flash-card h3 {
    grid-column: auto;
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.12;
  }

  .flash-price {
    grid-column: auto;
    grid-row: auto;
  }

  .flash-price span {
    font-size: 11px;
  }

  .flash-price strong {
    font-size: 18px;
  }

  .stock {
    grid-column: auto;
    height: 6px;
    margin: 4px 0 2px;
  }

  .flash-card small {
    grid-column: auto;
    margin-bottom: 5px;
    font-size: 10px;
  }

  .flash-card .buy {
    grid-column: auto;
    min-height: 28px;
    box-shadow: 0 3px 0 #a25d00, 0 8px 16px rgba(255,178,47,.16);
  }

  .quick-actions button {
    font-size: 13px;
  }

  .tabs {
    position: relative;
    top: auto;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding: 7px 0 6px;
    background: transparent;
  }

  .tab {
    min-width: 0;
    width: 100%;
    height: 48px;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 14px;
    font-size: 10px;
  }

  .tab__icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 13px;
  }

  .section {
    margin-top: 7px;
  }

  .section__head {
    margin-bottom: 8px;
  }

  .section__head span {
    display: none;
  }

  .section__head h2 {
    font-size: 19px;
  }

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

  .product-card {
    height: 204px;
    border-radius: 13px;
    border-color: rgba(255,214,77,.2);
  }

  .flash-card.product-card {
    height: auto;
    min-height: 0;
  }

  .product-card__visual {
    height: 82px;
    min-height: 0;
    padding: 4px;
  }

  .product-card__body {
    padding: 7px;
  }

  .product-card__body h3 {
    min-height: 31px;
    max-height: 31px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.16;
  }

  .sold {
    margin: 3px 0 6px;
    font-size: 10px;
  }

  .price-row {
    min-height: 22px;
  }

  .price-row strong {
    font-size: 16px;
  }

  .buy {
    min-height: 30px;
    border-radius: 10px;
    font-size: 11px;
    box-shadow: 0 3px 0 #a25d00, 0 8px 16px rgba(255,178,47,.16);
  }

  .coupon-ticket {
    min-height: 74px;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "icon content"
      "button button";
    gap: 4px 6px;
    padding: 5px;
    border-width: 2px;
  }

  .coupon-ticket__icon { grid-area: icon; }
  .coupon-ticket__divider {
    position: absolute;
    left: 38px;
    top: 8px;
    height: 42px;
    border-left-width: 3px;
  }
  .coupon-ticket__content {
    grid-area: content;
    padding-left: 6px;
  }
  .coupon-ticket__button {
    grid-area: button;
    justify-self: end;
    min-width: 74px;
    width: 78px;
    min-height: 23px;
    margin-right: 4px;
    border-width: 2px;
    font-size: 10px;
    box-shadow: 0 3px 0 #006747, inset 0 3px 8px rgba(255,255,255,.28);
  }

  .coupon-ticket__icon img {
    width: 28px;
  }

  .coupon-ticket h4 {
    margin-bottom: 3px;
    font-size: 8px;
    line-height: 1.05;
  }

  .coupon-ticket p {
    gap: 4px;
    margin: 1px 0;
    font-size: 7px;
  }

  .coupon-ticket time {
    margin-top: 3px;
    font-size: 6px;
  }

  .coupon-ticket__holes {
    top: 18px;
    bottom: 24px;
    width: 12px;
    background:
      radial-gradient(circle at 50% 11px, #07184a 0 7px, transparent 8px) 0 0 / 12px 32px repeat-y;
  }

  .reward-art {
    border-radius: 11px;
  }

  .typed-art {
    border-radius: 11px;
  }

  .typed-art img,
  .reward-art img {
    object-fit: cover;
  }

  .coupon-ticket__cut {
    left: 14px;
    right: 14px;
    bottom: 6px;
    border-bottom-width: 2px;
  }

  .coupon-ticket__cut span::before {
    font-size: 18px;
  }

  .visual {
    height: 96px;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    text-align: center;
  }

  .visual strong {
    font-size: 18px;
  }

  .visual span {
    margin-top: 4px;
    font-size: 11px;
  }

  .product-section {
    margin-top: 10px;
  }

  .trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    margin-top: 12px;
    padding-bottom: 0;
  }

  .trust article {
    min-width: 0;
    min-height: 46px;
    padding: 8px 9px;
    border-radius: 14px;
  }

  .trust strong {
    font-size: 11px;
    white-space: nowrap;
  }

  .trust span {
    margin-top: 3px;
    font-size: 9px;
    white-space: nowrap;
  }

  .profile {
    margin-top: 8px;
  }

  .profile-card {
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 24px;
  }

  .profile-card h2 {
    margin-bottom: 3px;
    font-size: 20px;
  }

  .profile-card p {
    font-size: 13px;
  }

  .profile-level {
    margin-top: 8px;
  }

  .profile-level strong {
    font-size: 18px;
  }

  .profile-level span {
    font-size: 12px;
  }

  .profile-menu {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 8px;
  }

  .profile-menu button {
    min-height: 50px;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .records {
    margin-top: 8px;
  }

  .record-list {
    gap: 7px;
  }

  .record-list > div {
    min-height: 52px;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .record-list span {
    font-size: 14px;
    line-height: 1.15;
  }

  .record-list small {
    margin-top: 2px;
    font-size: 11px;
  }

  .record-list strong {
    font-size: 13px;
  }

  .phone-icon,
  .mini-ticket {
    width: 58px;
    height: 64px;
    margin: 0 auto;
  }

  .spin-wheel {
    width: 66px;
    height: 66px;
    margin: 0 auto;
  }

  .vip-crown,
  .treasure {
    width: 70px;
    height: 50px;
    margin: 0 auto;
  }
}

@media (max-width: 360px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  .product-card__visual {
    min-height: 178px;
  }

  .coupon-ticket {
    min-height: 160px;
    grid-template-columns: 86px 12px minmax(0, 1fr);
    grid-template-areas:
      "icon divider content"
      "button button button";
  }

  .coupon-ticket__button {
    justify-self: end;
    min-width: 96px;
    margin-right: 0;
  }

  .coupon-ticket__icon img {
    width: 82px;
  }

  .trust,
  .profile-menu,
  .member-panel__main {
    grid-template-columns: 1fr;
  }
}

/* Force H5 landing-page layout even inside wide emulator browser windows. */
body {
  display: flex;
  justify-content: center;
}

.app-shell {
  display: block;
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100vh;
  padding: 0 10px;
}

.sidebar {
  display: none;
}

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

.topbar {
  height: 56px;
  padding: 0 10px;
}

.topbar .brand {
  font-size: 20px;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.hero-carousel,
.hero-track {
  height: 170px;
  min-height: 170px;
  border-radius: 20px;
}

.hero {
  min-height: 170px;
  grid-template-columns: 1fr;
}

.hero__content {
  height: 100%;
  padding: 14px 18px 54px;
}

.hero h1 {
  max-width: 292px;
  margin: 4px 0 4px;
  font-size: 27px;
  line-height: .96;
}

.hero p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.15;
}

.hero__tags,
.hero__visual {
  display: none;
}

.primary-cta {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: auto;
  min-width: 128px;
  height: 34px;
  margin-top: 0;
  border-radius: 13px;
  font-size: 12px;
  box-shadow: 0 5px 0 #a25d00, 0 12px 22px rgba(255,178,47,.18);
}

.hero-dots {
  bottom: 15px;
}

.member-panel {
  margin-top: 7px;
  padding: 7px;
  border-radius: 16px;
}

.member-panel__main {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.balance-card,
.level-card {
  padding: 8px 10px;
  border-radius: 14px;
}

.balance-card span {
  font-size: 10px;
}

.balance-card strong {
  margin-top: 3px;
  font-size: 16px;
}

.flash-section {
  margin-top: 8px;
}

.section__head {
  margin-bottom: 8px;
}

.section__head span {
  display: none;
}

.section__head h2 {
  font-size: 21px;
}

.section__head--flash {
  align-items: center;
  margin-bottom: 6px;
}

.section__head--flash h2::before {
  content: "⚡ ";
}

.flash-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  height: auto;
  min-height: 0;
  border-radius: 15px;
}

.flash-card__art {
  height: 104px;
  padding: 8px;
  border-right: 1px solid rgba(255,214,77,.18);
}

.flash-art {
  border-radius: 11px;
}

.flash-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 8px 10px 9px;
}

.flash-card p,
.flash-card .badge {
  display: none;
}

.flash-card h3 {
  grid-column: auto;
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.12;
}

.flash-price {
  grid-column: auto;
  grid-row: auto;
}

.flash-price span {
  font-size: 11px;
}

.flash-price strong {
  font-size: 18px;
}

.stock {
  grid-column: auto;
  height: 6px;
  margin: 4px 0 2px;
}

.flash-card small {
  grid-column: auto;
  margin-bottom: 5px;
  font-size: 10px;
}

.flash-card .buy {
  grid-column: auto;
  min-height: 28px;
  box-shadow: 0 3px 0 #a25d00, 0 8px 16px rgba(255,178,47,.16);
}

.tabs {
  position: relative;
  top: auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  padding: 7px 0 6px;
  background: transparent;
}

.tab {
  min-width: 0;
  width: 100%;
  height: 48px;
  gap: 3px;
  padding: 5px 2px;
  border-radius: 14px;
  font-size: 10px;
}

.tab__icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 13px;
}

.section {
  margin-top: 8px;
}

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

.product-card {
  height: 204px;
  border-radius: 13px;
  border-color: rgba(255,214,77,.2);
}

.flash-card.product-card {
  height: auto;
  min-height: 0;
}

.product-card__visual {
  height: 82px;
  min-height: 0;
  padding: 4px;
}

.product-card__body {
  padding: 7px;
}

.product-card__body h3 {
  min-height: 31px;
  max-height: 31px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.16;
}

.sold {
  margin: 3px 0 6px;
  font-size: 10px;
}

.price-row {
  min-height: 22px;
}

.price-row strong {
  font-size: 16px;
}

.buy {
  min-height: 30px;
  border-radius: 10px;
  font-size: 11px;
  box-shadow: 0 3px 0 #a25d00, 0 8px 16px rgba(255,178,47,.16);
}

.coupon-ticket {
  min-height: 74px;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "icon content"
    "button button";
  gap: 4px 6px;
  padding: 5px;
  border-width: 2px;
}

.coupon-ticket__icon {
  grid-area: icon;
}

.coupon-ticket__divider {
  position: absolute;
  left: 38px;
  top: 8px;
  height: 42px;
  border-left-width: 3px;
}

.coupon-ticket__content {
  grid-area: content;
  padding-left: 6px;
}

.coupon-ticket__icon img {
  width: 28px;
}

.coupon-ticket h4 {
  margin-bottom: 3px;
  font-size: 8px;
  line-height: 1.05;
}

.coupon-ticket p {
  gap: 4px;
  margin: 1px 0;
  font-size: 7px;
}

.coupon-ticket time {
  margin-top: 3px;
  font-size: 6px;
}

.coupon-ticket__holes {
  top: 18px;
  bottom: 24px;
  width: 12px;
  background:
    radial-gradient(circle at 50% 11px, #07184a 0 7px, transparent 8px) 0 0 / 12px 32px repeat-y;
}

.coupon-ticket__cut {
  left: 14px;
  right: 14px;
  bottom: 6px;
  border-bottom-width: 2px;
}

.coupon-ticket__cut span::before {
  font-size: 18px;
}

.typed-art,
.reward-art {
  border-radius: 11px;
}

.typed-art img,
.reward-art img {
  object-fit: cover;
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  margin-top: 12px;
  padding-bottom: 0;
}

.trust article {
  min-width: 0;
  min-height: 46px;
  padding: 8px 9px;
  border-radius: 14px;
}

.trust strong {
  font-size: 11px;
  white-space: nowrap;
}

.trust span {
  margin-top: 3px;
  font-size: 9px;
  white-space: nowrap;
}

.profile-menu {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
}

.profile-menu button {
  min-height: 50px;
  padding: 9px 12px;
  border-radius: 13px;
}

.record-list > div {
  min-height: 52px;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 13px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,214,77,.22);
  border-radius: 0;
  background: rgba(2, 28, 17, .97);
  backdrop-filter: blur(18px);
  box-shadow: 0 -10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateX(-50%);
}

.bottom-nav button {
  position: relative;
  min-width: 0;
  height: 46px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
}

.bottom-nav .nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  opacity: .9;
}

.bottom-nav button.is-active {
  color: var(--gold);
  background: rgba(255,214,77,.1);
}

.bottom-nav button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.bottom-nav__primary,
.bottom-nav button.bottom-nav__primary {
  top: 0;
  width: 58px;
  height: 46px;
  justify-self: center;
  gap: 1px;
  color: #251600 !important;
  background: linear-gradient(135deg, var(--gold), #ff9f2e) !important;
  border-radius: 16px;
  box-shadow: 0 3px 0 #8a4d00, 0 9px 18px rgba(255,176,43,.2);
}

.bottom-nav__primary .nav-icon {
  font-size: 14px;
}

.bottom-nav__primary span:last-child {
  font-size: 10px;
}

.bottom-nav button.bottom-nav__primary::after {
  display: none;
}

.spin-section {
  margin-top: 8px;
}

.spin-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 214, 77, .34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 214, 77, .22), transparent 5rem),
    linear-gradient(135deg, rgba(2, 48, 29, .94), rgba(7, 92, 52, .9));
  box-shadow: inset 0 0 38px rgba(31, 218, 114, .1);
}

.spin-card .spin-wheel {
  width: 104px;
  height: 104px;
  margin: 0;
  border: 7px solid var(--gold);
  border-radius: 999px;
  background:
    radial-gradient(circle, #06351f 0 18%, transparent 19%),
    conic-gradient(#ffd64d 0 60deg, #21df80 60deg 120deg, #7de35e 120deg 180deg, #ffb22f 180deg 240deg, #0fb86b 240deg 300deg, #fff08d 300deg 360deg);
  box-shadow: 0 8px 0 #875000, 0 18px 34px rgba(0, 0, 0, .24);
  transition: transform 1.1s cubic-bezier(.16, .84, .24, 1);
}

.spin-card .spin-wheel::before {
  content: "";
  position: absolute;
  inset: auto;
  left: 50%;
  top: -13px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid var(--gold);
  transform: translateX(-50%);
}

.spin-copy {
  min-width: 0;
}

.spin-copy span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.spin-copy h3 {
  margin: 2px 0 4px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.05;
}

.spin-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.spin-button {
  width: 100%;
  min-height: 31px;
}

.spin-copy strong {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.2;
}

.spin-quota {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.spin-quota span {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(255, 214, 77, .22);
  border-radius: 12px;
  background: rgba(2, 28, 17, .44);
}

.spin-quota strong,
.spin-quota em {
  display: block;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spin-quota strong {
  color: var(--gold);
  font-size: 10px;
  font-weight: 1000;
}

.spin-quota em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.tabs {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 0 0 82px;
  scroll-snap-align: start;
}

@media (max-width: 520px) {
  .app {
    padding-bottom: 76px;
  }

  .topbar {
    height: 56px;
    padding: 7px 12px;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand span {
    font-size: 20px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero-carousel {
    height: 126px;
    margin-top: 4px;
    border-radius: 18px;
  }

  .hero {
    padding: 18px;
  }

  .hero__content {
    max-width: 76%;
  }

  .hero__kicker {
    font-size: 12px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: 31px;
    line-height: .9;
  }

  .hero p {
    font-size: 13px;
  }

  .primary-cta {
    min-height: 34px;
    min-width: 132px;
    padding: 0 18px;
    font-size: 12px;
  }

  .hero-dots {
    bottom: 12px;
  }

  .member-panel--compact {
    margin-top: 8px;
    padding: 8px;
  }

  .balance-card {
    min-height: 58px;
  }

  .section__head--flash h2 {
    font-size: 20px;
  }

  .flash-card {
    grid-template-columns: 82px minmax(0, 1fr);
    border-radius: 14px;
  }

  .flash-card__art {
    height: 98px;
  }

  .flash-card h3 {
    font-size: 13px;
  }

  .flash-price strong {
    font-size: 17px;
  }

  .flash-card .buy {
    min-height: 27px;
    font-size: 10px;
  }

  .tabs {
    gap: 6px;
    margin: 2px -8px 0;
    padding: 7px 8px 8px;
    background: linear-gradient(90deg, rgba(255,214,77,.08), transparent 18%, transparent 82%, rgba(255,214,77,.08));
  }

  .tab {
    flex-basis: 72px;
    height: 46px;
    border-radius: 15px;
    font-size: 10px;
  }

  .tab__icon {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .catalog {
    gap: 9px;
  }

  .product-card {
    height: 198px;
  }

  .product-card__visual {
    height: 80px;
  }

  .product-card__body h3 {
    min-height: 29px;
    max-height: 29px;
    font-size: 12px;
  }

  .price-row strong {
    font-size: 15px;
  }

  .sold {
    font-size: 9px;
  }

  .buy {
    min-height: 29px;
    font-size: 10px;
  }

  .coupon-ticket {
    min-height: 70px;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 5px 6px;
  }

  .coupon-ticket__icon img {
    width: 30px;
  }

  .coupon-ticket__divider {
    left: 42px;
    top: 9px;
    height: 38px;
  }

  .coupon-ticket__content {
    padding-left: 8px;
  }

  .coupon-ticket h4 {
    max-width: 100%;
    font-size: 7px;
    line-height: 1.05;
  }

  .coupon-ticket p {
    font-size: 6px;
    line-height: 1.05;
  }

  .coupon-ticket time {
    font-size: 5px;
  }

  .bottom-nav {
    width: min(100%, 390px);
    min-height: 54px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  }

  .bottom-nav button {
    height: 42px;
    border-radius: 12px;
    font-size: 9px;
  }

  .bottom-nav .nav-icon {
    width: 17px;
    height: 17px;
    font-size: 11px;
  }

  .bottom-nav__primary,
  .bottom-nav button.bottom-nav__primary {
    width: 52px;
    height: 42px;
    border-radius: 15px;
  }

  .bottom-nav__primary span:last-child {
    font-size: 9px;
  }
}
