:root {
  --blue: #42a8f8;
  --blue-dark: #1477e8;
  --blue-soft: #e8f2ff;
  --page: #dfe9f8;
  --ink: #0f172a;
  --muted: #7b8497;
  --line: #e2e8f0;
  --white: #ffffff;
  --green: #28b86b;
  --orange: #ff942f;
  --red: #ef4444;
  --violet: #8178ff;
  --shadow: 0 10px 24px rgba(22, 57, 108, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

.initial-loading {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.mobile-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--page);
}

.screen {
  position: relative;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  overflow-x: hidden;
}

.screen-content {
  padding: 58px 8px 86px;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(420px, 100%);
  height: 56px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 8px;
  background: #d7e3f5;
}

.topbar-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.topbar-logo-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  background: transparent;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  padding: 2px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 9px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 4px 12px rgba(31, 80, 145, .14);
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #253044;
  background: transparent;
  font-weight: 800;
  font-size: 22px;
}

.icon-button svg,
.quick-icon svg,
.nav-icon svg,
.info-icon svg,
.menu-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.icon-button .icon-line,
.quick-icon .icon-line,
.nav-icon .icon-line,
.info-icon .icon-line,
.menu-icon .icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-cut,
.icon-dot {
  fill: #fff;
}

.globe-button {
  font-size: 28px;
}

.icon-button.blue {
  color: #fff;
  background: var(--blue);
}

.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f45ff 0%, #1695f6 57%, #18cbd4 100%);
}

.login-card {
  width: min(360px, 100%);
  margin: 0 auto;
  color: #fff;
}

.login-language-row {
  position: fixed;
  z-index: 8;
  top: 18px;
  right: 18px;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.auth-language-button,
.small-language-link {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.auth-language-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 72, 181, .28);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(5, 34, 92, .16);
}

.auth-language-button span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.auth-language-button svg,
.small-language-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.auth-language-button strong {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.login-logo {
  width: min(300px, 100%);
  aspect-ratio: 12 / 5;
  height: auto;
  margin: 0 auto 26px;
  padding: 8px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 12px 26px rgba(8, 40, 93, .22), inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}

.register-card .login-logo {
  width: min(270px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.register-card .auth-tabs {
  margin-bottom: 12px;
}

.register-card .auth-input {
  height: 42px;
  margin-bottom: 8px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  height: 36px;
  color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.auth-tab.active {
  color: #1278ee;
  background: #fff;
}

.auth-input {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .82);
  outline: none;
  background: transparent;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, .8);
}

.primary-pill,
.secondary-pill {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-pill {
  color: #2c8fff;
  background: #fff;
}

.secondary-pill {
  margin-top: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .2);
}

.small-link-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
}

.small-language-link {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  height: calc((100vw - 32px) / 2);
  max-height: 207px;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-carousel-track {
  display: flex;
  width: calc(100% * var(--slide-count));
  height: 100%;
  transition: transform .55s ease;
}

.hero-banner {
  flex: 0 0 calc(100% / var(--slide-count));
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

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

.hero-dots .active {
  width: 18px;
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin: 26px 0 16px;
}

.quick-action {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.quick-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
}

.quick-label {
  min-width: 0;
  font-weight: 800;
  line-height: 1.22;
}

.quick-action:nth-child(1) .quick-icon {
  background: var(--violet);
}

.quick-action:nth-child(2) .quick-icon {
  background: var(--orange);
}

.quick-action:nth-child(3) .quick-icon {
  background: #f05454;
}

.quick-action:nth-child(4) .quick-icon {
  background: var(--green);
}

.quick-action:nth-child(1) .quick-label {
  color: var(--violet);
}

.quick-action:nth-child(2) .quick-label {
  color: var(--orange);
}

.quick-action:nth-child(3) .quick-label {
  color: #f05454;
}

.quick-action:nth-child(4) .quick-label {
  color: var(--green);
}

.wallet-card,
.white-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wallet-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, .7);
  background: linear-gradient(105deg, #f7fbff 0%, #eff5ff 62%, #dfeafe 62%, #f6fbff 100%);
}

.wallet-card::after {
  content: "";
  position: absolute;
  inset: 12px 50% auto auto;
  width: 1px;
  height: 112px;
  background: #d9e1ef;
}

.wallet-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wallet-number {
  font-size: 16px;
  margin-bottom: 8px;
}

.wallet-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.money-big {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
}

.money-small {
  color: #111827;
  font-weight: 800;
}

.metric-line {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.25;
}

.right {
  text-align: right;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 18px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 18px;
  background: var(--blue);
}

.feed-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.commission-ticker {
  height: 238px;
  overflow: hidden;
}

.commission-track {
  animation: commissionScroll 240s linear infinite;
}

.commission-ticker:hover .commission-track {
  animation-play-state: paused;
}

.feed-date {
  height: 52px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.feed-amount {
  margin-bottom: 8px;
}

.feed-account {
  color: var(--muted);
  font-size: 13px;
}

.info-grid,
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-tile {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  font-weight: 700;
  line-height: 1.18;
}

.info-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 23px;
}

.info-icon.company {
  color: #ff9f2f;
  background: #fff0d9;
}

.info-icon.rules {
  color: #ff5b66;
  background: #ffe0e4;
}

.info-icon.agent {
  color: #42a8f8;
  background: #e3f3ff;
}

.info-icon.qualification {
  color: #8b5cf6;
  background: #eee8ff;
}

.partner-tile {
  min-height: 0;
  aspect-ratio: 5 / 2;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.partner-tile.has-logo { padding: 0; overflow: hidden; background: #fff !important; border: 1px solid #e1e8f0; }
.partner-tile img { width: 100%; height: 100%; display: block; object-fit: contain; }

.partner-settings-section { margin-top: 18px; }
.partner-size-note { padding: 10px 12px; border-left: 3px solid #2f9ef4; background: #f2f8ff; }
.partner-settings-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.partner-settings-card { padding: 14px; display: grid; gap: 12px; border: 1px solid #e0e8f2; border-radius: 7px; background: #fbfdff; }
.partner-logo-preview { width: 100%; aspect-ratio: 5 / 2; padding: 0; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: #fff; font-size: 20px; }
.partner-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.partner-settings-card .field { margin: 0; }
.partner-settings-card .mini-button { justify-self: end; }

.brand-settings-block { margin: 0 0 18px; }
.brand-size-note { padding: 10px 12px; border-left: 3px solid #2f9ef4; background: #f2f8ff; }
.brand-name-field { max-width: 520px; margin-top: 14px; }
.brand-assets-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-asset-card { padding: 14px; display: grid; gap: 12px; align-content: start; border: 1px solid #dce6f1; border-radius: 8px; background: #fbfdff; }
.brand-login-preview { width: 100%; aspect-ratio: 12 / 5; padding: 8px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce6f1; border-radius: 8px; background: #eef6ff; }
.brand-login-preview img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo-preview { width: 132px; aspect-ratio: 1; padding: 10px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce6f1; border-radius: 8px; background: #eef6ff; }
.brand-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.brand-asset-card .field { margin: 0; }
.brand-asset-card .field small { display: block; margin-top: 6px; color: #66758a; font-size: 11px; line-height: 1.5; }

.tabs {
  position: sticky;
  z-index: 11;
  top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 14px;
  background: var(--page);
}

.orders-head {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(420px, 100%);
  height: 62px;
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 12px;
  background: var(--page);
}

.order-search-button svg {
  width: 22px;
  height: 22px;
  fill: none;
}

.order-search-field {
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  padding: 0 12px;
  border: 1px solid #bcd5ee;
  border-radius: 8px;
  background: #fff;
}

.order-search-field span,
.order-search-field svg {
  width: 18px;
  height: 18px;
  color: #278fe9;
  fill: none;
}

.order-search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #263248;
  background: transparent;
  font-size: 14px;
}

.order-tabs {
  top: 62px;
  padding-top: 8px;
}

.tab {
  height: 30px;
  color: #2c8fff;
  border: 1px solid #4aa8ff;
  background: #fff;
  font-size: 14px;
}

.tab.active {
  color: #fff;
  background: #4aa8ff;
}

.order-list {
  padding: 42px 14px 88px;
}

.orders-head + .order-tabs + .order-list {
  padding-top: 56px;
}

.order-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  margin-top: 18px;
}

.product-image {
  height: 54px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: #eef5ff;
}

.product-image:not(.has-image)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  width: 52px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .82);
}

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

.product-name {
  min-width: 0;
  line-height: 1.25;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 6px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  color: var(--red);
  font-size: 14px;
}

.bonus-order-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin: 5px 6px 0 0;
  padding: 3px 7px;
  border: 1px solid #f0c58c;
  border-radius: 5px;
  color: #9a4d12;
  background: #fff5e7;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.status-badge.submitted {
  color: var(--blue-dark);
}

.status-badge.done {
  color: var(--green);
}

.status-badge.cancelled {
  color: var(--muted);
}

.price-row,
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.detail-row {
  color: #111827;
}

.detail-row .muted {
  color: var(--muted);
}

.countdown {
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.full-button {
  width: 100%;
  min-height: 38px;
  margin-top: 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 2px;
  font-size: 18px;
}

.full-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.task-header {
  min-height: 146px;
  padding: 66px 14px 18px;
  color: #fff;
  background: var(--blue);
}

.task-wallet {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 12px;
  align-items: center;
}

.task-wallet .money-big {
  color: #111827;
  background: #fff;
  width: fit-content;
  padding: 0 2px;
}

.vip-card {
  margin: -10px 14px 0;
  padding: 24px 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vip-card h2 {
  margin: 0 0 22px;
  font-size: 34px;
}

.task-count {
  margin-top: 26px;
  text-align: center;
  font-size: 34px;
  line-height: 1;
}

.task-count strong {
  background: #1fcf3a;
  padding: 0 4px;
}

.balance-panel {
  margin: 0 14px 20px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.balance-panel .line {
  padding: 10px 0;
  text-align: right;
  border-bottom: 1px solid #d7dce8;
}

.task-rules {
  padding: 0 14px 86px;
  font-size: 14px;
  line-height: 1.2;
}

.service-hero {
  position: relative;
  overflow: hidden;
  min-height: 194px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), transparent),
    var(--blue);
}

.service-hero h1 {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 56px;
  right: 56px;
  min-height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1.15;
  text-align: center;
}

.service-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}

.service-orbit.one {
  width: 120px;
  height: 120px;
  left: -34px;
  top: 26px;
}

.service-orbit.two {
  width: 86px;
  height: 86px;
  right: 36px;
  top: 54px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: center;
  margin: -66px 14px 0;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 10px auto auto 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(66, 168, 248, .12);
}

.service-card h2 {
  margin: 0 0 2px;
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
}

.service-hours {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.service-button {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 18px;
  line-height: 1.05;
}

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

.service-benefits div {
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-benefits strong {
  color: #1477e8;
  font-size: 20px;
}

.service-benefits span {
  color: var(--muted);
  font-size: 12px;
}

.service-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px;
}

.service-action-grid button {
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.service-action-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #258df0;
}

.service-action-grid button:last-child span {
  background: #18a978;
}

.service-action-grid svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-action-grid strong {
  font-size: 15px;
  line-height: 1.2;
}

.service-process-card {
  margin: 0 14px 14px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f3f8ff);
  box-shadow: var(--shadow);
}

.service-process-card h2 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 17px;
}

.service-steps {
  display: grid;
  gap: 10px;
}

.service-steps div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
}

.service-steps span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1477e8;
  background: #e9f4ff;
  font-weight: 900;
}

.service-steps strong {
  font-size: 14px;
  color: #344054;
}

.service-message-card {
  margin: 14px 14px 96px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-message-card strong {
  color: #172033;
}

.service-message-card p {
  margin: 8px 0 0;
  color: #5a6b82;
  line-height: 1.4;
}

.support-chat-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 79, 126, .09);
}

.support-chat-screen {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-top: 62px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #edf4fd;
}

.support-chat-screen .support-chat-messages {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overscroll-behavior: contain;
}

.support-chat-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid #e7eef7;
}

.support-chat-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2f9ef4;
}

.support-chat-avatar svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.support-chat-avatar,
.support-chat-avatar img {
  overflow: hidden;
}

.support-chat-avatar img,
.support-title img,
.support-message-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.support-titlebar {
  grid-template-columns: 44px 1fr 44px;
}

.support-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.support-title img {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, .72);
  background: #fff;
}

.support-chat-head h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
}

.support-chat-head p {
  margin: 3px 0 0;
  color: #6b7890;
  font-size: 11px;
  line-height: 1.35;
}

.support-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #168c55;
  font-size: 11px;
  font-weight: 700;
}

.support-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c47a;
  box-shadow: 0 0 0 3px rgba(34, 196, 122, .13);
}

.support-chat-messages {
  min-height: 250px;
  max-height: 390px;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f4f8fc;
}

.support-chat-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #8390a5;
  font-size: 13px;
  text-align: center;
}

.support-message {
  width: fit-content;
  max-width: 84%;
  padding: 9px 11px;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  color: #263248;
  background: #fff;
  box-shadow: 0 3px 9px rgba(40, 70, 100, .06);
}

.support-message-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.support-message-row.mine {
  justify-content: flex-end;
}

.support-message-row.agent {
  justify-content: flex-start;
}

.support-message-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #d7e5f3;
  background: #fff;
}

.support-message.mine {
  align-self: flex-end;
  border-color: #2f9ef4;
  color: #fff;
  background: #2f9ef4;
}

.support-message.agent {
  align-self: flex-start;
}

.support-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 10px;
  opacity: .78;
}

.support-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-translation-warning {
  display: block;
  margin-top: 6px;
  color: #b45309;
  font-size: 10px;
  line-height: 1.35;
}

.support-message.mine .support-translation-warning {
  color: #fff5cf;
}

.support-composer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e7eef7;
  background: #fff;
}

.support-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 108px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid #d6e1ee;
  border-radius: 6px;
  outline: none;
  font: inherit;
  line-height: 1.4;
}

.support-composer textarea:focus {
  border-color: #2f9ef4;
  box-shadow: 0 0 0 3px rgba(47, 158, 244, .12);
}

.support-composer button {
  min-width: 78px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #2f9ef4;
  font-weight: 700;
}

.support-composer button:disabled {
  opacity: .55;
}

.support-composer button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
}

.profile-head {
  margin: 58px 14px 0;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #252a34;
  background: #fff;
  font-size: 31px;
  font-weight: 900;
}

.avatar-button {
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(4, 39, 94, .18);
}

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

.profile-name {
  font-size: 28px;
}

.profile-wallet {
  margin: 0 14px 26px;
  padding: 0 16px 16px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 78, 126, .08);
}

.page-titlebar {
  position: fixed;
  z-index: 24;
  top: 0;
  left: 50%;
  width: min(420px, 100%);
  height: 62px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 56px 1fr 70px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--blue);
}

.page-titlebar strong {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.page-back,
.page-link {
  min-height: 38px;
  color: inherit;
  background: transparent;
}

.page-back {
  justify-self: start;
  font-size: 28px;
  line-height: 1;
}

.page-link {
  justify-self: end;
  font-size: 14px;
}

.page-form {
  padding: 88px 24px 88px;
}

.page-form h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 500;
}

.finance-hero {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: -10px -8px 18px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 216, 79, .86) 0 34px, transparent 35px),
    linear-gradient(135deg, #42a8f8, #1477e8);
  box-shadow: 0 16px 34px rgba(20, 119, 232, .16);
}

.finance-hero span {
  opacity: .88;
}

.finance-hero strong {
  font-size: 32px;
}

.finance-panel {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}

.bank-choice {
  min-height: 112px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent),
    #4059e8;
}

.bank-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f5c542;
  font-size: 14px;
}

.bank-choice small {
  grid-column: 2;
  opacity: .82;
}

.limit-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 16px;
}

.amount-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 12px 0 0;
  color: #4b5563;
  border-radius: 8px;
  background: #edf4ff;
}

.amount-row input {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: none;
  background: transparent;
}

.amount-row em {
  font-style: normal;
  text-align: right;
  color: #111827;
}

.page-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 26px;
}

.page-amount-grid button {
  min-height: 36px;
  border: 1px solid #38bdf8;
  border-radius: 5px;
  color: #111827;
  background: #fff;
}

.page-amount-grid button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.page-submit {
  margin-top: 26px;
}

.withdraw-page {
  padding-left: 16px;
  padding-right: 16px;
}

.withdraw-hero-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin: -10px 0 0;
  border-radius: 8px 8px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, .2) 0 38px, transparent 39px),
    linear-gradient(135deg, #42a8f8, #238bef);
  box-shadow: 0 16px 34px rgba(20, 119, 232, .18);
}

.withdraw-hero-card strong {
  font-size: 38px;
  font-weight: 800;
}

.withdraw-bank-card {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.withdraw-bank-card strong {
  margin-left: 8px;
  font-weight: 500;
}

.withdraw-bank-card label {
  color: #172033;
}

.withdraw-info-page {
  padding-left: 16px;
  padding-right: 16px;
}

.withdraw-info-card {
  margin-top: -12px;
  padding: 28px 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 18px;
  line-height: 1.8;
}

.withdraw-info-card div {
  word-break: break-word;
}

.withdraw-info-card span {
  color: #111827;
}

.withdraw-info-card strong {
  font-weight: 500;
  color: #283044;
}

.button-purple {
  min-width: 96px;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 5px;
  color: #fff;
  background: #7200cf;
  font-weight: 800;
}

.withdraw-info-card.edit {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.withdraw-info-add {
  width: 100%;
  min-height: 206px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  margin-top: -12px;
  border: 2px dashed #b9d5ef;
  border-radius: 8px;
  color: #258df0;
  background: rgba(255, 255, 255, .82);
}

.withdraw-info-add span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #3da3f4;
  box-shadow: 0 10px 22px rgba(37, 141, 240, .24);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.withdraw-info-add strong {
  font-size: 15px;
}

.page-field label {
  color: #172033;
  font-size: 22px;
}

.page-field input {
  min-height: 56px;
  border-radius: 999px;
  border-color: transparent;
  background: #fff;
  font-size: 18px;
}

.invite-page-hero {
  min-height: 188px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 216, 79, .94) 0 44px, transparent 45px),
    linear-gradient(135deg, #42a8f8, #1477e8 55%, #28b86b);
}

.invite-page-hero span {
  font-size: 16px;
}

.invite-page-hero strong {
  font-size: 30px;
}

.invite-page p {
  color: #52647e;
  line-height: 1.45;
}

.invite-page-code {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.invite-page-code span {
  color: var(--muted);
}

.invite-page-code strong {
  color: #1477e8;
  font-size: 32px;
}

.avatar-page {
  display: grid;
  align-items: start;
}

.avatar-upload-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 18px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.avatar-preview {
  overflow: hidden;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #42a8f8, #1477e8);
  box-shadow: 0 18px 34px rgba(20, 119, 232, .2);
  font-size: 48px;
  font-weight: 900;
}

.avatar-upload-card h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.avatar-upload-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.file-picker {
  position: relative;
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed #42a8f8;
  border-radius: 8px;
  color: #1477e8;
  background: #eef7ff;
  font-weight: 900;
}

.file-picker input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.profile-wallet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 0 14px;
}

.profile-balance-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.profile-balance-label {
  color: #63748b;
  font-size: 13px;
  line-height: 1;
}

.profile-balance-amount {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #101828;
  line-height: 1;
  white-space: nowrap;
}

.profile-balance-amount span {
  padding: 5px 7px;
  border-radius: 6px;
  color: #1477e8;
  background: #eaf4ff;
  font-size: 12px;
  font-weight: 900;
}

.profile-balance-amount strong {
  min-width: 0;
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.profile-balance-amount.medium strong {
  font-size: 26px;
}

.profile-balance-amount.compact strong {
  font-size: 22px;
}

.profile-recharge-button {
  width: 100px;
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: #258df0;
  box-shadow: 0 9px 18px rgba(37, 141, 240, .22);
  text-align: left;
}

.profile-recharge-button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.profile-recharge-button svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-recharge-button strong {
  width: 2.2em;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
}

.support-avatar-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-avatar-control img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border: 2px solid #d9e7f5;
  border-radius: 50%;
  background: #fff;
}

.support-avatar-control input {
  min-width: 0;
}

.support-config-help {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #3da3f4;
  border-radius: 4px;
  color: #49627f;
  background: #eef7ff;
  font-size: 13px;
  line-height: 1.5;
}

.support-config-form .field small a {
  color: #1678cf;
  font-weight: 700;
  text-decoration: none;
}

.support-config-form .field small a:hover {
  text-decoration: underline;
}

.split-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 16px;
  text-align: center;
}

.split-stats > div:first-child {
  border-right: 1px dashed #d4d9e4;
}

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

.red {
  color: var(--red);
}

.menu-list {
  margin: 0 14px 86px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
}

.menu-item {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  align-items: center;
  gap: 10px;
  color: #111827;
  background: transparent;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  font-size: 20px;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4b5563;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.menu-icon.withdraw { background: #3b82f6; }
.menu-icon.history { background: #64748b; }
.menu-icon.finance { background: #16a34a; }
.menu-icon.card { background: #7c3aed; }
.menu-icon.avatar { background: #0ea5e9; }
.menu-icon.bell { background: #f59e0b; }
.menu-icon.lock { background: #475569; }
.menu-icon.logout { background: #ef4444; }

.menu-icon svg {
  width: 17px;
  height: 17px;
}

.menu-item .arrow {
  color: #2c8fff;
  text-align: right;
  font-size: 24px;
}

.bottom-nav {
  position: fixed;
  z-index: 21;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(420px, 100%);
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 4px 0 6px;
  border-top: 1px solid #cfd6e2;
  background: #fff;
}

.nav-button {
  min-width: 0;
  height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #9b9baa;
  background: transparent;
  font-size: 13px;
}

.nav-button.active {
  color: #39a7ff;
}

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

.nav-main {
  align-self: start;
}

.nav-main .nav-icon {
  width: 50px;
  height: 50px;
  margin-top: -22px;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #39a7ff;
  box-shadow: 0 0 0 1px #d7dfeb;
  font-size: 30px;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .28);
}

.modal {
  width: min(390px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 20px 18px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  animation: modalPop .18s ease both;
}

.modal h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.modal p {
  white-space: pre-line;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: #475569;
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d8deeb;
  border-radius: 6px;
  outline: none;
}

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

.button-blue,
.button-light,
.button-red,
.button-green {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 800;
}

.button-blue {
  color: #fff;
  background: var(--blue);
}

.button-light {
  color: #1d4f91;
  background: #e9f4ff;
}

.button-red {
  color: #fff;
  background: var(--red);
}

.button-green {
  color: #fff;
  background: var(--green);
}

.empty {
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  width: min(390px, calc(100% - 36px));
  min-height: 84px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(.96);
  opacity: 0;
  pointer-events: none;
  padding: 18px 20px;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  border: 1px solid #d8e1ee;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  text-align: center;
  font-weight: 800;
  line-height: 1.45;
  transition: .22s ease;
}

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

.toast.error {
  color: #b42318;
  border-color: #fecaca;
}

.ui-dialog-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .28);
}

.ui-dialog {
  width: min(390px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 20px 18px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  animation: modalPop .18s ease both;
}

.ui-dialog h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.ui-dialog p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.45;
  white-space: pre-line;
}

.ui-dialog-form {
  display: grid;
  gap: 12px;
}

.ui-dialog-field {
  display: grid;
  gap: 6px;
}

.ui-dialog-field label {
  color: #475569;
  font-size: 13px;
}

.ui-dialog-field input,
.ui-dialog-field select,
.ui-dialog-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d8deeb;
  border-radius: 6px;
  background: #fff;
  outline: none;
}

.ui-dialog-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

.ui-dialog-field input:focus,
.ui-dialog-field select:focus,
.ui-dialog-field textarea:focus {
  border-color: #42a8f8;
  box-shadow: 0 0 0 3px rgba(66, 168, 248, .14);
}

.ui-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ui-dialog-actions.single {
  grid-template-columns: 1fr;
}

.ui-dialog-permissions {
  width: min(520px, 100%);
}

.ui-dialog-special-orders {
  width: min(560px, 100%);
}

.ui-dialog-special-orders .ui-dialog-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ui-dialog-special-orders .ui-dialog-actions {
  grid-column: 1 / -1;
}

.permission-switch {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid #e4eaf3;
  border-radius: 7px;
  color: #26364f;
  background: #f8fbff;
  cursor: pointer;
  font-weight: 750;
}

.permission-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.permission-switch i {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .18s ease;
}

.permission-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .24);
  transition: transform .18s ease;
}

.permission-switch input:checked + i {
  background: #2c8fff;
}

.permission-switch input:checked + i::after {
  transform: translateX(20px);
}

.permission-switch:focus-within {
  border-color: #42a8f8;
  box-shadow: 0 0 0 3px rgba(66, 168, 248, .12);
}

.topbar-menu {
  justify-self: start;
}

.topbar .icon-button:last-child {
  justify-self: end;
  border: 1px solid rgba(44, 143, 255, .18);
  background: rgba(255, 255, 255, .46);
  color: #26364f;
  font-size: 15px;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #26364f;
}

.hamburger-icon {
  position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger-icon::before {
  top: -6px;
}

.hamburger-icon::after {
  top: 6px;
}

.icon-button,
.quick-action,
.info-tile,
.partner-tile,
.menu-item,
.full-button,
.button-blue,
.button-light,
.service-button,
.nav-button,
.tab {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.icon-button:active,
.quick-action:active,
.info-tile:active,
.partner-tile:active,
.menu-item:active,
.full-button:active,
.button-blue:active,
.button-light:active,
.service-button:active,
.nav-button:active,
.tab:active {
  transform: scale(.97);
}

.hero-banner,
.quick-grid,
.wallet-card,
.feed-card,
.info-grid,
.partner-grid,
.order-card,
.vip-card,
.balance-panel,
.service-card,
.profile-head,
.profile-wallet,
.menu-list {
  animation: softRise .32s ease both;
}

.quick-grid,
.wallet-card,
.balance-panel,
.profile-wallet {
  animation-delay: .04s;
}

.feed-card,
.info-grid,
.partner-grid,
.menu-list {
  animation-delay: .08s;
}

.quick-action {
  position: relative;
  overflow: hidden;
}

.quick-action::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: currentColor;
  opacity: .06;
}

.quick-icon {
  box-shadow: 0 8px 18px rgba(40, 90, 150, .14);
}

.nav-main .nav-icon {
  animation: boltPulse 1.8s ease-in-out infinite;
}

.modal {
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  animation: modalUp .22s ease both;
}

.modal-recharge,
.modal-withdraw {
  padding: 16px;
}

.modal-task-order {
  align-self: center;
  width: min(286px, calc(100% - 88px));
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.modal-task-order h3 {
  padding: 15px 12px 6px;
  text-align: center;
  font-size: 13px;
}

.order-detail-card {
  max-height: min(520px, calc(100vh - 186px));
  overflow-y: auto;
  padding: 8px 14px 10px;
}

.order-detail-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.product-image.large {
  width: 72px;
  height: 72px;
}

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

.order-detail-product strong {
  font-size: 13px;
  line-height: 1.25;
}

.order-detail-product span {
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
}

.order-detail-list {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.order-detail-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
}

.order-detail-list span {
  color: #64748b;
}

.order-detail-list strong {
  min-width: 0;
  color: #111827;
  font-weight: 700;
  word-break: break-word;
}

.modal-actions.compact {
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid #eef2f7;
}

.modal-actions.compact .button-blue,
.modal-actions.compact .button-light {
  min-height: 34px;
  font-size: 12px;
}

.modal-actions.single {
  grid-template-columns: 1fr;
}

.pay-method {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-method label {
  color: #334155;
  font-weight: 800;
}

.pay-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e9f3ff, #f8fbff);
  border: 1px solid #dbeafe;
}

.pay-card > span {
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #4f6ff8;
  font-weight: 900;
}

.pay-card strong,
.pay-card small {
  display: block;
}

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

.pay-card small {
  margin-top: 4px;
  color: var(--muted);
}

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

.amount-chips button {
  min-height: 34px;
  border-radius: 6px;
  color: #1477e8;
  background: #eff7ff;
  border: 1px solid #d7ebff;
  font-weight: 800;
}

.withdraw-balance-card {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #42a8f8, #2f93f0);
  text-align: center;
}

.withdraw-balance-card strong {
  font-size: 28px;
}

.withdraw-balance-card span {
  font-size: 12px;
  opacity: .92;
}

.form-note {
  margin: 2px 0 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.language-current {
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #1477e8;
  background: #eef7ff;
  font-weight: 900;
}

.language-list {
  max-height: 268px;
  overflow-y: auto;
  border: 1px solid #e5edf7;
  border-radius: 8px;
}

.language-list button {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #1f2937;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
  text-align: left;
}

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

.language-list .active {
  color: #1477e8;
  background: #f0f8ff;
  font-weight: 900;
}

.language-list small {
  color: var(--muted);
}

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

.record-card {
  padding: 12px;
  border-left: 3px solid #42a8f8;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

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

.record-card strong {
  margin-bottom: 5px;
  color: #172033;
  font-size: 14px;
}

.record-card span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.record-card .record-status.approved {
  color: #16804a;
  font-weight: 750;
}

.record-card .record-status.rejected {
  color: #dc2626;
  font-weight: 750;
}

.record-card .record-refund {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #137a47;
  background: #eaf8f0;
  font-weight: 750;
}

.record-card .record-reason {
  margin-top: 7px;
  padding: 8px 10px;
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  color: #7f1d1d;
  background: #fff1f2;
  white-space: normal;
}

.record-card .record-reason b {
  color: #b91c1c;
}

.reason-cell {
  max-width: 320px;
  white-space: normal;
  color: #7f1d1d;
}

.modal-system-notice {
  align-self: center;
  width: min(380px, calc(100% - 42px));
  text-align: center;
}

.notice-title {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 500;
}

.notice-body {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.shortcut-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shortcut-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  color: #172033;
  background: #f5f9ff;
  text-align: left;
  font-weight: 800;
}

.shortcut-item span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #42a8f8;
  font-size: 13px;
}

.invite-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #f5f9ff;
  border: 1px solid #e0edff;
}

.invite-hero {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 22%, rgba(255, 216, 79, .95) 0 34px, transparent 35px),
    linear-gradient(135deg, #42a8f8, #1477e8 56%, #28b86b);
}

.invite-hero span {
  font-size: 13px;
  opacity: .9;
}

.invite-hero strong {
  font-size: 24px;
}

.invite-panel p {
  margin: 14px;
  color: #4a5c76;
  line-height: 1.36;
}

.invite-code-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0 14px 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.invite-code-box span {
  color: var(--muted);
  font-size: 13px;
}

.invite-code-box strong {
  color: #1477e8;
  font-size: 22px;
}

.invite-link {
  margin: 0 14px 14px;
  padding: 10px;
  border-radius: 6px;
  color: #55708f;
  background: #fff;
  font-size: 12px;
  word-break: break-all;
}

.matching-overlay {
  position: fixed;
  z-index: 35;
  top: 0;
  bottom: 62px;
  left: 50%;
  width: min(420px, 100%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
  background: #030303;
  animation: fadeIn .22s ease both;
}

.matching-overlay.success .matching-visual {
  background: #fff2bf;
}

.matching-visual {
  position: relative;
  width: 252px;
  height: 252px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #acd8ff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .34);
  animation: matchPop .36s ease both;
  overflow: hidden;
}

.matching-image-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
}

.matching-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: matchImageCycle 3s ease-in-out infinite;
}

.matching-image-2 {
  animation-delay: 1s;
}

.matching-image-3 {
  animation-delay: 2s;
}

.matching-overlay.success .matching-image {
  animation: none;
  opacity: 0;
}

.matching-overlay.success .matching-image-3 {
  opacity: 1;
  transform: scale(1);
}

.matching-scan {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  height: 2px;
  top: 12px;
  background: linear-gradient(90deg, transparent, #42a8f8 28%, #fff 50%, #42a8f8 72%, transparent);
  box-shadow: 0 0 14px rgba(66, 168, 248, .86);
  animation: matchingScan 1.35s ease-in-out infinite;
}

.matching-overlay.success .matching-scan {
  display: none;
}

.matching-success-mark {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #28b86b;
  box-shadow: 0 10px 26px rgba(16, 128, 72, .35);
  font-size: 27px;
  font-weight: 900;
  animation: matchSuccessPop .35s ease both;
}

.match-bubble {
  position: absolute;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: #42a8f8;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
  animation: bubbleFloat 1.6s ease-in-out infinite;
}

.match-bubble-1 {
  left: 20px;
  top: 24px;
}

.match-bubble-2 {
  right: 28px;
  top: 18px;
  background: #ff942f;
  animation-delay: .2s;
}

.match-bubble-3 {
  right: 16px;
  bottom: 34px;
  background: #28b86b;
  animation-delay: .38s;
}

.matching-status {
  width: 252px;
  min-height: 70px;
  display: grid;
  gap: 11px;
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 18, 18, .9);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .34);
  animation: softRise .34s ease .1s both;
}

.matching-status strong {
  font-size: 15px;
}

.matching-status-line {
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: center;
  gap: 10px;
}

.matching-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
}

.matching-progress i {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #42a8f8, #28b86b);
  transform-origin: left center;
  animation: matchingProgress 3s linear both;
}

.matching-progress.done i {
  background: #28b86b;
  animation: none;
  transform: scaleX(1);
}

.matching-dots {
  display: inline-flex;
  justify-content: flex-end;
  gap: 5px;
}

.matching-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42a8f8;
  animation: dotBlink 1s ease-in-out infinite;
}

.matching-dots i:nth-child(2) {
  animation-delay: .16s;
}

.matching-dots i:nth-child(3) {
  animation-delay: .32s;
}

.matching-dots.done i {
  background: #28b86b;
  animation: none;
  opacity: 1;
}

.matching-dots.done i:nth-child(1) {
  transform: translateY(0) scale(.75);
}

.matching-dots.done i:nth-child(2) {
  transform: translateY(0) scale(1);
}

.matching-dots.done i:nth-child(3) {
  transform: translateY(0) scale(.75);
}

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

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

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes boltPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px #d7dfeb, 0 0 0 rgba(57, 167, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 1px #d7dfeb, 0 0 18px rgba(57, 167, 255, .58);
  }
}

@keyframes matchPop {
  from {
    opacity: 0;
    transform: scale(.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes matchImageCycle {
  0%,
  28% {
    opacity: 1;
    transform: scale(1);
  }
  34%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes matchingScan {
  0%,
  100% {
    top: 12px;
    opacity: .42;
  }
  50% {
    top: calc(100% - 14px);
    opacity: 1;
  }
}

@keyframes matchingProgress {
  from {
    transform: scaleX(.04);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes matchSuccessPop {
  from {
    opacity: 0;
    transform: scale(.5) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

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

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

@keyframes carouselSlide {
  0%,
  18% {
    transform: translateX(0);
  }
  50%,
  68% {
    transform: translateX(calc(-100% + (100% / var(--slide-count))));
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes commissionScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.admin-page {
  background: #f3f6fb;
  color: #111827;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(66, 168, 248, .18), rgba(40, 184, 107, .12)),
    #f3f6fb;
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(20, 40, 75, .14);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-brand img {
  width: 48px;
  height: 48px;
}

.admin-brand h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.admin-brand span {
  color: #8ba0bc;
  font-size: 13px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(66, 168, 248, .16), rgba(40, 184, 107, .08)),
    #152238;
  box-shadow: 10px 0 30px rgba(15, 23, 42, .12);
}

.admin-sidebar .admin-brand {
  margin-bottom: 26px;
}

.admin-sidebar button {
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 0 14px;
  color: #cbd7e9;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.admin-sidebar button.active {
  box-shadow: inset 3px 0 0 #42a8f8;
}

.admin-main {
  min-width: 0;
  padding: 26px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-top h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 850;
  color: #172033;
  letter-spacing: 0;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  padding: 6px 8px;
}

.admin-language select,
.settings-form select {
  min-height: 40px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #d8deeb;
  border-radius: 6px;
  background: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e7edf6;
  box-shadow: 0 14px 36px rgba(32, 55, 91, .08);
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #42a8f8, #28b86b);
}

.summary-card span {
  display: block;
  color: #6b7890;
  font-size: 13px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  color: #111827;
}

.admin-card {
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e7edf6;
  box-shadow: 0 14px 36px rgba(32, 55, 91, .08);
}

.admin-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0;
}

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

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

.admin-card-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.user-search-toolbar {
  min-height: 56px;
  margin-bottom: 14px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(260px, 460px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #f7faff;
}

.user-search-field {
  position: relative;
  min-width: 0;
}

.user-search-field input {
  width: 100%;
  height: 40px;
  padding: 0 40px;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  color: #172033;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.user-search-field input:focus {
  border-color: #42a8f8;
  box-shadow: 0 0 0 3px rgba(66, 168, 248, .14);
}

.user-search-icon {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-56%);
  border: 2px solid #6b7f99;
  border-radius: 50%;
  pointer-events: none;
}

.user-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #6b7f99;
}

.user-search-count {
  padding-right: 8px;
  color: #5f7189;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.user-search-empty td {
  height: 96px;
  color: #7b8ba2;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #edf1f7;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.user-admin-table {
  min-width: 1300px;
}

.table-cell-action {
  min-height: 34px;
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 16px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #dce8f6;
  border-radius: 6px;
  color: #1f5f9f;
  background: #f5f9ff;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.table-cell-action:hover {
  border-color: #91c9f5;
  background: #eaf5ff;
  transform: translateY(-1px);
}

.table-cell-action svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-cell-action.balance {
  color: #0e7490;
  background: #effbff;
}

.table-cell-action.frozen {
  color: #b05d13;
  background: #fff8eb;
  border-color: #f1dfbc;
}

.table-cell-action.bonus {
  color: #a04b16;
  background: #fff5e9;
  border-color: #f2d5ae;
}

.table-cell-action.vip {
  color: #7257c7;
  background: #f5f2ff;
}

.table-cell-action.tasks {
  color: #14795a;
  background: #effaf6;
}

.table-cell-action.status {
  grid-template-columns: auto 16px;
  color: #52627a;
  background: #f8fafc;
}

.table-cell-action.status .status-chip {
  pointer-events: none;
}

.admin-admin-table {
  min-width: 1380px;
}

.permission-tags {
  max-width: 320px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  white-space: normal;
}

.permission-tags span {
  padding: 3px 7px;
  border-radius: 5px;
  color: #175ea8;
  background: #eaf4ff;
  font-size: 12px;
  font-weight: 700;
}

.permission-empty {
  color: #64748b;
  font-size: 12px;
}

th,
td {
  padding: 13px 12px;
  border-right: 1px solid #e6ebf3;
  border-bottom: 1px solid #e6ebf3;
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
  white-space: nowrap;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  color: #526178;
  background: #f7f9fd;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr:hover {
  background: #f3f8ff;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.mini-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  color: #1d4f91;
  background: #e9f4ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .16s ease, filter .16s ease;
}

.mini-button:disabled,
.button-blue:disabled,
.button-light:disabled,
.button-red:disabled,
.button-green:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

.mini-button:hover,
.button-blue:hover,
.button-light:hover,
.button-red:hover,
.button-green:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.mini-button.green {
  color: #fff;
  background: var(--green);
}

.mini-button.red {
  color: #fff;
  background: var(--red);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-form-row input,
.admin-form-row textarea,
.admin-form-row select {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d8deeb;
  border-radius: 6px;
  background: #fff;
  outline: none;
}

.admin-form-row input:focus,
.admin-form-row textarea:focus,
.admin-form-row select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #42a8f8;
  box-shadow: 0 0 0 3px rgba(66, 168, 248, .14);
}

.admin-create-row {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) 130px;
  align-items: start;
}

.user-create-row {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) 120px;
  align-items: start;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #526178;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status-chip.green {
  background: #e8f8ef;
  color: #17834b;
}

.status-chip.red {
  background: #fff0f0;
  color: #d92d20;
}

.status-chip.blue {
  margin-left: 6px;
  background: #e9f4ff;
  color: #1477e8;
}

.settings-form {
  max-width: 920px;
}

.settings-help {
  margin: -4px 0 16px;
  color: #64748b;
  line-height: 1.45;
}

.carousel-upload-form {
  margin-bottom: 18px;
}

.carousel-size-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #cfe7ff;
  border-radius: 8px;
  color: #1d4f91;
  background: #eef7ff;
}

.carousel-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.carousel-admin-card {
  overflow: hidden;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(32, 55, 91, .06);
}

.carousel-admin-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #e8f2ff;
}

.carousel-admin-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.carousel-admin-card strong {
  color: #172033;
}

.carousel-admin-card span {
  color: #64748b;
  font-size: 12px;
}

.carousel-admin-card .mini-button {
  margin: 0 12px 12px;
}

.product-management {
  display: grid;
  gap: 16px;
}

.product-management-head {
  margin-bottom: 0;
}

.commission-rate-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #cfe7ff;
  border-radius: 8px;
  color: #1d4f91;
  background: #eef7ff;
}

.commission-rate-strip strong {
  margin-right: 4px;
  color: #172033;
}

.commission-rate-strip span {
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(32, 55, 91, .06);
}

.commission-rate-strip b {
  color: #17834b;
}

.product-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.product-create-dialog { width: min(560px, calc(100vw - 32px)); }
.product-create-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-upload-control { min-height: 116px; padding: 12px; display: flex; align-items: center; gap: 14px; border: 1px dashed #a9bfd8; border-radius: 7px; background: #f7fbff; cursor: pointer; }
.product-upload-control img { width: 88px; height: 88px; flex: 0 0 auto; object-fit: cover; border: 1px solid #dce6f1; border-radius: 6px; background: #fff; }
.product-upload-control span, .product-upload-control strong, .product-upload-control small { display: block; }
.product-upload-control strong { color: #176faf; font-size: 14px; }
.product-upload-control small { margin-top: 6px; color: #64748b; font-size: 11px; line-height: 1.5; }
.product-upload-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.product-admin-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 176px;
  overflow: hidden;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 55, 91, .07);
  transition: opacity .18s ease, transform .18s ease;
}

.product-admin-card:hover {
  transform: translateY(-2px);
}

.product-admin-card.disabled {
  opacity: .62;
}

.product-admin-card > img {
  width: 142px;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  background: #edf4fb;
}

.product-admin-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px;
}

.product-admin-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-admin-title h3 {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 8px;
}

.product-admin-stats span {
  color: #64748b;
  font-size: 12px;
}

.product-admin-stats b {
  display: block;
  margin-top: 3px;
  color: #172033;
  font-size: 14px;
}

.product-admin-body > p {
  margin: 0 0 13px;
  color: #64748b;
  font-size: 12px;
}

.product-admin-body .table-actions {
  margin-top: auto;
}

.settings-subsection {
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid #e5ebf4;
}

.settings-subsection h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.info-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.info-settings-card {
  padding: 14px;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #f8fbff;
}

.info-settings-card h4 {
  margin: 0 0 12px;
  color: #172033;
}

.info-settings-card textarea {
  resize: vertical;
}

.support-config-card {
  margin-bottom: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 55, 86, .07);
}

.support-page-toolbar {
  margin-bottom: 16px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 55, 86, .06);
}

.support-page-toolbar h2,
.support-page-toolbar p { margin: 0; }
.support-page-toolbar h2 { color: #14213a; font-size: 20px; }
.support-page-toolbar p { margin-top: 4px; color: #64748b; font-size: 13px; }
.support-page-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.support-guide-dialog { width: min(560px, calc(100vw - 32px)); }
.support-guide-steps { display: grid; gap: 10px; margin: 16px 0 4px; }
.support-guide-steps > div { display: flex; gap: 12px; padding: 12px; border: 1px solid #e3eaf3; border-radius: 7px; background: #f8fbff; }
.support-guide-steps b { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #2f9ef4; }
.support-guide-steps span, .support-guide-steps strong, .support-guide-steps small { display: block; }
.support-guide-steps strong { color: #172033; font-size: 14px; }
.support-guide-steps small { margin-top: 3px; color: #64748b; font-size: 12px; line-height: 1.55; }
.support-guide-steps a { display: inline-block; margin-top: 6px; color: #1684dc; font-size: 12px; font-weight: 700; }

.support-config-head {
  min-height: 78px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e5ebf4;
}

.support-config-head h2 {
  margin: 0;
  color: #14213a;
  font-size: 20px;
}

.support-config-head p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.support-bridge-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 6px;
  color: #6b7280;
  background: #eef1f5;
  font-size: 12px;
  font-weight: 800;
}

.support-bridge-state.connected {
  color: #087443;
  background: #e5f7ee;
}

.support-bridge-state.incomplete {
  color: #9a5b00;
  background: #fff5d9;
}

.support-bridge-state.error {
  color: #b42318;
  background: #ffebe9;
}

.support-config-form {
  padding: 18px 20px 20px;
}

.support-config-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-config-grid .field {
  margin: 0;
}

.support-config-grid input,
.support-config-grid select {
  width: 100%;
}

.support-config-grid .field > small,
.support-token-field > small {
  display: block;
  margin-top: 6px;
  color: #738196;
  font-size: 11px;
}

.support-config-toggle {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #24324a;
  cursor: pointer;
}

.support-config-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-config-toggle > i {
  width: 42px;
  height: 24px;
  padding: 3px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #cbd5e1;
  transition: background .18s ease;
}

.support-config-toggle > i::after {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 39, 58, .25);
  transition: transform .18s ease;
}

.support-config-toggle input:checked + i {
  background: #2f9ef4;
}

.support-config-toggle input:checked + i::after {
  transform: translateX(18px);
}

.support-config-toggle input:focus-visible + i {
  outline: 3px solid rgba(47, 158, 244, .2);
}

.support-config-toggle span strong,
.support-config-toggle span small {
  display: block;
}

.support-config-toggle span strong {
  font-size: 14px;
}

.support-config-toggle span small {
  margin-top: 3px;
  color: #718096;
  font-size: 11px;
}

.support-config-options {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e7edf4;
}

.support-clear-token {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9c2b26;
  font-size: 12px;
  cursor: pointer;
}

.support-clear-token input {
  width: 16px;
  height: 16px;
  accent-color: #e5484d;
}

.support-config-error {
  margin: 14px 0 0;
  padding: 9px 11px;
  border-left: 3px solid #e5484d;
  color: #9c2b26;
  background: #fff1f0;
  font-size: 12px;
}

.support-config-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.support-admin-card {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 55, 86, .07);
}

.support-admin-title {
  min-height: 78px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e5ebf4;
}

.support-admin-title h2 {
  margin: 0;
  color: #14213a;
  font-size: 20px;
}

.support-admin-title p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.support-admin-title > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 6px;
  color: #1669aa;
  background: #e8f4ff;
  font-size: 12px;
  font-weight: 700;
}

.support-admin-workspace {
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.support-conversation-list {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid #e5ebf4;
  background: #f7faff;
}

.support-conversation-item {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #e5ebf4;
  color: #263248;
  background: transparent;
  text-align: left;
}

.support-conversation-item:hover,
.support-conversation-item.active {
  background: #eaf5ff;
}

.support-conversation-item.active {
  box-shadow: inset 3px 0 #2f9ef4;
}

.support-conversation-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #2f9ef4;
  font-size: 17px;
  font-weight: 800;
}

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

.support-conversation-copy {
  min-width: 0;
}

.support-conversation-copy strong,
.support-conversation-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-conversation-copy strong {
  font-size: 14px;
}

.support-conversation-copy small {
  margin-top: 5px;
  color: #6d7b91;
  font-size: 11px;
}

.support-conversation-item > b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #f0444d;
  font-size: 11px;
}

.support-conversation-empty,
.support-admin-select-empty,
.support-admin-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #7d8ba0;
  text-align: center;
}

.support-admin-chat {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.support-admin-chat-head {
  min-height: 70px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e5ebf4;
}

.support-admin-chat-head h3 {
  margin: 0;
  color: #172033;
  font-size: 17px;
}

.support-admin-chat-head p {
  margin: 5px 0 0;
  color: #66758b;
  font-size: 12px;
}

.support-admin-messages {
  max-height: 480px;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: #f4f7fb;
}

.support-admin-message {
  width: fit-content;
  max-width: 76%;
  padding: 11px 13px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  color: #253148;
  background: #fff;
  box-shadow: 0 4px 12px rgba(38, 57, 82, .06);
}

.support-admin-message.incoming {
  align-self: flex-start;
}

.support-admin-message.outgoing {
  align-self: flex-end;
  border-color: #2f9ef4;
  color: #fff;
  background: #2f9ef4;
}

.support-admin-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
  font-size: 11px;
  opacity: .72;
}

.support-admin-message > p,
.support-admin-original p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-admin-original {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(117, 136, 160, .22);
}

.support-admin-original span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  opacity: .7;
}

.support-admin-original p {
  font-size: 12px;
  opacity: .86;
}

.support-admin-warning {
  display: block;
  margin-top: 8px;
  color: #b45309;
  font-size: 11px;
}

.support-admin-message.outgoing .support-admin-warning {
  color: #fff4c2;
}

.support-admin-composer {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid #e5ebf4;
}

.support-admin-composer textarea {
  width: 100%;
  min-height: 54px;
  max-height: 130px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #d6dfeb;
  border-radius: 6px;
  outline: none;
  font: inherit;
}

.support-admin-composer textarea:focus {
  border-color: #2f9ef4;
  box-shadow: 0 0 0 3px rgba(47, 158, 244, .12);
}

.support-admin-composer button {
  align-self: stretch;
  min-width: 112px;
}

@media (max-width: 840px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

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

  .user-search-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .user-search-count {
    padding: 0 4px;
  }

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

  .partner-settings-grid {
    grid-template-columns: 1fr;
  }

  .brand-assets-grid {
    grid-template-columns: 1fr;
  }

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

  .support-config-grid {
    grid-template-columns: 1fr;
  }

  .support-conversation-list {
    max-height: 250px;
    border-right: 0;
    border-bottom: 1px solid #e5ebf4;
  }
}

@media (max-width: 520px) {
  .support-config-head,
  .support-config-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-config-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .support-config-actions button {
    width: 100%;
  }

  .ui-dialog-special-orders .ui-dialog-form {
    grid-template-columns: 1fr;
  }

  .ui-dialog-special-orders .ui-dialog-actions {
    grid-column: auto;
  }

  .product-admin-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .product-admin-card > img {
    width: 104px;
  }

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

@media (max-width: 390px) {
  .screen-content {
    padding-left: 8px;
    padding-right: 8px;
  }

  .quick-grid,
  .info-grid,
  .partner-grid {
    gap: 8px;
  }

  .service-card {
    grid-template-columns: 118px 1fr;
    padding: 16px;
  }

  .menu-item {
    font-size: 18px;
  }
}
