@font-face {
  font-family: DemoMiSans;
  src: url('./public/assets/MiSans-Regular-ByZCeB6y.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: DemoMiSans;
  src: url('./public/assets/MiSans-Medium-xasA03Lt.ttf') format('truetype');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color: #fff;
  background: #191b1f;
  font-family: DemoMiSans, MiSans, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-synthesis: weight;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --green: #37d51f;
  --green-dark: #39a84a;
  --panel: #24262b;
  --panel-soft: #1f2129;
  --muted: #76808c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { width: 100%; min-height: 100%; margin: 0; }
body { min-height: 100dvh; overflow-x: hidden; background: #191b1f; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.mobile-view { display: none; }
.desktop-view { min-height: 100dvh; background: #24262b; }

.desktop-sidebar {
  z-index: 20;
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  color: #fff;
  background: #191a1d;
  overflow: hidden;
  transition: width .28s ease;
}

.sidebar-brand {
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ffffff08;
}

.sidebar-toggle {
  width: 35px;
  height: 35px;
  margin: 0 7px 0 5px;
  padding: 9px 10px;
  border: 0;
  border-radius: 3px;
  color: #bfc4ca;
  background: #282b31;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-toggle span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.sidebar-toggle:hover { color: #fff; background: #30333a; }

.brand-lockup, .mobile-brand { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.brand-lockup { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-badge, .mobile-logo {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  color: #11161b;
  background: #f1f2f2;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
}
.brand-copy, .mobile-brand > span:last-child { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.brand-copy strong, .mobile-brand strong { color: #f3f4f4; font-size: 14px; line-height: 1.05; font-weight: 800; }
.brand-copy small, .mobile-brand small { color: #83898f; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .65px; }

.sidebar-scroll { padding: 20px 10px 10px; }
.side-card { margin: 0 0 28px; padding: 0; border-radius: 6px; background: #24262b; }
.side-card-actions { margin-bottom: 15px; }
.side-item {
  position: relative;
  width: 100%;
  height: 46px;
  padding: 0 28px;
  border: 0;
  color: #929ba6;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.side-item:hover, .side-item.is-active { color: #fff; background: #ffffff08; }
.side-item img { width: 18px; height: 18px; object-fit: contain; opacity: .62; filter: grayscale(.2); }
.side-item:hover img, .side-item.is-active img { opacity: .95; }
.side-item b { margin-left: auto; padding: 1px 6px; color: #1a1a1d; border-radius: 3px; background: #f3a412; font-size: 10px; line-height: 16px; }
.side-card-language { height: 45px; padding-left: 28px; border-radius: 6px; background: #24262b; }
.side-card-language i { margin-left: auto; color: #8c9298; padding-right: 17px; font-size: 23px; font-style: normal; line-height: 1; }

.desktop-header {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 52px;
  padding: 0 34px;
  color: #fff;
  background: #24262b;
  box-shadow: 0 4px 14px #0000002e;
  display: flex;
  align-items: center;
}
.desktop-top-nav { display: flex; align-items: center; gap: 62px; }
.top-nav-item {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  color: #d8dadd;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}
.top-nav-item.is-active { min-width: 122px; justify-content: center; background: #ffffff08; }
.nav-dot { position: relative; width: 18px; height: 18px; }
.nav-dot::before, .nav-dot::after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 2px; background: #2bd119; box-shadow: 0 0 8px #2bd11980; transform: translate(-50%, -50%); }
.nav-dot::before { width: 18px; height: 6px; }
.nav-dot::after { width: 6px; height: 18px; }
.desktop-auth { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.auth-login, .auth-register, .header-language {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.auth-login { width: 84px; height: 40px; background: transparent; font-size: 15px; }
.auth-login:hover { background: #ffffff0b; }
.auth-register { width: 96px; height: 40px; background: #37cc1b; font-size: 15px; }
.auth-register:hover { background: #42da28; }
.header-language { width: 42px; height: 42px; margin-left: 12px; border: 1px solid #ffffff0d; border-radius: 50%; background: #ffffff08; display: grid; place-items: center; }
.header-language svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.desktop-main { min-height: 100dvh; margin-left: 260px; padding: 80px 0 40px; background: #24262b; }
.desktop-hero { width: 1350px; max-width: none; margin: 0; }
.page-shell { width: 1350px; max-width: 100%; min-height: calc(100dvh - 120px); margin: 0 auto; color: #98a7b5; }
.page-head { min-height: 58px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.page-head h1 { margin: 0; color: #fff; font-size: 22px; line-height: 1.2; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: #7f8d98; font-size: 13px; }
.page-back { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; color: #fff; background: #ffffff0d; cursor: pointer; font-size: 27px; line-height: 1; }
.page-back:hover { background: #ffffff18; }
.page-section { margin-bottom: 14px; }
.page-tabs, .game-page-tabs { min-height: 48px; padding: 0 16px; border-radius: 8px; background: #2a2d33; display: flex; align-items: center; gap: 8px; }
.page-tabs button, .game-page-tabs button { min-width: 94px; height: 32px; padding: 0 14px; border: 0; border-radius: 4px; color: #a1aab4; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.page-tabs button:hover, .page-tabs button.is-active, .game-page-tabs button.is-active { color: #fff; background: #37c51f; }
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.promo-panel { overflow: hidden; border-radius: 8px; background: #2a2d33; border: 1px solid #ffffff0a; }
.promo-panel img { display: block; width: 100%; aspect-ratio: 485 / 276; object-fit: cover; }
.promo-panel > div { padding: 16px 18px 18px; }
.promo-panel b { color: #fff; font-size: 16px; }
.promo-panel p { min-height: 38px; margin: 8px 0 14px; color: #8f9ba6; font-size: 13px; line-height: 1.5; }
.promo-panel button, .wallet-balance button, .user-hero button, .invite-card > button, .agent-card button, .service-card button { height: 36px; padding: 0 18px; border: 0; border-radius: 5px; color: #fff; background: #37c51f; cursor: pointer; font-size: 13px; font-weight: 700; }
.wallet-balance { min-height: 164px; padding: 26px 30px; border-radius: 10px; color: #dbe5ea; background: linear-gradient(135deg, #293d39, #1f292c); display: flex; align-items: center; justify-content: space-between; }
.wallet-balance span, .wallet-balance small { display: block; color: #99b2ad; font-size: 13px; }
.wallet-balance strong { display: block; margin: 10px 0 3px; color: #fff; font-size: 38px; line-height: 1; }
.wallet-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wallet-actions button, .user-menu-grid button, .provider-grid button, .service-grid button { min-height: 112px; padding: 18px; border: 1px solid #ffffff0a; border-radius: 8px; color: #fff; background: #2a2d33; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; }
.wallet-actions button:hover, .user-menu-grid button:hover, .provider-grid button:hover, .service-grid button:hover { border-color: #45b52c; background: #30353a; }
.wallet-icon { width: 30px; height: 30px; margin-bottom: 9px; border-radius: 50%; color: #47d22b; background: #47d22b1a; display: grid; place-items: center; font-size: 20px; }
.wallet-actions b, .user-menu-grid b, .provider-grid b, .service-grid b { font-size: 15px; }
.wallet-actions small, .user-menu-grid small, .provider-grid small, .service-grid small { margin-top: 4px; color: #7f8d98; font-size: 12px; }
.info-panel { padding: 22px 24px; border-radius: 8px; background: #2a2d33; }
.info-panel h2 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.info-panel p { margin: 0; color: #88949e; font-size: 13px; line-height: 1.7; }
.user-hero { min-height: 164px; padding: 24px 28px; border-radius: 10px; background: linear-gradient(125deg, #2b343e, #25322e); display: flex; align-items: center; gap: 16px; }
.user-avatar, .profile-avatar { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%; color: #25262b; background: #f1f2f2; display: grid; place-items: center; font-family: Georgia, serif; font-size: 25px; font-weight: 900; }
.user-hero-copy { flex: 1; }
.user-hero-copy h2 { margin: 0 0 5px; color: #fff; font-size: 21px; }
.user-hero-copy p { margin: 0 0 14px; color: #9aa9ad; font-size: 13px; }
.user-vip { min-width: 82px; padding: 14px; border-radius: 8px; color: #ffc2c2; background: #8d485040; text-align: center; }
.user-vip span, .user-vip small { display: block; font-size: 11px; }
.user-vip b { display: block; margin: 2px 0; color: #fff; font-size: 28px; }
.user-stats, .promotion-stats, .agent-stats { min-height: 94px; padding: 18px 24px; border-radius: 8px; background: #2a2d33; display: flex; align-items: center; }
.user-stats > div, .promotion-stats > div, .agent-stats > div { flex: 1; text-align: center; }
.user-stats b, .promotion-stats b, .agent-stats b { display: block; color: #fff; font-size: 20px; }
.user-stats span, .promotion-stats span, .agent-stats span { display: block; margin-top: 5px; color: #87949e; font-size: 12px; }
.user-stats i { width: 1px; height: 36px; background: #ffffff14; }
.user-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.user-menu-grid button { min-height: 120px; }
.user-menu-grid button > span { width: 30px; height: 30px; margin-bottom: 9px; border-radius: 50%; color: #47d22b; background: #47d22b1a; display: grid; place-items: center; font-size: 17px; }
.profile-card, .settings-card { overflow: hidden; border-radius: 8px; background: #2a2d33; }
.profile-row, .settings-card button { min-height: 62px; padding: 0 22px; border-bottom: 1px solid #ffffff0a; display: flex; align-items: center; gap: 16px; }
.profile-row:last-child, .settings-card button:last-child { border-bottom: 0; }
.profile-row > span, .settings-card button > span { color: #8b98a2; font-size: 13px; }
.profile-row > strong, .settings-card button > b { margin-left: auto; color: #fff; font-size: 13px; }
.profile-row > button { margin-left: auto; padding: 0; border: 0; color: #45b52c; background: transparent; cursor: pointer; font-size: 12px; }
.profile-row .profile-avatar { flex-basis: 40px; width: 40px; height: 40px; margin-left: auto; font-size: 16px; }
.security-level { margin-left: auto; color: #e9a83e; font-size: 12px; font-style: normal; }
.invite-card { min-height: 132px; padding: 22px 24px; border-radius: 8px; background: linear-gradient(120deg, #263b36, #263239); display: flex; align-items: center; gap: 16px; }
.invite-icon, .service-avatar, .welfare-icon { width: 46px; height: 46px; border-radius: 50%; color: #45d62c; background: #45d62c1a; display: grid; place-items: center; font-size: 25px; }
.invite-card h2, .service-card h2, .welfare-card h2 { margin: 0 0 5px; color: #fff; font-size: 17px; }
.invite-card p, .service-card p, .welfare-card p { margin: 0 0 10px; color: #8ea09e; font-size: 12px; }
.invite-card code { display: block; color: #a8c6b2; font-family: monospace; font-size: 12px; }
.invite-card > div { flex: 1; }
.vip-card { min-height: 168px; padding: 26px 30px; border-radius: 10px; color: #7a5a60; background: linear-gradient(135deg, #f3d0d4, #dfa8af); display: flex; align-items: flex-start; justify-content: space-between; }
.vip-card span { font-size: 13px; }
.vip-card h2 { margin: 7px 0; color: #c93636; font-size: 32px; }
.vip-card p { margin: 0; font-size: 12px; }
.vip-medal { width: 80px; height: 80px; border-radius: 50%; color: #fff; background: #c93636; display: grid; place-items: center; font-size: 30px; font-weight: 800; box-shadow: 0 6px 15px #c9363659; }
.vip-progress { padding: 22px 24px; border-radius: 8px; background: #2a2d33; }
.vip-progress > div { display: flex; justify-content: space-between; color: #d5dde5; font-size: 13px; }
.vip-progress > div b { color: #fff; }
.vip-progress > i { display: block; height: 7px; margin: 14px 0 11px; border-radius: 999px; background: #ffffff1a; }
.vip-progress > i em { display: block; width: 5%; height: 100%; border-radius: inherit; background: #37c51f; }
.vip-progress > small { color: #8d99a5; font-size: 12px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.benefit-grid article { padding: 18px; border-radius: 8px; background: #2a2d33; }
.benefit-grid span { width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; color: #ffc743; background: #ffc7431a; display: grid; place-items: center; }
.benefit-grid b, .benefit-grid small { display: block; }
.benefit-grid b { color: #fff; font-size: 14px; }
.benefit-grid small { margin-top: 5px; color: #8d99a5; font-size: 12px; }
.settings-card button { width: 100%; border: 0; color: #fff; background: transparent; cursor: pointer; text-align: left; }
.settings-card button:hover { background: #ffffff08; }
.settings-card button > b { font-weight: 600; }
.settings-card button > i { margin-left: 13px; color: #7f8d98; font-size: 22px; font-style: normal; }
.settings-danger { color: #ff7272 !important; }
.toggle { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #4d555d; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle.is-on { background: #37c51f; }
.toggle.is-on::after { left: 18px; }
.sports-hero { min-height: 178px; padding: 30px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 78% 40%, #3b964133, #0000 32%), linear-gradient(120deg, #1f2b31, #213628); display: flex; align-items: center; justify-content: space-between; }
.sports-kicker { color: #45d62c; font-size: 12px; letter-spacing: 2px; }
.sports-hero h2 { margin: 10px 0 6px; color: #fff; font-size: 28px; }
.sports-hero p { margin: 0; color: #9bb2ad; font-size: 13px; }
.sports-ball { margin-right: 70px; color: #45d62c; font-size: 90px; opacity: .8; }
.provider-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent-card { min-height: 188px; padding: 28px 30px; border-radius: 10px; background: radial-gradient(circle at 90% 0, #4acb4938, #0000 35%), #293536; }
.agent-badge { color: #45d62c; font-size: 12px; letter-spacing: 2px; }
.agent-card h2 { margin: 12px 0 7px; color: #fff; font-size: 24px; }
.agent-card p { margin: 0 0 20px; color: #9db3ae; font-size: 13px; }
.agent-stats { background: #2a2d33; }
.service-card, .welfare-card { min-height: 130px; padding: 24px; border-radius: 8px; background: #2a2d33; display: flex; align-items: center; gap: 16px; }
.service-card > div, .welfare-card > div { flex: 1; }
.service-card button { margin-left: auto; }
.welfare-card > b { color: #45d62c; font-size: 22px; }
.page-empty { min-height: 270px; margin-top: 14px; border-radius: 8px; color: #87949e; background: #202229; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-empty .empty-symbol { color: #59656f; font-size: 58px; line-height: 1; }
.page-empty strong { margin-top: 12px; font-size: 15px; }
.page-empty small { margin-top: 7px; color: #67737d; font-size: 12px; }
.mobile-page-shell { display: none; }
.hero-viewport { position: relative; width: 100%; border-radius: 8px; overflow: hidden; }
.hero-track { width: 100%; display: flex; transition: transform .34s ease; }
.hero-slide { flex: 0 0 100%; width: 100%; height: 395px; border: 0; background: #ffffff08 center / cover no-repeat; }
.hero-arrow, .mobile-hero-arrow { position: absolute; z-index: 2; top: 50%; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #00000052; transform: translateY(-50%); cursor: pointer; }
.hero-arrow::before, .mobile-hero-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-right: 3px solid #ffffffe6; border-bottom: 3px solid #ffffffe6; transform: translate(-50%, -50%) rotate(135deg); }
.hero-arrow-next::before, .mobile-hero-next::before { transform: translate(-50%, -50%) rotate(-45deg); }
.hero-arrow-prev { left: 12px; }
.hero-arrow-next { right: 12px; }
.hero-dots, .mobile-dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.hero-dot, .mobile-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #ffffff52; cursor: pointer; }
.hero-dot.is-active, .mobile-dot.is-active { width: 30px; background: #37d51f; }
.promo-strip { margin-top: 22px; }
.promo-scroller { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.promo-scroller::-webkit-scrollbar { display: none; }
.promo-card { flex: 0 0 calc(25% - 12px); aspect-ratio: 485 / 276; border: 0; background: #ffffff0a center / cover no-repeat; cursor: pointer; }
.floating-actions { position: fixed; z-index: 100; right: 14px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.desktop-floating { bottom: 118px; }
.floating-button { width: 56px; height: 56px; padding: 0; border: 1px solid #ffffff1a; border-radius: 50%; background: #191b1f; color: #45b52c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; box-shadow: 0 6px 16px #0006; transition: transform .2s, border-color .2s; }
.floating-button:hover { transform: translateY(-4px); border-color: #45b52c; }
.floating-wheel { color: #fff; background: linear-gradient(135deg, #45b52c, #2b701b); }
.floating-wheel-icon { font-size: 22px; line-height: 20px; }
.floating-points-icon { font-size: 24px; line-height: 20px; }
.floating-button small { font-size: 9px; line-height: 1; font-weight: 700; transform: scale(.9); white-space: nowrap; }

body.sidebar-collapsed .desktop-sidebar { width: 52px; }
body.sidebar-collapsed .desktop-header { left: 52px; }
body.sidebar-collapsed .desktop-main { margin-left: 52px; }
body.sidebar-collapsed .brand-lockup { width: 0; opacity: 0; pointer-events: none; overflow: hidden; }
body.sidebar-collapsed .sidebar-scroll { padding: 20px 0 10px; }
body.sidebar-collapsed .side-card { background: transparent; }
body.sidebar-collapsed .side-item { justify-content: center; padding: 0; border-radius: 8px; }
body.sidebar-collapsed .side-item span, body.sidebar-collapsed .side-item b, body.sidebar-collapsed .side-item i { display: none; }
body.sidebar-collapsed .side-card-language { background: #24262b; }

.modal-backdrop { position: fixed; z-index: 200; inset: 0; padding: 16px; display: none; place-items: center; background: #0000008c; }
.modal-backdrop.is-open { display: grid; }
.auth-modal { position: relative; width: min(390px, 100%); padding: 34px 32px 30px; border-radius: 12px; background: #25262b; box-shadow: 0 18px 40px #00000059; text-align: center; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #ffffff80; background: transparent; cursor: pointer; font-size: 28px; line-height: 1; }
.modal-close:hover { color: #fff; background: #ffffff12; }
.modal-logo { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; color: #25262b; background: #f1f2f2; display: grid; place-items: center; font-family: Georgia, serif; font-size: 25px; font-weight: 900; }
.auth-modal h2 { margin: 0 0 8px; font-size: 22px; }
.auth-modal p { margin: 0 0 24px; color: #ffffff80; font-size: 13px; }
.auth-modal label { display: block; margin-bottom: 16px; text-align: left; }
.auth-modal label span { display: block; margin-bottom: 7px; color: #ffffffa3; font-size: 13px; }
.auth-modal input { width: 100%; height: 46px; padding: 0 13px; outline: none; border: 1px solid #ffffff12; border-radius: 7px; color: #fff; background: #1f2126; }
.auth-modal input:focus { border-color: #45b52c; }
.modal-submit { width: 100%; height: 46px; margin-top: 4px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(90deg, #57c737, #3dae30); cursor: pointer; font-size: 15px; font-weight: 800; }
.modal-switch { margin-top: 18px; padding: 0; border: 0; color: #45b52c; background: transparent; cursor: pointer; font-size: 13px; }
.toast { position: fixed; z-index: 250; top: 68px; left: 50%; display: none; min-width: 210px; max-width: min(90vw, 360px); padding: 11px 16px; border-radius: 8px; color: #fff; background: #323438ed; box-shadow: 0 8px 20px #00000040; text-align: center; font-size: 13px; font-weight: 700; transform: translateX(-50%); }
.toast.is-visible { display: block; animation: toast-in .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 740px) {
  body { background: #191b1f; }
  .desktop-view, .desktop-floating { display: none; }
  .mobile-view { display: block; min-height: 100dvh; padding-bottom: calc(68px + env(safe-area-inset-bottom)); background: #191b1f; }
  .mobile-app-bar { position: relative; z-index: 1; height: 64px; padding: 7px 14px; background: #1f2129; display: flex; align-items: center; gap: 14px; }
  .mobile-app-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; color: #fff; background: #5cc63f; display: grid; place-items: center; font-family: Georgia, serif; font-size: 22px; font-weight: 900; }
  .mobile-app-bar strong { min-width: 0; overflow: hidden; white-space: nowrap; color: #f9f9f9; font-size: 17px; font-weight: 900; text-overflow: clip; }
  .mobile-app-bar button { flex: 0 0 38px; margin-left: auto; width: 38px; height: 38px; padding: 0; border: 0; color: #ffffffb3; background: transparent; font-size: 29px; line-height: 1; cursor: pointer; }
  .mobile-app-bar.is-hidden { display: none; }
  .mobile-header { height: 78px; padding: 10px 14px; background: #24262f; display: flex; align-items: center; gap: 8px; }
  .mobile-brand { flex: 0 0 180px; width: 180px; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
  .mobile-logo { width: 42px; height: 42px; flex-basis: 42px; border-color: #ffffff1a; font-size: 20px; }
  .mobile-brand > span:last-child { min-width: 0; }
  .mobile-brand strong { display: block; max-width: 122px; overflow: hidden; color: #fff; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-brand small { font-size: 10px; letter-spacing: .8px; }
  .mobile-auth { flex: 0 0 134px; display: flex; align-items: center; gap: 8px; margin-left: 0; }
  .mobile-auth button { min-width: 54px; height: 46px; padding: 0 10px; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 15px; font-weight: 800; }
  .mobile-auth button:last-child { min-width: 72px; background: #37cc1b; }
  .mobile-language { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; display: block; }
  .mobile-language img { width: 100%; height: 100%; object-fit: contain; }
  .mobile-main { background: #191b1f; }
  .mobile-page-shell { display: block; min-height: calc(100dvh - 142px); padding: 10px 10px 28px; color: #98a7b5; }
  .mobile-page-shell .page-head { min-height: 48px; margin: 0 0 10px; gap: 8px; }
  .mobile-page-shell .page-head h1 { font-size: 20px; }
  .mobile-page-shell .page-head p { margin-top: 3px; font-size: 11px; }
  .mobile-page-shell .page-back { width: 34px; height: 34px; font-size: 25px; }
  .mobile-page-shell .page-tabs, .mobile-page-shell .game-page-tabs { margin: 0 -2px 10px; padding: 7px 8px; min-height: 46px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .mobile-page-shell .page-tabs::-webkit-scrollbar, .mobile-page-shell .game-page-tabs::-webkit-scrollbar { display: none; }
  .mobile-page-shell .page-tabs button, .mobile-page-shell .game-page-tabs button { flex: 0 0 auto; min-width: auto; height: 31px; padding: 0 11px; font-size: 12px; }
  .mobile-page-shell .page-section { margin-bottom: 10px; }
  .mobile-page-shell .promo-grid, .mobile-page-shell .wallet-actions, .mobile-page-shell .user-menu-grid, .mobile-page-shell .benefit-grid, .mobile-page-shell .provider-grid, .mobile-page-shell .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .mobile-page-shell .promo-panel { border-radius: 7px; }
  .mobile-page-shell .promo-panel:nth-child(3) { grid-column: 1 / -1; }
  .mobile-page-shell .promo-panel > div { padding: 11px 12px 12px; }
  .mobile-page-shell .promo-panel b { font-size: 13px; }
  .mobile-page-shell .promo-panel p { min-height: 34px; margin: 5px 0 9px; font-size: 11px; }
  .mobile-page-shell .promo-panel button, .mobile-page-shell .wallet-balance button, .mobile-page-shell .user-hero button, .mobile-page-shell .invite-card > button, .mobile-page-shell .agent-card button, .mobile-page-shell .service-card button { height: 32px; padding: 0 12px; font-size: 11px; }
  .mobile-page-shell .wallet-balance { min-height: 132px; padding: 20px; }
  .mobile-page-shell .wallet-balance strong { font-size: 32px; }
  .mobile-page-shell .wallet-actions button, .mobile-page-shell .user-menu-grid button, .mobile-page-shell .provider-grid button, .mobile-page-shell .service-grid button { min-height: 92px; padding: 14px; }
  .mobile-page-shell .wallet-actions b, .mobile-page-shell .user-menu-grid b, .mobile-page-shell .provider-grid b, .mobile-page-shell .service-grid b { font-size: 13px; }
  .mobile-page-shell .wallet-actions small, .mobile-page-shell .user-menu-grid small, .mobile-page-shell .provider-grid small, .mobile-page-shell .service-grid small { font-size: 11px; }
  .mobile-page-shell .info-panel { padding: 17px; }
  .mobile-page-shell .user-hero { min-height: 137px; padding: 18px; gap: 11px; }
  .mobile-page-shell .user-avatar { width: 50px; height: 50px; flex-basis: 50px; font-size: 20px; }
  .mobile-page-shell .user-hero-copy h2 { font-size: 17px; }
  .mobile-page-shell .user-hero-copy p { margin-bottom: 10px; font-size: 11px; }
  .mobile-page-shell .user-vip { min-width: 57px; padding: 8px 5px; }
  .mobile-page-shell .user-vip b { font-size: 23px; }
  .mobile-page-shell .user-stats, .mobile-page-shell .promotion-stats, .mobile-page-shell .agent-stats { min-height: 78px; padding: 12px 8px; }
  .mobile-page-shell .user-stats b, .mobile-page-shell .promotion-stats b, .mobile-page-shell .agent-stats b { font-size: 17px; }
  .mobile-page-shell .user-menu-grid button { min-height: 106px; }
  .mobile-page-shell .profile-row, .mobile-page-shell .settings-card button { min-height: 56px; padding: 0 16px; }
  .mobile-page-shell .invite-card { min-height: 165px; padding: 18px; flex-wrap: wrap; }
  .mobile-page-shell .invite-card > div { min-width: 0; }
  .mobile-page-shell .invite-card code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-page-shell .invite-card > button { margin-left: 62px; }
  .mobile-page-shell .vip-card { min-height: 142px; padding: 20px; }
  .mobile-page-shell .vip-card h2 { font-size: 27px; }
  .mobile-page-shell .vip-medal { width: 65px; height: 65px; font-size: 25px; }
  .mobile-page-shell .vip-progress { padding: 18px; }
  .mobile-page-shell .sports-hero { min-height: 160px; padding: 20px; }
  .mobile-page-shell .sports-hero h2 { font-size: 22px; }
  .mobile-page-shell .sports-ball { margin-right: 4px; font-size: 65px; }
  .mobile-page-shell .agent-card { min-height: 182px; padding: 22px 20px; }
  .mobile-page-shell .agent-card h2 { font-size: 21px; }
  .mobile-page-shell .service-card, .mobile-page-shell .welfare-card { min-height: 130px; padding: 18px; }
  .mobile-page-shell .service-card, .mobile-page-shell .welfare-card { align-items: flex-start; }
  .mobile-page-shell .service-card > button { align-self: center; }
  .mobile-page-shell .page-empty { min-height: 250px; margin-top: 10px; }
  .mobile-hero { padding: 14px 12px 10px; background: #191b1f; }
  .mobile-hero-viewport { position: relative; overflow: hidden; border-radius: 7px; }
  .mobile-hero-track { display: flex; width: 100%; height: 100%; transition: transform .34s ease; }
  .mobile-hero-viewport { aspect-ratio: 485 / 181; }
  .mobile-hero-slide { flex: 0 0 100%; width: 100%; height: 100%; padding: 0; border: 0; background: center / cover no-repeat; }
  .mobile-hero-arrow { width: 30px; height: 30px; background: #00000038; }
  .mobile-hero-prev { left: 6px; }
  .mobile-hero-next { right: 6px; }
  .mobile-hero-arrow::before { width: 8px; height: 8px; }
  .mobile-dots { position: relative; inset: auto; justify-content: center; height: 12px; margin-top: 8px; padding-top: 0; transform: none; }
  .mobile-dot { width: 8px; height: 8px; background: #ffffff52; }
  .mobile-dot.is-active { width: 35px; background: #37d51f; }
  .mobile-content { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 0 10px 32px; }
  .mobile-rail { display: flex; flex-direction: column; gap: 8px; }
  .rail-button { width: 78px; height: 74px; border: 1px solid #ffffff18; border-radius: 8px; color: #7f8791; background: #242731; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; font-size: 12px; font-weight: 800; }
  .rail-button.is-active { color: #fff; border-color: transparent; background: linear-gradient(160deg, #5de838 0%, #20c80c 100%); box-shadow: 0 10px 22px #2fdc1f36; }
  .rail-button img { width: 28px; height: 28px; object-fit: contain; opacity: .65; filter: grayscale(.35); }
  .rail-button.is-active img { opacity: 1; filter: brightness(0) invert(1); }
  .rail-svg { display: block; height: 31px; color: currentColor; font-size: 30px; line-height: 31px; }
  .mobile-games { min-width: 0; }
  .mobile-section-heading { height: 36px; display: flex; align-items: center; }
  .mobile-section-heading h1 { margin: 0; color: #fff; font-size: 20px; line-height: 1; font-weight: 900; }
  .mobile-empty { height: 104px; border-radius: 6px; color: #76808c; background: #202229; display: grid; place-items: center; font-size: 15px; }
  .mobile-floats { position: fixed; z-index: 40; top: 45vh; right: 6px; display: flex; flex-direction: column; gap: 10px; }
  .float-action { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #23262c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; box-shadow: 0 4px 14px #00000047; }
  .float-wheel { background: linear-gradient(145deg, #ffd06e, #b35cff 62%, #6738ed); }
  .float-gift { background: linear-gradient(145deg, #ffe662, #ff5b2f 70%, #db1327); }
  .float-wheel-icon, .float-gift-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; }
  .float-wheel-icon { color: #9138de; background: #fff19b; }
  .float-gift-icon { color: #fff; background: #ff7a1f; font-size: 18px; }
  .float-action strong { width: 70px; margin-top: -2px; border-radius: 14px; color: #fff; font-size: 10px; line-height: 15px; text-align: center; white-space: nowrap; }
  .float-wheel strong { background: #8954ff; }
  .float-gift strong { background: #ff6d1a; }
  .mobile-bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #ffffff12; background: #252932; display: grid; grid-template-columns: repeat(4, 1fr); }
  .bottom-item { position: relative; z-index: 1; padding: 7px 0 5px; border: 0; color: #6d747d; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font-size: 14px; font-weight: 800; }
  .bottom-item img { width: 34px; height: 34px; object-fit: contain; opacity: .45; filter: grayscale(.7); }
  .bottom-item.is-active { color: #fff; }
  .bottom-item.is-active img { opacity: 1; filter: brightness(1.28) saturate(1.75) drop-shadow(0 0 8px #49ff24b3); transform: translateY(-9px) scale(1.07); }
  .bottom-item.is-active span { transform: translateY(-6px); text-shadow: 0 0 8px #39d31061; }
  .bottom-glow { position: absolute; z-index: 0; left: 12.5%; bottom: 23px; width: 44px; height: 37px; border-radius: 50%; background: #32db1e8f; box-shadow: 0 0 23px 12px #32db1e66; transform: translateX(-50%); transition: left .24s ease; }
  .modal-backdrop { padding: 0 14px env(safe-area-inset-bottom); place-items: end center; }
  .auth-modal { width: 100%; max-width: 420px; padding: 28px 23px 23px; border-radius: 14px 14px 0 0; }
  .toast { top: 92px; }
}

@media (min-width: 741px) and (max-width: 1200px) {
  .desktop-sidebar { width: 220px; }
  .desktop-header { left: 220px; }
  .desktop-main { margin-left: 220px; }
  .desktop-main, .desktop-hero { width: auto; }
  .desktop-main { padding-left: 18px; padding-right: 18px; }
  .desktop-top-nav { gap: 18px; }
  .promo-card { flex-basis: calc(33.333% - 11px); }
}
