:root {
  --surface-primary: #ffffff;
  --surface-page: #f5f8f4;
  --surface-inverse: #123629;
  --surface-soft: #eaf3ed;
  --foreground-primary: #17231d;
  --foreground-secondary: #526157;
  --foreground-muted: #8b9a90;
  --foreground-inverse: #ffffff;
  --border-subtle: #dde7df;
  --accent-primary: #176b4d;
  --accent-secondary: #c8932e;
  --profit-red: #d64a35;
  --success: #2f9e5b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(23, 107, 77, 0.12), transparent 34%),
    #dfe7df;
  color: var(--foreground-primary);
}

button,
input {
  font: inherit;
}

#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(100vw, 375px);
  height: min(812px, 100vh);
  min-height: 640px;
  background: var(--surface-page);
  overflow: hidden;
  isolation: isolate;
}

.screen {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
}

.screen:has(.tabbar) .content {
  padding-bottom: 108px;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 16px 16px;
  scrollbar-width: none;
}

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

.auth-content {
  padding: 8px 24px 24px;
  gap: 18px;
}

.title-center {
  margin: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.top-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-primary);
  color: var(--foreground-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.auth-top-row {
  margin-bottom: 2px;
}

.auth-back-btn {
  width: 40px;
  height: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.94));
  color: var(--accent-primary);
  border: 1px solid rgba(221, 231, 223, 0.9);
  box-shadow: 0 8px 18px rgba(18, 54, 41, 0.08);
}

.auth-login-link {
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(221, 231, 223, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(18, 54, 41, 0.06);
}

.brand-row,
.header-row,
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lock {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
}

.auth-brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--foreground-primary);
  font-size: 16px;
  font-weight: 900;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-primary);
  color: var(--foreground-inverse);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logo.has-image {
  overflow: hidden;
  padding: 0;
  background: var(--surface-primary);
}

.logo.has-image img,
.title-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-title {
  gap: 8px;
}

.title-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: 0 0 28px;
}

.logo,
.icon-btn,
.quick-icon,
.banner-visual,
.product-image .image-icon,
.service-icon,
.avatar,
.ledger-icon,
.level-badge,
.bonus-icon {
  font-family: "Segoe UI Symbol", Inter, sans-serif;
}

.pill {
  border-radius: 999px;
  background: var(--surface-primary);
  padding: 7px 10px;
  border: 0;
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.hero-card,
.dark-card {
  border-radius: 22px;
  background: var(--surface-inverse);
  color: var(--foreground-inverse);
  box-shadow: 0 12px 28px rgba(18, 54, 41, 0.12);
}

.login-hero {
  min-height: 142px;
  padding: 22px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.login-hero strong {
  color: var(--foreground-inverse);
  font-size: 18px;
  font-weight: 900;
}

.login-hero-logo {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  color: var(--foreground-inverse);
  font-size: 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 30px rgba(8, 28, 22, 0.2);
}

.login-hero-logo.has-image {
  background: rgba(255, 255, 255, 0.96);
}

.login-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.register-hero {
  min-height: 128px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #d7e8dd;
  font-weight: 800;
}

.risk-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #fff;
}

.rate-big {
  margin: 0 0 8px;
  font-family: "Courier New", monospace;
  color: var(--accent-secondary);
  font-size: 38px;
  font-weight: 900;
}

.muted-inverse {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-block h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.input-row {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-primary);
  color: var(--foreground-muted);
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.03);
}

.input-row.focus {
  border-color: var(--accent-primary);
}

.field-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  background: var(--surface-soft);
  color: var(--accent-primary);
}

.field-icon .ui-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.field-end-icon {
  margin-left: auto;
  color: var(--foreground-muted);
  display: grid;
  place-items: center;
}

.field-end-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.country-code {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--foreground-primary);
  font-weight: 900;
  white-space: nowrap;
}

.divider-v {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

.placeholder {
  color: var(--foreground-muted);
}

.form-options,
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.switch-row {
  justify-content: center;
  gap: 5px;
}

.link {
  color: var(--accent-primary);
  font-weight: 900;
  cursor: pointer;
}

.primary-btn,
.secondary-btn {
  border: 0;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-btn:active,
.secondary-btn:active,
.buy-btn:active,
.banner-action:active,
.quick-item:active,
.tab:active {
  transform: translateY(1px);
}

.primary-btn {
  background: var(--accent-primary);
  color: var(--foreground-inverse);
  box-shadow: 0 10px 24px rgba(23, 107, 77, 0.2);
}

.login-submit-btn {
  gap: 10px;
}

.login-submit-btn .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
  transform: translateX(1px);
}

.withdraw-submit-btn {
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
}

.secondary-btn {
  background: var(--surface-soft);
  color: var(--accent-primary);
}

.fine-print {
  margin: 0;
  color: var(--foreground-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.bonus-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #fff7e8;
}

.bonus-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-secondary);
  color: #fff;
}

.bonus-card strong,
.section-title {
  font-weight: 900;
}

.bonus-card p {
  margin: 4px 0 0;
  color: var(--foreground-secondary);
  font-size: 12px;
}

.carousel,
.ad-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 166px;
  background:
    radial-gradient(circle at 84% 0%, rgba(255,255,255,.28), transparent 35%),
    linear-gradient(135deg, #123629, #176b4d 55%, #f1d89a);
  color: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(18, 54, 41, 0.1);
}

.ad-banner {
  min-height: 154px;
}

.clean-ad-image {
  padding: 0;
  cursor: pointer;
  background-color: var(--surface-soft);
}

.carousel h2,
.ad-banner h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.12;
}

.ad-banner h2 {
  font-size: 22px;
}

.carousel p,
.ad-banner p {
  margin: 0;
  max-width: 220px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.35;
}

.banner-chip {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 900;
}

.banner-action {
  margin-top: 14px;
  height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(200, 147, 46, 0.24);
}

.copy-invite-btn {
  width: 100%;
  height: 38px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
}

.copy-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  color: currentColor;
  flex: 0 0 16px;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.copy-icon::before {
  left: 2px;
  top: 4px;
  opacity: 0.72;
}

.copy-icon::after {
  left: 5px;
  top: 1px;
  background: transparent;
}

.banner-visual {
  position: absolute;
  right: 26px;
  top: 50px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  font-size: 30px;
  box-shadow: 0 12px 24px rgba(18, 54, 41, 0.18);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
}

.dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}

.dot.active {
  width: 18px;
  background: #fff;
}

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

.quick-item {
  height: 78px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--foreground-primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.quick-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent-primary);
  font-size: 19px;
  line-height: 1;
}

.section-row {
  min-height: 24px;
}

.section-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.section-row span {
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 800;
}

.tabbar {
  position: fixed;
  left: 50%;
  width: min(100vw, 375px);
  transform: translateX(-50%);
  bottom: 0;
  z-index: 5;
  height: 92px;
  padding: 10px 20px 20px;
  background: linear-gradient(180deg, rgba(245, 248, 244, 0), var(--surface-page) 18%);
  flex: 0 0 92px;
}

.tab-pill {
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 36px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-primary);
  box-shadow: 0 10px 26px rgba(18, 54, 41, 0.08);
}

.tab {
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--foreground-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.tab-svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.tab.active {
  background: var(--accent-primary);
  color: var(--foreground-inverse);
  box-shadow: 0 8px 16px rgba(23, 107, 77, 0.22);
}

.tab.active .tab-svg {
  stroke-width: 2.05;
}

.tab span {
  line-height: 1;
}

.ui-icon {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-btn .ui-icon {
  width: 17px;
  height: 17px;
}

.back-btn .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.search .ui-icon {
  width: 15px;
  height: 15px;
}

.period {
  align-items: center;
  gap: 4px;
}

.period .ui-icon {
  width: 12px;
  height: 12px;
}

.quick-icon .ui-icon,
.menu-row > span:first-child .ui-icon,
.bank-row > span:first-child .ui-icon,
.download-btn > span .ui-icon {
  width: 18px;
  height: 18px;
}

.service-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.service-action > .ui-icon {
  width: 23px;
  height: 23px;
  color: var(--accent-primary);
}

.app-notice-mask {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 40, 32, 0.18);
  backdrop-filter: blur(8px);
}

.app-notice {
  position: relative;
  width: 100%;
  max-width: 318px;
  min-height: 108px;
  border-radius: 24px;
  padding: 18px 44px 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 70px rgba(16, 40, 32, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.app-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 0%, rgba(15, 118, 93, 0.13), transparent 38%),
    radial-gradient(circle at 96% 100%, rgba(239, 170, 61, 0.12), transparent 34%);
}

.notice-icon,
.notice-content,
.notice-close {
  position: relative;
  z-index: 1;
}

.notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  background: linear-gradient(135deg, #0f765d, #0a5d4c);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 93, 0.24);
}

.notice-info .notice-icon {
  background: linear-gradient(135deg, #3478f6, #1c5fd2);
  box-shadow: 0 12px 24px rgba(52, 120, 246, 0.22);
}

.notice-icon .ui-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.notice-content {
  flex: 1;
  min-width: 0;
}

.notice-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.2;
}

.notice-content p {
  margin: 0;
  color: var(--foreground-secondary);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(238, 246, 242, 0.9);
  color: var(--foreground-muted);
}

.notice-close .ui-icon {
  width: 15px;
  height: 15px;
}

.notice-pop-enter-active,
.notice-pop-leave-active {
  transition: opacity 0.18s ease;
}

.notice-pop-enter-active .app-notice,
.notice-pop-leave-active .app-notice {
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.notice-pop-enter-from,
.notice-pop-leave-to {
  opacity: 0;
}

.notice-pop-enter-from .app-notice,
.notice-pop-leave-to .app-notice {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.global-loading {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.42), transparent 42%),
    rgba(9, 39, 30, 0.16);
  backdrop-filter: blur(10px);
}

.loading-panel {
  width: 150px;
  min-height: 148px;
  border-radius: 28px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    0 30px 72px rgba(9, 39, 30, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.loading-spinner {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid rgba(15, 118, 93, 0.14);
  border-top-color: var(--accent-primary);
  border-right-color: rgba(239, 170, 61, 0.78);
  animation: loader-spin 0.82s linear infinite;
}

.loading-spinner span {
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 8px 18px rgba(15, 118, 93, 0.18);
}

.loading-panel strong {
  font-size: 15px;
  color: var(--foreground-primary);
}

.loading-panel small {
  color: var(--foreground-muted);
  font-size: 12px;
}

.loading-fade-enter-active,
.loading-fade-leave-active {
  transition: opacity 0.2s ease;
}

.loading-fade-enter-active .loading-panel,
.loading-fade-leave-active .loading-panel {
  transition: transform 0.2s ease;
}

.loading-fade-enter-from,
.loading-fade-leave-to {
  opacity: 0;
}

.loading-fade-enter-from .loading-panel,
.loading-fade-leave-to .loading-panel {
  transform: translateY(8px) scale(0.96);
}

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

.search {
  height: 44px;
  border-radius: 999px;
  background: var(--surface-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--foreground-muted);
  font-size: 13px;
}

.chips {
  display: flex;
  gap: 8px;
}

.chip {
  height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  border: 0;
  background: var(--surface-primary);
  color: var(--foreground-secondary);
  font-size: 13px;
  font-weight: 800;
}

.chip.active {
  background: var(--accent-primary);
  color: #fff;
}

.product-card,
.white-card {
  border-radius: 18px;
  background: var(--surface-primary);
  padding: 14px;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-top {
  display: flex;
  gap: 12px;
}

.product-image {
  flex: 0 0 86px;
  height: 84px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eaf3ed, #fff, #f6e7c8);
  border: 1px solid rgba(221, 231, 223, 0.65);
}

.product-image.alt {
  background: linear-gradient(135deg, #fff7e8, #fff, #eaf3ed);
}

.product-image .image-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-primary);
  font-size: 24px;
  line-height: 1;
}

.product-image.alt .image-icon {
  color: var(--accent-secondary);
}

.image-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.product-name-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

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

.risk-green {
  color: var(--success);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.period {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 900;
}

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

.metric {
  min-height: 56px;
  border-radius: 10px;
  background: var(--surface-page);
  padding: 8px 10px;
  overflow: hidden;
}

.metric small {
  display: block;
  color: var(--foreground-muted);
  font-size: 11px;
  margin-bottom: 5px;
}

.metric strong {
  color: var(--profit-red);
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.buy-btn {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

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

.stat-card {
  border-radius: 16px;
  background: var(--surface-primary);
  padding: 14px;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.stat-card small {
  display: block;
  color: var(--foreground-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-card strong {
  font-family: "Courier New", monospace;
  font-size: 20px;
}

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

.order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 112px;
}

.order-head,
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-head strong {
  font-size: 16px;
}

.order-status {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}

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

.order-columns small,
.caption {
  display: block;
  color: var(--foreground-muted);
  font-size: 12px;
}

.invite-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  height: 206px;
  flex: 0 0 206px;
  overflow: hidden;
}

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

.invite-top > strong {
  font-size: 17px;
}

.invite-top > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
}

.invite-code-wrap {
  position: relative;
  z-index: 1;
}

.invite-code-wrap small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.invite-card .muted-inverse {
  margin: 0;
  line-height: 1.35;
}

.invite-code {
  font-family: "Courier New", monospace;
  color: var(--accent-secondary);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.invite-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.invite-benefits span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.distribution {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.level-row {
  min-height: 46px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--surface-page);
  overflow: hidden;
}

.level-row.featured {
  background: var(--surface-soft);
}

.level-badge {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-primary);
  color: #fff;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.level-badge.gold {
  background: var(--accent-secondary);
}

.level-badge.gray {
  background: #7a8b80;
}

.level-info {
  flex: 1;
  min-width: 0;
}

.level-info strong {
  display: block;
  font-size: 13px;
}

.level-info small {
  color: var(--foreground-secondary);
  font-size: 11px;
}

.level-progress {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(15, 118, 93, 0.1);
  overflow: hidden;
}

.level-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), #22aa78);
  transition: width 0.24s ease;
}

.level-progress.gold {
  background: rgba(239, 170, 61, 0.16);
}

.level-progress.gold i {
  background: linear-gradient(90deg, var(--accent-secondary), #f3c15f);
}

.level-progress.gray {
  background: rgba(122, 139, 128, 0.16);
}

.level-progress.gray i {
  background: linear-gradient(90deg, #7a8b80, #a1aaa5);
}

.wallet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.balance-box {
  min-height: 62px;
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-page);
  overflow: hidden;
}

.balance-box.available {
  background: var(--surface-soft);
}

.balance-box small {
  display: block;
  color: var(--foreground-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.balance-box strong {
  font-family: "Courier New", monospace;
  font-size: 18px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-row,
.service-row,
.ledger-row,
.bank-row {
  min-height: 54px;
  border: 0;
  width: 100%;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--surface-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--foreground-primary);
  text-align: left;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.menu-row span:nth-child(2),
.bank-row span:nth-child(2) {
  flex: 1;
  font-weight: 800;
}

.amount-card {
  padding: 18px;
}

.amount-card small {
  color: var(--foreground-muted);
  display: block;
  margin-bottom: 8px;
}

.amount-card strong {
  font-family: "Courier New", monospace;
  font-size: 32px;
}

.amount-input {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
}

.amount-input span:last-child {
  color: var(--foreground-muted);
}

.amount-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground-primary);
  font: inherit;
  font-weight: 900;
}

.amount-input input::placeholder {
  color: var(--foreground-muted);
}

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

.amount-chips button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-page);
  color: var(--foreground-secondary);
  font-weight: 900;
}

.amount-chips button:nth-child(1) {
  background: var(--surface-soft);
  color: var(--accent-primary);
}

.amount-chips button:nth-child(2) {
  background: #fff7e8;
  color: var(--accent-secondary);
}

.recharge-rule {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recharge-rule p {
  margin: 0;
  color: var(--foreground-muted);
  font-size: 13px;
  line-height: 1.5;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-list {
  display: grid;
  gap: 8px;
}

.channel-option {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(18, 54, 41, 0.05);
}

.channel-option > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-option strong {
  font-size: 14px;
  line-height: 1.25;
}

.channel-option small {
  color: var(--foreground-muted);
  font-size: 12px;
  font-weight: 800;
}

.channel-option.active {
  border-color: rgba(30, 124, 83, 0.45);
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(30, 124, 83, 0.12);
}

.channel-option.disabled {
  opacity: 0.48;
  box-shadow: none;
  cursor: not-allowed;
}

.channel-check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 900;
}

.channel-option:not(.active) .channel-check {
  background: var(--surface-page);
  color: transparent;
}

.channel-empty {
  min-height: 82px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

.service-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: var(--accent-secondary);
  font-size: 24px;
}

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

.service-action {
  height: 74px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--foreground-primary);
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-row {
  min-height: 68px;
  padding: 0 14px;
}

.avatar {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent-primary);
}

.avatar.ws {
  background: #eaf7ef;
  color: var(--success);
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-info strong {
  display: block;
  font-size: 14px;
}

.service-info small {
  color: var(--foreground-muted);
  font-size: 12px;
}

.channel {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.top-row .title-center,
.content > .title-center {
  letter-spacing: 0;
}

.subtle-card {
  background: var(--surface-primary);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18, 54, 41, 0.04);
}

.channel.ws {
  background: var(--success);
}

.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-row {
  min-height: 68px;
  padding: 0 16px;
}

.ledger-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent-primary);
}

.ledger-info {
  flex: 1;
}

.ledger-info strong {
  display: block;
  font-size: 14px;
}

.ledger-info small {
  color: var(--foreground-muted);
  font-size: 12px;
}

.bank-preview {
  padding: 18px;
}

.bank-preview .list-head {
  margin-bottom: 22px;
}

.card-number {
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.tip-card {
  min-height: 82px;
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--foreground-secondary);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 760px) {
  .phone {
    margin: 24px;
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(18, 54, 41, .22);
  }
}

@media (max-height: 720px) {
  .content {
    gap: 12px;
    padding-top: 6px;
  }

  .title-center {
    min-height: 38px;
  }

  .carousel {
    min-height: 150px;
  }

  .ad-banner {
    min-height: 142px;
  }

  .quick-item {
    height: 70px;
  }

  .carousel h2,
  .ad-banner h2 {
    font-size: 22px;
  }

  .banner-visual {
    width: 66px;
    height: 66px;
  }
}

/* Modern visual refresh */
:root {
  --surface-primary: #ffffff;
  --surface-page: #f6faf8;
  --surface-inverse: #102820;
  --surface-soft: #e8f4ef;
  --foreground-primary: #111c18;
  --foreground-secondary: #56645e;
  --foreground-muted: #94a19b;
  --border-subtle: rgba(31, 72, 57, 0.1);
  --accent-primary: #0f765d;
  --accent-secondary: #efaa3d;
  --profit-red: #df4d3f;
  --success: #20a568;
  --info: #3478f6;
}

body {
  background:
    linear-gradient(145deg, #d7e4de 0%, #eef4f1 48%, #dfe9f4 100%);
  color: var(--foreground-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.phone {
  background:
    linear-gradient(180deg, #f9fcfb 0%, var(--surface-page) 38%, #eef6f2 100%);
}

.screen {
  background:
    linear-gradient(180deg, rgba(232, 244, 239, 0.78) 0%, var(--surface-page) 172px, var(--surface-page) 100%);
}

.content {
  gap: 16px;
  padding: 12px 16px 18px;
}

.auth-content {
  padding: 14px 24px 24px;
}

.title-center {
  min-height: 44px;
  font-size: 19px;
}

.brand-row,
.top-row {
  min-height: 46px;
}

.brand-lock {
  color: var(--foreground-primary);
}

.logo,
.quick-icon,
.service-icon,
.avatar,
.ledger-icon,
.level-badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(16, 40, 32, 0.1);
}

.logo {
  border-radius: 12px;
  background: linear-gradient(145deg, #0f765d, #0a5d4c);
}

.icon-btn,
.pill {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(20, 65, 49, 0.08);
  backdrop-filter: blur(14px);
}

.hero-card,
.dark-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, #102820 0%, #0f765d 72%, #c88c2d 145%);
  box-shadow: 0 18px 42px rgba(16, 40, 32, 0.2);
}

.login-hero {
  padding: 22px;
}

.rate-big,
.invite-code,
.metric strong,
.stat-card strong,
.balance-box strong,
.amount-card strong,
.card-number {
  font-variant-numeric: tabular-nums;
}

.input-row,
.search,
.chip,
.product-card,
.white-card,
.stat-card,
.quick-item,
.menu-row,
.service-row,
.ledger-row,
.bank-row,
.service-action,
.amount-chips button {
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 14px 34px rgba(20, 65, 49, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.input-row,
.search {
  background: rgba(255, 255, 255, 0.86);
}

.input-row {
  height: 52px;
  border-radius: 14px;
}

.input-row.focus {
  border-color: rgba(15, 118, 93, 0.42);
  box-shadow:
    0 0 0 4px rgba(15, 118, 93, 0.08),
    0 14px 34px rgba(20, 65, 49, 0.07);
}

.primary-btn,
.buy-btn {
  background: linear-gradient(135deg, #0f765d, #0a5d4c);
  box-shadow: 0 14px 30px rgba(15, 118, 93, 0.28);
}

.secondary-btn {
  background: linear-gradient(135deg, #e9f5f0, #f9fcfb);
  color: var(--accent-primary);
  border: 1px solid rgba(15, 118, 93, 0.1);
}

.carousel,
.ad-banner {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(132deg, #102820 0%, #0f765d 55%, #efaa3d 122%);
  box-shadow: 0 18px 42px rgba(16, 40, 32, 0.18);
}

.carousel::after,
.ad-banner::after {
  content: "";
  position: absolute;
  right: -42px;
  top: 18px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.carousel > *,
.ad-banner > * {
  position: relative;
  z-index: 1;
}

.banner-chip,
.risk-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.banner-action {
  background: linear-gradient(135deg, #efaa3d, #e08b2e);
  box-shadow: 0 12px 24px rgba(224, 139, 46, 0.26);
}

.banner-visual {
  right: 22px;
  top: 52px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 28px rgba(16, 40, 32, 0.2);
  z-index: 2;
}

.quick-grid {
  gap: 12px;
}

.quick-item {
  height: 80px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.quick-item:nth-child(2) .quick-icon {
  background: #fff1df;
  color: #d97822;
}

.quick-item:nth-child(3) .quick-icon {
  background: #eaf1ff;
  color: var(--info);
}

.quick-item:nth-child(4) .quick-icon {
  background: #eef0f4;
  color: #596579;
}

.quick-icon {
  border-radius: 12px;
  background: var(--surface-soft);
}

.tabbar {
  height: 96px;
  padding: 10px 18px 20px;
  background: linear-gradient(180deg, rgba(246, 250, 248, 0), rgba(246, 250, 248, 0.92) 34%, #f6faf8 100%);
}

.tab-pill {
  height: 64px;
  border: 1px solid rgba(31, 72, 57, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(16, 40, 32, 0.14);
  backdrop-filter: blur(18px);
}

.tab {
  color: #7f8d87;
}

.tab.active {
  background: linear-gradient(135deg, #0f765d, #0b5f4e);
  box-shadow: 0 10px 20px rgba(15, 118, 93, 0.28);
}

.search {
  height: 46px;
}

.chip {
  background: rgba(255, 255, 255, 0.82);
}

.chip.active {
  background: #102820;
}

.product-card,
.white-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.product-card {
  padding: 16px;
}

.product-image {
  border: 1px solid rgba(15, 118, 93, 0.12);
  background:
    linear-gradient(145deg, #eaf6f1 0%, #ffffff 48%, #fff0d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.product-image.alt {
  background:
    linear-gradient(145deg, #fff4e3 0%, #ffffff 52%, #e9f4ff 100%);
}

.product-image .image-icon {
  border: 1px solid rgba(15, 118, 93, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.period,
.risk-green {
  letter-spacing: 0;
}

.metrics {
  gap: 10px;
}

.metric {
  border: 1px solid rgba(31, 72, 57, 0.07);
  background: linear-gradient(180deg, #f8fbfa, #eef7f3);
}

.metric:nth-child(2) {
  background: linear-gradient(180deg, #fffaf2, #fff2db);
}

.stat-card {
  background: rgba(255, 255, 255, 0.88);
}

.invite-card {
  background:
    linear-gradient(140deg, #102820 0%, #0f765d 66%, #3478f6 138%);
  position: relative;
}

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

.invite-card::before {
  right: -30px;
  top: -34px;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  transform: rotate(24deg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.invite-card::after {
  left: -18px;
  bottom: -24px;
  width: 82px;
  height: 82px;
  border-radius: 28px;
  transform: rotate(-18deg);
  background: rgba(255, 255, 255, 0.09);
}

.distribution,
.wallet,
.service-list {
  gap: 14px;
}

.wallet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 250, 0.95));
}

.balance-box {
  border: 1px solid rgba(31, 72, 57, 0.07);
  background: linear-gradient(180deg, #f8fbfa, #eef7f3);
}

.balance-box.available {
  background: linear-gradient(180deg, #eef8f3, #dff1ea);
}

.distribution {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 250, 0.94));
}

.distribution .list-head {
  min-height: 28px;
}

.level-row {
  min-height: 58px;
  border: 1px solid rgba(31, 72, 57, 0.06);
  background: rgba(248, 251, 250, 0.9);
}

.level-row.featured {
  background: linear-gradient(180deg, #eff9f4, #f7fcfa);
}

.level-row .profit {
  min-width: 54px;
  text-align: right;
}

.team-content {
  gap: 12px;
  padding-top: 10px;
}

.team-content .title-center {
  min-height: 38px;
}

.team-content .invite-card {
  height: 178px;
  flex-basis: 178px;
  padding: 16px 18px;
  gap: 8px;
}

.team-content .invite-code {
  font-size: 29px;
}

.team-content .copy-invite-btn {
  height: 34px;
  margin-top: 2px;
}

.team-content .stat-card {
  padding: 12px 14px;
}

.team-content .distribution {
  gap: 10px;
  padding: 14px;
}

.team-content .balance-box {
  min-height: 54px;
  padding: 10px 12px;
}

.team-content .level-row {
  min-height: 52px;
}

.team-content .level-progress {
  margin-top: 4px;
}

.menu-row,
.bank-row,
.ledger-row,
.service-row {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.menu-row > span:first-child,
.bank-row > span:first-child {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--accent-primary);
  flex: 0 0 32px;
}

.menu-row:nth-child(2) > span:first-child,
.bank-row > span:first-child {
  background: #fff1df;
  color: #d97822;
}

.menu-row:nth-child(3) > span:first-child {
  background: #eaf1ff;
  color: var(--info);
}

.menu-row:nth-child(4) > span:first-child {
  background: #eef0f4;
  color: #596579;
}

.menu-row > span:last-child,
.bank-row > span:last-child {
  color: var(--foreground-muted);
}

.amount-card {
  border-radius: 22px;
}

.amount-chips button {
  background: rgba(255, 255, 255, 0.9);
}

.service-action {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.service-hero {
  background:
    linear-gradient(140deg, #102820 0%, #0f765d 72%, #20a568 138%);
}

.avatar {
  background: var(--surface-soft);
}

.avatar.ws {
  background: #e7f7ed;
}

.channel {
  background: linear-gradient(135deg, #0f765d, #0a5d4c);
}

.channel.ws {
  background: linear-gradient(135deg, #20a568, #168951);
}

.ledger-icon {
  background: var(--surface-soft);
}

.bank-preview {
  background:
    linear-gradient(140deg, #102820 0%, #163b77 70%, #efaa3d 145%);
}

.tip-card {
  border: 1px solid rgba(15, 118, 93, 0.1);
  background: linear-gradient(180deg, #edf8f3, #f8fbfa);
}

.app-download-entry > span:first-child {
  background: #eaf1ff;
  color: var(--info);
}

.app-download-hero {
  min-height: 132px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(140deg, #102820 0%, #0f765d 66%, #3478f6 138%);
}

.app-download-hero strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.app-mark {
  flex: 0 0 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 28px rgba(16, 40, 32, 0.18);
}

.app-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
}

.qr-code {
  width: 132px;
  height: 132px;
  padding: 12px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  background: #fff;
  border: 1px solid rgba(31, 72, 57, 0.1);
  box-shadow: inset 0 0 0 8px #f4faf7;
}

.qr-code span {
  border-radius: 5px;
  background: var(--accent-primary);
}

.qr-code span:nth-child(2),
.qr-code span:nth-child(5),
.qr-code span:nth-child(9),
.qr-code span:nth-child(12),
.qr-code span:nth-child(15) {
  background: var(--accent-secondary);
}

.qr-code span:nth-child(4),
.qr-code span:nth-child(7),
.qr-code span:nth-child(10),
.qr-code span:nth-child(14) {
  background: transparent;
}

.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-btn {
  min-height: 78px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--foreground-primary);
  text-align: left;
  box-shadow:
    0 14px 34px rgba(20, 65, 49, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.download-btn > span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  background: var(--surface-soft);
  color: var(--accent-primary);
  font-weight: 900;
}

.download-btn.ios > span {
  background: #eaf1ff;
  color: var(--info);
}

.download-btn strong,
.download-btn small {
  display: block;
}

.download-btn strong {
  font-size: 13px;
}

.download-btn small {
  margin-top: 4px;
  color: var(--foreground-muted);
  font-size: 11px;
}

.input-row input,
.input-row select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground-primary);
  font: inherit;
  font-weight: 800;
}

.input-row input {
  flex: 1;
}

.input-row input::placeholder {
  color: var(--foreground-muted);
  font-weight: 700;
}

.input-row select.country-code {
  width: auto;
  appearance: none;
  padding-right: 12px;
  cursor: pointer;
}

.input-row select.bank-select {
  flex: 1;
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.input-row select.bank-select:disabled {
  color: var(--foreground-muted);
  cursor: not-allowed;
}

.text-btn {
  margin-left: auto;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--foreground-secondary);
  font-weight: 800;
}

.remember-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent-primary);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.text-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.carousel.has-image,
.ad-banner.has-image {
  isolation: isolate;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.carousel.has-image .banner-chip,
.ad-banner.has-image .banner-chip {
  background: rgba(255, 255, 255, 0.2);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.product-image img + .image-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.86);
}

button.service-row {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  background: var(--surface-primary);
  color: var(--foreground-primary);
}

.qr-image {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 20px;
  border: 8px solid var(--surface-soft);
}

.empty-state {
  min-height: 104px;
  border: 1px dashed var(--border-subtle);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  color: var(--foreground-secondary);
  text-align: center;
}

.empty-state strong {
  color: var(--foreground-primary);
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: var(--foreground-muted);
  font-size: 12px;
  line-height: 1.45;
}

.feature-empty {
  min-height: 154px;
}

.qr-empty {
  width: 132px;
  min-height: 132px;
  flex: 0 0 132px;
  border-radius: 20px;
  background: var(--surface-soft);
}

body {
  background:
    linear-gradient(rgba(238, 246, 241, 0.72), rgba(218, 232, 224, 0.78)),
    url("./assets/nigeria-bg.png") center / cover fixed no-repeat;
}

.phone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 250, 248, 0.62)),
    url("./assets/nigeria-bg.png") center / cover no-repeat;
}

.screen {
  background:
    linear-gradient(180deg, rgba(248, 252, 250, 0.72) 0%, rgba(246, 250, 248, 0.56) 46%, rgba(246, 250, 248, 0.72) 100%);
}

@media (min-width: 760px) {
  .phone {
    box-shadow:
      0 30px 90px rgba(16, 40, 32, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.42);
  }
}

@media (max-height: 720px) {
  .content {
    gap: 12px;
    padding-top: 8px;
  }

  .quick-item {
    height: 70px;
  }

  .tabbar {
    height: 90px;
  }
}
