:root {
  --header: #101820;
  --navy: #101820;
  --button: #2f6f73;
  --text: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --green: #20c997;
  --red: #d94645;
  --gold: #c8a45d;
  --bg: #f8f5ee;
  --card: #ffffff;
  --shadow: 0 14px 34px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 52%, #f3efe6 100%);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-header,
.app-footer {
  width: min(100%, 500px);
  margin: 0 auto;
  background: var(--header);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 67px;
  padding: 0 23px;
  border-bottom: 1px solid rgba(200, 164, 93, 0.34);
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.18);
}

.auto-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7f0df;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.logo-stripes {
  position: relative;
  width: 30px;
  height: 22px;
  display: inline-block;
}

.logo-stripes::before,
.logo-stripes::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 9px;
  border-radius: 2px 8px 2px 2px;
  transform: skewX(-20deg);
}

.logo-stripes::before {
  top: 1px;
  background: var(--gold);
}

.logo-stripes::after {
  bottom: 1px;
  background: var(--green);
}

.brand-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 248, 232, 0.06);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #f7f0df;
  font-size: 23px;
  cursor: pointer;
}

.menu-button {
  margin-right: 13px;
}

.header-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.page {
  width: min(100%, 500px);
  min-height: calc(100vh - 134px);
  margin: 0 auto;
  background: #fffdf9;
}

.app-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 67px;
  padding: 18px 20px;
  color: #d8c9a7;
  font-size: 13px;
}

.app-footer .auto-logo {
  font-size: 24px;
}

.app-footer .brand-logo-img {
  width: 30px;
  height: 30px;
}

.footer-info-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.footer-info-grid details {
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(32, 201, 151, 0.07));
  color: #f7f0df;
}

.footer-info-grid summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(245, 201, 107, 0.5);
  border-radius: 6px;
  background: rgba(8, 16, 22, 0.55);
  color: #f5c96b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}

.footer-info-grid summary::-webkit-details-marker {
  display: none;
}

.footer-info-grid summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #20c997;
  font-size: 16px;
  font-weight: 900;
}

.footer-info-grid details[open] summary {
  margin-bottom: 8px;
}

.footer-info-grid details[open] summary::after {
  content: "-";
}

.footer-info-grid p {
  margin: 0;
  color: #d8c9a7;
  font-size: 11px;
  line-height: 1.45;
}

.footer-info-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: #20c997;
  font-size: 11px;
  font-weight: 800;
}

.flash-wrap {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 70;
  width: min(450px, calc(100vw - 28px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
}

.flash {
  padding: 12px 14px;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.flash-success {
  border-left: 5px solid var(--green);
}

.flash-warning {
  border-left: 5px solid #d99a28;
}

.flash-danger {
  border-left: 5px solid var(--red);
}

.auth-card {
  padding: 28px 24px;
  background: white;
}

.auth-card h1 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 24px;
}

.auth-card label,
.form-page label,
.admin-card label {
  display: block;
  margin: 17px 0 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #c9b98f;
  border-radius: 5px;
  background: white;
  color: black;
  outline-color: var(--gold);
}

.phone-row,
.verify-row {
  display: flex;
}

.phone-row select {
  width: 122px;
  border-radius: 5px 0 0 5px;
}

.phone-row input {
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

.verify-row input {
  border-radius: 5px 0 0 5px;
}

.verify-row strong {
  display: grid;
  width: 65px;
  place-items: center;
  border: 1px solid #d9cba7;
  border-left: 0;
  background: #f8f2e5;
}

.verify-row a {
  display: grid;
  width: 64px;
  place-items: center;
  border: 1px solid #d9cba7;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  color: #1f7a6a;
  font-size: 13px;
  text-decoration: underline;
}

.form-hint {
  margin: 8px 0 2px;
  color: #5c6878;
  font-size: 13px;
  line-height: 1.5;
}

.inline-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 4px 4px 0 0;
  padding: 5px 9px;
  border: 1px solid rgba(31, 122, 106, .24);
  border-radius: 6px;
  background: rgba(31, 122, 106, .08);
  color: #155f53;
  font-weight: 700;
  cursor: pointer;
}

.text-link,
.auth-switch a,
.auth-note a {
  color: #1262ff;
}

.text-link {
  display: inline-block;
  margin: 28px 0 30px;
}

.blue-button,
.dark-button,
.black-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.blue-button {
  width: 100%;
  background: var(--button);
  color: white;
}

.register-form .register-referral-input {
  display: block;
  margin-bottom: 18px !important;
}

.register-form .register-submit-gap {
  display: block;
  height: 18px !important;
  flex: 0 0 18px;
}

.register-form .register-submit {
  display: flex;
  margin-top: 18px !important;
}

.dark-button {
  background: linear-gradient(135deg, #101820, #183a3c);
  color: #fff8e8;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.18);
}

.black-button {
  width: 100%;
  background: linear-gradient(135deg, #101820, #000000);
  color: #fff8e8;
}

.outline-button {
  width: 100%;
  background: white;
  color: black;
  border: 2px solid #101820;
}

.full {
  width: 100%;
}

.auth-note {
  margin-top: 50px;
}

.auth-note h2 {
  font-size: 17px;
}

.auth-note p {
  line-height: 1.55;
}

.auth-switch {
  margin-top: 16px;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  align-content: center;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  color: #fff8e8;
  background:
    radial-gradient(circle at 80% 16%, rgba(32, 201, 151, 0.28), transparent 26%),
    radial-gradient(circle at 18% 72%, rgba(200, 164, 93, 0.22), transparent 30%),
    linear-gradient(145deg, #080d12 0%, #101820 55%, #183a3c 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 90%);
}

.live-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 270px;
  border: 1px solid rgba(200, 164, 93, 0.32);
  border-radius: 14px;
  overflow: hidden;
  background: #101820;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.stage-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
  animation: stageVideoDrift 18s ease-in-out infinite alternate;
}

.stage-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(32, 201, 151, 0.24), transparent 34%),
    linear-gradient(120deg, rgba(8, 13, 18, 0.74), rgba(16, 24, 32, 0.4), rgba(24, 58, 60, 0.72));
  pointer-events: none;
}

.live-stage.compact {
  width: min(430px, calc(100% - 32px));
  min-height: 178px;
  margin: 0 auto;
}

.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.72);
  color: #fff8e8;
  font-size: 12px;
  font-weight: 800;
}

.live-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(32, 201, 151, 0.18);
  animation: livePulse 1.4s ease-in-out infinite;
}

.live-indicator {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 24, 32, 0.74);
  box-shadow: 0 0 0 1px rgba(32, 201, 151, 0.32), 0 0 28px rgba(32, 201, 151, 0.34);
}

.live-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: livePulse 1.2s ease-in-out infinite;
}

.live-screen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(16, 24, 32, 0.10), rgba(32, 201, 151, 0.10)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 58px);
}

.scanline {
  position: absolute;
  left: -20%;
  top: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 93, 0.24), transparent);
  animation: liveScan 4.8s linear infinite;
}

.hero-product-slider {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 38%;
  width: auto;
  height: 138px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(32, 201, 151, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(16, 24, 32, 0.38), rgba(24, 58, 60, 0.28));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(32, 201, 151, 0.08),
    inset 0 1px 0 rgba(255, 248, 232, 0.08);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.hero-product-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 248, 232, 0.08) 45%, transparent 62%),
    radial-gradient(circle at 78% 28%, rgba(32, 201, 151, 0.10), transparent 28%);
  opacity: 0.32;
  transform: translateX(-120%);
  animation: heroCardSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-product-slider.switching {
  border-color: rgba(32, 201, 151, 0.5);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(32, 201, 151, 0.22),
    inset 0 1px 0 rgba(255, 248, 232, 0.14);
}

.hero-product-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 15px 18px;
  opacity: 0;
  transform: translateX(42px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}

.hero-product-slide.active {
  z-index: 3;
  opacity: 1 !important;
  transform: translateX(0) scale(1) !important;
  pointer-events: auto;
}

.hero-product-slide.leaving {
  z-index: 2;
  opacity: 0 !important;
  transform: translateX(-42px) scale(0.98) !important;
}

.hero-product-slider .hero-product-slide:first-child {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-product-slider.ready .hero-product-slide:first-child:not(.active) {
  opacity: 0;
  transform: translateX(-34px) scale(0.98);
}

.hero-product-slide img {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 248, 232, 0.08);
  animation: heroProductPop 0.42s ease;
}

.hero-product-slide b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #fff8e8;
  font-size: 19px;
  line-height: 1.15;
}

.hero-product-slide span,
.hero-product-slide em {
  display: block;
  margin-top: 5px;
  color: #d8c9a7;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-product-slide em {
  color: var(--green);
  text-shadow: 0 0 18px rgba(32, 201, 151, 0.34);
}

.hero-product-rating {
  display: block;
  margin-top: 5px;
  color: #f4c44f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(244, 196, 79, 0.3);
  white-space: nowrap;
}

.hero-product-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  width: max-content;
  padding-left: 100%;
  animation: heroProductRoll 70s linear infinite;
  will-change: transform;
}

.hero-product-slider:hover .hero-product-track {
  animation-play-state: paused;
}

.home-hero .hero-product-slider:hover .hero-product-track,
.home-hero .hero-product-slider:active .hero-product-track,
.home-hero .hero-product-slider.is-paused .hero-product-track {
  animation-play-state: paused !important;
}

.hero-product-slider .hero-product-slide {
  position: relative;
  inset: auto;
  grid-template-columns: 112px minmax(0, 1fr);
  flex: 0 0 min(520px, 76vw);
  height: 112px;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 248, 232, 0.11);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 20%, rgba(32, 201, 151, 0.10), transparent 35%),
    linear-gradient(135deg, rgba(16, 24, 32, 0.52), rgba(24, 58, 60, 0.34));
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(32, 201, 151, 0.10),
    inset 0 1px 0 rgba(255, 248, 232, 0.07);
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.hero-product-slider .hero-product-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 248, 232, 0.05), transparent 72%);
  opacity: 0.32;
  pointer-events: none;
}

.hero-product-slider .hero-product-slide img {
  width: 88px;
  height: 88px;
}

.empty-slide {
  grid-template-columns: 1fr;
}

.live-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 14px;
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 12px;
  background: rgba(16, 24, 32, 0.42);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(4px);
  animation: liveFloat 5.6s ease-in-out infinite;
  z-index: 3;
}

.live-card b {
  color: #fff8e8;
}

.live-card span {
  color: #d8c9a7;
  font-size: 12px;
}

.gift-live-card {
  min-width: 74px;
  width: 106px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 215, 116, 0.38);
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 248, 232, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(16, 24, 32, 0.62), rgba(31, 122, 106, 0.32));
}

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

.gift-live-card::before {
  inset: -45%;
  background: conic-gradient(from 90deg, transparent, rgba(255, 225, 126, 0.42), transparent 30%);
  animation: giftGlowSpin 5.5s linear infinite;
  opacity: 0.55;
}

.gift-live-card::after {
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 30%, rgba(255, 225, 126, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 74%, rgba(32, 201, 151, 0.9) 0 1px, transparent 2px);
  opacity: 0.6;
  animation: giftSparkle 2.2s ease-in-out infinite;
}

.gift-live-card button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  gap: 2px;
  min-height: 82px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gift-live-card button:disabled {
  cursor: default;
}

.gift-live-card b {
  font-size: 10px;
  line-height: 1.15;
}

.gift-live-card span:not(.gift-icon):not(.gift-stars) {
  min-height: 0;
  font-size: 0;
}

.gift-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 248, 232, 0.14);
  box-shadow: 0 0 22px rgba(255, 225, 126, 0.36);
  font-size: 14px;
  animation: giftBounce 2.4s ease-in-out infinite;
}

.gift-live-card.opened {
  border-color: rgba(32, 201, 151, 0.48);
  background: linear-gradient(145deg, rgba(16, 24, 32, 0.52), rgba(32, 201, 151, 0.22));
}

.gift-live-card.opened .gift-icon {
  filter: grayscale(0.35);
}

.gift-live-card.just-opened {
  animation: giftOpenBurst 1.6s ease-in-out, liveFloat 5.6s ease-in-out infinite 1.6s;
}

.gift-amount-only {
  color: #fff8e8 !important;
  font-size: 14px;
  line-height: 1;
  text-shadow:
    0 0 14px rgba(255, 225, 126, 0.9),
    0 0 28px rgba(32, 201, 151, 0.55);
}

.gift-stars {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.gift-stars i {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe176;
  box-shadow: 0 0 16px currentColor;
  animation: starBurst 1.1s ease-out forwards;
}

.gift-stars i:nth-child(1) {
  color: #ffe176;
  --x: -34px;
  --y: -30px;
}

.gift-stars i:nth-child(2) {
  color: #20c997;
  --x: 36px;
  --y: -26px;
  animation-delay: 0.05s;
}

.gift-stars i:nth-child(3) {
  color: #ff4656;
  --x: -38px;
  --y: 22px;
  animation-delay: 0.1s;
}

.gift-stars i:nth-child(4) {
  color: #8bd3ff;
  --x: 40px;
  --y: 24px;
  animation-delay: 0.14s;
}

.gift-stars i:nth-child(5) {
  color: #d8a8ff;
  --x: 0;
  --y: -40px;
  animation-delay: 0.18s;
}

.gift-stars i:nth-child(6) {
  color: #fff8e8;
  --x: 3px;
  --y: 36px;
  animation-delay: 0.22s;
}

.gift-page-sparkle {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 225, 126, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(32, 201, 151, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 70%, rgba(139, 211, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 72%, rgba(255, 70, 86, 0.75) 0 2px, transparent 3px),
    linear-gradient(115deg, transparent 0%, rgba(255, 248, 232, 0.58) 45%, transparent 70%);
  animation: pageTwinkle 1s ease-out forwards;
  mix-blend-mode: screen;
}

.live-card-a {
  left: 9%;
  top: 13%;
}

.live-card-b {
  right: 7%;
  top: 16%;
  animation-delay: -1.3s;
}

.live-card-c {
  right: 17%;
  bottom: 11%;
  animation-delay: -2.4s;
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 16px 24px;
  border: 1px solid rgba(200, 164, 93, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(32, 201, 151, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(16, 24, 32, 0.94), rgba(24, 58, 60, 0.88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(6px);
  text-align: center;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 248, 232, 0.08) 45%, transparent 72%);
  transform: translateX(-120%);
  animation: shineSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: #d8c9a7;
  font-size: 12px;
  font-weight: 800;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(32, 201, 151, 0.14);
}

.hero-panel h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #fff8e8;
  font-size: clamp(25px, 6vw, 36px);
  line-height: 1.05;
}

.hero-panel p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #f1e6cd;
  font-weight: 700;
  line-height: 1.45;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.hero-metrics div {
  padding: 11px 8px;
  border: 1px solid rgba(255, 248, 232, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.06);
}

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

.hero-metrics strong {
  color: #fff8e8;
  font-size: 15px;
}

.hero-metrics span {
  margin-top: 4px;
  color: #d8c9a7;
  font-size: 11px;
}

.snatch-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(32, 201, 151, 0.46);
  border-radius: 12px;
  background: linear-gradient(135deg, #20c997, #2f6f73 70%, #101820);
  color: #fffdf9;
  box-shadow: 0 16px 34px rgba(32, 201, 151, 0.22);
  font-weight: 900;
  overflow: hidden;
}

.snatch-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.35), transparent 72%);
  transform: translateX(-120%);
  animation: shineSweep 3.2s ease-in-out infinite;
}

.snatch-cta span,
.snatch-cta b {
  position: relative;
}

.snatch-cta b {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.22);
  font-size: 11px;
}

.product-showcase {
  padding: 34px 0 60px;
  overflow: hidden;
  background: #fffdf9;
}

.product-showcase h2,
.product-showcase p {
  width: min(452px, calc(100% - 40px));
  margin-inline: auto;
}

.product-showcase h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #101820;
  font-size: 26px;
}

.product-showcase p {
  margin-top: 0;
  margin-bottom: 24px;
  color: #667085;
}

.dashboard-gallery {
  margin: 4px -20px 28px;
  padding: 12px 0 18px;
  border-top: 1px solid #eadfca;
  border-bottom: 1px solid #eadfca;
}

.dashboard-gallery .page-title,
.dashboard-gallery p {
  width: calc(100% - 40px);
  margin-inline: auto;
}

.dashboard-gallery .page-title {
  margin-bottom: 8px;
  text-align: center;
}

.dashboard-gallery .rail-product {
  text-decoration: none;
}

.product-rail {
  width: 100%;
  overflow: hidden;
  margin: 12px 0;
}

.product-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: productSlide 420s linear infinite;
}

.rail-2 .product-track {
  animation-direction: reverse;
  animation-duration: 520s;
}

.rail-3 .product-track {
  animation-duration: 470s;
}

.rail-product {
  display: grid;
  grid-template-columns: 78px 180px;
  gap: 12px;
  align-items: center;
  width: 286px;
  padding: 10px;
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffdf9, #f6ecd8);
  box-shadow: 0 12px 26px rgba(16, 24, 32, 0.12);
}

.rail-product img {
  width: 78px;
  height: 78px;
  border-radius: 9px;
  object-fit: cover;
  animation: productFloat 4.8s ease-in-out infinite;
}

.rail-product strong {
  display: block;
  color: #101820;
  font-size: 13px;
}

.rail-product span {
  display: block;
  margin-top: 6px;
  color: #2f6f73;
  font-size: 12px;
  font-weight: 800;
}

.site-info-section {
  padding: 42px 20px 56px;
  background:
    radial-gradient(circle at 14% 8%, rgba(200, 164, 93, 0.18), transparent 22%),
    linear-gradient(180deg, #fffdf9, #f8f1e2);
}

.info-hero {
  width: min(760px, 100%);
  margin: 0 auto 22px;
  padding: 22px;
  border: 1px solid #eadfca;
  border-radius: 14px;
  background: linear-gradient(145deg, #101820, #183a3c);
  color: #fff8e8;
  box-shadow: var(--shadow);
}

.info-hero h2 {
  margin: 0;
  font-size: clamp(25px, 5vw, 40px);
  line-height: 1.08;
}

.info-hero p {
  margin: 14px 0 0;
  color: #eadfca;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.info-grid article,
.info-faq details {
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.08);
}

.info-grid article {
  padding: 20px;
}

.info-grid h3 {
  margin: 0 0 10px;
  color: #101820;
}

.info-grid p,
.info-grid li,
.info-faq p {
  color: #5f6b79;
  line-height: 1.58;
}

.info-grid ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
}

.info-faq {
  display: grid;
  gap: 10px;
  width: min(900px, 100%);
  margin: 18px auto 0;
}

.info-faq details {
  padding: 16px 18px;
}

.info-faq summary {
  cursor: pointer;
  color: #101820;
  font-weight: 900;
}

.serial-product-section {
  padding: 42px 18px 64px;
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 161, 76, 0.18), transparent 26%),
    linear-gradient(180deg, #fffdf9, #f8f0de);
}

.serial-product-head {
  width: min(940px, 100%);
  margin: 0 auto 18px;
}

.serial-product-head h2 {
  margin: 4px 0 0;
  color: #101820;
  font-size: 26px;
}

.serial-product-grid {
  display: grid;
  width: min(940px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 12px;
}

.serial-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 152px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 161, 76, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.95), rgba(255, 253, 249, 0.86)),
    radial-gradient(circle at 84% 18%, rgba(32, 201, 151, 0.18), transparent 30%);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
  overflow: hidden;
}

.serial-product-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.64), transparent 42%);
  transform: translateX(-120%);
  animation: shineSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.serial-product-card img {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 124px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 30px rgba(201, 161, 76, 0.28);
}

.serial-product-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.serial-product-info strong,
.serial-product-info span {
  display: block;
}

.serial-product-info strong {
  color: #101820;
  font-size: 13px;
  line-height: 1.25;
}

.serial-stars {
  margin-top: 5px;
  color: #c99d41;
  font-size: 12px;
  font-weight: 1000;
}

.serial-stars b {
  color: #536179;
  font-size: 11px;
}

.serial-commission {
  margin-top: 5px;
  color: #2f8080;
  font-size: 12px;
  font-weight: 1000;
}

.mobile-shell {
  padding: 15px 20px 70px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: #5f6b79;
  font-size: 13px;
}

.page-title {
  margin: 0 0 15px;
  font-size: 25px;
}

.tabs-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tabs-line button {
  height: 48px;
  border: 0;
  background: #fffdf9;
  color: #344054;
  font-weight: 700;
}

.tabs-line .active {
  border-bottom: 2px solid var(--gold);
  color: #101820;
}

.product-list {
  margin-bottom: 31px;
}

.product-row {
  display: grid;
  grid-template-columns: 28px 64px 1fr 20px;
  gap: 16px;
  align-items: center;
  min-height: 97px;
  border-bottom: 1px solid var(--line);
}

.product-row .row-no {
  font-size: 18px;
}

.product-media {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #101820, #2f6f73);
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.18);
}

.product-media::after,
.animated-product::after,
.admin-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.36) 45%, transparent 70%);
  transform: translateX(-130%);
  animation: shineSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.product-row img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  animation: productFloat 4.8s ease-in-out infinite;
}

.activation-page {
  min-height: calc(100vh - 136px);
  padding: 26px 18px 70px;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 181, 97, .18), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #f7f4ed 100%);
}

.activation-panel {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(214, 181, 97, .36);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 55px rgba(16, 24, 32, .12);
}

.activation-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(31, 122, 106, .08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(16, 24, 32, .035) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.activation-panel > * {
  position: relative;
}

.activation-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 122, 106, .11);
  color: #155f53;
  font-size: 13px;
  font-weight: 900;
}

.activation-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(31, 122, 106, .14);
}

.activation-panel h1 {
  max-width: 560px;
  margin: 20px 0 12px;
  color: #101820;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.02;
}

.activation-panel p {
  max-width: 620px;
  margin: 0;
  color: #4b5565;
  font-size: 16px;
  line-height: 1.65;
}

.activation-code-box {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(16, 24, 32, .1);
  border-radius: 8px;
  background: rgba(16, 24, 32, .04);
}

.activation-code-box label {
  margin: 0;
  color: #101820;
  font-weight: 900;
}

.activation-input-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
}

.activation-code-box small {
  color: #667085;
}

.support-box {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #101820;
  color: #fff8e8;
}

.support-box b {
  font-size: 18px;
}

.support-box span {
  color: rgba(255, 248, 232, .82);
  line-height: 1.5;
}

.activation-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.activation-steps div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(214, 181, 97, .24);
  border-radius: 8px;
  background: rgba(255, 248, 232, .72);
}

.activation-steps b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #101820;
}

.activation-steps span {
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.product-row h2 {
  margin: 0 0 5px;
  color: #101820;
  font-size: 14px;
}

.product-row span {
  color: #566475;
  font-size: 12px;
}

.product-row b:last-child {
  color: var(--gold);
  font-size: 30px;
  font-weight: 300;
}

.shop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.claim-control-panel {
  margin: 18px 10px 24px;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, 0.22);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 12px 26px rgba(16, 24, 32, 0.08);
}

.set-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 122, 106, .1);
  color: var(--green);
  font-weight: 1000;
}

.level-status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.level-status-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(200, 164, 93, .34);
  border-radius: 8px;
  background: #fff8e8;
  color: #536174;
  font-weight: 1000;
}

.level-status-row span.active {
  border-color: rgba(31, 122, 106, .42);
  background: linear-gradient(135deg, var(--green), #123232);
  color: #fff8e8;
  box-shadow: 0 10px 22px rgba(31, 122, 106, .18);
}

.package-select-panel,
.package-cashin-note {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 10px 10px 14px;
  padding: 12px;
  border: 1px solid rgba(37, 195, 155, .26);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 195, 155, .18), transparent 28%),
    linear-gradient(145deg, #fffdf8 0%, #f4ead5 100%);
  box-shadow: 0 12px 28px rgba(16, 24, 32, .12);
  overflow: hidden;
}

.package-select-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green), #123232);
}

.package-select-panel h2 {
  margin: 0;
  padding-right: 34px;
  color: #101820;
  font-size: 19px;
  line-height: 1.05;
}

.package-select-panel p {
  margin: 0;
  max-width: 92%;
  color: #475569;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.package-skip-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.package-skip-form button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(37, 195, 155, .24);
  border-radius: 50%;
  background: rgba(255, 253, 249, .94);
  color: #101820;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 24, 32, .10);
}

.package-choice-grid {
  display: grid;
  gap: 7px;
}

.package-choice-grid button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  min-height: 78px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(200, 164, 93, .28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .72), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 249, .98), rgba(255, 248, 232, .86));
  color: #101820;
  text-align: left;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(16, 24, 32, .07);
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.package-choice-grid button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tier-accent, var(--green));
  box-shadow: 0 0 18px var(--tier-glow, rgba(37, 195, 155, .34));
}

.package-choice-grid button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .62) 44%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  pointer-events: none;
}

.package-choice-grid button:hover,
.package-choice-grid button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--tier-accent, rgba(37, 195, 155, .58));
  box-shadow: 0 12px 22px rgba(16, 24, 32, .12), 0 0 0 2px var(--tier-soft, rgba(37, 195, 155, .12));
}

.package-choice-grid button:hover::after,
.package-choice-grid button:focus-visible::after {
  transform: translateX(130%);
}

.package-name {
  color: #101820;
  font-size: 13px;
  line-height: 1.1;
}

.package-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.package-meta span {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 7px;
  background: rgba(255, 255, 255, .66);
  color: #64748b;
  font-size: 9px;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.package-meta b {
  color: #101820;
  font-size: 11px;
}

.package-rate {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tier-soft, rgba(37, 195, 155, .16));
  color: var(--tier-text, #087761);
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
}

.package-beginner {
  --tier-accent: #20c997;
  --tier-soft: rgba(32, 201, 151, .16);
  --tier-glow: rgba(32, 201, 151, .40);
  --tier-text: #087761;
  background:
    radial-gradient(circle at 92% 14%, rgba(32, 201, 151, .30), transparent 32%),
    linear-gradient(135deg, #f4fff9, #fff7de);
}

.package-silver {
  --tier-accent: #8fa8c8;
  --tier-soft: rgba(143, 168, 200, .22);
  --tier-glow: rgba(143, 168, 200, .46);
  --tier-text: #405a78;
  background:
    radial-gradient(circle at 92% 14%, rgba(143, 168, 200, .34), transparent 32%),
    linear-gradient(135deg, #f8fbff, #fff8e9);
}

.package-gold {
  --tier-accent: #d8a629;
  --tier-soft: rgba(216, 166, 41, .20);
  --tier-glow: rgba(216, 166, 41, .48);
  --tier-text: #8a6100;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 203, 77, .42), transparent 32%),
    linear-gradient(135deg, #fff8dc, #fffdf8);
}

.package-platinum {
  --tier-accent: #6d7cff;
  --tier-soft: rgba(109, 124, 255, .18);
  --tier-glow: rgba(109, 124, 255, .42);
  --tier-text: #3740a0;
  background:
    radial-gradient(circle at 92% 14%, rgba(109, 124, 255, .28), transparent 32%),
    linear-gradient(135deg, #f4f5ff, #fff6ea);
}

.package-elite {
  --tier-accent: #e2559a;
  --tier-soft: rgba(226, 85, 154, .18);
  --tier-glow: rgba(226, 85, 154, .42);
  --tier-text: #9b1f5b;
  background:
    radial-gradient(circle at 92% 14%, rgba(226, 85, 154, .28), transparent 32%),
    linear-gradient(135deg, #fff3fa, #fff9e8);
}

.package-choice-grid button.selected-package {
  border-color: var(--tier-accent, rgba(32, 201, 151, .75));
  background:
    radial-gradient(circle at 92% 14%, var(--tier-soft, rgba(32, 201, 151, .22)), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 253, 249, .95));
  box-shadow: 0 0 0 2px var(--tier-soft, rgba(32, 201, 151, .12)), 0 16px 30px rgba(16, 24, 32, .14);
}

.gift-trigger-btn {
  background: linear-gradient(135deg, #c8a45d, #25c39b) !important;
  color: #101820 !important;
  box-shadow: 0 8px 18px rgba(37, 195, 155, 0.16);
}

.package-cashin-note strong {
  color: var(--green);
}

.package-cashin-note span {
  color: #536174;
  font-weight: 800;
}

.premium-order-badge {
  background: #fff1c2 !important;
  color: #946200 !important;
}

.claim-gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 32, .62);
  backdrop-filter: blur(8px);
}

.claim-gift-overlay.show {
  display: grid;
}

.claim-gift-card {
  position: relative;
  width: min(460px, 100%);
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 218, 125, .42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 219, 117, .24), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(45, 212, 191, .18), transparent 35%),
    linear-gradient(145deg, #101820, #123a36);
  color: #fff8e8;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .36);
}

.claim-gift-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 90deg, transparent, rgba(255,255,255,.18), transparent, rgba(45,212,191,.16), transparent);
  animation: giftGlowSpin 7s linear infinite;
}

.claim-gift-card > * {
  position: relative;
  z-index: 1;
}

.claim-gift-card h2 {
  margin: 2px 0 6px;
  font-size: 28px;
}

.claim-gift-card p {
  margin: 0 0 16px;
  color: rgba(255, 248, 232, .72);
  font-weight: 800;
}

.claim-gift-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.claim-gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.claim-gift-grid form {
  margin: 0;
}

.claim-gift-box {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 132px;
  place-items: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 125, .36);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(45,212,191,.12));
  color: #fff8e8;
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(255,255,255,.08);
  animation: giftBounce 2.4s ease-in-out infinite;
}

.claim-gift-box b {
  font-size: 32px;
  filter: drop-shadow(0 0 18px rgba(255, 238, 160, .72));
}

.claim-gift-box strong {
  font-size: 13px;
}

.claim-gift-box:disabled {
  cursor: default;
  opacity: .78;
}

.claim-gift-box.opened {
  opacity: 1;
  border-color: rgba(255, 225, 126, .82);
  box-shadow: 0 0 26px rgba(255, 225, 126, .35), inset 0 1px 0 rgba(255,255,255,.18);
  filter: brightness(1.12);
}

.gift-shine {
  position: absolute;
  inset: -40%;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.34), transparent 62%);
  animation: shineSweep 2.8s ease-in-out infinite;
}

.claim-gift-celebration {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 232, .30), transparent 48%),
    radial-gradient(circle at 22% 28%, rgba(255, 71, 126, .16), transparent 28%),
    radial-gradient(circle at 76% 32%, rgba(45, 212, 191, .18), transparent 30%);
  animation: celebrationFade 4.8s ease-out forwards;
}

.claim-gift-celebration span {
  z-index: 2;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8e8, #ffe18a);
  color: #101820;
  font-size: 34px;
  font-weight: 1000;
  animation: giftAmountPulse 4.4s ease-out forwards;
  box-shadow: 0 0 40px rgba(255, 225, 126, .72), 0 0 92px rgba(32, 201, 151, .34);
}

.claim-gift-celebration i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spark, #25d6b5);
  animation: sparkleFly 4.4s ease-out forwards;
}

.claim-gift-celebration i:nth-child(2) { --spark: #ff477e; --x: -210px; --y: -150px; }
.claim-gift-celebration i:nth-child(3) { --spark: #ffda5c; --x: 190px; --y: -130px; }
.claim-gift-celebration i:nth-child(4) { --spark: #2dd4bf; --x: -180px; --y: 150px; }
.claim-gift-celebration i:nth-child(5) { --spark: #60a5fa; --x: 210px; --y: 120px; }
.claim-gift-celebration i:nth-child(6) { --spark: #f97316; --x: 0; --y: -220px; }
.claim-gift-celebration i:nth-child(7) { --spark: #a78bfa; --x: 0; --y: 210px; }
.claim-gift-celebration i:nth-child(8) { --spark: #34d399; --x: -260px; --y: 20px; }
.claim-gift-celebration i:nth-child(9) { --spark: #fb7185; --x: 260px; --y: -10px; }
.claim-gift-celebration i:nth-child(10) { --spark: #fde68a; --x: -330px; --y: -235px; }
.claim-gift-celebration i:nth-child(11) { --spark: #38bdf8; --x: 330px; --y: -225px; }
.claim-gift-celebration i:nth-child(12) { --spark: #f0abfc; --x: -320px; --y: 230px; }
.claim-gift-celebration i:nth-child(13) { --spark: #bef264; --x: 330px; --y: 245px; }
.claim-gift-celebration i:nth-child(14) { --spark: #fb923c; --x: -110px; --y: -310px; }
.claim-gift-celebration i:nth-child(15) { --spark: #22d3ee; --x: 115px; --y: -315px; }
.claim-gift-celebration i:nth-child(16) { --spark: #c084fc; --x: -125px; --y: 315px; }
.claim-gift-celebration i:nth-child(17) { --spark: #f43f5e; --x: 125px; --y: 310px; }
.claim-gift-celebration i:nth-child(18) { --spark: #84cc16; --x: -390px; --y: -40px; }
.claim-gift-celebration i:nth-child(19) { --spark: #06b6d4; --x: 390px; --y: 42px; }
.claim-gift-celebration i:nth-child(20) { --spark: #facc15; --x: -45px; --y: -385px; }
.claim-gift-celebration i:nth-child(21) { --spark: #ec4899; --x: 40px; --y: 385px; }
.claim-gift-celebration i:nth-child(22) { --spark: #14b8a6; --x: -250px; --y: -320px; }
.claim-gift-celebration i:nth-child(23) { --spark: #818cf8; --x: 250px; --y: 320px; }
.claim-gift-celebration i:nth-child(24) { --spark: #f97316; --x: 260px; --y: -320px; }
.claim-gift-celebration i:nth-child(25) { --spark: #e879f9; --x: -260px; --y: 320px; }

.claim-progress-head,
.claim-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #101820;
  font-weight: 900;
}

.claim-progress-head span,
.claim-task-head span {
  color: #667085;
  font-size: 13px;
}

.claim-progress-head strong,
.claim-task-head strong {
  color: var(--green);
}

.claim-progress-bar {
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfca;
}

.claim-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 220ms ease;
}

.start-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 16px;
  border-radius: 4px;
  background: var(--navy);
  color: white;
  font-size: 17px;
  font-weight: 800;
}

.start-button.disabled {
  background: #344054;
  color: #d8c9a7;
  pointer-events: none;
}

.claim-task-head {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, 0.24);
  border-radius: 8px;
  background: #fff8e8;
}

.current-claim-card {
  border-color: rgba(31, 122, 106, 0.32);
}

.claim-pulse {
  animation: claimButtonPulse 1.7s ease-in-out infinite;
}

.claim-success-toast {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(32, 201, 151, 0.24);
  border-radius: 8px;
  background: #eafbf1;
  color: #1f7a6a;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.16);
  animation: toastDrop 2.8s ease-in-out forwards;
}

.claim-success-toast span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
}

.claim-loading-screen {
  display: grid;
  min-height: calc(100vh - 134px);
  place-items: center;
  align-content: center;
  gap: 16px;
  background: #fff;
  color: #667085;
  font-weight: 800;
}

.loader-mark {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 72px;
}

.loader-mark span {
  display: block;
  width: 28px;
  height: 18px;
  border-radius: 5px;
  background: #101820;
  box-shadow: 0 -36px 0 -8px #a7b0bf;
  animation: loaderLift 1s ease-in-out infinite;
}

.loader-mark span:nth-child(2) {
  animation-delay: .14s;
}

.loader-mark span:nth-child(3) {
  animation-delay: .28s;
}

.product-detail-page {
  min-height: calc(100vh - 134px);
  padding-bottom: 96px;
  background: #fff;
}

.product-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 86px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: #101820;
  font-size: 24px;
  font-weight: 900;
}

.product-detail-head a {
  color: #344054;
  font-size: 28px;
}

.product-detail-image {
  display: grid;
  min-height: 278px;
  place-items: center;
  background: #fff;
}

.product-detail-image img {
  width: min(84%, 420px);
  max-height: 260px;
  object-fit: contain;
}

.product-review-box {
  margin: -12px 20px 6px;
  padding: 16px;
  border: 1px solid rgba(201, 161, 76, 0.5);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffaf0, #f4fffb);
  box-shadow: 0 14px 28px rgba(16, 24, 32, 0.09);
}

.product-review-box > div:first-child {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.review-kicker {
  color: #c99d41;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-review-box strong {
  color: #101820;
  font-size: 15px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #eef3f1;
  color: #9aa4b2;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  background: linear-gradient(135deg, #ffe9a8, #c99d41);
  color: #101820;
  transform: translateY(-2px);
}

.product-review-box textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid #d9c79f;
  border-radius: 8px;
  padding: 12px;
  color: #101820;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.product-review-box textarea:focus {
  border-color: #2f8080;
  box-shadow: 0 0 0 3px rgba(47, 128, 128, 0.14);
}

.product-detail-body {
  padding: 24px 20px 10px;
}

.product-detail-body h1 {
  margin: 0 0 12px;
  color: #101820;
  font-size: 27px;
  line-height: 1.28;
}

.product-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.product-status-row span {
  padding: 7px 13px;
  border-radius: 6px;
  background: #e7fbef;
  color: #1f7a6a;
  font-weight: 900;
}

.product-status-row i {
  width: 24px;
  height: 34px;
  border-radius: 6px;
  background: #ffd5dd;
}

.detail-price-card {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
}

.detail-price-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eadfca;
  padding-bottom: 14px;
}

.detail-price-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-price-card dt {
  color: #667085;
  font-weight: 900;
}

.detail-price-card dd {
  margin: 0;
  color: #101820;
  font-size: 24px;
  font-weight: 900;
}

.product-description h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.product-description p {
  color: #667085;
  font-weight: 700;
  line-height: 1.55;
}

.submit-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 560px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 0;
  transform: translateX(-50%);
  background: #f4f7fb;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.14);
}

.submit-order-btn,
.submit-bar div {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 0;
  padding: 10px 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

.submit-order-btn {
  background: var(--navy);
  color: white;
}

.submit-bar div {
  color: #101820;
}

.submit-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
}

.submit-confirm-backdrop.show {
  display: grid;
}

.submit-confirm-modal {
  width: min(420px, 100%);
  padding: 52px 28px;
  border-radius: 8px;
  background: white;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.submit-confirm-modal h2 {
  margin: 0 0 28px;
  color: #101820;
  font-size: 25px;
}

.submit-confirm-modal .black-button,
.submit-confirm-modal .outline-button {
  width: 100%;
  margin: 0 0 12px;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.48);
}

.drawer-backdrop.show,
.modal-backdrop.show {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  width: min(447px, 88vw);
  transform: translateX(-100%);
  transition: transform 180ms ease;
  flex-direction: column;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 122, 106, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, #f7f0e4 100%);
  box-shadow: 26px 0 60px rgba(16, 24, 32, 0.28);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 15px;
  right: 17px;
  border: 0;
  background: transparent;
  color: #101820;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.drawer-profile {
  display: grid;
  justify-items: center;
  padding: 34px 20px 18px;
}

.avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  aspect-ratio: 1 / 1;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 93, 0.42);
  background: linear-gradient(145deg, #101820, #1f7a6a);
  color: #fff8e8;
  font-size: 31px;
  box-shadow: 0 14px 28px rgba(16, 24, 32, 0.22);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.avatar span {
  display: grid;
  place-items: center;
}

.drawer-profile strong {
  margin-top: 12px;
  color: #101820;
  font-size: 17px;
  font-weight: 900;
}

.drawer-profile span {
  color: #667085;
  font-weight: 700;
}

.drawer-money-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 14px 18px;
}

.cashin-button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid rgba(255, 248, 232, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, #101820, #173736);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(16, 24, 32, 0.18);
}

.cashin-button span {
  font-size: 18px;
}

.cashout-action {
  background: linear-gradient(145deg, #101820, #3b2a10);
}

.cashin-action {
  background: linear-gradient(145deg, #1f7a6a, #0f3d3b);
}

.drawer-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(200, 164, 93, 0.22);
  border-bottom: 1px solid rgba(200, 164, 93, 0.22);
}

.drawer-shortcuts a {
  display: grid;
  min-height: 94px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 9px 6px;
  border: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.82);
  color: #101820;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.08);
}

.drawer-shortcuts b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5ead4, #fff8e8);
  color: #1f7a6a;
  font-size: 22px;
}

.drawer-shortcuts span {
  font-weight: 900;
}

.drawer-shortcuts em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
}

.drawer-menu a,
.drawer-menu details {
  margin: 10px 14px;
}

.drawer-menu a,
.drawer-menu summary {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 164, 93, 0.24);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.88);
  color: #1c2939;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.08);
}

.drawer-menu details {
  display: block;
}

.drawer-menu summary {
  cursor: pointer;
  list-style: none;
}

.drawer-menu summary::-webkit-details-marker {
  display: none;
}

.drawer-menu a > span,
.drawer-menu summary > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #101820, #1f7a6a);
  color: #fff8e8;
  font-size: 20px;
}

.drawer-menu i {
  display: grid;
  gap: 3px;
  font-style: normal;
  font-weight: 900;
}

.drawer-menu em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.drawer-menu b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f4ead6;
  color: #1f7a6a;
  font-weight: 900;
}

.drawer-menu details[open] b {
  color: #c58b22;
}

.drawer-menu details[open] b {
  transform: rotate(45deg);
}

.drawer-info-item p {
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.82);
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 10px 20px rgba(16, 24, 32, 0.06);
}

.signout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin: auto 14px 14px;
  border: 1px solid rgba(255, 70, 86, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--red);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 70, 86, 0.08);
}

.account-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(448px, calc(100vw - 50px));
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 10px;
  background: #fffdf8;
}

.account-modal h2 {
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #101820, #183a3c);
  color: #fff8e8;
  text-align: center;
  font-size: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  padding: 46px 20px 30px;
}

.account-grid span {
  display: block;
  color: #3f4d62;
  font-weight: 800;
  font-size: 13px;
}

.account-grid strong {
  display: block;
  margin-top: 5px;
  color: #344054;
  font-size: 16px;
}

.form-note {
  margin: -4px 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 161, 76, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(201, 161, 76, 0.14), rgba(47, 128, 128, 0.1));
  color: #536179;
  font-weight: 700;
}

.claim-hold-page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at top left, rgba(201, 161, 76, 0.18), transparent 34%),
    linear-gradient(135deg, #fffdf8, #f5fbfa);
}

.hold-card {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(201, 161, 76, 0.42);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 22px 50px rgba(16, 24, 32, 0.14);
  text-align: center;
}

.hold-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #c99d41, #2f8080);
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
}

.hold-inline-alert {
  margin: 0 0 14px;
  padding: 13px 14px;
  border-left: 5px solid #c99d41;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.12);
  color: #172033;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
}

.hold-card h1 {
  margin: 16px 0 8px;
  color: #101820;
  font-size: 26px;
}

.hold-card p {
  margin: 0 0 18px;
  color: #536179;
  font-weight: 700;
  line-height: 1.55;
}

.hold-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f7f0df;
  text-align: left;
}

.hold-product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.hold-product strong,
.hold-product span {
  display: block;
}

.hold-product strong {
  color: #101820;
  font-size: 15px;
}

.hold-product span {
  margin-top: 5px;
  color: #2f8080;
  font-weight: 900;
}

.hold-product em {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 201, 151, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 201, 151, .12), rgba(200, 164, 93, .12));
  color: #0f5f57;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.hold-product .gift-hold-bonus {
  display: grid;
  gap: 2px;
  border-color: rgba(201, 161, 76, 0.48);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(135deg, rgba(201, 161, 76, 0.28), rgba(32, 201, 151, 0.18));
  color: #0f3f3a;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(201, 161, 76, 0.16);
}

.hold-product .gift-hold-bonus b,
.hold-product .gift-hold-bonus small {
  display: block;
}

.hold-product .gift-hold-bonus b {
  color: #102b27;
  font-size: 13px;
}

.hold-product .gift-hold-bonus small {
  color: #0f766e;
  font-size: 13px;
  font-weight: 1000;
}

.hold-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.hold-stats div {
  padding: 12px 8px;
  border-radius: 9px;
  background: #122024;
  color: #fff8e8;
}

.hold-stats span,
.hold-stats strong {
  display: block;
}

.hold-stats span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.hold-stats strong {
  margin-top: 5px;
  font-size: 15px;
}

.hold-card .outline-button {
  margin-top: 10px;
}

@media (max-width: 520px) {
  .hold-stats {
    grid-template-columns: 1fr;
  }

  .user-control-switch {
    grid-template-columns: 1fr;
  }

  .serial-product-card {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 128px;
    padding: 12px;
  }

  .serial-product-card img {
    width: 108px;
    height: 104px;
  }
}

.trial-box {
  position: relative;
  outline: 5px solid var(--gold);
  padding: 4px;
}

.trial-box::after {
  content: "";
  position: absolute;
  right: -25px;
  top: -5px;
  width: 45px;
  height: 68px;
  border-right: 6px solid var(--green);
  border-bottom: 6px solid var(--green);
  transform: rotate(40deg);
}

.account-modal .dark-button {
  margin: 12px 20px 16px;
  width: calc(100% - 40px);
}

.order-card,
.record-card,
.empty-card {
  position: relative;
  margin: 10px auto 16px;
  padding: 10px;
  border: 1px solid #e3e6ed;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.11);
}

.completed-label {
  margin: 0 0 3px;
  color: #8190a4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.completed-label::first-letter {
  color: var(--green);
}

.order-card h1,
.record-card h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

.animated-product {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, #101820, #2f6f73);
}

.order-card img,
.record-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  background: #f8f2e5;
  animation: productZoom 7s ease-in-out infinite alternate;
}

.ref-line {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #526071;
  font-size: 10px;
}

.price-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #eee2c5;
  border-radius: 4px;
}

.price-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-list dt {
  color: #536174;
  font-size: 11px;
}

.price-list dd {
  margin: 0;
  color: #101820;
  font-size: 12px;
  font-weight: 800;
}

.price-list small {
  padding: 1px 5px;
  border-radius: 3px;
  background: #def8ee;
  color: var(--green);
}

.record-review-box {
  display: grid;
  gap: 8px;
  margin: -4px 0 12px;
  padding: 10px;
  border: 1px solid rgba(31, 122, 106, 0.18);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(45, 188, 158, 0.08), rgba(244, 196, 79, 0.08));
}

.record-review-box div {
  display: grid;
  gap: 3px;
}

.record-review-box span {
  color: #536174;
  font-size: 11px;
  font-weight: 700;
}

.record-stars {
  color: #d6a83f;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}

.record-review-box p {
  margin: 0;
  color: #17202b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.green {
  color: var(--green) !important;
}

.blue {
  color: #1f7a6a !important;
  font-size: 14px !important;
}

.record-shell {
  background: #f8f5ee;
}

.record-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -15px -20px 10px;
  background: #fffdf9;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.record-tabs a {
  display: grid;
  height: 50px;
  place-items: center;
  color: #3c4a60;
  font-size: 12px;
}

.record-tabs .active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.corner-check {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 0 8px 0 18px;
  background: var(--green);
  color: white;
}

.form-page {
  min-height: calc(100vh - 134px);
  padding: 50px 42px 70px;
}

.form-page h1 {
  margin: 0 0 28px;
  font-size: 25px;
}

.cashin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.cashin-title-row h1 {
  margin: 0;
}

.cashin-details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f807f, #101820);
  color: #fff8e8;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(47, 128, 127, 0.22);
}

.form-page .dark-button {
  margin-top: 38px;
}

.check-hero {
  position: relative;
  display: grid;
  min-height: 278px;
  align-content: center;
  gap: 14px;
  place-items: center;
  overflow: hidden;
  color: #fff8e8;
  background:
    radial-gradient(circle at 75% 20%, rgba(32, 201, 151, 0.24), transparent 30%),
    linear-gradient(145deg, #080d12, #101820 64%, #183a3c);
}

.check-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 31px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.check-card {
  margin: 20px 2px 110px;
  padding: 20px;
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.1);
}

.check-card h2 {
  margin: 0 0 24px;
  font-size: 16px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.check-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100%;
  min-height: 152px;
  place-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #d8c9a7, #a99462);
  color: #2b2110;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.16);
  animation: checkFloat 5.2s ease-in-out infinite;
}

.check-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.26) 46%, transparent 70%);
  transform: translateX(-130%);
  animation: shineSweep 4.2s ease-in-out infinite;
}

.check-tile span {
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.23);
  color: #fff8e8;
  font-size: 29px;
}

.check-tile b {
  position: relative;
  z-index: 1;
  font-size: 13px;
  text-align: center;
}

.check-tile em {
  position: relative;
  z-index: 1;
  font-style: normal;
  text-decoration: none;
  font-weight: 900;
}

.check-tile small {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.check-tile.claimed {
  background: linear-gradient(145deg, #101820, #2f6f73);
  color: #fff8e8;
}

.check-tile.locked {
  background: linear-gradient(145deg, #e8dfcc, #b6aa8a);
  color: #6f6148;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.history-page h1 {
  margin: 10px 0 28px;
  font-size: 29px;
}

.history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}

.history-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.history-tabs .active {
  color: var(--gold);
  border-color: rgba(200, 164, 93, .55);
  background: #fff8e8;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.empty-card {
  display: grid;
  min-height: 154px;
  place-items: center;
  margin-top: 24px;
  text-align: center;
}

.empty-card h2 {
  margin: 0;
  color: #697586;
  font-size: 18px;
}

.empty-card p {
  margin: 10px 0 0;
  color: #536174;
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.history-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.history-copy span {
  color: #536174;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.history-copy time {
  color: #7b8797;
  font-size: 12px;
}

.history-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  align-content: start;
  flex: 0 0 auto;
}

.history-meta b {
  white-space: nowrap;
  font-size: 14px;
}

.history-meta .positive {
  color: var(--green);
}

.history-meta .negative {
  color: #d63b3b;
}

.history-meta em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #536174;
  background: #f5f1e7;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.balance-strip,
.bound-account-box {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(200, 164, 93, .32);
  border-radius: 8px;
  background: #fff8e8;
}

.balance-strip strong {
  color: var(--green);
  font-size: 24px;
}

.bound-account-box a {
  color: var(--button);
  font-weight: 800;
}

.bound-account-box small,
.bound-account-box em {
  color: #667085;
  font-style: normal;
  font-size: 13px;
}

.bound-account-box b {
  color: #101820;
  font-size: 18px;
}

.cashout-request-form {
  margin-top: 20px;
}

.admin-page {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 18px 4px 70px;
}

.admin-login-page {
  display: grid;
  min-height: calc(100vh - 134px);
  place-items: center;
  padding: 28px;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(200, 164, 93, 0.32);
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 6px 0 22px;
}

.admin-login-card .dark-button {
  margin-top: 18px;
}

.admin-page,
.admin-body .app-footer,
.admin-body .app-header {
  max-width: none;
  width: min(100%, 500px);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-head h1 {
  margin: 0;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #667085;
}

.admin-head .outline-button {
  width: auto;
}

.admin-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stats a {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(200, 164, 93, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9, #f5ead4);
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.08);
}

.admin-stats span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.admin-stats strong {
  color: #101820;
  font-size: 28px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.flow-grid a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #101820, #193333);
  color: #fff8e8;
  box-shadow: 0 12px 26px rgba(16, 24, 32, 0.16);
}

.flow-grid span {
  color: rgba(255, 248, 232, .72);
  font-size: 13px;
  font-weight: 800;
}

.flow-grid strong {
  font-size: 30px;
}

.flow-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  height: 180px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #f8f1e2;
}

.flow-bars span {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 32px;
  height: min(150px, calc(var(--bar) * 18px));
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--green), var(--button));
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.flow-bars b {
  padding: 0 0 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.admin-sidebar {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, 0.26);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.admin-sidebar a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #344054;
  font-weight: 800;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #f4ead6;
  color: #101820;
}

.admin-sidebar a:focus {
  background: #f4ead6;
}

.admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-card {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card h2 {
  margin: 0 0 14px;
}

.admin-card-head h2 {
  margin: 0;
}

.admin-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.user-control-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.user-list-panel {
  display: grid;
  gap: 8px;
  align-self: start;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.user-list-panel a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: #fff8e8;
  color: #101820;
}

.user-list-panel a.active {
  border-color: var(--green);
  background: rgba(31, 122, 106, .1);
}

.user-list-panel span,
.admin-muted {
  color: #667085;
  font-size: 13px;
}

.user-detail-panel {
  display: grid;
  gap: 14px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-form-grid label {
  margin: 0;
}

.password-reset-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.password-reset-row input {
  min-width: 0;
  flex: 1 1 auto;
}

.password-reset-row .mini-btn {
  flex: 0 0 auto;
  min-height: 38px;
  margin: 0;
  white-space: nowrap;
}

.spaced-actions {
  padding-top: 2px;
}

.admin-user-main-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-device-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(47, 128, 128, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 122, 106, .06), #fffdf9);
}

.user-device-panel div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #eadfca;
  border-radius: 6px;
  background: #fff8e8;
}

.user-device-panel .wide {
  grid-column: span 2;
}

.user-device-panel span,
.user-device-panel strong {
  display: block;
}

.user-device-panel span {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-device-panel strong {
  overflow: hidden;
  color: #101820;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .user-device-panel .wide {
    grid-column: span 1;
  }
}

.user-control-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.user-control-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(201, 161, 76, 0.42);
  border-radius: 8px;
  background: #fffaf0;
  color: #101820;
  font-weight: 1000;
  text-align: center;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.07);
}

.user-control-switch a.active,
.user-control-switch a:hover {
  border-color: rgba(47, 128, 128, 0.46);
  background: linear-gradient(135deg, #2f8080, #101820);
  color: #fff8e8;
}

.live-review-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(47, 128, 128, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 122, 106, .06), #fffdf9);
}

.live-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.track-item {
  display: grid;
  grid-template-columns: 26px 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: #fff8e8;
}

.track-item.premium-set {
  border-color: #12a87a;
  background: linear-gradient(135deg, rgba(18, 168, 122, .20), #fff8e8 60%);
  box-shadow: 0 0 0 3px rgba(18, 168, 122, .30), 0 12px 24px rgba(18, 168, 122, .18);
}

.track-item.premium-set .track-mark {
  background: #12a87a;
  color: #fff;
}

.track-item img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.track-item strong,
.track-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-item small {
  color: #667085;
  font-weight: 800;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.track-action {
  min-height: 23px;
  border: 0;
  border-radius: 5px;
  padding: 0 7px;
  color: #101820;
  background: #f5e9cf;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.track-action.premium {
  color: #fff8e8;
  background: #12343b;
}

.track-action.gift {
  color: #101820;
  background: linear-gradient(135deg, #d9b764, #2fbf8f);
}

.track-action.active {
  outline: 2px solid rgba(18, 168, 122, .52);
  box-shadow: 0 0 0 2px rgba(255, 248, 232, .9) inset, 0 6px 14px rgba(18, 168, 122, .24);
}

.track-action.premium.active {
  color: #fff;
  background: linear-gradient(135deg, #12a87a, #0b5f4b);
}

.track-action.gift.active {
  color: #101820;
  background: linear-gradient(135deg, #f0cf68, #21c38b);
}

.track-action:disabled {
  opacity: .62;
  cursor: wait;
}

.track-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2f6;
  color: #667085;
  font-weight: 1000;
}

.track-item.done {
  border-color: rgba(18, 168, 122, .35);
  background: rgba(18, 168, 122, .08);
}

.track-item.done .track-mark {
  background: #12a87a;
  color: white;
}

.track-item.reviewing {
  border-color: rgba(200, 164, 93, .72);
  background: #fff1c2;
  box-shadow: 0 0 0 2px rgba(200, 164, 93, .18);
}

.track-item.reviewing .track-mark {
  background: var(--gold);
  color: #101820;
}

.user-product-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 106, .24);
  border-radius: 8px;
  background: rgba(31, 122, 106, .05);
}

.user-gift-box {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(200, 164, 93, .34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 225, 126, 0.18), transparent 28%),
    rgba(255, 248, 232, 0.72);
}

.gift-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.gift-admin-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, .3);
  border-radius: 8px;
  background: #fffdf9;
}

.gift-admin-grid strong {
  color: #101820;
}

.gift-admin-grid span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.package-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, .28);
  border-radius: 8px;
  background: #fff8e8;
}

.package-admin-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.compact-head {
  margin-bottom: 0;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-inline-form.product-create {
  grid-template-columns: 1fr;
}

.site-settings-form {
  align-items: end;
}

.checkin-admin-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: #fffdf8;
}

.checkin-admin-control strong {
  grid-column: 1 / -1;
  color: #101820;
}

.checkin-admin-control label {
  margin: 0;
  font-size: 12px;
}

.checkin-admin-control input {
  margin-top: 4px;
}

.checkin-admin-control .dark-button {
  grid-column: 1 / -1;
}

.user-checkin-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 106, 0.22);
  border-radius: 8px;
  background: rgba(31, 122, 106, 0.06);
}

.user-checkin-control label {
  margin: 0;
  font-size: 12px;
}

.user-checkin-control input {
  margin-top: 4px;
}

.user-checkin-control .dark-button {
  grid-column: 1 / -1;
}

.admin-video-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: #fffdf8;
}

.admin-video-preview video {
  width: min(360px, 100%);
  max-height: 210px;
  border-radius: 8px;
  background: #101820;
}

.admin-logo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(47, 111, 115, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f2fbf8);
}

.admin-logo-preview img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #101820;
  padding: 6px;
}

.admin-video-preview span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  word-break: break-all;
}

.product-form,
.admin-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.admin-product textarea,
.admin-inline-form textarea {
  min-height: 44px;
  resize: vertical;
  border: 1px solid #d7c7a5;
  border-radius: 4px;
  padding: 8px;
  font: inherit;
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-product-sets {
  display: grid;
  gap: 22px;
}

.admin-product-set {
  padding: 12px;
  border: 1px solid rgba(200, 164, 93, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9, #fbf7ee);
}

.compact-product-sets,
.product-settings-user-box {
  margin-top: 16px;
}

.product-settings-user-box {
  border: 1px solid rgba(47, 128, 128, 0.22);
  border-radius: 10px;
  padding: 14px;
  background: rgba(247, 250, 248, 0.72);
}

.admin-product-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 164, 93, 0.26);
}

.admin-product-set-head h3 {
  margin: 0;
  font-size: 17px;
}

.admin-product-set-head strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: #101820;
  color: #fff8e8;
  font-size: 12px;
}

.admin-product {
  grid-template-columns: 1fr;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-product-media {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 5px;
}

.admin-product img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  object-fit: cover;
  animation: productFloat 4.8s ease-in-out infinite;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.control-table {
  min-width: 980px;
}

.compact-table {
  min-width: 1120px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #536174;
  font-size: 12px;
  text-transform: uppercase;
}

td input,
td select {
  height: 36px;
  margin-bottom: 5px;
}

td small {
  display: block;
  color: #6c7788;
}

.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #fff8e8;
  cursor: pointer;
  font-weight: 800;
}

.mini-btn.ghost {
  background: var(--button);
}

.mini-btn.danger {
  background: var(--red);
}

.mini-btn.warning {
  background: linear-gradient(135deg, #c88a1e, #8a5a12);
}

.code-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #536174;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.code-grid span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #eadfca;
  border-radius: 6px;
  background: #fff8e8;
  color: #344054;
  font-weight: 800;
}

.code-grid b {
  color: var(--green);
  font-size: 12px;
}

.code-grid em {
  color: #101820;
  font-style: normal;
}

.code-grid-actions span {
  align-items: center;
}

.code-grid-actions form {
  margin: 0;
}

.refer-code-grid {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  align-items: stretch;
}

.refer-code-item {
  display: grid;
  gap: 7px;
}

.refer-code-item form {
  margin: 0;
}

.refer-code-item .mini-btn {
  width: 100%;
}

.refer-code-card {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e8, #f5fff9);
  color: #101820;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.05);
}

.refer-code-card.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(32, 201, 151, 0.16), 0 14px 28px rgba(16, 24, 32, 0.08);
}

.refer-code-card small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.refer-code-card em {
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.refer-code-card b {
  color: var(--green);
  font-size: 12px;
}

.refer-history-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eadfca;
}

.recharge-admin-list {
  display: grid;
  gap: 12px;
}

.recharge-admin-list article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: #fff8e8;
}

.recharge-admin-list article > div {
  display: grid;
  gap: 4px;
}

.recharge-admin-list span,
.recharge-admin-list small {
  color: #667085;
}

.recharge-admin-list form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin: 0;
}

@media (min-width: 900px) {
  .admin-body .page,
  .admin-page,
  .admin-body .app-footer,
  .admin-body .app-header {
    width: min(1180px, calc(100vw - 48px));
  }

  .admin-page {
    padding: 24px 0 76px;
  }

  .admin-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
  }

  .admin-sidebar {
    position: sticky;
    top: 88px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    align-self: start;
  }

  .admin-sidebar a {
    padding: 13px 14px;
  }

  .admin-card {
    padding: 22px;
  }

  .admin-search {
    grid-template-columns: 1fr 140px;
  }

  .user-control-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .serial-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-inline-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }

  .admin-inline-form.product-create {
    grid-template-columns: minmax(160px, 1.2fr) repeat(4, 82px) 120px 120px minmax(130px, 1fr) 140px minmax(200px, 1.3fr) auto;
  }

  .admin-inline-form.site-settings-form {
    grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(220px, 1.4fr) 180px auto;
  }

  .admin-product {
    grid-template-columns: 70px minmax(130px, 1.1fr) repeat(4, 76px) 112px 104px minmax(110px, 1fr) 120px minmax(190px, 1.3fr) auto auto auto;
  }

  .admin-product-media,
  .admin-product img {
    width: 60px;
    height: 60px;
  }

  .package-admin-row {
    grid-template-columns: minmax(120px, 1fr) repeat(3, 110px) 100px;
  }

  .recharge-admin-list article {
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 240px) minmax(160px, 240px);
  }
}

@media (min-width: 900px) {
  .admin-body {
    font-size: 12px;
  }

  .admin-body .page,
  .admin-page,
  .admin-body .app-footer,
  .admin-body .app-header {
    width: min(1360px, calc(100vw - 18px));
  }

  .admin-body .app-header {
    min-height: 54px;
    padding: 8px 16px;
  }

  .admin-body .auto-logo {
    font-size: 21px;
  }

  .admin-page {
    padding: 10px 0 42px;
  }

  .admin-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  .admin-head h1 {
    font-size: 24px;
  }

  .admin-kicker {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .admin-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
  }

  .admin-sidebar {
    top: 66px;
    gap: 5px;
    padding: 10px;
  }

  .admin-sidebar a {
    padding: 9px 10px;
    font-size: 12px;
  }

  .admin-content {
    gap: 10px;
  }

  .admin-card {
    margin-bottom: 10px;
    padding: 12px;
  }

  .admin-card-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .admin-card h2,
  .admin-card-head h2 {
    font-size: 20px;
  }

  .admin-stats {
    gap: 8px;
    margin-bottom: 10px;
  }

  .admin-stats a {
    gap: 4px;
    padding: 10px;
  }

  .admin-stats span,
  .flow-grid span,
  .admin-muted,
  .user-list-panel span,
  .gift-admin-grid span,
  .admin-video-preview span {
    font-size: 10px;
  }

  .admin-stats strong {
    font-size: 20px;
  }

  .flow-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
  }

  .flow-grid a {
    gap: 4px;
    padding: 10px;
  }

  .flow-grid strong {
    font-size: 20px;
  }

  .flow-bars {
    height: 112px;
    margin-top: 10px;
    padding: 10px;
  }

  .flow-bars span {
    height: min(92px, calc(var(--bar) * 12px));
    font-size: 10px;
  }

  .admin-search {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
    margin-bottom: 10px;
  }

  .user-control-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .user-list-panel {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-height: 150px;
    gap: 6px;
    padding-right: 0;
  }

  .user-list-panel a {
    gap: 2px;
    min-height: 48px;
    padding: 7px 9px;
  }

  .user-detail-panel,
  .user-product-box,
  .user-gift-box {
    gap: 8px;
  }

  .user-product-box,
  .user-gift-box {
    margin-top: 10px;
    padding: 10px;
  }

  .admin-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 8px;
    margin-bottom: 8px;
  }

  .admin-form-grid label,
  .gift-admin-grid article {
    gap: 5px;
  }

  .admin-form-grid label {
    font-size: 11px;
    font-weight: 900;
  }

  .user-detail-panel > form {
    padding: 8px;
    border: 1px solid rgba(200, 164, 93, .24);
    border-radius: 8px;
    background: rgba(255, 253, 249, .72);
  }

  .admin-user-main-actions {
    margin-top: 4px;
  }

  .gift-admin-grid {
    gap: 8px;
    margin-bottom: 8px;
  }

  .gift-admin-grid article {
    padding: 8px;
  }

  .admin-inline-form {
    gap: 6px;
    margin-bottom: 10px;
  }

  .admin-inline-form.product-create {
    grid-template-columns: minmax(118px, 1.1fr) repeat(4, 60px) 92px 86px minmax(92px, 1fr) 104px minmax(130px, 1.1fr) auto;
  }

  .admin-inline-form.site-settings-form {
    grid-template-columns: repeat(3, minmax(100px, 1fr)) minmax(160px, 1.2fr) 140px auto;
  }

  .admin-product {
    grid-template-columns: 44px minmax(110px, 1.1fr) repeat(4, 58px) 88px 78px minmax(84px, 1fr) 96px minmax(120px, 1.1fr) auto auto auto;
    gap: 5px;
    padding-bottom: 7px;
  }

  .admin-product-media,
  .admin-product img {
    width: 38px;
    height: 38px;
  }

  .admin-product textarea,
  .admin-inline-form textarea {
    min-height: 30px;
    padding: 5px;
    font-size: 11px;
  }

  .admin-list,
  .recharge-admin-list,
  .code-list {
    gap: 7px;
  }

  .recharge-admin-list article {
    grid-template-columns: minmax(190px, 1fr) minmax(120px, 190px) minmax(120px, 190px);
    gap: 7px;
    padding: 9px;
  }

  .admin-body input,
  .admin-body select,
  .admin-body textarea {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .admin-body button,
  .admin-body .dark-button,
  .admin-body .outline-button,
  .admin-body .mini-btn {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .admin-user-main-actions,
  .actions {
    gap: 5px;
  }

  table {
    min-width: 840px;
    font-size: 11px;
  }

  .control-table {
    min-width: 760px;
  }

  .compact-table {
    min-width: 900px;
  }

  th,
  td {
    padding: 6px;
  }

  td input,
  td select {
    height: 28px;
    margin-bottom: 3px;
  }

  .code-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 6px;
  }

  .code-grid span {
    padding: 7px 8px;
  }
}

@keyframes videoDrift {
  from {
    transform: scale(1.04) translate3d(-1.2%, -0.8%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.4%, 1%, 0);
  }
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.65;
  }
}

@keyframes stageVideoDrift {
  from {
    transform: scale(1.04) translate3d(-1%, -1%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.2%, 1%, 0);
  }
}

@keyframes liveScan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(330%);
  }
}

@keyframes liveFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(6px);
  }
}

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

@keyframes giftSparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes giftBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-4px) rotate(4deg);
  }
}

@keyframes giftOpenBurst {
  0% {
    box-shadow: 0 0 0 rgba(255, 225, 126, 0);
    filter: brightness(1);
  }
  35% {
    box-shadow: 0 0 24px rgba(255, 225, 126, 0.95), 0 0 72px rgba(32, 201, 151, 0.55);
    filter: brightness(1.55);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes starBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.45);
  }
}

@keyframes pageTwinkle {
  0% {
    opacity: 0;
    filter: brightness(1);
  }
  18% {
    opacity: 1;
    filter: brightness(1.45);
  }
  100% {
    opacity: 0;
    filter: brightness(1);
  }
}

@keyframes celebrationFade {
  0% {
    opacity: 0;
    filter: brightness(1);
  }
  12% {
    opacity: 1;
    filter: brightness(1.48) saturate(1.28);
  }
  70% {
    opacity: 1;
    filter: brightness(1.28) saturate(1.18);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    filter: brightness(1);
  }
}

@keyframes giftAmountPulse {
  0% {
    transform: scale(.82);
    filter: brightness(1);
  }
  18% {
    transform: scale(1.1);
    filter: brightness(1.4);
  }
  58% {
    transform: scale(1);
    filter: brightness(1.25);
  }
  100% {
    transform: scale(.96);
    filter: brightness(1);
  }
}

@keyframes sparkleFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35);
  }
  15% {
    opacity: 1;
  }
  62% {
    opacity: .95;
    transform: translate(calc(-50% + (var(--x) * .72)), calc(-50% + (var(--y) * .72))) scale(1.35);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(2.05);
  }
}

@keyframes claimButtonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(32, 201, 151, 0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 12px 28px rgba(32, 201, 151, 0.24);
    transform: translateY(-1px);
  }
}

@keyframes loaderLift {
  0%,
  100% {
    transform: translateY(0);
    opacity: .8;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes toastDrop {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  14%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes productSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes heroCardSweep {
  0%,
  52% {
    transform: translateX(-120%);
    opacity: 0.35;
  }
  72% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(120%);
    opacity: 0.35;
  }
}

@keyframes heroProductRoll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes heroProductPop {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1);
  }
}

@keyframes heroSlideCycle {
  0% {
    opacity: 0;
    transform: translateX(34px) scale(0.98);
  }
  6%,
  20% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  28%,
  100% {
    opacity: 0;
    transform: translateX(-34px) scale(0.98);
  }
}

/* Live landing product motion: keep one clean rolling system so admin product edits
   appear without stacked cards or broken text/image overlap. */
.hero-product-slider {
  height: 152px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(32, 201, 151, 0.10), transparent 30%),
    linear-gradient(135deg, rgba(16, 24, 32, 0.30), rgba(24, 58, 60, 0.22));
  backdrop-filter: blur(3px);
}

.hero-product-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  height: 100%;
  padding-left: 100%;
  animation: heroProductRoll 58s linear infinite;
  will-change: transform;
}

.hero-product-slider .hero-product-slide,
.hero-product-slide {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  flex: 0 0 min(560px, 78vw);
  height: 118px;
  gap: 20px;
  align-items: center;
  padding: 14px 20px;
  opacity: 1;
  transform: none;
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 20%, rgba(32, 201, 151, 0.10), transparent 35%),
    linear-gradient(135deg, rgba(16, 24, 32, 0.48), rgba(24, 58, 60, 0.30));
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(32, 201, 151, 0.10),
    inset 0 1px 0 rgba(255, 248, 232, 0.07);
  pointer-events: auto;
}

.hero-product-slide img,
.hero-product-slider .hero-product-slide img {
  display: block;
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-product-slide b {
  font-size: 18px;
  max-width: 100%;
}

.hero-product-rating {
  color: #f4c44f;
}

.product-track {
  animation-duration: 190s;
}

.rail-2 .product-track {
  animation-duration: 230s;
}

.rail-3 .product-track {
  animation-duration: 210s;
}

@keyframes productFloat {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-2px);
  }
}

@keyframes productZoom {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.1) translateY(-3px);
  }
}

@keyframes checkFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes shineSweep {
  0%,
  45% {
    transform: translateX(-130%);
  }
  75%,
  100% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-track,
  .stage-bg-video,
  .live-badge span,
  .scanline,
  .live-card,
  .hero-product-slide,
  .product-row img,
  .order-card img,
  .record-card img,
  .admin-product img,
  .check-tile {
    animation: none;
  }
}

@media (max-width: 700px) {
  .app-footer {
    gap: 10px;
    font-size: 12px;
  }

  .app-footer .auto-logo {
    font-size: 23px;
  }

  .refer-code-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .footer-info-grid {
    gap: 8px;
  }

  .footer-info-grid details {
    min-height: 96px;
    padding: 10px;
  }

  .check-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .check-tile {
    width: 100%;
    min-height: 132px;
  }

  .admin-head,
  .admin-head-actions,
  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .flow-bars,
  .user-control-layout,
  .admin-form-grid,
  .recharge-admin-list article {
    grid-template-columns: 1fr;
  }

  .flow-bars {
    height: auto;
  }

  .flow-bars span {
    height: 46px;
  }

  .admin-search {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .admin-inline-form.product-create,
  .admin-grid,
  .product-form,
  .admin-product {
    grid-template-columns: 1fr;
  }

  .admin-page,
  .admin-body .app-footer,
  .admin-body .app-header {
    width: min(100%, 500px);
  }

  .admin-product-media,
  .admin-product img {
    width: 100%;
    height: 180px;
  }

  .hero-product-slider {
    left: 9%;
    right: 9%;
    top: 36%;
    width: auto;
    height: 128px;
  }

  .hero-product-slide {
    grid-template-columns: 92px minmax(0, 1fr);
    flex-basis: min(420px, 86vw);
    height: 104px;
    gap: 12px;
    padding: 12px 14px;
  }

  .hero-product-slide img {
    width: 84px;
    height: 84px;
  }

  .hero-product-slide b {
    font-size: 15px;
    line-height: 1.12;
  }

  .hero-product-slide span,
  .hero-product-slide em {
    margin-top: 5px;
    font-size: 11px;
  }

  .hero-product-rating {
    margin-top: 4px;
    font-size: 10px;
  }

  .live-stage {
    min-height: 305px;
  }

  .live-card {
    min-width: 116px;
    padding: 10px 11px;
    border-radius: 10px;
  }

  .live-card b {
    font-size: 13px;
  }

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

  .gift-live-card {
    width: 86px;
    min-width: 86px;
    padding: 0;
  }

  .gift-live-card button {
    min-height: 70px;
    padding: 7px;
  }

  .gift-live-card b {
    font-size: 9px;
  }

  .gift-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .gift-amount-only {
    font-size: 13px !important;
  }

  .live-card-a {
    left: 8%;
    top: 12%;
  }

  .live-card-b {
    right: 7%;
    top: 14%;
  }

  .live-card-c {
    left: 38%;
    right: auto;
    bottom: 7%;
  }

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

  .activation-panel {
    padding: 22px 16px;
  }

  .activation-input-row,
  .activation-steps {
    grid-template-columns: 1fr;
  }

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

  .site-info-section {
    padding-inline: 12px;
  }
}

@media (max-width: 420px) {
  .app-header {
    padding: 0 12px;
  }

  .auto-logo {
    font-size: 22px;
  }

  .logo-stripes {
    width: 25px;
    height: 19px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-shell {
    padding-inline: 8px;
  }

  .product-row {
    grid-template-columns: 20px 48px 1fr 16px;
    gap: 12px;
  }

  .product-row img {
    width: 48px;
    height: 48px;
  }

  .product-media {
    width: 48px;
    height: 48px;
  }

  .shop-actions {
    padding-inline: 5px;
  }

  .form-page {
    padding-inline: 42px;
  }
}

@media (min-width: 900px) {
  .admin-body {
    font-size: 10px;
  }

  .admin-body .page,
  .admin-page,
  .admin-body .app-footer,
  .admin-body .app-header {
    width: min(1480px, calc(100vw - 8px));
  }

  .admin-body .app-header {
    min-height: 42px;
    padding: 5px 12px;
  }

  .admin-body .auto-logo {
    font-size: 17px;
  }

  .admin-body .logo-stripes {
    width: 24px;
    height: 18px;
  }

  .admin-page {
    padding: 5px 0 24px;
  }

  .admin-head {
    margin-bottom: 6px;
  }

  .admin-head h1 {
    font-size: 19px;
  }

  .admin-head-actions {
    gap: 6px;
  }

  .admin-layout {
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 8px;
  }

  .admin-sidebar {
    top: 48px;
    gap: 3px;
    padding: 6px;
    box-shadow: 0 10px 18px rgba(16, 24, 32, .08);
  }

  .admin-sidebar a {
    padding: 7px 8px;
    font-size: 10px;
  }

  .admin-card {
    margin-bottom: 6px;
    padding: 8px;
  }

  .admin-card-head {
    gap: 6px;
    margin-bottom: 6px;
  }

  .admin-card h2,
  .admin-card-head h2 {
    font-size: 16px;
  }

  .admin-kicker {
    margin-bottom: 2px;
    font-size: 8px;
  }

  .admin-search {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 5px;
    margin-bottom: 6px;
  }

  .admin-content,
  .user-detail-panel,
  .user-product-box,
  .user-gift-box,
  .live-review-panel {
    gap: 5px;
  }

  .user-list-panel {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-height: 94px;
    gap: 4px;
  }

  .user-list-panel a {
    min-height: 36px;
    padding: 5px 6px;
    border-radius: 6px;
  }

  .admin-form-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px 6px;
    margin-bottom: 5px;
  }

  .admin-form-grid label {
    font-size: 9px;
  }

  .user-detail-panel > form,
  .user-product-box,
  .user-gift-box,
  .live-review-panel,
  .package-admin-list {
    padding: 6px;
  }

  .admin-user-main-actions,
  .actions {
    gap: 4px;
  }

  .user-control-switch {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    margin-top: 6px;
  }

  .user-control-switch a {
    min-height: 30px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .live-review-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 5px;
    max-height: 150px;
  }

  .track-item {
    grid-template-columns: 20px 30px minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
  }

  .track-item img {
    width: 30px;
    height: 30px;
  }

  .track-mark {
    width: 18px;
    height: 18px;
  }

  .admin-inline-form,
  .admin-inline-form.product-create,
  .admin-inline-form.site-settings-form {
    gap: 4px;
    margin-bottom: 6px;
  }

  .admin-inline-form.product-create {
    grid-template-columns: minmax(98px, 1.1fr) repeat(4, 50px) 74px 70px minmax(78px, 1fr) 82px minmax(96px, 1fr) auto;
  }

  .admin-product {
    grid-template-columns: 32px minmax(88px, 1.1fr) repeat(4, 48px) 70px 62px minmax(72px, 1fr) 78px minmax(92px, 1fr) auto auto auto;
    gap: 4px;
    padding-bottom: 4px;
  }

  .admin-product-media,
  .admin-product img {
    width: 28px;
    height: 28px;
  }

  .admin-product textarea,
  .admin-inline-form textarea {
    min-height: 26px;
    padding: 3px 5px;
    font-size: 10px;
  }

  .admin-list,
  .recharge-admin-list,
  .code-list,
  .gift-admin-grid {
    gap: 5px;
  }

  .admin-body input,
  .admin-body select,
  .admin-body textarea {
    min-height: 24px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .admin-body button,
  .admin-body .dark-button,
  .admin-body .outline-button,
  .admin-body .mini-btn {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 9px;
    border-radius: 5px;
  }

  .flow-grid {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 5px;
  }

  .flow-grid a,
  .admin-stats a {
    padding: 7px;
  }

  .flow-grid strong,
  .admin-stats strong {
    font-size: 16px;
  }

  .flow-bars {
    height: 82px;
    margin-top: 6px;
    padding: 7px;
  }

  .flow-bars span {
    height: min(64px, calc(var(--bar) * 8px));
    font-size: 8px;
  }

  th,
  td {
    padding: 4px;
  }

  table {
    min-width: 760px;
    font-size: 9px;
  }

  .recharge-admin-list article {
    gap: 5px;
    padding: 6px;
  }

  .product-reset-form {
    grid-template-columns: minmax(160px, 280px) auto;
    justify-content: end;
  }
}

/* Admin product editors need readable controls even in compact mode. */
@media (min-width: 960px) {
  .admin-product-set {
    padding: 8px;
    overflow-x: auto;
  }

  .admin-product-sets {
    gap: 9px;
  }

  .admin-product-set-head {
    margin-bottom: 6px;
    padding-bottom: 5px;
  }

  .admin-list {
    gap: 5px;
  }

  .admin-inline-form.product-create {
    grid-template-columns:
      minmax(190px, 1.7fr)
      64px
      64px
      70px
      52px
      88px
      82px
      minmax(180px, 1.25fr)
      96px
      minmax(215px, 1.55fr)
      max-content;
    gap: 5px;
    align-items: stretch;
  }

  .admin-product {
    grid-template-columns:
      34px
      minmax(195px, 1.7fr)
      60px
      60px
      70px
      50px
      86px
      78px
      minmax(185px, 1.3fr)
      92px
      minmax(220px, 1.6fr)
      max-content
      max-content
      max-content
      max-content;
    gap: 5px;
    align-items: stretch;
    padding: 5px 0;
  }

  .admin-product-media,
  .admin-product img {
    width: 34px;
    height: 34px;
  }

  .admin-product input,
  .admin-product select,
  .admin-product textarea,
  .admin-inline-form.product-create input,
  .admin-inline-form.product-create select,
  .admin-inline-form.product-create textarea {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1.25;
  }

  .admin-product textarea,
  .admin-inline-form.product-create textarea {
    overflow: auto;
    resize: vertical;
  }

  .admin-product .mini-btn,
  .admin-product button,
  .admin-inline-form.product-create button {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .footer-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-info-grid details {
    min-height: auto;
  }
}

/* Admin one-frame stability: product controls must wrap inside the monitor. */
.admin-body {
  overflow-x: hidden;
}

.admin-body .page,
.admin-page,
.admin-layout,
.admin-content,
.admin-card,
.admin-section,
.user-detail-panel,
.user-product-box,
.user-gift-box,
.product-settings-user-box,
.admin-product-sets,
.admin-product-set,
.admin-list {
  max-width: 100%;
  min-width: 0;
}

.admin-product-set {
  overflow-x: hidden;
}

.admin-inline-form.product-create,
.admin-product {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
}

.admin-inline-form.product-create input,
.admin-inline-form.product-create select,
.admin-inline-form.product-create textarea,
.admin-product input,
.admin-product select,
.admin-product textarea {
  flex: 1 1 88px;
  min-width: 0;
}

.admin-inline-form.product-create input[name="name"],
.admin-product input[name="name"] {
  flex: 2 1 220px;
}

.admin-inline-form.product-create input[name="image_path"],
.admin-product input[name="image_path"] {
  flex: 2 1 190px;
}

.admin-inline-form.product-create textarea,
.admin-product textarea {
  flex: 2 1 240px;
}

.admin-inline-form.product-create select,
.admin-product select {
  flex-basis: 96px;
}

.admin-product-media {
  flex: 0 0 34px;
}

.admin-inline-form.product-create button,
.admin-product button,
.admin-product .mini-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .admin-body .page,
  .admin-page,
  .admin-body .app-footer,
  .admin-body .app-header {
    width: calc(100vw - 8px);
  }

  .admin-layout {
    grid-template-columns: 138px minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .admin-product-set {
    overflow-x: hidden;
  }
}

@media (max-width: 1180px) {
  .admin-inline-form.product-create input[name="name"],
  .admin-product input[name="name"],
  .admin-inline-form.product-create textarea,
  .admin-product textarea {
    flex-basis: 180px;
  }

  .admin-inline-form.product-create input[name="image_path"],
  .admin-product input[name="image_path"] {
    flex-basis: 160px;
  }

  .admin-inline-form.product-create button,
  .admin-product button,
  .admin-product .mini-btn {
    flex: 1 1 88px;
  }
}

/* Final local stability fixes: keep product submit visible and prevent
   landing product cards from overlapping or hiding uploaded images. */
.product-detail-page {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.product-detail-image img,
.animated-product img,
.hold-product img,
.rail-product img,
.serial-product-card img,
.hero-product-slide img,
.admin-product-media img {
  background: #f5f0e6;
}

.submit-bar {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: env(safe-area-inset-bottom, 0px) !important;
  z-index: 5000 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100% !important;
  max-width: 560px !important;
  min-height: 72px;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(200, 164, 93, 0.28);
  border-radius: 0;
  transform: translateX(-50%) !important;
  background: #f4f7fb;
  box-shadow: 0 -10px 28px rgba(16, 24, 32, 0.16);
}

.submit-bar .submit-order-btn,
.submit-bar > div {
  min-height: 72px;
  border-radius: 0;
}

.home-hero .hero-product-slider {
  left: 8%;
  right: 8%;
  top: 34%;
  width: auto;
  height: 150px;
  overflow: hidden;
}

.home-hero .hero-product-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  height: 100%;
  padding-left: 100%;
  animation: heroProductRoll 68s linear infinite !important;
  will-change: transform;
}

.home-hero .hero-product-slider .hero-product-slide {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  flex: 0 0 min(520px, 76vw);
  height: 118px;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 14px 18px;
  opacity: 1;
  transform: none;
}

.home-hero .hero-product-slide > div {
  min-width: 0;
  overflow: hidden;
}

.home-hero .hero-product-slide img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex: 0 0 auto;
}

.home-hero .hero-product-slide b {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  line-height: 1.14;
}

.home-hero .hero-product-slide small,
.home-hero .hero-product-slide span,
.home-hero .hero-product-slide em {
  display: block;
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-showcase h2 {
  text-align: center;
}

.submit-modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 7, 10, 0.68);
  backdrop-filter: blur(2px);
}

.submit-modal.show {
  display: flex;
}

.submit-modal-card {
  width: min(640px, 92vw);
  padding: 58px 52px 56px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.submit-modal-card h2 {
  margin: 0 0 34px;
  color: #101923;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.submit-confirm-btn,
.submit-cancel-btn {
  width: 100%;
  min-height: 64px;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.submit-confirm-btn {
  border: 0;
  background: #0d151d;
  color: #fffaf0;
  box-shadow: 0 14px 26px rgba(13, 21, 29, 0.18);
}

.submit-cancel-btn {
  margin-top: 18px;
  border: 3px solid #0d151d;
  background: #ffffff;
  color: #101923;
}

@media (max-width: 700px) {
  .product-detail-page {
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }

  .submit-bar {
    max-width: 100% !important;
    min-height: 66px;
  }

  .submit-bar .submit-order-btn,
  .submit-bar > div {
    min-height: 66px;
    font-size: 14px;
  }

  .submit-modal {
    padding: 16px;
  }

  .submit-modal-card {
    padding: 44px 24px 38px;
  }

  .submit-modal-card h2 {
    margin-bottom: 28px;
  }

  .submit-confirm-btn,
  .submit-cancel-btn {
    min-height: 56px;
    font-size: 19px;
  }

  .home-hero .hero-product-slider {
    left: 7%;
    right: 7%;
    top: 34%;
    height: 124px;
  }

  .home-hero .hero-product-track {
    gap: 12px;
    animation-duration: 56s !important;
  }

  .home-hero .hero-product-slider .hero-product-slide {
    grid-template-columns: 76px minmax(0, 1fr);
    flex-basis: min(350px, calc(100vw - 70px));
    height: 94px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .home-hero .hero-product-slide img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }

  .home-hero .hero-product-slide b {
    font-size: 13px;
    line-height: 1.12;
  }

  .home-hero .hero-product-slide small,
  .home-hero .hero-product-slide span,
  .home-hero .hero-product-slide em {
    margin-top: 3px;
    font-size: 10px;
  }
}
