:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #2f3440;
  --muted: #8a93a3;
  --line: #e8edf5;
  --primary: #6b7df0;
  --purple: #7b54d6;
  --soft: #f7f9fc;
  --shadow: 0 8px 18px rgba(30, 38, 60, .08);
  --shine-soft: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  --shine-primary: linear-gradient(90deg, transparent, rgba(102, 126, 234, .16), transparent);
  --glow-primary: rgba(102, 126, 234, .32);
  --shell-shadow: 0 0 34px rgba(35, 24, 10, .13);
  --topbar: #ffffff;
  --surface: #ffffff;
  --surface-soft: #edf1f7;
  --input: #f8fafc;
  --body-bg: linear-gradient(90deg, #bda88d 0%, #8a5d31 38%, #f8f5ef 38%, #f8f5ef 62%, #b88722 62%, #c7b58b 100%);
  --icon: #181d27;
}

:root[data-theme="dark"] {
  --bg: #121622;
  --card: #1b2130;
  --text: #eef2ff;
  --muted: #9aa6bd;
  --line: #2b3448;
  --soft: #151b29;
  --shadow: 0 10px 24px rgba(0, 0, 0, .32);
  --shine-soft: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  --shine-primary: linear-gradient(90deg, transparent, rgba(140, 154, 255, .18), transparent);
  --glow-primary: rgba(118, 96, 238, .35);
  --shell-shadow: 0 0 34px rgba(0, 0, 0, .55);
  --topbar: #171d2a;
  --surface: #1b2130;
  --surface-soft: #151b29;
  --input: #141a27;
  --body-bg: linear-gradient(90deg, #090b11 0%, #14101d 38%, #0f1420 38%, #0f1420 62%, #1a1425 62%, #0b0d12 100%);
  --icon: #f0f4ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--body-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: var(--shell-shadow);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  padding: 0 12px 92px;
  background: var(--bg);
}

.topbar {
  margin: 0 -12px;
  padding: 10px 13px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
}

.logo {
  width: 92px;
  height: auto;
  display: block;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 19px;
  color: var(--icon);
}

.icon-btn,
.bell {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  width: 23px;
  height: 23px;
  position: relative;
  display: grid;
  place-items: center;
}

.icon-btn svg,
.bell svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.3;
}

.badge {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff6d86;
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.brand-strip {
  margin: 0 -12px 16px;
  padding: 10px 8px 12px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  background: #edf1f7;
  scrollbar-width: none;
}

.brand-strip::-webkit-scrollbar,
.vip-row::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  position: relative;
  overflow: hidden;
  min-width: 62px;
  height: 29px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #384051;
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(80, 89, 118, .18);
  white-space: nowrap;
  animation: softCardFloatIn .48s ease both;
}

.brand-chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 70%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 3.8s ease-in-out infinite;
}

.hero {
  margin: 0 0 18px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero img,
.hero video {
  width: 100%;
  height: 151px;
  display: block;
  object-fit: cover;
}

.vip-row {
  margin: 0 -12px 18px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 12px 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  user-select: none;
  cursor: grab;
  mask-image: linear-gradient(90deg, #000 0 calc(100% - 32px), transparent 100%);
}

.vip-row:active,
.vip-row.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.vip-row::after {
  content: "";
  flex: 0 0 28px;
}

.vip-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 172px;
  min-height: 74px;
  padding: 12px 10px 11px 66px;
  display: grid;
  align-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vip-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 85%;
  height: 100%;
  background: var(--shine-primary);
  transform: skewX(-18deg);
  animation: cardShinePass 4.8s ease-in-out infinite;
  pointer-events: none;
}

.vip-card:nth-child(2n)::after {
  animation-delay: .8s;
}

.vip-card:nth-child(3n)::after {
  animation-delay: 1.4s;
}

.vip-medal {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.95) 0 21%, transparent 22%),
    radial-gradient(circle at 50% 50%, #8d5bff 0 48%, #302046 49% 100%);
  box-shadow: 0 5px 14px rgba(94, 74, 210, .25);
  overflow: hidden;
}

.vip-medal::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 117, 214, .75);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}

.vip-medal-number {
  position: relative;
  z-index: 3;
}

.vip-glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 117, 214, .36), rgba(102, 126, 234, .22) 38%, transparent 70%);
  filter: blur(4px);
  animation: vipGlowPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.vip-scan-line {
  position: absolute;
  top: -40%;
  left: -70%;
  z-index: 2;
  width: 56%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: rotate(18deg);
  animation: vipScanLine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.vip-badge {
  position: absolute;
  left: 43px;
  top: 14px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #5c6ef0;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.vip-name {
  margin-bottom: 4px;
  color: #323847;
  font-size: 13px;
  font-weight: 700;
}

.vip-line {
  color: #8c94a2;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.actions-shell {
  margin: 0 2px 16px;
  padding: 20px 12px 11px;
  background: #edf1f7;
  border: 1px solid #e4e9f2;
}

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

.action-card {
  position: relative;
  overflow: hidden;
  min-height: 113px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 31, 54, .08);
}

.action-card::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -120%;
  width: 70%;
  height: 140%;
  background: var(--shine-primary);
  transform: skewX(-20deg);
  animation: cardShinePass 4.5s ease-in-out infinite;
}

.action-card:nth-child(2)::after {
  animation-delay: .4s;
}

.action-card:nth-child(3)::after {
  animation-delay: .8s;
}

.round-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 30, 48, .12);
}

.round-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.6;
}

.action-card span {
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.commission {
  margin: 0 18px 18px;
}

.commission-title {
  margin-bottom: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  color: #2f3440;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.commission-crown {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff005c;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(255, 0, 92, .25);
}

.commission-box {
  position: relative;
  height: 188px;
  overflow: hidden;
  padding: 13px 15px 0;
  border: 2px solid #a7b1ff;
  border-radius: 11px;
  background: linear-gradient(180deg, #eef1ff, #f3f1ff);
}

.commission-box::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, .12), transparent 28%, rgba(255, 117, 214, .10), transparent 58%);
  animation: backgroundRotate 10s linear infinite;
}

.commission-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 5.2s ease-in-out infinite;
}

.commission-track {
  position: relative;
  z-index: 1;
  animation: scrollY 120s linear infinite;
}

.commission-row {
  position: relative;
  overflow: hidden;
  height: 38px;
  margin-bottom: 21px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  background: #fff;
}

.commission-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: -95%;
  width: 55%;
  height: 100%;
  background: var(--shine-primary);
  transform: skewX(-18deg);
  animation: rowShinePass 5.6s ease-in-out infinite;
}

.avatar-lite {
  width: 28px;
  height: 28px;
  border: 3px solid #d1d5db;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
  background: linear-gradient(#eef0f4, #fff);
}

.commission-copy {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}

.commission-mask {
  color: #303847;
  font-weight: 700;
}

.commission-amount {
  color: #667df0;
  font-weight: 800;
  white-space: nowrap;
}

.section-heading {
  margin: 20px 0 12px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
}

.section-heading p {
  margin: 18px 0 12px;
  color: #535762;
  font-size: 14px;
}

.shop-now {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.shop-now::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  animation: shineSweep 3s ease-in-out infinite;
}

.gallery {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery img,
.promo img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(37, 45, 71, .06);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(45deg, transparent, rgba(102,126,234,.32), transparent);
  background-size: 220% 220%;
  opacity: .55;
  animation: borderShine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 6px;
  background: #fff;
  pointer-events: none;
}

.product-link,
.product-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}

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

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef0f4;
}

.product-name {
  display: block;
}

.product-body {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 9px 10px;
  background: #fff;
}

.product-name {
  min-height: 40px;
  color: #2e3442;
  font-size: 12px;
  line-height: 1.35;
}

.product-price {
  margin-top: 7px;
  display: block;
  color: #765df0;
  font-size: 13px;
  font-weight: 900;
}

.tabbar-wrap {
  position: fixed;
  left: 50%;
  bottom: 8px;
  z-index: 50;
  width: min(374px, calc(100vw - 14px));
  transform: translateX(-50%);
  pointer-events: none;
}

.tabbar {
  height: 52px;
  padding: 0 19px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid rgba(238, 230, 214, .8);
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(255,255,255,.97), rgba(245,205,158,.88), rgba(255,255,255,.97));
  box-shadow: 0 -4px 22px rgba(64, 53, 38, .12);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.tab {
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #596170;
  font-size: 11px;
  line-height: 1.1;
}

.tab svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.tab.active {
  color: #637bff;
  font-weight: 800;
}

.tab.active .tab-icon-bg {
  width: 52px;
  height: 40px;
  margin-top: -2px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(101, 125, 240, .12);
}

.panel {
  margin: 14px 4px;
  padding: 20px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-title {
  margin: 0 0 21px;
  text-align: center;
  color: #1f2633;
  font-size: 18px;
  font-weight: 900;
}

.panel-title::after {
  content: "";
  width: 40px;
  height: 2px;
  margin: 10px auto 0;
  display: block;
  background: #7759d2;
}

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

.stat-box {
  min-height: 80px;
  padding: 16px 8px;
  display: grid;
  place-items: center;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  background: #f8f9fc;
  color: #8b94a4;
  font-size: 12px;
}

.stat-box strong {
  margin-top: 8px;
  color: #303847;
  font-size: 16px;
}

.help-line {
  margin: 10px 0 0;
  color: #7d8797;
  font-size: 13px;
  line-height: 1.7;
}

.grabbing-page {
  padding: 0 0 92px;
  background: #f5f7fa;
}

.grab-header-section {
  margin: 0 16px;
  padding-top: 16px;
}

.grab-banner-card {
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.grab-banner-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-section,
.balance-section,
.instructions-section,
.products-section {
  margin: 16px;
}

.instructions-section {
  margin-bottom: 18px;
}

.products-section {
  margin-top: 18px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.carousel-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, .1), transparent);
  z-index: 0;
  animation: backgroundRotate 8s linear infinite;
}

.carousel-wrapper {
  position: relative;
  z-index: 1;
  width: 250px;
  height: 190px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-glow {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 14px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  opacity: .72;
  filter: blur(6px);
  animation: glowPulse 4s ease-in-out infinite;
}

.book-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 750px;
}

.page-base,
.page-curl {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.page-base {
  z-index: 1;
}

.page-curl {
  z-index: 2;
  transform-origin: right center;
  transition: all 1.2s cubic-bezier(.23, 1, .32, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
}

.page-curl.curling {
  animation: pageCurl 1.2s cubic-bezier(.23, 1, .32, 1) forwards;
}

.page-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.2);
}

.page-image.is-switching {
  animation: randomProductIn .32s ease-out;
}

.page-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.emoji {
  position: absolute;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  animation: emojiFloat 2s ease-in-out infinite;
}

.emoji-1 {
  top: 15%;
  left: 12%;
}

.emoji-2 {
  top: 20%;
  right: 15%;
  animation-delay: .7s;
}

.emoji-3 {
  bottom: 25%;
  left: 18%;
  animation-delay: 1.4s;
}

.sparkle {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: gold;
  animation: sparkleTwinkle 2.5s ease-in-out infinite;
}

.sparkle::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, .6) 0%, transparent 70%);
}

.sparkle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 8px;
  background: gold;
  box-shadow: 8px 0 0 -.5px gold;
  transform: translate(-50%, -50%);
  animation: sparkleCross 2.5s ease-in-out infinite;
}

.sparkle-1 {
  top: 10%;
  left: 8%;
}

.sparkle-2 {
  top: 15%;
  right: 12%;
  animation-delay: .8s;
}

.sparkle-3 {
  bottom: 15%;
  left: 12%;
  animation-delay: 1.6s;
}

.sparkle-4 {
  right: 8%;
  bottom: 20%;
  animation-delay: 2.4s;
}

.action-button {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 6px 16px rgba(102, 126, 234, .4);
  transition: all .3s cubic-bezier(.25, .46, .45, .94);
}

.action-button:active {
  transform: scale(.95) translateY(1px);
  box-shadow: 0 3px 10px rgba(102, 126, 234, .3);
}

.action-button.processing {
  opacity: .8;
  transform: scale(.98);
  cursor: not-allowed;
}

.button-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-icon {
  font-size: 18px;
  animation: iconBounce 1.5s ease-in-out infinite;
}

.button-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  animation: buttonShine 3s ease-in-out infinite;
}

.ripple-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.click-counter {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 10;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  box-shadow: 0 2px 8px rgba(238, 90, 36, .4);
}

.counter-text {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.counter-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  animation: pulseRing 1.5s cubic-bezier(.215, .61, .355, 1) infinite;
}

.grabbing-page .grab-balance-card,
.instructions-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.grabbing-page .grab-balance-card::before,
.instructions-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: var(--shine-primary);
  transform: skewX(-18deg);
  animation: cardShinePass 5.8s ease-in-out infinite;
  pointer-events: none;
}

.grabbing-page .grab-balance-card > *,
.instructions-card > * {
  position: relative;
  z-index: 1;
}

.grabbing-page .balance-title {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 8px;
  color: #1f2633;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.grabbing-page .balance-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateX(-50%);
}

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

.grabbing-page .balance-item {
  position: relative;
  overflow: hidden;
  padding: 16px 8px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #f7f9fc;
  text-align: center;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
}

.grabbing-page .balance-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--shine-primary);
  transition: left .6s ease;
}

.grabbing-page .balance-item:active::before,
.grabbing-page .balance-item:hover::before {
  left: 100%;
}

.grabbing-page .balance-label {
  margin-bottom: 6px;
  color: #8b94a4;
  font-size: 12px;
}

.grabbing-page .balance-value {
  color: #303847;
  font-size: 16px;
  font-weight: 600;
}

.instructions-title {
  position: relative;
  margin-bottom: 12px;
  padding-left: 10px;
  color: #202636;
  font-size: 16px;
  font-weight: 600;
}

.instructions-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-50%);
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  color: #7d8797;
  font-size: 14px;
  line-height: 1.5;
}

.instruction-item:last-child {
  margin-bottom: 0;
}

.bullet {
  margin: 2px 8px 0 0;
  color: #667eea;
  font-size: 14px;
  font-weight: 600;
}

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

.products-grid .product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.products-grid .product-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.products-grid .product-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, .8), rgba(118, 75, 162, .8));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .products-grid .product-card:hover .product-overlay {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .products-grid .product-overlay {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.overlay-text {
  font-size: 24px;
}

.products-grid .product-info {
  position: relative;
  padding: 16px 12px;
}

.products-grid .product-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateX(-50%);
}

.products-grid .product-name {
  margin: 4px 0 8px;
  min-height: 39px;
  color: #303847;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-grid .product-price {
  display: flex;
  align-items: baseline;
  color: #e74c3c;
}

.products-grid .currency {
  margin-right: 2px;
  font-size: 12px;
  font-weight: 500;
}

.products-grid .price-value {
  font-size: 16px;
  font-weight: 700;
}

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

@keyframes glowPulse {
  0%,
  100% {
    background-position: 0% 50%;
    filter: blur(8px) brightness(1);
  }

  50% {
    background-position: 100% 50%;
    filter: blur(10px) brightness(1.3);
  }
}

@keyframes pageCurl {
  0% {
    transform: rotateY(0) rotateX(0) scale(1);
  }

  25% {
    transform: rotateY(-20deg) rotateX(5deg) scale(.95);
  }

  50% {
    transform: rotateY(-60deg) rotateX(10deg) scale(.85);
  }

  75% {
    transform: rotateY(-120deg) rotateX(15deg) scale(.7);
  }

  100% {
    transform: rotateY(-180deg) rotateX(20deg) scale(.1);
    opacity: 0;
  }
}

@keyframes randomProductIn {
  from {
    opacity: .35;
    transform: scale(1.018);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes emojiFloat {
  50% {
    transform: translateY(-4px) scale(1.1);
  }
}

@keyframes sparkleTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0);
  }

  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

@keyframes sparkleCross {
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

@keyframes iconBounce {
  50% {
    transform: translateY(-3px);
  }
}

@keyframes buttonShine {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

@keyframes shineSweep {
  0% {
    left: -120%;
  }

  48%,
  100% {
    left: 135%;
  }
}

@keyframes cardShinePass {
  0%,
  18% {
    left: -120%;
  }

  48%,
  100% {
    left: 135%;
  }
}

@keyframes rowShinePass {
  0%,
  25% {
    left: -95%;
  }

  58%,
  100% {
    left: 120%;
  }
}

@keyframes borderShine {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes vipGlowPulse {
  0%,
  100% {
    opacity: .55;
    transform: scale(.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes vipScanLine {
  0%,
  22% {
    left: -82%;
    opacity: 0;
  }

  38% {
    opacity: .95;
  }

  62%,
  100% {
    left: 126%;
    opacity: 0;
  }
}

@keyframes softCardFloatIn {
  from {
    opacity: .72;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseRing {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.balance-banner {
  margin: 12px 0 10px;
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
  background: linear-gradient(90deg, #6f80ed, #7748bd);
  color: #fff;
}

.balance-banner span {
  font-size: 16px;
  font-weight: 800;
}

.balance-banner strong {
  font-size: 25px;
}

.filter-tabs {
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.filter-tabs button {
  height: 41px;
  border: 0;
  background: transparent;
  color: #818897;
  font-size: 14px;
}

.filter-tabs button.active {
  background: #7052c8;
  color: #fff;
  font-weight: 800;
}

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

.order-card {
  padding: 11px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 38, 60, .06);
}

.order-card[hidden] {
  display: none;
}

.order-head {
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border-bottom: 1px solid #e4e8f0;
  color: #818897;
  font-size: 12px;
}

.order-head strong {
  color: #303847;
  font-weight: 500;
}

.order-product {
  margin: 10px 0;
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 10px;
  align-items: start;
}

.order-product img {
  width: 43px;
  height: 43px;
  border-radius: 4px;
  object-fit: cover;
}

.order-name {
  color: #222836;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.order-status {
  margin-top: 7px;
  padding: 3px 9px;
  display: inline-flex;
  border-radius: 999px;
  background: #eef1ff;
  color: #675df2;
  font-size: 11px;
  font-weight: 800;
}

.order-status.completed {
  background: #edf8f0;
  color: #1b9c5b;
}

.order-status.abnormal {
  background: #fff0f0;
  color: #e14f5f;
}

.money-box {
  padding: 10px 9px;
  display: grid;
  gap: 8px;
  border-radius: 4px;
  background: #f7f8fb;
}

.money-row {
  display: flex;
  justify-content: space-between;
  color: #8d96a5;
  font-size: 11px;
}

.money-row strong {
  color: #7068ef;
  font-size: 12px;
}

.settle-order {
  margin-top: 11px;
  width: 100%;
  height: 39px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f80ed, #7748bd);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.money-row.total {
  font-weight: 800;
  color: #202536;
}

.money-row.total strong {
  color: #7b70eb;
  font-size: 14px;
}

.purchase-page {
  min-height: 100vh;
  background-color: var(--bg);
  padding-bottom: 92px;
}

.purchase-page .header-section {
  padding: 8px 4px;
}

.purchase-page .header-section .balance-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background-size: 200% 200%;
  box-shadow: 0 5px 15px rgba(102, 126, 234, .3);
  animation: gradientFlow 4s ease infinite;
}

.purchase-page .header-section .balance-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 3.4s ease-in-out infinite;
}

.purchase-page .balance-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.purchase-page .balance-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.purchase-page .balance-icon {
  font-size: 16px;
}

.purchase-page .balance-text {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  font-weight: 700;
}

.purchase-page .balance-amount {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

.purchase-page .category-section {
  padding: 4px 4px 10px;
}

.purchase-page .category-tabs {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.purchase-page .category-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  transition: all .3s ease;
}

.purchase-page .category-tab.tab-active {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.purchase-page .category-tab.tab-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 3.2s ease-in-out infinite;
}

.purchase-page .category-tab .tab-text {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.purchase-page .category-tab.tab-active .tab-text {
  color: #fff;
}

.purchase-page .orders-section {
  padding: 0 4px;
}

.purchase-page .orders-list {
  display: block;
}

.purchase-page .order-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all .3s ease;
}

.purchase-page .order-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: var(--shine-primary);
  transform: skewX(-18deg);
  animation: cardShinePass 5s ease-in-out infinite;
  pointer-events: none;
}

.purchase-page .order-card > * {
  position: relative;
  z-index: 1;
}

.purchase-page .order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.purchase-page .order-card[hidden] {
  display: none;
}

.purchase-page .order-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.purchase-page .order-time,
.purchase-page .order-id {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.purchase-page .order-id {
  justify-content: flex-end;
  text-align: right;
}

.purchase-page .time-icon {
  flex: 0 0 auto;
  font-size: 14px;
}

.purchase-page .time-text,
.purchase-page .id-label,
.purchase-page .id-value {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.purchase-page .id-value {
  color: var(--text);
  font-weight: 700;
}

.purchase-page .product-section {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.purchase-page .product-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.purchase-page .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-page .product-info {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.purchase-page .product-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.purchase-page .financial-section {
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #f7f8fb;
}

.purchase-page .lucky-order-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(240, 147, 251, .3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 246, 219, .96), rgba(244, 231, 255, .96));
  color: #303847;
  font-size: 12px;
  font-weight: 800;
}

.purchase-page .lucky-order-badge strong {
  color: #764ba2;
  font-size: 11px;
}

.purchase-page .lucky-order-badge.paid {
  border-color: rgba(76, 175, 80, .22);
  background: rgba(76, 175, 80, .08);
}

.purchase-page .financial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.purchase-page .financial-item:last-child {
  margin-bottom: 0;
}

.purchase-page .financial-label {
  color: var(--muted);
  font-size: 11px;
}

.purchase-page .financial-value {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purchase-page .financial-item.total {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.purchase-page .financial-item.total .financial-label {
  color: var(--text);
  font-weight: 700;
}

.purchase-page .financial-total {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: purchasePulseGlow 2s ease-in-out infinite;
}

.purchase-page .order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.purchase-page .action-btn {
  position: relative;
  overflow: hidden;
  padding: 6px 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 12px;
  transition: all .3s ease;
}

.purchase-page .action-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 3s ease-in-out infinite;
}

.purchase-page .action-btn.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, .3);
}

.purchase-page .action-btn.primary.lucky {
  background: linear-gradient(135deg, #ffba57, #764ba2);
}

.purchase-page .action-btn.secondary {
  background: linear-gradient(135deg, #4caf50, #45a049);
  box-shadow: 0 4px 12px rgba(76, 175, 80, .3);
}

.purchase-page .action-btn .btn-text {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
}

.purchase-page .status-text {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
}

.purchase-page .status-text.completed {
  background: rgba(76, 175, 80, .1);
  color: #4caf50;
}

.purchase-page .status-text.pending {
  background: rgba(102, 126, 234, .12);
  color: #667eea;
}

.purchase-page .status-text.abnormal {
  background: rgba(225, 79, 95, .1);
  color: #e14f5f;
}

.purchase-page .status-icon {
  font-size: 14px;
}

.purchase-page .status-text.pending .status-icon {
  display: inline-block;
  transform-origin: 50% 55%;
  animation: pendingHourglass 1.05s ease-in-out infinite;
}

.purchase-page .status-label {
  font-size: 12px;
  font-weight: 700;
}

.purchase-page .no-more-section,
.purchase-page .empty-section {
  padding: 20px;
  text-align: center;
}

.purchase-page .empty-section {
  padding: 60px 20px;
}

.purchase-page .no-more-text,
.purchase-page .empty-text {
  color: var(--muted);
  font-size: 13px;
}

@keyframes purchasePulseGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(102, 126, 234, 0));
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, .35));
  }
}

@keyframes pendingHourglass {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }

  35% {
    transform: rotate(0deg) scale(.9);
    opacity: .72;
  }

  65% {
    transform: rotate(180deg) scale(1.04);
    opacity: 1;
  }

  100% {
    transform: rotate(180deg) scale(1);
    opacity: 1;
  }
}

.mine-hero {
  margin: 8px 0 27px;
  padding: 22px 16px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #667cf1, #8145b6);
  color: #fff;
}

.mine-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #6577ef;
  font-size: 20px;
  font-weight: 900;
}

.mine-name {
  font-size: 17px;
  font-weight: 900;
}

.mine-pill {
  margin: 8px 0;
  padding: 5px 13px;
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 800;
}

.mine-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.copy-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  font-size: 10px;
  font-weight: 800;
}

.online-mini {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(121, 216, 91, .55);
  color: #07b33b;
  font-size: 12px;
  font-weight: 800;
}

.section-title-row {
  margin: 0 13px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 900;
}

.section-title-row.balance-header .balance-icon {
  font-size: 18px;
  animation: balanceFloat 3s ease-in-out infinite;
}

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

.balance-card {
  position: relative;
  overflow: hidden;
  min-height: 111px;
  padding: 18px 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2dd3f2, #18cadf);
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
}

.balance-card.purple {
  background: linear-gradient(135deg, #6f7dff, #7b54d6);
  background-size: 200% 200%;
}

.original-flip-cards {
  gap: 10px;
  margin: 0 13px 14px;
  perspective: 1000px;
}

.original-flip-cards .balance-card {
  min-height: 111px;
  padding: 18px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: none;
}

.original-flip-cards .main-balance {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

.original-flip-cards .receivable-balance {
  overflow: visible;
  padding: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1000px;
}

.original-flip-cards .flip-container {
  position: relative;
  width: 100%;
  min-height: 111px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.original-flip-cards .flip-container.is-flipped {
  transform: rotateY(180deg);
}

.original-flip-cards .flip-front,
.original-flip-cards .flip-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  min-height: 111px;
  padding: 18px 14px;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d;
}

.original-flip-cards .flip-front {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.original-flip-cards .flip-back {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: rotateY(180deg);
}

.original-flip-cards .card-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.original-flip-cards .balance-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  opacity: .92;
}

.original-flip-cards .balance-amount {
  margin-top: 0;
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.original-flip-cards .card-bg-effect {
  position: absolute;
  top: -50%;
  right: -50%;
  z-index: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.2) 0%, transparent 70%);
  animation: cardGlow 6s ease-in-out infinite;
  pointer-events: none;
}

.balance-card::after,
.wallet-hero::after,
.team-hero::after,
.recharge-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 76%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.original-flip-cards .balance-card::after {
  content: none;
}

.balance-card > *,
.wallet-hero > *,
.team-hero > *,
.recharge-top > * {
  position: relative;
  z-index: 1;
}

.balance-card div:first-child {
  font-size: 13px;
  font-weight: 800;
}

.balance-card strong {
  margin-top: 13px;
  display: block;
  font-size: 24px;
}

.balance-card small {
  margin-top: 10px;
  display: block;
  opacity: .9;
}

.slot-money {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 1;
}

.slot-char {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: .58em;
  height: 1em;
  overflow: hidden;
  vertical-align: middle;
  line-height: 1;
}

.slot-char.symbol {
  min-width: .34em;
  overflow: hidden;
  animation: slotSymbolIn .3s ease both;
  animation-delay: calc(var(--slot-index) * 28ms);
}

.slot-char.symbol > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
}

.slot-char.digit::before {
  content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
  line-height: 1;
  transform: translateY(calc(var(--slot-digit) * -1em));
  animation: slotDigitRoll .86s cubic-bezier(.18, .82, .22, 1) both;
  animation-delay: calc(var(--slot-index) * 34ms);
}

.slot-char.digit > span {
  opacity: 0;
}

.slot-money.compact .slot-char {
  min-width: .52em;
}

.balance-card strong .slot-money,
.wallet-hero strong .slot-money,
.team-hero strong .slot-money,
.recharge-top strong .slot-money,
.purchase-page .balance-amount .slot-money,
.grabbing-page .balance-value .slot-money {
  display: inline-flex;
  height: 1.12em;
}

@keyframes slotDigitRoll {
  0% {
    transform: translateY(-10.9em);
    filter: blur(1px);
  }

  76% {
    transform: translateY(calc((var(--slot-digit) * -1em) - .14em));
    filter: blur(0);
  }

  100% {
    transform: translateY(calc(var(--slot-digit) * -1em));
    filter: blur(0);
  }
}

@keyframes slotSymbolIn {
  from {
    opacity: .35;
  }

  to {
    opacity: 1;
  }
}

@keyframes cardGlow {
  0%,
  100% {
    opacity: .3;
  }

  50% {
    opacity: .6;
  }
}

@keyframes balanceFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot-char.digit::before,
  .slot-char.symbol,
  .original-flip-cards .flip-container,
  .original-flip-cards .card-bg-effect,
  .section-title-row.balance-header .balance-icon {
    animation: none !important;
    transition: none !important;
  }
}

.wallet-hero,
.team-hero,
.recharge-top {
  position: relative;
  overflow: hidden;
  margin: 8px 0 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #667cf1, #8145b6);
  background-size: 200% 200%;
  box-shadow: var(--shadow);
  animation: gradientFlow 4.4s ease infinite;
}

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

.wallet-hero > div > span,
.team-hero > span,
.recharge-top > span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  opacity: .9;
}

.wallet-hero strong,
.team-hero strong,
.recharge-top strong {
  margin-top: 9px;
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

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

.wallet-actions .action-card {
  min-height: 86px;
  border-radius: 12px;
}

.wallet-actions .round-icon {
  width: 42px;
  height: 42px;
}

.fund-breakdown {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.fund-breakdown div {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.fund-breakdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fund-breakdown strong {
  color: #667eea;
  font-size: 15px;
}

.ledger-row,
.member-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f5;
  color: #2b3240;
  font-size: 14px;
}

.ledger-row:last-child,
.member-row:last-child {
  border-bottom: 0;
}

.ledger-money {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ledger-money.plus {
  color: #7068ef;
}

.ledger-money.minus {
  color: #ff6d86;
}

.count-card {
  margin: 0 14px 28px;
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow);
}

.count-item {
  padding: 14px;
  display: grid;
  place-items: center;
  border-right: 1px solid #edf1f6;
  color: #8b94a4;
  font-size: 12px;
}

.count-item:last-child {
  border-right: 0;
}

.count-item strong {
  margin-bottom: 7px;
  color: #303847;
  font-size: 18px;
}

.list-card {
  margin: 14px 0;
  padding: 17px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.list-head {
  margin-bottom: 17px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
}

.list-row {
  min-height: 53px;
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f5;
  color: #2b3240;
  font-size: 14px;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #7b8ffc;
}

.list-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.row-sub {
  margin-top: 3px;
  color: #7b7f8a;
  font-size: 12px;
}

.row-tail {
  color: #777f91;
  font-size: 13px;
}

.support-hero {
  margin: 0 8px 14px;
  padding: 26px 18px 29px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6785ff, #7b54d6);
  color: #fff;
  text-align: center;
}

.support-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
}

.support-icon svg {
  width: 26px;
  height: 26px;
}

.support-hero h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.support-hero p {
  margin: 4px 0;
  font-size: 12px;
  font-weight: 700;
}

.support-card {
  margin: 12px 12px;
  padding: 15px 17px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
}

.circle-soft {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f2f7;
  color: #727a89;
}

.support-label {
  color: #8a93a3;
  font-size: 11px;
}

.support-card strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.online-tag {
  color: #2bbd56;
  font-size: 12px;
  font-weight: 800;
}

.support-section-label {
  margin: 15px 15px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 17px;
  font-weight: 900;
}

.contact-card {
  margin: 0 12px 12px;
  padding: 17px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.agent-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
}

.agent-name {
  font-size: 15px;
  font-weight: 900;
}

.agent-sub {
  margin-top: 3px;
  color: #8a93a3;
  font-size: 11px;
}

.tag-row {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.small-tag {
  padding: 3px 7px;
  border-radius: 3px;
  background: #eef1ff;
  color: #6b7df0;
  font-size: 9px;
}

.contact-btn {
  padding: 13px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6785ff, #7b54d6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.faq-list {
  overflow: hidden;
  margin: 8px 12px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.faq-row {
  min-height: 49px;
  padding: 0 16px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  color: #2f3440;
  font-size: 14px;
  text-align: left;
}

.faq-row:last-child {
  border-bottom: 0;
}

.faq-row i {
  font-style: normal;
  color: #8b94a4;
  transition: transform .18s ease;
}

.faq-row small {
  grid-column: 1 / -1;
  display: none;
  padding: 0 18px 13px 0;
  color: #7b8495;
  font-size: 12px;
  line-height: 1.55;
}

.faq-row.open {
  min-height: 72px;
  align-items: start;
  padding-top: 14px;
}

.faq-row.open i {
  transform: rotate(90deg);
}

.faq-row.open small {
  display: block;
}

.simple-header {
  margin: 0 -12px 14px;
  height: 50px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e8ecf4;
}

.back {
  font-size: 28px;
  color: #2b3240;
}

.simple-title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #555f70;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid #dce2ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #2f3440;
  outline: none;
}

.field input,
.field select {
  height: 45px;
}

.field textarea {
  min-height: 126px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.55;
}

.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555f70;
  font-size: 13px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: #7052c8;
}

.primary-block {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #6b83f1, #8148b8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.amount-btn {
  height: 40px;
  border: 1px solid #dfe4ed;
  border-radius: 6px;
  background: #fff;
  color: #586174;
  font-weight: 800;
}

.amount-btn.active {
  border-color: #7052c8;
  background: #f0edff;
  color: #7052c8;
  box-shadow: 0 0 0 2px rgba(112, 82, 200, .10);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.method-card {
  appearance: none;
  text-align: left;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fff;
  color: #1f2633;
}

.method-card.active {
  border-color: #7052c8;
  box-shadow: 0 0 0 2px rgba(112, 82, 200, .12);
}

.recharge-top {
  min-height: 120px;
  align-content: center;
}

.primary-block {
  position: relative;
  overflow: hidden;
}

.primary-block::after,
.tijioa.btn-sub::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 72%;
  height: 100%;
  background: var(--shine-soft);
  transform: skewX(-18deg);
  animation: shineSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.tijioa.btn-sub {
  position: relative;
  overflow: hidden;
}

.recharge-top small {
  font-size: 12px;
  opacity: .85;
}

.withdraw-top {
  background: linear-gradient(135deg, #2dd3f2, #7b54d6);
}

.pay-address {
  margin-top: 14px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  border-radius: 8px;
  background: #f7f8fb;
}

.pay-address span {
  grid-column: 1 / -1;
  color: #8b94a4;
  font-size: 12px;
}

.pay-address strong {
  color: #303847;
  font-size: 14px;
}

.mini-copy {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #7052c8;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.record-card {
  padding: 11px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(30, 38, 60, .06);
}

.record-head {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #303847;
  font-size: 14px;
  font-weight: 800;
}

.status-ok,
.status-fail,
.status-wait {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.status-ok {
  background: #e9f9ef;
  color: #22a64f;
}

.status-fail {
  background: #fff0f2;
  color: #e95268;
}

.status-wait {
  background: #fff8e8;
  color: #d08a12;
}

.invite-card {
  margin: 8px 0 14px;
  padding: 20px;
  display: grid;
  gap: 18px;
  justify-items: center;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #667cf1, #8145b6);
  box-shadow: var(--shadow);
}

.invite-logo {
  width: 122px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
}

.invite-logo img {
  width: 100%;
  display: block;
}

.invite-qr {
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border: 10px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 28px 28px,
    linear-gradient(#111 12px, transparent 12px) 0 0 / 28px 28px,
    #fff;
  color: transparent;
}

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

.team-stats {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.team-stats div {
  min-height: 82px;
  padding: 12px 8px;
  display: grid;
  place-items: center;
  border-right: 1px solid #edf1f6;
  text-align: center;
}

.team-stats div:last-child {
  border-right: 0;
}

.team-stats strong {
  color: #303847;
  font-size: 17px;
}

.team-stats span,
.team-stats small {
  color: #8b94a4;
  font-size: 11px;
}

.member-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1ff;
  color: #667cf1;
  font-weight: 900;
}

.notice-hero {
  margin: 8px 0 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #667cf1, #8145b6);
  box-shadow: var(--shadow);
}

.notice-dot {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff6d86;
  font-weight: 900;
}

.notice-hero strong {
  display: block;
  font-size: 18px;
}

.notice-hero p {
  margin: 5px 0 0;
  font-size: 12px;
  opacity: .9;
}

.notice-list {
  padding-top: 10px;
}

.notice-row,
.choice-row,
.setting-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 39px 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f5;
  color: #2b3240;
  font-size: 14px;
}

.notice-row:last-child,
.choice-row:last-child,
.setting-row:last-child {
  border-bottom: 0;
}

.notice-row.unread {
  background: linear-gradient(90deg, rgba(112,82,200,.08), transparent 70%);
}

.choice-row {
  grid-template-columns: 1fr 28px;
  padding: 0 2px;
}

.choice-row.active strong,
.choice-mark {
  color: #7052c8;
}

.choice-mark {
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.theme-preview {
  margin: 8px 0 14px;
  min-height: 148px;
  padding: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eef1ff);
  box-shadow: var(--shadow);
}

.theme-preview img {
  width: 128px;
  display: block;
}

.theme-preview strong {
  margin-top: 10px;
  font-size: 18px;
}

.theme-preview span {
  color: #8b94a4;
  font-size: 12px;
}

.setting-row {
  grid-template-columns: 1fr auto;
}

.toggle {
  width: 50px;
  height: 28px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #dfe5ef;
}

.toggle span {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.toggle.active {
  background: linear-gradient(90deg, #6b83f1, #8148b8);
}

.toggle.active span {
  transform: translateX(22px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 40px));
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(24, 31, 46, .92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#res-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, .5);
}

#res-loading .loader {
  touch-action: manipulation;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  perspective: 780px;
}

#res-loading .load-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  will-change: transform;
}

#res-loading .load-inner.load-one {
  left: 0;
  top: 0;
  border-bottom: 3px solid #5c5edc;
  animation: rotate1 1.15s linear infinite;
}

#res-loading .load-inner.load-two {
  right: 0;
  top: 0;
  border-right: 3px solid #9147ff;
  animation: rotate2 1.15s .1s linear infinite;
}

#res-loading .load-inner.load-three {
  right: 0;
  bottom: 0;
  border-top: 3px solid #3b82f6;
  animation: rotate3 1.15s .15s linear infinite;
}

#res-loading .project-loading-text {
  font-size: 20px;
  font-weight: 700;
  color: #1c1c1c;
  z-index: 10;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 24, 39, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.modal-layer.grab-transition {
  z-index: 95;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: none;
}

.modal-layer.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(330px, 100%);
  padding: 24px 20px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .24);
  text-align: center;
  transform: translateY(8px);
  transition: transform .18s ease;
}

.modal-layer.show .modal-card {
  transform: translateY(0);
}

.grab-flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gif-popup-overlay {
  flex-direction: column;
  background: rgba(0, 0, 0, .7);
}

.gif-popup-overlay .gift-stage {
  width: min(330px, 84vw);
  min-height: 278px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  contain: layout paint;
}

.gif-popup-overlay.gift-ready .gift-stage {
  animation: giftStageIn .18s ease-out both;
}

.gif-popup-overlay.gift-preparing .gift-stage {
  opacity: 1;
}

.gif-popup-overlay .gift-container {
  width: min(210px, 54vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 20px;
  transform: translateZ(0);
}

.gif-popup-overlay .gift-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.gif-popup-overlay .gift-poster {
  animation: giftPosterWait .95s ease-in-out infinite;
}

.gif-popup-overlay .loading {
  color: #fff;
  text-align: center;
  font-size: 14px;
}

.gift-skeleton {
  width: min(210px, 54vw);
  aspect-ratio: 1;
  margin-bottom: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .3), transparent 28%),
    linear-gradient(135deg, rgba(102, 126, 234, .34), rgba(118, 75, 162, .34));
  box-shadow: 0 18px 45px rgba(102, 126, 234, .22);
  animation: giftSkeletonPulse .9s ease-in-out infinite;
}

.grab-loading-title {
  min-height: 22px;
  font-size: 15px;
  font-weight: 800;
  will-change: opacity, transform;
}

.grab-loading-title.switching {
  animation: grabTextSwitch .28s ease;
}

.grab-progress-bar {
  width: min(310px, 82vw);
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.grab-progress-bar span {
  height: 100%;
  display: block;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 8px 18px rgba(102, 126, 234, .36);
  transform: scaleX(0);
  transform-origin: left center;
  animation: grabProgressFill linear forwards;
  will-change: transform;
}

.buy-popup-overlay {
  padding: 18px;
  background: rgba(0, 0, 0, .5);
}

.buy-popup-container {
  width: min(500px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
}

.buy-popup-container .text-center {
  text-align: center;
}

.buy-popup-container .h2 {
  margin: -20px -20px 20px;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.buy-popup-container .m-flex {
  display: flex;
}

.buy-popup-container .m-row-between,
.buy-popup-container .row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buy-popup-container .m-margin-top-1 {
  margin-top: 10px;
}

.purchase_cont {
  width: 55px;
  height: 55px;
  border-radius: 4px;
  object-fit: cover;
}

.column-between {
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.line-hidden {
  overflow: hidden;
  color: #303847;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m-flex-flex {
  display: flex;
}

.m-flex-col {
  flex-direction: column;
}

.m-row-right {
  align-items: flex-end;
}

.color-ui {
  color: #667eea;
}

.c-margin-top40 {
  margin-top: 20px;
}

.size-24 {
  font-size: 12px;
}

.color-unimport {
  color: #7d8797;
}

.c-margin-top20 {
  margin-top: 10px;
}

.p3 {
  color: #667eea;
  font-size: 14px;
  font-weight: 700;
}

.lucky-detail-banner {
  position: relative;
  margin-bottom: 14px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 186, 87, .36);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff8df, #f1e8ff);
  box-shadow: 0 10px 24px rgba(118, 75, 162, .12);
}

.lucky-detail-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  transform: skewX(-18deg);
  animation: shineSweep 2.2s ease-in-out infinite;
}

.lucky-detail-banner.paid {
  border-color: rgba(76, 175, 80, .24);
  background: linear-gradient(135deg, rgba(232, 255, 240, .96), rgba(241, 232, 255, .96));
}

.lucky-detail-title {
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
  color: #303847;
  font-size: 15px;
  font-weight: 900;
}

.lucky-detail-copy {
  position: relative;
  z-index: 1;
  color: #6c7690;
  font-size: 12px;
  line-height: 1.45;
}

.rating-stars .star {
  margin-right: 5px;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  transition: transform .2s ease;
}

.rating-stars .star:hover {
  transform: scale(1.2);
}

.c-margin-top40 {
  margin-top: 20px;
}

.tijioa {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #dfe4ed;
  border-radius: 25px;
  background: #f7f8fb;
  color: #7d8797;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.tijioa.btn-sub {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.tijioa.m-margin-left-2 {
  margin-left: 10px;
}

.tijioa.disabled {
  opacity: .65;
  cursor: not-allowed;
}

.lucky-deposit-container {
  max-width: 460px;
}

.lucky-deposit-hero {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fb;
}

.lucky-deposit-img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.lucky-deposit-name {
  color: #303847;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.lucky-deposit-note {
  margin-top: 6px;
  color: #7d8797;
  font-size: 12px;
  line-height: 1.4;
}

.lucky-deposit-panel {
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, .08), rgba(118, 75, 162, .08));
}

.lucky-deposit-panel .row-between {
  min-height: 30px;
  color: #7d8797;
  font-size: 12px;
}

.lucky-deposit-panel strong {
  color: #667eea;
  font-size: 15px;
}

.lucky-deposit-panel .total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(102, 126, 234, .26);
  color: #303847;
  font-weight: 800;
}

.loading-icon {
  display: inline-block;
  margin-right: 5px;
  transform-origin: center;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  will-change: transform;
}

.loading-icon-spin {
  animation: spin 1s linear infinite;
}

.loading-icon-done {
  animation: none;
  transform: rotate(0deg);
}

.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-notification-overlay {
  background: rgba(0, 0, 0, .7);
  animation: fadeIn .3s ease;
}

.ai-notification-container {
  position: relative;
  width: min(400px, 90%);
  padding: 30px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: aiSlideIn .5s ease;
}

.ai-notification-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(102, 126, 234, .3) 0%, transparent 70%);
  animation: aiGlow 3s ease-in-out infinite;
}

.ai-notification-content {
  position: relative;
  z-index: 1;
}

.ai-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.ai-icon-rings,
.ai-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.ai-icon-rings .ring {
  position: absolute;
  border: 2px solid rgba(102, 126, 234, .5);
  border-radius: 50%;
}

.ai-icon-rings .ring-1 {
  width: 100%;
  height: 100%;
  animation: ringPulse 2s ease-in-out infinite;
}

.ai-icon-rings .ring-2 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  animation: ringPulse 2s ease-in-out infinite .3s;
}

.ai-icon-rings .ring-3 {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  animation: ringPulse 2s ease-in-out infinite .6s;
}

.ai-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translate(-50%, -50%);
  animation: aiFloat 3s ease-in-out infinite;
}

.ai-icon-text {
  font-size: 30px;
}

.ai-particles .particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #667eea;
}

.ai-particles .particle:nth-child(1) {
  animation: particle1 2s ease-in-out infinite;
}

.ai-particles .particle:nth-child(2) {
  animation: particle2 2s ease-in-out infinite;
}

.ai-particles .particle:nth-child(3) {
  animation: particle3 2s ease-in-out infinite;
}

.ai-particles .particle:nth-child(4) {
  animation: particle4 2s ease-in-out infinite;
}

.ai-particles .particle:nth-child(5) {
  animation: particle5 2s ease-in-out infinite;
}

.ai-particles .particle:nth-child(6) {
  animation: particle6 2s ease-in-out infinite;
}

.ai-message {
  color: #fff;
  text-align: center;
}

.ai-title {
  font-size: 20px;
  font-weight: 800;
}

.ai-commission-display {
  margin: 26px 0;
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
  animation: commissionGlow 2s ease-in-out infinite;
}

.commission-label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.commission-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: 800;
}

.plus-sign {
  margin-right: 6px;
  color: #4ade80;
  font-size: 36px;
}

.currency-symbol {
  margin-right: 6px;
  color: #fbbf24;
  font-size: 30px;
}

.amount-value {
  font-size: 52px;
  background: linear-gradient(90deg, #4ade80, #22d3ee, #a78bfa, #667eea, #4ade80);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: amountGradient 3s linear infinite;
}

.ai-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.ai-stats .stat-item {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, .85);
}

.stat-number,
.stat-icon {
  font-size: 20px;
  font-weight: 800;
}

.ai-success-indicator {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.success-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #4ade80;
  color: #fff;
  font-weight: 800;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes aiSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes aiGlow {
  0%,
  100% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(180deg);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: .3;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes aiFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-8px);
  }
}

@keyframes particle1 {
  50% {
    transform: translate(35px, -30px);
  }
}

@keyframes particle2 {
  50% {
    transform: translate(-35px, -28px);
  }
}

@keyframes particle3 {
  50% {
    transform: translate(32px, 32px);
  }
}

@keyframes particle4 {
  50% {
    transform: translate(-34px, 30px);
  }
}

@keyframes particle5 {
  50% {
    transform: translate(0, -44px);
  }
}

@keyframes particle6 {
  50% {
    transform: translate(0, 44px);
  }
}

@keyframes commissionGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(74, 222, 128, .3);
  }

  50% {
    box-shadow: 0 0 40px rgba(74, 222, 128, .6);
  }
}

@keyframes amountGradient {
  to {
    background-position: 200% 50%;
  }
}

@keyframes giftAnimation {
  0% {
    transform: scale(.8) rotate(-5deg);
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes giftStageIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes giftSkeletonPulse {
  0%,
  100% {
    opacity: .68;
    transform: scale(.98);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes giftPosterWait {
  0%,
  100% {
    transform: scale(.992);
    opacity: .9;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes grabProgressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes grabTextSwitch {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: .45;
    transform: translateY(-1px);
  }
}

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

@keyframes rotate1 {
  0% {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(45deg) rotateY(-45deg) rotateZ(360deg);
  }
}

@keyframes rotate2 {
  0% {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg);
  }
}

@keyframes rotate3 {
  0% {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(-60deg) rotateY(0deg) rotateZ(360deg);
  }
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #667cf1, #8145b6);
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal-card p {
  margin: 0 0 14px;
  color: #7b8495;
  font-size: 13px;
  line-height: 1.6;
}

.modal-card .primary-block {
  margin-top: 14px;
}

.auth-page {
  min-height: 100vh;
  padding: 24px 22px 36px;
  display: flex;
  flex-direction: column;
  background: #f4f6fa;
}

.auth-logo {
  width: 132px;
  margin: 0 auto 24px;
}

.auth-visual {
  height: 187px;
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.auth-visual video,
.auth-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.auth-card {
  margin-top: 22px;
  padding: 21px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 5px;
  font-size: 22px;
}

.auth-card p {
  margin: 0 0 19px;
  color: #7a8495;
  font-size: 13px;
}

.auth-input {
  height: 48px;
  margin-bottom: 12px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.auth-input input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: #2f3440;
}

.auth-main {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b83f1, #8148b8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.auth-link {
  margin-top: 15px;
  display: block;
  text-align: center;
  color: #7052c8;
  font-size: 14px;
  font-weight: 800;
}

.login-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 36px 14px 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #687de9 0%, #6e6bd6 48%, #7446a8 100%);
  color: #303033;
}

.login-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-circle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.login-circle.circle-one {
  width: 230px;
  height: 230px;
  right: -118px;
  top: 105px;
}

.login-circle.circle-two {
  width: 170px;
  height: 170px;
  left: -125px;
  bottom: 258px;
}

.login-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-logo {
  width: 164px;
  height: auto;
  display: block;
}

.login-lang {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .1);
  text-decoration: none;
  font-size: 24px;
}

.login-hero-panel {
  position: relative;
  z-index: 1;
  width: min(456px, calc(100vw - 92px));
  margin: 35px auto 28px;
  background: #090912;
}

.login-hero-panel img {
  width: 100%;
  display: block;
}

.login-title-block {
  position: relative;
  z-index: 1;
  margin: 0 0 64px;
  text-align: center;
  color: #fff;
}

.login-title-block h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.login-title-block p {
  margin: 14px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, .78);
}

.login-card {
  position: relative;
  z-index: 1;
  padding: 50px 30px 45px;
  border-radius: 25px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 26px 60px rgba(64, 53, 141, .2);
}

.login-card-head {
  margin-bottom: 36px;
  text-align: center;
}

.login-card-head h2 {
  margin: 0;
  color: #303033;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.login-card-head p {
  margin: 10px 0 0;
  color: #6a6a70;
  font-size: 17px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-input {
  min-height: 70px;
  margin-bottom: 24px;
  padding: 0 16px 0 22px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dde4ef;
  border-radius: 15px;
  background: rgba(255, 255, 255, .72);
}

.login-input:focus-within {
  border-color: #8a79ee;
  box-shadow: 0 0 0 3px rgba(119, 104, 226, .12);
}

.login-input-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}

.login-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #31343d;
  font-size: 18px;
  font-weight: 800;
}

.login-input input::placeholder {
  color: #becae0;
  font-weight: 800;
}

.login-toggle {
  border: 0;
  background: transparent;
  color: #6d7ff2;
  font-size: 16px;
  font-weight: 800;
}

.login-primary,
.login-secondary {
  width: 100%;
  min-height: 72px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border-radius: 13px;
  font-size: 22px;
  font-weight: 900;
}

.login-primary {
  margin-top: 1px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #687df0, #8149bc);
}

.login-primary:disabled {
  opacity: .72;
}

.login-secondary {
  margin-top: 19px;
  border: 1px solid #c7d1fb;
  color: #657cf0;
  background: rgba(232, 237, 255, .72);
}

.login-container {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: relative;
  overflow: hidden;
}

.login-container .background-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.login-container .decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(5px);
}

.login-container .decoration-circle.circle-1 {
  width: 150px;
  height: 150px;
  top: 10%;
  right: -75px;
  animation: loginFloat 6s ease-in-out infinite;
}

.login-container .decoration-circle.circle-2 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: -50px;
  animation: loginFloat 8s ease-in-out infinite reverse;
}

.login-container .decoration-circle.circle-3 {
  width: 75px;
  height: 75px;
  bottom: 20%;
  right: 25px;
  animation: loginFloat 10s ease-in-out infinite;
}

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

.login-container .header-section {
  padding: 30px 20px 20px;
  position: relative;
  z-index: 50;
}

.login-container .header-content {
  position: relative;
}

.login-container .header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-container .app-logo {
  width: 110px;
  height: auto;
  display: block;
}

.login-container .header-actions {
  display: flex;
  gap: 8px;
}

.login-container .action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all .3s ease;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .3);
  padding: 0;
}

.login-container .action-btn:hover {
  background: rgba(255, 255, 255, .4);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.login-container .action-btn:active {
  transform: scale(.95);
  background: rgba(255, 255, 255, .3);
}

.login-container .action-btn .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.login-container .action-btn .icon-text {
  font-size: 16px;
  filter: grayscale(0%);
}

.login-container .language-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  display: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  z-index: 100;
  min-width: 160px;
  overflow: hidden;
  animation: loginDropdownFadeIn .3s ease;
}

.login-container .language-dropdown.show {
  display: block;
}

.login-container .dropdown-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.login-container .dropdown-header .dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.login-container .language-list {
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-container .language-list::-webkit-scrollbar {
  width: 3px;
}

.login-container .language-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 1.5px;
}

.login-container .language-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 1.5px;
}

.login-container .language-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  transition: all .2s ease;
  cursor: pointer;
  font: inherit;
}

.login-container .language-item:hover,
.login-container .language-item:active {
  background: rgba(102, 126, 234, .05);
}

.login-container .language-item .language-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-container .language-item .language-name {
  font-size: 13px;
  color: #333;
}

.login-container .language-item .language-flag {
  min-width: 24px;
  height: 16px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #667eea;
  background: rgba(102, 126, 234, .1);
}

.login-container .hero-image {
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container .hero-image .hero-img {
  width: 100%;
  max-width: 300px;
  opacity: .9;
  display: block;
  margin: 0 auto;
}

.login-container .welcome-section {
  text-align: center;
  margin-bottom: 20px;
}

.login-container .welcome-section .welcome-title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}

.login-container .welcome-section .welcome-subtitle {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  font-weight: 300;
}

.login-container .login-form-section {
  flex: 1;
  padding: 0 20px 30px;
  position: relative;
  z-index: 10;
}

.login-container .form-card {
  background: rgba(255, 255, 255, .95);
  border-radius: 16px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.login-container .form-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-container .form-header .form-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.login-container .form-header .form-subtitle {
  display: block;
  font-size: 12px;
  color: #666;
}

.login-container .input-group {
  margin-bottom: 16px;
}

.login-container .input-container {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: all .3s ease;
  overflow: hidden;
}

.login-container .input-container:focus-within,
.login-container .input-container.focused {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, .1);
}

.login-container .input-icon {
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.login-container .input-icon .icon {
  font-size: 16px;
  opacity: .6;
}

.login-container .form-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 48px;
  font-size: 14px;
  color: #333;
  background: transparent;
  border: none;
  outline: none;
  padding-right: 10px;
}

.login-container .form-input::placeholder {
  color: #bcc9de;
}

.login-container .input-action {
  padding: 0 12px;
  cursor: pointer;
  border: 0;
  background: transparent;
  height: 48px;
  display: flex;
  align-items: center;
}

.login-container .input-action .action-text {
  font-size: 12px;
  color: #667eea;
  font-weight: 500;
}

.login-container .button-group {
  margin-bottom: 12px;
}

.login-container .button-group:last-child {
  margin-bottom: 0;
}

.login-container .primary-button,
.login-container .secondary-button {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  font: inherit;
}

.login-container .primary-button:active,
.login-container .secondary-button:active {
  transform: scale(.98);
}

.login-container .primary-button .button-content,
.login-container .secondary-button .button-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
}

.login-container .primary-button .button-text,
.login-container .secondary-button .button-text {
  font-size: 16px;
  font-weight: 600;
}

.login-container .primary-button .button-icon,
.login-container .secondary-button .button-icon {
  font-size: 14px;
  font-weight: 600;
}

.login-container .primary-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, .3);
}

.login-container .primary-button .button-text,
.login-container .primary-button .button-icon {
  color: #fff;
}

.login-container .secondary-button {
  background: rgba(102, 126, 234, .1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, .2);
}

.login-container .secondary-button .button-text,
.login-container .secondary-button .button-icon {
  color: #667eea;
}

.login-container .secondary-button:active {
  background: rgba(102, 126, 234, .15);
}

@keyframes loginDropdownFadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 375px) {
  .login-container .header-section {
    padding: 20px 15px 15px;
  }

  .login-container .login-form-section {
    padding: 0 15px 20px;
  }

  .login-container .form-card {
    padding: 20px 15px;
  }

  .login-container .welcome-title {
    font-size: 20px;
  }

  .login-container .form-input {
    height: 40px;
    font-size: 13px;
  }

  .login-container .primary-button,
  .login-container .secondary-button {
    height: 40px;
  }
}

.register-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 42px 16px 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #687de9 0%, #6f6bd7 46%, #7446a8 100%);
  color: #303033;
}

.register-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.register-circle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}

.register-circle.circle-one {
  width: 260px;
  height: 260px;
  right: -145px;
  top: 0;
}

.register-circle.circle-two {
  width: 210px;
  height: 210px;
  left: -150px;
  top: 365px;
}

.register-circle.circle-three {
  width: 148px;
  height: 148px;
  right: -84px;
  bottom: 175px;
}

.register-back {
  position: absolute;
  top: 0;
  left: 30px;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.register-back svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.register-hero {
  position: relative;
  z-index: 1;
  margin: 10px 0 22px;
  text-align: center;
  color: #fff;
}

.register-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(58, 48, 139, .24);
}

.register-hero p {
  margin: 16px 0 0;
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
}

.register-card {
  position: relative;
  z-index: 1;
  padding: 34px 20px 36px;
  border-radius: 31px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 26px 60px rgba(64, 53, 141, .2);
}

.register-card-head {
  margin-bottom: 25px;
  text-align: center;
}

.register-card-head h2 {
  margin: 0;
  color: #303033;
  font-size: 31px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.register-card-head p {
  margin: 10px 0 0;
  color: #6a6a70;
  font-size: 17px;
}

.register-form {
  display: flex;
  flex-direction: column;
}

.register-field {
  display: block;
  margin-bottom: 24px;
}

.register-label {
  display: block;
  margin: 0 0 10px;
  color: #303033;
  font-size: 18px;
  font-weight: 800;
}

.register-label em {
  color: #ff5b77;
  font-style: normal;
}

.register-input {
  min-height: 64px;
  padding: 0 12px 0 18px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid #dde4ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.register-input:focus-within {
  border-color: #8a79ee;
  box-shadow: 0 0 0 3px rgba(119, 104, 226, .12);
}

.register-input-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
  color: #8d75bf;
  font-size: 20px;
}

.register-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #31343d;
  font-size: 16px;
  font-weight: 700;
}

.register-input input::placeholder {
  color: #becae0;
  font-weight: 700;
}

.register-toggle {
  border: 0;
  background: transparent;
  color: #6d7ff2;
  font-size: 14px;
  font-weight: 800;
}

.register-primary,
.register-secondary {
  width: 100%;
  min-height: 66px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
}

.register-primary {
  margin-top: 2px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #687df0, #8149bc);
}

.register-primary:disabled {
  opacity: .72;
}

.register-secondary {
  margin-top: 19px;
  border: 1px solid #c7d1fb;
  color: #657cf0;
  background: rgba(232, 237, 255, .72);
}

.notice {
  margin: 10px 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #eef2ff;
  color: #5669d9;
  font-size: 13px;
}

:root[data-theme="dark"] .brand-strip,
:root[data-theme="dark"] .actions-shell {
  background: var(--surface-soft);
  border-color: var(--line);
}

:root[data-theme="dark"] .brand-chip,
:root[data-theme="dark"] .vip-card,
:root[data-theme="dark"] .action-card,
:root[data-theme="dark"] .round-icon,
:root[data-theme="dark"] .commission-row,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .product-body,
:root[data-theme="dark"] .carousel-container,
:root[data-theme="dark"] .grabbing-page .grab-balance-card,
:root[data-theme="dark"] .instructions-card,
:root[data-theme="dark"] .grabbing-page .balance-item,
:root[data-theme="dark"] .stat-box,
:root[data-theme="dark"] .support-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .count-card,
:root[data-theme="dark"] .filter-tabs,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .purchase-page .category-tabs,
:root[data-theme="dark"] .purchase-page .order-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .list-card,
:root[data-theme="dark"] .stat-grid,
:root[data-theme="dark"] .stat-cell,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .record-card,
:root[data-theme="dark"] .team-stats,
:root[data-theme="dark"] .faq-list,
:root[data-theme="dark"] .faq-row,
:root[data-theme="dark"] .simple-header,
:root[data-theme="dark"] .method-card,
:root[data-theme="dark"] .amount-btn,
:root[data-theme="dark"] .pay-address {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .grabbing-page {
  background: var(--bg);
}

:root[data-theme="dark"] .carousel-container::before {
  background: conic-gradient(from 0deg, transparent, rgba(118, 96, 238, .18), transparent);
}

:root[data-theme="dark"] .product-card::after {
  background: var(--surface);
}

:root[data-theme="dark"] .commission-box {
  border-color: rgba(142, 154, 255, .5);
  background: linear-gradient(180deg, #171d2d, #1d2138);
}

:root[data-theme="dark"] .money-box,
:root[data-theme="dark"] .purchase-page .financial-section,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .auth-input,
:root[data-theme="dark"] .register-input,
:root[data-theme="dark"] .login-input,
:root[data-theme="dark"] .input-container {
  background: var(--input);
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="dark"] .circle-soft,
:root[data-theme="dark"] .small-tag,
:root[data-theme="dark"] .count-item {
  background: var(--input);
  color: #b9c3d8;
  border-color: var(--line);
}

:root[data-theme="dark"] .vip-name,
:root[data-theme="dark"] .commission-title,
:root[data-theme="dark"] .commission-mask,
:root[data-theme="dark"] .product-name,
:root[data-theme="dark"] .order-head strong,
:root[data-theme="dark"] .order-name,
:root[data-theme="dark"] .money-row.total,
:root[data-theme="dark"] .purchase-page .id-value,
:root[data-theme="dark"] .purchase-page .product-name,
:root[data-theme="dark"] .purchase-page .financial-item.total .financial-label,
:root[data-theme="dark"] .record-head,
:root[data-theme="dark"] .pay-address strong,
:root[data-theme="dark"] .list-head,
:root[data-theme="dark"] .list-row,
:root[data-theme="dark"] .list-row > span:nth-child(2) > span,
:root[data-theme="dark"] .list-row strong,
:root[data-theme="dark"] .grabbing-page .balance-title,
:root[data-theme="dark"] .balance-value,
:root[data-theme="dark"] .instructions-title,
:root[data-theme="dark"] .stat-box strong,
:root[data-theme="dark"] .support-card strong,
:root[data-theme="dark"] .agent-name,
:root[data-theme="dark"] .count-item strong,
:root[data-theme="dark"] .simple-title,
:root[data-theme="dark"] .back,
:root[data-theme="dark"] .method-card,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .auth-input input,
:root[data-theme="dark"] .register-input input {
  color: var(--text);
}

:root[data-theme="dark"] .vip-line,
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .order-head,
:root[data-theme="dark"] .money-row,
:root[data-theme="dark"] .purchase-page .time-text,
:root[data-theme="dark"] .purchase-page .id-label,
:root[data-theme="dark"] .purchase-page .financial-label,
:root[data-theme="dark"] .field,
:root[data-theme="dark"] .pay-address span,
:root[data-theme="dark"] .row-sub,
:root[data-theme="dark"] .row-tail,
:root[data-theme="dark"] .balance-label,
:root[data-theme="dark"] .instruction-item,
:root[data-theme="dark"] .support-label,
:root[data-theme="dark"] .agent-sub,
:root[data-theme="dark"] .faq-row small {
  color: var(--muted);
}

:root[data-theme="dark"] .list-row {
  border-bottom-color: rgba(226, 232, 255, .42);
}

:root[data-theme="dark"] .row-sub {
  color: #aeb8cf;
}

:root[data-theme="dark"] .row-tail {
  color: #b8c2d8;
}

:root[data-theme="dark"] .list-icon {
  color: #8fa1ff;
}

:root[data-theme="dark"] .tabbar {
  background: rgba(24, 29, 42, .94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}

:root[data-theme="dark"] .tab {
  color: #aeb7cc;
}

:root[data-theme="dark"] .tab.active {
  color: #7e90ff;
}

:root[data-theme="dark"] .theme-preview,
:root[data-theme="dark"] .notice {
  background: linear-gradient(135deg, #1a2133, #241f3c);
  color: var(--text);
}

@keyframes scrollY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@media (max-width: 360px) {
  .logo {
    width: 112px;
  }

  .top-icons {
    gap: 14px;
  }

  .tabbar {
    padding: 0 12px;
  }
}
