:root {
  --bg: #000000;
  --surface-0: #070707;
  --surface-1: rgba(17, 17, 17, 0.92);
  --surface-2: rgba(24, 24, 24, 0.88);
  --surface-3: rgba(32, 32, 32, 0.82);
  --text: rgba(255, 255, 255, 0.96);
  --text-soft: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.48);
  --faint: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.065);
  --line-soft: rgba(255, 255, 255, 0.04);
  --green: #3ee078;
  --red: #ff686f;
  --radius: 30px;
  --radius-lg: 36px;
  --radius-pill: 999px;
  --page-x: 17px;
  --blur: blur(24px) saturate(145%);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.48);
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.72);
  --inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(180deg, #030303 0%, #000000 38%, #000000 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.app {
  min-height: 100dvh;
  padding: calc(18px + env(safe-area-inset-top)) var(--page-x) calc(142px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  min-height: calc(100dvh - 160px);
}

.screen.active {
  display: block;
  animation: screen-in 230ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.brand-title,
.section-kicker,
.row-meta,
.row-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.28;
}

.brand-title {
  width: 100%;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: none;
}

.screen-header {
  padding: 42px 8px 24px;
}

.screen-title {
  margin: 0;
  color: var(--text);
  font-size: 2.05rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.home-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.hero-center {
  display: flex;
  flex-direction: column;
  padding: 24px 0 30px;
}

.balance-card {
  position: relative;
  width: 100%;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 31px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    #050505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 30px 70px rgba(0, 0, 0, 0.74);
  isolation: isolate;
}

.balance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/balance-card-bg.png") calc(50% - 13px) center / cover no-repeat;
  opacity: 0.96;
  z-index: -2;
}

.balance-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 7%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%),
    rgba(0, 0, 0, 0.04);
  z-index: -1;
  pointer-events: none;
}

.balance-card-content {
  position: relative;
  height: 100%;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 34px 31px;
}

.balance-label {
  display: block;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Helvetica Neue", "HelveticaNeue-UltraLight", "Helvetica Neue UltraLight", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
}

.balance-frame {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  overflow: visible;
}

.balance-value {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.965);
  font-family: "Helvetica Neue", "HelveticaNeue-UltraLight", "Helvetica Neue UltraLight", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.76rem, 18vw, 5.3rem);
  font-weight: 100;
  letter-spacing: -0.066em;
  line-height: 0.86;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
}

.balance-currency {
  letter-spacing: -0.075em;
}

.balance-cents {
  display: inline-block;
  margin-left: 0.035em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.36em;
  font-weight: 100;
  letter-spacing: -0.045em;
  vertical-align: baseline;
  transform: translateY(-0.04em);
}

.balance-id {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.38);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.telegram-id {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.94rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.action-pills {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.78fr;
  gap: 10px;
}

.pill,
.quick-action,
.soft-button,
.ghost-button,
.buy-button,
.method-button,
.nav-button,
.help-link {
  appearance: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button {
  transition:
    transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 190ms ease,
    background 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

button:active {
  transform: scale(0.982);
}

.pill {
  position: relative;
  min-width: 0;
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    rgba(18, 18, 18, 0.84);
  box-shadow: var(--inset-light), 0 16px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quick-action {
  position: relative;
  min-width: 0;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.047), rgba(255, 255, 255, 0.012)),
    rgba(16, 16, 16, 0.88);
  box-shadow: var(--inset-light), 0 20px 45px rgba(0, 0, 0, 0.54);
  backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.quick-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.054), rgba(255, 255, 255, 0.014)),
    rgba(27, 27, 27, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
}

.quick-label {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  font-weight: 640;
  letter-spacing: -0.018em;
  line-height: 1.06;
}

.section {
  margin-top: 40px;
}

.section.compact {
  margin-top: 30px;
}

.section-title {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

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

.glass-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012)),
    rgba(14, 14, 14, 0.92);
  box-shadow: var(--inset-light), var(--shadow-soft);
  backdrop-filter: var(--blur);
}

.glass-panel.list-surface {
  padding: 17px;
}

.blocking-screen {
  min-height: calc(100dvh - 80px);
  display: grid;
  place-items: center;
  padding: 36px var(--page-x);
}

.blocking-card {
  width: 100%;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 34px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(14, 14, 14, 0.94);
  box-shadow: var(--inset-light), var(--shadow-soft);
  text-align: center;
}

.blocking-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
}

.blocking-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.list-row {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.012)),
    rgba(13, 13, 13, 0.94);
  box-shadow: var(--inset-light), 0 19px 45px rgba(0, 0, 0, 0.52);
  backdrop-filter: var(--blur);
}

.row-symbol {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.4px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}

.row-symbol.green {
  color: var(--green);
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--green);
}

.row-symbol.red {
  color: var(--red);
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--red);
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  font-weight: 710;
  letter-spacing: -0.032em;
  line-height: 1.18;
}

.row-meta,
.row-note {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.row-amount,
.row-status {
  flex: 0 0 auto;
  max-width: 42%;
  text-align: right;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  font-weight: 710;
  letter-spacing: -0.025em;
}

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

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

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 0 8px;
}

.product-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1.04;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 31px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.011)),
    rgba(14, 14, 14, 0.94);
  box-shadow: var(--inset-light), 0 23px 52px rgba(0, 0, 0, 0.58);
  backdrop-filter: var(--blur);
}

.product-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 58px;
  height: 1px;
  background: var(--line-soft);
}

.product-name {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.06rem;
  font-weight: 740;
  letter-spacing: -0.036em;
  line-height: 1.12;
}

.product-price {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.47);
  font-size: 1.24rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.soft-button,
.buy-button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    rgba(25, 25, 25, 0.95);
  box-shadow: var(--inset-light), 0 15px 34px rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  font-weight: 720;
  letter-spacing: -0.028em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.buy-button {
  min-height: 42px;
  font-size: 0.93rem;
}

.ghost-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
    rgba(24, 24, 24, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.042);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wide {
  width: 100%;
}

.profile-top {
  position: relative;
  padding: 0 8px;
}

.profile-name {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.44rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.profile-balance {
  margin-top: 28px;
  padding: 0 8px;
}

.profile-balance .balance-card {
  min-height: 208px;
  border-radius: 29px;
}

.profile-balance .balance-card-content {
  min-height: 208px;
  padding: 30px 28px 28px;
}

.profile-balance .balance-value {
  font-size: clamp(3.35rem, 16.7vw, 4.85rem);
  letter-spacing: -0.068em;
}

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

.method-button {
  min-width: 0;
  min-height: 87px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(13, 13, 13, 0.93);
  box-shadow: var(--inset-light), 0 18px 42px rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, 0.54);
  text-align: center;
}

.method-button.selected {
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.018)),
    rgba(30, 30, 30, 0.94);
  border-color: rgba(255, 255, 255, 0.095);
  box-shadow: var(--inset-light), 0 20px 48px rgba(0, 0, 0, 0.55);
}

.method-name {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.83rem;
  font-weight: 690;
  letter-spacing: -0.023em;
  line-height: 1.16;
}

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

.deposit-form {
  margin-top: 14px;
}

.amount-input {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(14, 14, 14, 0.94);
  box-shadow: var(--inset-light), 0 17px 38px rgba(0, 0, 0, 0.48);
  backdrop-filter: var(--blur);
}

.amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.amount-input input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.currency {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.summary {
  margin: 12px 4px 17px;
  padding: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.91rem;
  font-weight: 610;
  letter-spacing: -0.022em;
}

.summary-row + .summary-row {
  border-top: 1px solid var(--line-soft);
}

.summary-row strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 760;
}

.payments-actions {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 10px;
}

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

.ref-stat {
  min-height: 70px;
  padding: 8px 4px;
  background: transparent;
}

.ref-stat + .ref-stat {
  box-shadow: inset 1px 0 0 var(--line-soft);
  padding-left: 14px;
}

.ref-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  font-weight: 560;
}

.ref-stat strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.ref-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 0 0;
  box-shadow: inset 0 1px 0 var(--line-soft);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  letter-spacing: -0.015em;
}

.ref-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ref-breakdown {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ref-breakdown .summary-row {
  align-items: flex-start;
}

.order-actions {
  margin-top: 10px;
  text-align: left;
}

.help-link {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.012)),
    rgba(13, 13, 13, 0.94);
  text-align: left;
}

.empty-state {
  padding: 28px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.012)),
    rgba(13, 13, 13, 0.94);
  box-shadow: var(--inset-light), 0 18px 42px rgba(0, 0, 0, 0.52);
  backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex: 0 0 auto;
}

.pill .icon {
  width: 20px;
  height: 20px;
}

.quick-icon .icon {
  width: 24px;
  height: 24px;
}

.row-symbol .icon {
  width: 22px;
  height: 22px;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(376px, calc(100vw - 34px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01)),
    rgba(10, 10, 10, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 72px rgba(0, 0, 0, 0.78);
  backdrop-filter: var(--blur);
  transform: translateX(-50%);
}

.nav-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
}

.nav-button.active {
  color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(38, 38, 38, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 15px 35px rgba(0, 0, 0, 0.52);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(340px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 14, 0.92);
  box-shadow: var(--inset-light), var(--shadow-soft);
  backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 570;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.captcha-card {
  width: min(100%, 340px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.captcha-card h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.captcha-card img {
  width: 100%;
  min-height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.captcha-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.94);
}

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

.order-data-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.order-data-card {
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(11, 11, 11, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.order-data-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.order-data-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.94);
}

.order-data-icon .icon {
  width: 24px;
  height: 24px;
}

.order-data-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.35rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.order-data-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.order-data-body {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.order-data-body pre,
.order-data-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.order-data-body p {
  color: var(--muted);
}

.order-data-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.order-data-actions .ghost-button,
.order-data-actions .soft-button {
  width: 100%;
}

.txhash-overlay {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
}

.txhash-card {
  width: min(100%, 405px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.txhash-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.txhash-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.94);
}

.txhash-icon .icon {
  width: 24px;
  height: 24px;
}

.txhash-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.32rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.txhash-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.txhash-info,
.txhash-wallet,
.txhash-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.txhash-info,
.txhash-wallet {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.txhash-info span,
.txhash-wallet span,
.txhash-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.txhash-info strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.35rem;
  line-height: 1;
}

.txhash-wallet button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  line-height: 1.35;
  text-align: left;
  word-break: break-all;
}

.txhash-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  line-height: 1.35;
}

.txhash-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

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

.txhash-actions .ghost-button,
.txhash-actions .soft-button {
  width: 100%;
}

.modal-message {
  display: none;
  padding: 11px 13px;
  border: 1px solid rgba(255, 104, 111, 0.18);
  border-radius: 15px;
  background: rgba(255, 104, 111, 0.1);
  color: rgba(255, 151, 156, 0.98);
  font-size: 0.86rem;
  font-weight: 620;
  line-height: 1.35;
}

.modal-message.visible {
  display: block;
}

.modal-message[data-tone="success"] {
  border-color: rgba(40, 214, 127, 0.18);
  background: rgba(40, 214, 127, 0.1);
  color: rgba(116, 238, 174, 0.96);
}

.quantity-overlay {
  position: fixed;
  inset: 0;
  z-index: 76;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
}

.quantity-card {
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.quantity-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.quantity-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
}

.quantity-logo img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  border-radius: 50%;
}

.quantity-head h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.quantity-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.quantity-price-row,
.quantity-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.quantity-price-row span,
.quantity-total span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quantity-price-row strong,
.quantity-total strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.18rem;
  line-height: 1;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 10px;
  margin: 13px 0;
}

.quantity-stepper button,
.quantity-stepper input {
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 760;
  text-align: center;
  outline: none;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

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

.quantity-actions .ghost-button,
.quantity-actions .soft-button {
  width: 100%;
}

@media (max-width: 374px) {
  :root {
    --page-x: 14px;
  }

  .balance-value {
    font-size: clamp(4.35rem, 22vw, 5.8rem);
  }

  .quick-actions {
    gap: 10px;
  }

  .quick-action {
    min-height: 101px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .quick-icon {
    width: 45px;
    height: 45px;
  }

  .profile-balance .balance-value {
    font-size: clamp(4.25rem, 21vw, 5.35rem);
  }

  .product-card {
    padding: 16px;
  }

  .catalog-grid {
    gap: 11px;
    padding: 0 2px;
  }

  .bottom-nav {
    width: min(342px, calc(100vw - 28px));
    padding: 8px;
  }

  .nav-button {
    width: 47px;
    height: 47px;
  }
}


/* SBP reference pass: deeper black, thinner outlines, approved card typography */
:root {
  --surface-1: rgba(8, 8, 8, 0.94);
  --surface-2: rgba(12, 12, 12, 0.9);
  --surface-3: rgba(16, 16, 16, 0.86);
  --line: rgba(255, 255, 255, 0.075);
  --line-soft: rgba(255, 255, 255, 0.045);
  --green: #2bd66f;
  --red: #ff404b;
}

body {
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.app-shell {
  background: #000;
}

.brand-title {
  color: rgba(255, 255, 255, 0.46);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.screen-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.pill,
.quick-action,
.glass-panel,
.list-row,
.product-card,
.method-button,
.amount-input,
.help-link,
.empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.004)),
    rgba(5, 5, 5, 0.93);
  border-color: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pill,
.quick-action,
.product-card,
.list-row,
.method-button,
.help-link {
  overflow: hidden;
}

.product-card::before,
.method-button::before,
.help-link::before,
.list-row::before,
.quick-action::before,
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 70% 7%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 11px);
  opacity: 0.13;
  pointer-events: none;
}

.pill {
  min-height: 50px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 560;
}

.quick-action {
  min-height: 99px;
  color: rgba(255, 255, 255, 0.66);
}

.quick-icon {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.9);
}

.quick-label {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}

.section {
  margin-top: 34px;
}

.section-title {
  color: rgba(255, 255, 255, 0.48);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.list-row {
  min-height: 70px;
  border-radius: 28px;
  padding: 14px 15px;
}

.row-title {
  font-weight: 640;
  letter-spacing: -0.03em;
}

.row-meta,
.row-note {
  font-weight: 400;
}

.row-amount,
.row-status {
  font-weight: 520;
  letter-spacing: -0.03em;
}

.row-symbol .icon {
  width: 20px;
  height: 20px;
}

.catalog-grid {
  gap: 13px;
  padding: 0 8px;
}

.product-card {
  aspect-ratio: 1 / 1.06;
}

.product-price {
  color: var(--red);
  font-weight: 400;
}

.buy-button,
.soft-button,
.ghost-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    rgba(8, 8, 8, 0.94);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-weight: 560;
}

.method-button.selected {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(10, 10, 10, 0.96);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bottom-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.004)),
    rgba(5, 5, 5, 0.88);
  border-color: rgba(255, 255, 255, 0.075);
}

.nav-button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    rgba(22, 22, 22, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

@media (max-width: 374px) {
  .balance-card,
  .balance-card-content {
    min-height: 216px;
  }

  .balance-card-content {
    padding: 32px 27px 29px;
  }

  .balance-value {
    font-size: clamp(3.35rem, 17.2vw, 4.6rem);
  }

  .balance-label {
    font-size: 0.7rem;
  }

  .balance-id {
    font-size: 0.81rem;
  }

  .profile-balance .balance-value {
    font-size: clamp(3.05rem, 15.7vw, 4.25rem);
  }
}


/* real service logos + tighter-to-reference catalog spacing */
.balance-value {
  font-size: clamp(3.42rem, 16.4vw, 4.85rem);
  letter-spacing: -0.038em;
}

.balance-currency {
  letter-spacing: -0.04em;
}

.balance-cents {
  margin-left: 0.07em;
  letter-spacing: -0.018em;
}

.profile-balance .balance-value {
  font-size: clamp(3.12rem, 15vw, 4.35rem);
  letter-spacing: -0.038em;
}

.catalog-grid {
  gap: 11px;
  padding: 0 4px;
}

.product-card {
  min-height: 252px;
  aspect-ratio: auto;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 14px;
  padding: 15px 15px 16px;
  border-radius: 24px;
}

.product-card::after {
  display: none;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-logo,
.product-fav {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
}

.product-logo {
  width: 53px;
  height: 53px;
}

.product-logo img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  display: block;
}

.product-fav {
  width: 35px;
  height: 35px;
  color: rgba(255, 255, 255, 0.44);
}

.product-fav .icon {
  width: 18px;
  height: 18px;
}

.product-copy {
  display: grid;
  gap: 10px;
  min-height: 95px;
}

.product-name {
  font-size: 1.16rem;
  font-weight: 720;
  letter-spacing: -0.042em;
  line-height: 1.05;
}

.product-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.44;
}

.product-price {
  margin: 0;
  color: var(--red);
  font-size: 1.02rem;
  font-weight: 420;
  letter-spacing: -0.025em;
  line-height: 1;
}

.buy-button {
  min-height: 38px;
  gap: 9px;
  margin-top: 2px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 520;
}

.buy-button .icon {
  width: 17px;
  height: 17px;
}

.method-button {
  gap: 8px;
  flex-direction: column;
}

.method-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.method-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 374px) {
  .product-card {
    min-height: 238px;
    padding: 14px;
    border-radius: 22px;
    gap: 12px;
  }

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

  .product-logo img {
    width: 28px;
    height: 28px;
  }

  .product-copy {
    min-height: 92px;
  }

  .product-name {
    font-size: 1.04rem;
  }

  .product-desc {
    font-size: 0.8rem;
    line-height: 1.38;
  }
}


/* v5 polish: spacing, filters, equal cards, reference-like help page */
.balance-value {
  /* цифры больше не слипаются: меньше negative tracking + чуть меньше размер */
  font-size: clamp(3.2rem, 14.9vw, 4.35rem) !important;
  letter-spacing: 0.006em !important;
  font-weight: 100;
}

.balance-currency {
  display: inline-block;
  margin-right: 0.025em;
  letter-spacing: 0 !important;
}

.balance-cents {
  margin-left: 0.105em !important;
  letter-spacing: 0.005em !important;
}

.profile-balance .balance-value {
  font-size: clamp(3rem, 14vw, 4.05rem) !important;
  letter-spacing: 0.006em !important;
}

.screen-header {
  padding: 42px 8px 22px;
}

.catalog-header,
.help-header {
  padding-left: 8px;
  padding-right: 8px;
}

.screen-subtitle {
  max-width: 360px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.36;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 4px 18px;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-chip.active {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.018);
}

.catalog-grid {
  align-items: stretch;
  gap: 10px;
  padding: 0 4px;
}

.product-card {
  height: 286px;
  min-height: 286px;
  max-height: 286px;
  grid-template-rows: 54px 104px 20px 38px;
  gap: 12px;
  padding: 14px;
  border-radius: 23px;
}

.product-copy {
  min-height: 0;
  height: 104px;
  gap: 9px;
}

.product-name {
  min-height: 23px;
  font-size: 1.08rem;
  line-height: 1.06;
}

.product-desc {
  display: -webkit-box;
  min-height: 66px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  line-height: 1.38;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-logo {
  width: 51px;
  height: 51px;
}

.product-logo img {
  width: 30px;
  height: 30px;
}

.product-fav {
  width: 34px;
  height: 34px;
}

.buy-button {
  width: 100%;
  min-height: 38px;
  align-self: end;
}

.help .screen-title {
  font-size: 2.35rem;
  letter-spacing: -0.055em;
}

.help-header {
  padding-top: 64px;
  padding-bottom: 28px;
}

.help-list {
  display: grid;
  gap: 9px;
  padding: 0 4px;
}

.help-link {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: 60px 1fr 24px;
  align-items: center;
  gap: 17px;
  padding: 14px 19px 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.078);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.003)),
    rgba(4, 4, 4, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  text-align: left;
}

.help-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.01)),
    rgba(18, 18, 18, 0.84);
  color: rgba(255, 255, 255, 0.92);
}

.help-icon .icon {
  width: 28px;
  height: 28px;
}

.help-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.help-title {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.08rem;
  font-weight: 520;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.help-note {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.help-arrow {
  color: rgba(255, 255, 255, 0.55);
}

.help-arrow .icon {
  width: 21px;
  height: 21px;
}

.bottom-nav {
  width: min(396px, calc(100vw - 28px));
  min-height: 72px;
  gap: 4px;
  padding: 8px;
}

.nav-button {
  width: 100%;
  height: 56px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
}

.nav-button .icon {
  width: 21px;
  height: 21px;
}

.nav-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

@media (max-width: 374px) {
  .balance-value {
    font-size: clamp(2.86rem, 13.9vw, 3.8rem) !important;
  }

  .product-card {
    height: 270px;
    min-height: 270px;
    max-height: 270px;
    grid-template-rows: 49px 101px 20px 36px;
    padding: 12px;
  }

  .product-copy {
    height: 101px;
  }

  .product-logo {
    width: 46px;
    height: 46px;
  }

  .product-logo img {
    width: 27px;
    height: 27px;
  }

  .help-link {
    min-height: 88px;
    grid-template-columns: 54px 1fr 22px;
    gap: 14px;
    padding-right: 16px;
  }

  .help-icon {
    width: 52px;
    height: 52px;
  }

  .bottom-nav {
    width: min(358px, calc(100vw - 24px));
  }
}


/* v6 final polish: cleaner SBP direction, order layout, help icons */
.balance-value {
  /* more air between digits */
  font-size: clamp(2.9rem, 13.2vw, 3.95rem) !important;
  letter-spacing: 0.028em !important;
}

.balance-currency {
  margin-right: 0.055em !important;
}

.balance-cents {
  margin-left: 0.16em !important;
  letter-spacing: 0.018em !important;
}

.profile-balance .balance-value {
  font-size: clamp(2.76rem, 12.8vw, 3.72rem) !important;
  letter-spacing: 0.026em !important;
}

.list-row::before,
.quick-action::before,
.product-card::before,
.method-button::before,
.help-link::before,
.pill::before {
  opacity: 0.055 !important;
}

.order-row {
  min-height: 122px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 18px 17px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.003)),
    rgba(4, 4, 4, 0.96);
}

.order-symbol {
  align-self: center;
}

.order-main {
  display: grid;
  gap: 7px;
  align-content: center;
}

.order-row .row-title,
.order-row .row-meta,
.order-row .row-note {
  margin: 0;
}

.order-row .row-title {
  font-size: 1.04rem;
  line-height: 1.08;
}

.order-row .row-meta,
.order-row .row-note {
  font-size: 0.93rem;
  line-height: 1.05;
}

.order-actions {
  display: block;
  margin-top: 6px;
  line-height: 1;
}

.order-button {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 560;
}

.order-amount {
  align-self: center;
  padding-left: 8px;
  font-size: 1.02rem;
  font-weight: 540;
}

.help-list {
  gap: 8px;
}

.help-link {
  min-height: 92px;
  grid-template-columns: 58px 1fr 24px;
  gap: 17px;
  padding: 13px 18px 13px 13px;
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.002)),
    rgba(3, 3, 3, 0.97);
  border-color: rgba(255, 255, 255, 0.065);
}

.help-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.006)),
    rgba(13, 13, 13, 0.92);
  color: rgba(255, 255, 255, 0.88);
}

.help-icon .icon {
  width: 25px;
  height: 25px;
}

.help-title {
  font-size: 1.05rem;
  font-weight: 520;
}

.help-note {
  font-size: 0.91rem;
  line-height: 1.3;
}

.help-arrow {
  color: rgba(255, 255, 255, 0.44);
}

/* closer to SBP: less gray plastic, more black surface */
.pill,
.quick-action,
.glass-panel,
.list-row,
.product-card,
.method-button,
.amount-input,
.help-link,
.empty-state {
  border-color: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.bottom-nav {
  border-color: rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.004)),
    rgba(3, 3, 3, 0.9);
}

.nav-button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(18, 18, 18, 0.95);
}

@media (max-width: 374px) {
  .balance-value {
    font-size: clamp(2.58rem, 12.6vw, 3.42rem) !important;
  }

  .order-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    min-height: 116px;
    padding: 16px 14px;
  }

  .order-button {
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .help-link {
    min-height: 88px;
  }
}


/* v7: finish all tabs in one SBP-like system */
.screen-topbar {
  height: 44px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin: 0 0 26px;
}

.topbar-title {
  justify-self: center;
  color: rgba(255, 255, 255, 0.46);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1;
}

.topbar-menu {
  width: 34px;
  height: 34px;
  justify-self: end;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  padding: 0;
}

.topbar-menu .icon {
  width: 18px;
  height: 18px;
}

.screen-header {
  padding: 22px 8px 22px;
}

.home-hero {
  margin-top: -6px;
}

.catalog-header,
.orders-header,
.profile-header,
.help-header {
  padding-top: 12px;
}

.orders-list,
.list-surface {
  padding-left: 4px;
  padding-right: 4px;
}

/* Home tab finish */
.action-pills {
  padding: 0 4px;
}

.quick-actions {
  padding: 0 4px;
}

/* Profile tab finish */
.profile-card {
  min-height: 80px;
  display: grid;
  grid-template-columns: 56px 1fr 22px;
  align-items: center;
  gap: 14px;
  margin: 0 4px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.002)),
    rgba(3, 3, 3, 0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.026);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.13), transparent 36%),
    rgba(16, 16, 16, 0.92);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
}

.profile-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-card .profile-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.profile-chevron {
  color: rgba(255, 255, 255, 0.38);
}

.profile-chevron .icon {
  width: 18px;
  height: 18px;
}

.profile-balance {
  margin-top: 18px;
  padding: 0 4px;
}

.profile .section.compact {
  margin-top: 26px;
}

.payment-methods,
.deposit-form,
.profile .section .list-surface,
.profile .glass-panel {
  margin-left: 4px;
  margin-right: 4px;
}

.payment-methods {
  gap: 8px;
}

.method-button {
  min-height: 84px;
  border-radius: 23px;
}

.amount-input {
  min-height: 56px;
}

.summary {
  margin-left: 6px;
  margin-right: 6px;
}

/* Orders tab finish */
.order-filters {
  padding-bottom: 16px;
}

.order-row {
  position: relative;
}

.order-row .row-title {
  max-width: 100%;
}

.order-row .row-note {
  color: rgba(255, 255, 255, 0.54);
}

.order-button {
  background: rgba(255, 255, 255, 0.026);
}

/* Help tab finish */
.help-header {
  padding-bottom: 26px;
}

.help .screen-subtitle {
  max-width: 310px;
  font-size: 1.02rem;
  line-height: 1.48;
}

.help-list {
  padding-left: 4px;
  padding-right: 4px;
}

/* Universal alignment */
.screen-title {
  line-height: 0.98;
}

.section-title {
  margin-left: 4px;
}

@media (max-width: 374px) {
  .screen-topbar {
    margin-bottom: 22px;
  }

  .topbar-title {
    font-size: 0.86rem;
  }

  .profile-card {
    grid-template-columns: 52px 1fr 20px;
    gap: 12px;
    padding: 11px 13px;
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
  }

  .filter-chip {
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* v8: working catalog filters, no favorites, better payments, help detail */
.product-top {
  justify-content: flex-start !important;
}

.product-fav {
  display: none !important;
}

.empty-catalog {
  min-height: 238px;
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 28px 18px;
  margin: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.002)),
    rgba(3, 3, 3, 0.97);
  text-align: center;
}

.empty-catalog-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.empty-catalog-icon .icon {
  width: 26px;
  height: 26px;
}

.empty-catalog strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.empty-catalog span:last-child {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.9rem;
  line-height: 1.32;
}

.payment-row {
  min-height: 132px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 18px 18px;
  border-radius: 30px;
}

.payment-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.payment-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
}

.payment-head .row-title {
  min-width: 0;
}

.payment-head .row-amount {
  max-width: none;
  font-size: 0.98rem;
  font-weight: 520;
  text-align: right;
}

.payments-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.payments-actions .ghost-button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 540;
}

.help-detail {
  padding: 0 4px;
}

.back-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 32px 4px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.003)),
    rgba(4, 4, 4, 0.96);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 560;
}

.back-pill .icon {
  width: 18px;
  height: 18px;
}

.help-detail-hero {
  display: grid;
  gap: 13px;
  padding: 0 4px 26px;
}

.help-detail-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.004)),
    rgba(12, 12, 12, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.help-detail-icon .icon {
  width: 30px;
  height: 30px;
}

.help-detail-card {
  display: grid;
  gap: 15px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0.003)),
    rgba(3, 3, 3, 0.97);
}

.help-detail-card h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.25rem;
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.help-detail-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.5;
}

.help-detail-card .soft-button {
  margin-top: 6px;
}

@media (max-width: 374px) {
  .payment-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 14px;
  }

  .payments-actions {
    gap: 6px;
  }

  .payments-actions .ghost-button {
    font-size: 0.72rem;
    padding: 0 6px;
  }

  .payment-head {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .payment-head .row-amount {
    text-align: left;
  }
}


/* v9 content adaptation from original app: dynamic filters, real payment methods, original help content */
.payment-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.method-button {
  min-height: 82px;
  padding: 10px 6px;
}

.method-logo.method-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.026);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.method-name {
  font-size: 0.76rem;
  line-height: 1.12;
}

.method-extra {
  display: block;
  margin-top: 3px;
}

.empty-catalog strong {
  max-width: 280px;
}

.help-list {
  margin-bottom: 18px;
}

/* Keep three help sections visually balanced after removing extra items */
.help-link {
  min-height: 98px;
}

@media (max-width: 374px) {
  .method-name {
    font-size: 0.7rem;
  }

  .method-button {
    min-height: 78px;
  }
}


/* v10: SBP-like top right tabs + Pro subscriptions tab */
.screen-topbar {
  height: 62px;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-mark {
  min-width: 0;
  justify-self: start;
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
}

.brand-main {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.52rem;
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-transform: lowercase;
}

.brand-sub {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-action {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    rgba(10, 10, 10, 0.92);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.038);
}

.topbar-action .icon {
  width: 22px;
  height: 22px;
}

.topbar-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #090909;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
}

.topbar-title,
.topbar-menu,
.topbar-spacer {
  display: none !important;
}

.nav-button[data-tab="subscriptions"].active {
  color: rgba(255, 255, 255, 0.98);
}

.pro-card {
  position: relative;
  overflow: hidden;
  margin: 0 4px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 31px;
  background:
    radial-gradient(circle at 78% 0%, rgba(255, 255, 255, 0.09), transparent 27%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.003)),
    rgba(3, 3, 3, 0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/balance-card-bg.png") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.pro-card > * {
  position: relative;
}

.pro-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 38px;
}

.pro-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.026);
  color: rgba(255, 255, 255, 0.92);
}

.pro-badge .icon {
  width: 25px;
  height: 25px;
}

.pro-status {
  min-height: 33px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  font-weight: 500;
}

.pro-card h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: 3.05rem;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.pro-card p {
  max-width: 280px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.38;
}

.pro-price {
  margin: 28px 0 20px;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.25rem;
  font-weight: 200;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pro-card.is-active {
  border-color: rgba(43, 214, 111, 0.28);
}

.pro-card.is-active .pro-status {
  color: var(--green);
  border-color: rgba(43, 214, 111, 0.26);
}

.pro-card button:disabled {
  opacity: 0.72;
  cursor: default;
}

.benefit-list {
  display: grid;
  gap: 9px;
  padding: 0 4px;
}

.benefit-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0.002)),
    rgba(3, 3, 3, 0.96);
}

.benefit-row span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  color: rgba(255, 255, 255, 0.86);
}

.benefit-row .icon {
  width: 20px;
  height: 20px;
}

.benefit-row strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.product-price .old-price {
  color: rgba(255, 255, 255, 0.36);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-price small {
  width: 100%;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 520;
  letter-spacing: -0.015em;
}

@media (max-width: 374px) {
  .screen-topbar {
    gap: 10px;
  }

  .brand-main {
    font-size: 1.28rem;
  }

  .topbar-action {
    width: 43px;
    height: 43px;
    border-radius: 15px;
  }

  .topbar-action .icon {
    width: 20px;
    height: 20px;
  }

  .pro-card {
    padding: 21px;
  }

  .pro-card h2 {
    font-size: 2.65rem;
  }
}


/* v11: compact order cards, move details button out of text flow */
.order-row {
  min-height: 94px !important;
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  gap: 13px !important;
  padding: 14px 15px !important;
  border-radius: 25px !important;
  align-items: center !important;
}

.order-symbol {
  width: 42px !important;
  height: 42px !important;
}

.order-symbol .icon {
  width: 18px !important;
  height: 18px !important;
}

.order-main {
  gap: 5px !important;
  align-content: center !important;
}

.order-row .row-title {
  font-size: 0.98rem !important;
  line-height: 1.05 !important;
}

.order-row .row-meta,
.order-row .row-note {
  font-size: 0.86rem !important;
  line-height: 1.05 !important;
}

.order-side {
  min-width: 78px;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 10px;
}

.order-amount {
  padding-left: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1 !important;
}

.order-actions {
  display: none !important;
}

.order-button {
  min-height: 30px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 560 !important;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.004)),
    rgba(8, 8, 8, 0.96) !important;
}

@media (max-width: 374px) {
  .order-row {
    min-height: 88px !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 13px 12px !important;
    border-radius: 23px !important;
  }

  .order-symbol {
    width: 38px !important;
    height: 38px !important;
  }

  .order-row .row-title {
    font-size: 0.9rem !important;
  }

  .order-row .row-meta,
  .order-row .row-note {
    font-size: 0.78rem !important;
  }

  .order-side {
    min-width: 66px;
    gap: 8px;
  }

  .order-button {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 0.7rem !important;
  }
}


/* v12: no subscriptions in bottom nav, no ? pill, light theme */
.action-pills {
  grid-template-columns: 0.92fr 1.35fr !important;
  max-width: 100%;
}

.theme-toggle {
  color: rgba(255, 255, 255, 0.9);
}

body.light-theme {
  --line: rgba(0, 0, 0, 0.085);
  --line-soft: rgba(0, 0, 0, 0.055);
  --green: #18a957;
  --red: #df2631;
  background:
    radial-gradient(circle at 20% -15%, rgba(255, 255, 255, 0.95), transparent 34%),
    #f4f4f1;
  color: #111;
}

body.light-theme .app-shell {
  background:
    radial-gradient(circle at 30% -10%, rgba(255, 255, 255, 0.96), transparent 35%),
    #f4f4f1;
}

body.light-theme .brand-main,
body.light-theme .screen-title,
body.light-theme .row-title,
body.light-theme .product-name,
body.light-theme .profile-name,
body.light-theme .help-title,
body.light-theme .help-detail-card h2,
body.light-theme .pro-card h2,
body.light-theme .ref-stat strong,
body.light-theme .summary-row strong,
body.light-theme .benefit-row strong {
  color: rgba(0, 0, 0, 0.88);
}

body.light-theme .brand-sub,
body.light-theme .topbar-title,
body.light-theme .brand-title,
body.light-theme .screen-subtitle,
body.light-theme .row-meta,
body.light-theme .row-note,
body.light-theme .product-desc,
body.light-theme .help-note,
body.light-theme .help-detail-card p,
body.light-theme .pro-card p,
body.light-theme .section-title,
body.light-theme .quick-label,
body.light-theme .balance-id,
body.light-theme .ref-stat span,
body.light-theme .summary-row,
body.light-theme .empty-catalog span:last-child {
  color: rgba(0, 0, 0, 0.48);
}

body.light-theme .topbar-action,
body.light-theme .pill,
body.light-theme .quick-action,
body.light-theme .glass-panel,
body.light-theme .list-row,
body.light-theme .product-card,
body.light-theme .method-button,
body.light-theme .amount-input,
body.light-theme .help-link,
body.light-theme .empty-state,
body.light-theme .filter-chip,
body.light-theme .buy-button,
body.light-theme .soft-button,
body.light-theme .ghost-button,
body.light-theme .bottom-nav,
body.light-theme .profile-card,
body.light-theme .pro-card,
body.light-theme .benefit-row,
body.light-theme .empty-catalog,
body.light-theme .help-detail-card,
body.light-theme .back-pill {
  border-color: rgba(0, 0, 0, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(245, 245, 242, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 44px rgba(0, 0, 0, 0.07) !important;
}

body.light-theme .balance-card {
  border-color: rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    #ededeb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 22px 50px rgba(0, 0, 0, 0.09);
}

body.light-theme .balance-card::before {
  opacity: 0.14;
  filter: invert(1);
}

body.light-theme .balance-card::after {
  background:
    radial-gradient(circle at 28% 7%, rgba(255, 255, 255, 0.65), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 45%),
    rgba(255, 255, 255, 0.12);
}

body.light-theme .balance-label,
body.light-theme .balance-value,
body.light-theme .balance-cents {
  color: rgba(0, 0, 0, 0.86);
}

body.light-theme .topbar-action,
body.light-theme .pill,
body.light-theme .quick-icon,
body.light-theme .help-icon,
body.light-theme .profile-chevron,
body.light-theme .nav-button,
body.light-theme .nav-button.active,
body.light-theme .product-logo,
body.light-theme .row-symbol,
body.light-theme .back-pill,
body.light-theme .theme-toggle {
  color: rgba(0, 0, 0, 0.68);
}

body.light-theme .topbar-badge {
  background: #111;
  color: #fff;
}

body.light-theme .filter-chip.active {
  color: rgba(0, 0, 0, 0.86);
  border-color: rgba(0, 0, 0, 0.55) !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

body.light-theme .nav-button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38)),
    rgba(235, 235, 232, 0.92) !important;
}

body.light-theme .product-price,
body.light-theme .negative {
  color: var(--red);
}

body.light-theme .positive,
body.light-theme .method-extra {
  color: var(--green);
}

body.light-theme .row-symbol.green {
  color: var(--green);
  border-color: var(--green) !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

body.light-theme .row-symbol.red {
  color: var(--red);
  border-color: var(--red) !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

body.light-theme .product-logo img[src*="chatgpt"],
body.light-theme .product-logo img[src*="capcut"],
body.light-theme .product-logo img[src*="notion"] {
  filter: invert(1);
}

body.light-theme .toast {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 374px) {
  .action-pills {
    grid-template-columns: 0.9fr 1.2fr !important;
  }
}


/* v13: corrected light theme readability + 4-tab bottom nav layout */
.bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: min(356px, calc(100vw - 28px)) !important;
  justify-items: stretch;
}

.nav-button {
  width: 100% !important;
}

body.light-theme,
body.light-theme .screen {
  color: rgba(0, 0, 0, 0.86);
}

body.light-theme .bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: min(356px, calc(100vw - 28px)) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
    rgba(245, 245, 242, 0.94) !important;
  border-color: rgba(0, 0, 0, 0.075) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 42px rgba(0, 0, 0, 0.11) !important;
}

body.light-theme .nav-button {
  color: rgba(0, 0, 0, 0.52) !important;
}

body.light-theme .nav-button.active {
  color: rgba(0, 0, 0, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.64)),
    rgba(238, 238, 235, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .nav-label {
  color: inherit !important;
}

body.light-theme .nav-button .icon,
body.light-theme .topbar-action .icon,
body.light-theme .pill .icon,
body.light-theme .quick-icon .icon,
body.light-theme .buy-button .icon,
body.light-theme .soft-button .icon,
body.light-theme .ghost-button .icon {
  color: currentColor !important;
}

/* Light text system: force all missed labels to readable dark shades */
body.light-theme .pill,
body.light-theme .pill span,
body.light-theme .quick-action,
body.light-theme .quick-label,
body.light-theme .filter-chip,
body.light-theme .product-name,
body.light-theme .method-name,
body.light-theme .currency,
body.light-theme .amount-input input,
body.light-theme .summary-row strong,
body.light-theme .buy-button,
body.light-theme .soft-button,
body.light-theme .ghost-button,
body.light-theme .payment-head,
body.light-theme .help-title,
body.light-theme .profile-card,
body.light-theme .profile-card .row-meta,
body.light-theme .ref-link span,
body.light-theme .ref-stat strong,
body.light-theme .order-button,
body.light-theme .empty-catalog strong {
  color: rgba(0, 0, 0, 0.78) !important;
}

body.light-theme .screen-subtitle,
body.light-theme .section-title,
body.light-theme .row-meta,
body.light-theme .row-note,
body.light-theme .product-desc,
body.light-theme .help-note,
body.light-theme .method-extra,
body.light-theme .ref-stat span,
body.light-theme .summary-row span,
body.light-theme .balance-id,
body.light-theme .empty-catalog span:last-child {
  color: rgba(0, 0, 0, 0.48) !important;
}

body.light-theme .screen-title,
body.light-theme .brand-main,
body.light-theme .balance-value,
body.light-theme .balance-label,
body.light-theme .row-title,
body.light-theme .profile-name,
body.light-theme .pro-card h2,
body.light-theme .help-detail-card h2 {
  color: rgba(0, 0, 0, 0.9) !important;
}

body.light-theme .topbar-action,
body.light-theme .pill,
body.light-theme .quick-action,
body.light-theme .product-card,
body.light-theme .list-row,
body.light-theme .method-button,
body.light-theme .amount-input,
body.light-theme .help-link,
body.light-theme .profile-card,
body.light-theme .glass-panel,
body.light-theme .pro-card,
body.light-theme .benefit-row,
body.light-theme .empty-catalog,
body.light-theme .help-detail-card,
body.light-theme .back-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    rgba(246, 246, 243, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.075) !important;
}

body.light-theme .quick-icon,
body.light-theme .help-icon,
body.light-theme .product-logo,
body.light-theme .method-logo.method-mark,
body.light-theme .profile-avatar,
body.light-theme .empty-catalog-icon,
body.light-theme .benefit-row span:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 241, 0.88)),
    rgba(233, 233, 229, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: rgba(0, 0, 0, 0.84) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .quick-icon .icon,
body.light-theme .help-icon .icon,
body.light-theme .empty-catalog-icon .icon,
body.light-theme .benefit-row span:first-child .icon {
  opacity: 0.94;
}

body.light-theme .product-logo img,
body.light-theme .method-logo img {
  opacity: 1;
}

body.light-theme .amount-input input::placeholder {
  color: rgba(0, 0, 0, 0.34) !important;
}

body.light-theme .product-price,
body.light-theme .negative {
  color: var(--red) !important;
}

body.light-theme .positive,
body.light-theme .method-extra,
body.light-theme .product-price small {
  color: var(--green) !important;
}

/* Browser hover tooltip looked weird on desktop because of title attributes */
.nav-button[title] {
  pointer-events: auto;
}

@media (max-width: 374px) {
  .bottom-nav,
  body.light-theme .bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: min(332px, calc(100vw - 24px)) !important;
  }
}


/* v14: smaller payment card, no balance cents, distinct light-theme amount badge, order product logos */
.payment-row {
  min-height: 100px !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: 24px !important;
}

.payment-main {
  gap: 3px !important;
}

.payment-head {
  gap: 8px !important;
  align-items: flex-start !important;
}

.payment-head .row-title {
  line-height: 1.12 !important;
}

.payment-head .row-amount {
  font-size: 0.93rem !important;
  font-weight: 650 !important;
}

.payments-actions {
  margin-top: 4px !important;
  gap: 6px !important;
}

.payments-actions .ghost-button {
  min-height: 29px !important;
  font-size: 0.74rem !important;
  padding: 0 7px !important;
}

.product-order-logo,
.crown-order-symbol {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28) !important;
}

.product-order-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.crown-order-symbol {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.light-theme .payment-head .row-amount {
  color: var(--green) !important;
  padding: 5px 10px;
  border: 1px solid rgba(24, 169, 87, 0.24);
  border-radius: 999px;
  background: rgba(24, 169, 87, 0.08);
}

body.light-theme .product-order-logo,
body.light-theme .crown-order-symbol {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.58)),
    rgba(236, 236, 233, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .product-order-logo img[src*="chatgpt"],
body.light-theme .product-order-logo img[src*="capcut"],
body.light-theme .product-order-logo img[src*="notion"] {
  filter: invert(1);
}

@media (max-width: 374px) {
  .payment-row {
    min-height: 94px !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  .payment-head {
    gap: 5px !important;
  }

  .payment-head .row-amount {
    font-size: 0.84rem !important;
  }

  .payments-actions .ghost-button {
    min-height: 27px !important;
    font-size: 0.68rem !important;
    padding: 0 5px !important;
  }

  .product-order-logo img {
    width: 22px;
    height: 22px;
  }
}


/* v19: equal home pills + more realistic hanging tag charms on home logo */
.action-pills {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.action-pills .pill {
  width: 100%;
  justify-content: center;
}

.brand-wordmark {
  position: relative;
  display: inline-block;
  width: max-content;
}

.brand-charms {
  position: absolute;
  left: 82%;
  top: 42%;
  width: 31px;
  height: 46px;
  pointer-events: none;
}

.brand-charms-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-charms-svg .chain-stroke {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 1.3 2.1;
}

.brand-charms-svg .tag-rect {
  stroke-width: 1;
}

.brand-charms-svg .tag-back {
  fill: rgba(232, 232, 232, 0.96);
  stroke: rgba(255, 255, 255, 0.50);
}

.brand-charms-svg .tag-front {
  fill: rgba(245, 245, 245, 0.98);
  stroke: rgba(255, 255, 255, 0.56);
}

.brand-charms-svg .tag-hole-ring {
  fill: rgba(228, 228, 228, 0.95);
  stroke: rgba(72, 72, 72, 0.46);
  stroke-width: 0.75;
}

.brand-charms-svg .tag-hole-core {
  fill: rgba(120, 120, 120, 0.9);
}

body.light-theme .brand-charms-svg .chain-stroke {
  stroke: rgba(85, 85, 85, 0.72);
}

body.light-theme .brand-charms-svg .tag-back {
  fill: rgba(223, 223, 219, 0.98);
  stroke: rgba(110, 110, 110, 0.22);
}

body.light-theme .brand-charms-svg .tag-front {
  fill: rgba(236, 236, 232, 0.99);
  stroke: rgba(110, 110, 110, 0.24);
}

body.light-theme .brand-charms-svg .tag-hole-ring {
  fill: rgba(228, 228, 223, 0.98);
  stroke: rgba(82, 82, 82, 0.40);
}

body.light-theme .brand-charms-svg .tag-hole-core {
  fill: rgba(108, 108, 108, 0.86);
}

@media (max-width: 374px) {
  .brand-charms {
    left: 79%;
    top: 48%;
    transform: scale(0.92);
    transform-origin: top left;
  }
}

@media (max-width: 374px) {
  .brand-charms { left: 79%; top: 44%; width: 29px; height: 43px; transform: scale(0.92); transform-origin: top left; }
}


/* v30: product detail screen + tidier catalog spacing */
.product-card {
  cursor: pointer;
}

.product-open-hint {
  margin-left: auto;
  align-self: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.product-price {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 660;
}

.product-price .old-price {
  color: rgba(255, 255, 255, 0.36) !important;
}

.catalog-detail {
  display: grid;
  gap: 16px;
  padding: 2px 4px 0;
}

.product-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 12, 0.95);
  box-shadow: var(--inset-light), 0 22px 52px rgba(0, 0, 0, 0.52);
}

.product-detail-hero {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.product-detail-logo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.product-detail-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.product-detail-head {
  min-width: 0;
}

.product-detail-head .screen-title {
  margin-bottom: 7px;
  font-size: 1.72rem;
}

.product-detail-head .screen-subtitle {
  margin: 0;
}

.product-detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-detail-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.product-detail-price-block,
.product-detail-status {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  text-transform: uppercase;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-detail-price strong,
.product-detail-status strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.18rem;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.detail-old-price {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.92rem;
  text-decoration: line-through;
}

.product-detail-surface {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.product-detail-surface h2 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-feature-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.product-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.product-detail-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0 2px;
}

.product-detail-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.product-detail-note strong {
  color: rgba(255, 255, 255, 0.92);
}

.product-detail-actions {
  display: grid;
  gap: 10px;
}

body.light-theme .product-open-hint {
  color: rgba(0, 0, 0, 0.34);
}

body.light-theme .product-price {
  color: rgba(24, 24, 24, 0.88) !important;
}

body.light-theme .product-price .old-price {
  color: rgba(0, 0, 0, 0.34) !important;
}

body.light-theme .product-detail-card,
body.light-theme .product-detail-price-block,
body.light-theme .product-detail-status,
body.light-theme .product-detail-surface {
  border-color: rgba(0, 0, 0, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(245, 245, 242, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 44px rgba(176, 171, 162, 0.18);
}

body.light-theme .product-detail-chip {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.56);
}

/* v66: known ElevenLabs mark and truly empty state for unknown services */
.product-top.has-no-logo {
  justify-content: flex-end !important;
  min-height: 53px;
}

.product-detail-hero.has-no-logo {
  grid-template-columns: minmax(0, 1fr);
}

.order-symbol-spacer {
  width: 42px;
  height: 42px;
  display: block;
}

.product-logo img[src*="elevenlabs.webp"],
.product-detail-logo img[src*="elevenlabs.webp"],
.product-order-logo img[src*="elevenlabs.webp"] {
  width: 88%;
  height: 88%;
  border-radius: 0;
  object-fit: contain;
}

body.light-theme .detail-label,
body.light-theme .product-detail-note p,
body.light-theme .product-feature-list li,
body.light-theme .product-detail-head .screen-subtitle {
  color: rgba(0, 0, 0, 0.5);
}

body.light-theme .product-detail-price strong,
body.light-theme .product-detail-status strong,
body.light-theme .product-detail-surface h2,
body.light-theme .product-detail-note strong,
body.light-theme .product-detail-head .screen-title {
  color: rgba(17, 17, 17, 0.92);
}

body.light-theme .detail-old-price {
  color: rgba(0, 0, 0, 0.34);
}

body.light-theme .product-feature-list li::before {
  background: rgba(0, 0, 0, 0.24);
}

.home-profile-card {
  width: 100%;
  margin: 14px 0 0;
  text-align: left;
  cursor: pointer;
}

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

.product-spec-card {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.product-spec-label {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.product-spec-value {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

body.light-theme .product-spec-card {
  border-color: rgba(0, 0, 0, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    rgba(245, 245, 242, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 44px rgba(176, 171, 162, 0.18);
}

body.light-theme .product-spec-label {
  color: rgba(0, 0, 0, 0.5);
}

body.light-theme .product-spec-value {
  color: rgba(17, 17, 17, 0.92);
}

@media (max-width: 374px) {
  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .product-spec-card {
    min-height: 82px;
  }
}

@media (max-width: 374px) {
  .product-detail-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .product-detail-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .product-detail-logo img {
    width: 34px;
    height: 34px;
  }

  .product-detail-head .screen-title {
    font-size: 1.5rem;
  }

  .product-detail-price-row {
    grid-template-columns: 1fr;
  }
}


/* v31: catalog search + help telegram/reviews actions */
.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  margin: 4px 0 14px;
  padding: 0 22px 0 68px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)), rgba(12, 12, 12, 0.95);
  box-shadow: var(--inset-light), 0 16px 36px rgba(0, 0, 0, 0.36);
}

.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.catalog-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.catalog-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%);
}

.catalog-search-icon .icon,
.catalog-search-icon svg {
  width: 28px;
  height: 28px;
}

.help-quick-links {
  display: grid;
  gap: 12px;
  margin: 2px 0 16px;
}

.help-quick-button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), rgba(14, 14, 14, 0.94);
  box-shadow: var(--inset-light), 0 16px 34px rgba(0,0,0,0.28);
  color: inherit;
  text-align: left;
}

.help-quick-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

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

.help-quick-copy strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.98rem;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.help-quick-copy small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  letter-spacing: -0.02em;
}

.help-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body.light-theme .catalog-search {
  border-color: rgba(0, 0, 0, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.72)), rgba(244, 244, 241, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 14px 30px rgba(176,171,162,0.18);
}

body.light-theme .catalog-search input {
  color: rgba(17, 17, 17, 0.92);
}

body.light-theme .catalog-search input::placeholder {
  color: rgba(0, 0, 0, 0.42);
}

body.light-theme .catalog-search-icon {
  color: rgba(25, 25, 25, 0.8);
}

body.light-theme .help-quick-button {
  border-color: rgba(0, 0, 0, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.74)), rgba(244,244,241,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 14px 28px rgba(176,171,162,0.16);
}

body.light-theme .help-quick-icon {
  border-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(24, 24, 24, 0.84);
}

body.light-theme .help-quick-copy strong {
  color: rgba(17, 17, 17, 0.92);
}

body.light-theme .help-quick-copy small {
  color: rgba(0, 0, 0, 0.48);
}

@media (max-width: 374px) {
  .catalog-search {
    min-height: 62px;
    padding-left: 60px;
  }

  .catalog-search input {
    font-size: 0.96rem;
  }

  .catalog-search-icon {
    left: 19px;
    width: 24px;
    height: 24px;
  }

  .catalog-search-icon .icon,
  .catalog-search-icon svg {
    width: 24px;
    height: 24px;
  }
}


.product-detail-price-row.single-price {
  grid-template-columns: 1fr;
}

.product-detail-price-row.single-price .product-detail-price-block {
  width: 100%;
}

.help-list {
  margin-top: 4px;
}

/* v31: keep discounted catalog prices compact and away from the buy button */
.product-card .product-price {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 7px;
  row-gap: 4px;
  margin: 8px 0 2px !important;
  line-height: 1 !important;
}

.product-card .product-price .old-price {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .product-price > span:not(.old-price) {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .product-price small {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(43, 214, 111, 0.12);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.product-card .buy-button {
  margin-top: 4px;
}

@media (max-width: 374px) {
  .product-card .product-price {
    min-height: 40px;
    column-gap: 5px;
  }

  .product-card .product-price .old-price,
  .product-card .product-price > span:not(.old-price) {
    font-size: 0.9rem;
  }

  .product-card .product-price small {
    padding-inline: 7px;
    font-size: 0.64rem;
  }
}

/* v32: discount badge is out of the price flow, so it cannot collide with the button */
.product-card:has(.product-price small) {
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  min-height: 274px;
  display: grid;
  grid-template-rows: 54px minmax(80px, 1fr) auto 38px;
  align-content: stretch;
  gap: 10px;
  overflow: hidden;
}

.product-card:has(.product-price small)::after {
  bottom: 62px;
}

/* v57: cleaner product text spacing */
.product-card .product-copy {
  gap: 13px;
}

.product-card .product-name {
  margin-bottom: 2px;
  line-height: 1.1;
}

.product-card .product-desc {
  padding-top: 1px;
}

.product-card.is-out-of-stock {
  opacity: 0.72;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 25px;
  max-width: 58px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 104, 111, 0.13);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-button:disabled,
.soft-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.product-detail-surface p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.product-card:has(.product-price small) .product-price {
  min-height: 22px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 8px !important;
}

.product-card:has(.product-price small) .product-price small {
  display: none;
}

.product-card:has(.product-price small) .buy-button {
  margin-top: 0;
}

@media (max-width: 374px) {
  .product-card:has(.product-price small) {
    min-height: 264px;
    padding-inline: 14px;
  }
}

/* v33: discounted cards must stay inside their catalog grid cells */
.catalog-grid {
  overflow: hidden;
}

.catalog-grid > .product-card {
  min-width: 0;
  justify-self: stretch;
}

.product-pro-badge {
  margin-left: auto;
  align-self: center;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(43, 214, 111, 0.17);
  color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.product-card:has(.product-pro-badge) .product-open-hint {
  display: none;
}

/* v43: restore the accepted SVG tag on home only */
.app-shell,
.app,
.screen,
.screen.active {
  overflow: visible;
}

.screen-topbar,
.brand-mark,
.brand-wordmark {
  overflow: visible;
}

.screen-topbar {
  position: relative;
  z-index: 20;
}

.brand-mark {
  position: relative;
  z-index: 30;
}

.topbar-actions {
  position: relative;
  z-index: 1;
}

.brand-wordmark {
  padding-right: 0;
}

.brand-main {
  position: relative;
  display: inline-block;
  padding-right: 20px;
}

.brand-charms {
  position: absolute;
  display: block;
  left: calc(100% - 31px);
  right: auto;
  top: 12px;
  width: 23px;
  height: 38px;
  transform: none;
  transform-origin: center;
  pointer-events: none;
  z-index: 40;
}

.app:not([data-active-screen="home"]) .brand-charms {
  display: none;
}

/* v45: guided referral cursor animation */
.guide-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-7px, -5px) rotate(-18deg) scale(0.96);
  transition:
    left 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 180ms ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.48));
}

.guide-cursor::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 17px;
  height: 22px;
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(0 0, 0 100%, 6px 75%, 10px 97%, 14px 95%, 10px 72%, 17px 72%);
}

.guide-cursor::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 19px;
  height: 24px;
  background: rgba(78, 166, 255, 0.95);
  clip-path: polygon(0 0, 0 100%, 6px 75%, 10px 97%, 14px 95%, 10px 72%, 17px 72%, 17px 68%, 9px 68%, 4px 88%, 4px 9%, 15px 68%, 19px 68%);
}

.guide-cursor.visible {
  opacity: 1;
}

.guide-cursor.no-transition {
  transition: none;
}

.guide-cursor.pressing {
  transform: translate(-7px, -5px) rotate(-18deg) scale(0.82);
}

.referral-spotlight .glass-panel {
  animation: referral-spotlight 1150ms ease both;
}

.topup-spotlight .deposit-form,
.topup-spotlight .payment-methods {
  animation: referral-spotlight 1150ms ease both;
}

/* v52: keep uploaded service logos rounded like ChatGPT and Claude */
.product-logo img[src$=".webp"],
.product-detail-logo img[src$=".webp"],
.product-order-logo img[src$=".webp"] {
  border-radius: 50%;
}

.product-logo img[src*="gmail.png"],
.product-detail-logo img[src*="gmail.png"],
.product-order-logo img[src*="gmail.png"] {
  border-radius: 50%;
}

.product-logo img[src*="youtube.webp"],
.product-detail-logo img[src*="youtube.webp"],
.product-order-logo img[src*="youtube.webp"] {
  border-radius: 0;
}

/* v61: fixes for compact catalog badges and redeem modal */
.product-card .product-top {
  justify-content: space-between !important;
  min-width: 0;
}

.product-card .product-logo {
  flex: 0 0 auto;
}

.captcha-card {
  width: min(100%, 382px);
}

.captcha-field {
  display: grid;
  gap: 8px;
}

.captcha-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.captcha-card img {
  user-select: none;
}

/* v62: more breathing room in cards, TxHash errors, and order prices */
.product-card .product-copy {
  gap: 0 !important;
  min-height: 62px;
  align-content: center;
}

.product-card .product-name {
  margin-bottom: 4px !important;
  line-height: 1.16 !important;
}

.product-card .product-desc {
  padding-top: 2px !important;
  line-height: 1.5 !important;
}

.product-card:has(.product-price small) {
  min-height: 286px;
}

.txhash-field + .modal-message {
  margin-top: 14px;
}

.order-side {
  min-width: 82px !important;
  padding-right: 0;
  margin-right: 14px;
  transform: none;
  justify-items: center !important;
}

.order-button {
  transform: none;
}

.order-amount {
  transform: none;
}

.order-amount {
  transform: none;
}

@keyframes referral-spotlight {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 45px rgba(0, 0, 0, 0.4);
  }

  42% {
    border-color: rgba(78, 166, 255, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 1px rgba(78, 166, 255, 0.22), 0 18px 55px rgba(78, 166, 255, 0.18);
  }
}

.brand-main::before,
.brand-main::after {
  content: none;
}

.brand-charms-svg .chain-stroke {
  opacity: 0.82;
  stroke-width: 2.3;
}

@media (max-width: 374px) {
  .brand-wordmark {
    padding-right: 0;
  }

  .brand-main {
    padding-right: 19px;
  }

  .brand-charms {
    left: calc(100% - 30px);
    right: auto;
    top: 12px;
    width: 22px;
    height: 37px;
    transform: none;
    transform-origin: center;
  }
}

/* v63: readable light theme catalog/product prices */
body.light-theme .product-card .product-price,
body.light-theme .product-card .product-price > span:not(.old-price),
body.light-theme .product-detail-price strong {
  color: rgba(0, 0, 0, 0.92) !important;
  text-shadow: none !important;
}

body.light-theme .product-card .product-price .old-price,
body.light-theme .detail-old-price {
  color: rgba(0, 0, 0, 0.38) !important;
}

body.light-theme .product-card .product-price small {
  color: #108a46 !important;
}

.product-card .product-price {
  font-size: 1.08rem !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em;
}

.product-card .product-price > span:not(.old-price) {
  font-size: 1.11rem !important;
  font-weight: 760 !important;
}

.product-card .product-price .old-price {
  font-size: 0.98rem !important;
}

body.light-theme .product-detail-card,
body.light-theme .product-detail-price-block,
body.light-theme .product-detail-surface,
body.light-theme .product-spec-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86)),
    #ffffff !important;
  border-color: rgba(0, 0, 0, 0.085) !important;
}

body.light-theme .product-detail-head .screen-title,
body.light-theme .product-detail-surface h2,
body.light-theme .product-spec-value {
  color: rgba(0, 0, 0, 0.9) !important;
}

body.light-theme .product-detail-surface p,
body.light-theme .product-spec-label,
body.light-theme .detail-label {
  color: rgba(0, 0, 0, 0.58) !important;
}

body.light-theme .product-detail-logo {
  background: rgba(0, 0, 0, 0.025) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* v65: scroll only long delivered order data inside its dialog */
.order-data-overlay {
  overflow: hidden;
}

.order-data-card {
  max-height: calc(100dvh - 44px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-data-head,
.order-data-actions {
  flex: 0 0 auto;
}

.order-data-body {
  min-height: 0;
  max-height: min(54dvh, 430px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.order-data-body::-webkit-scrollbar {
  width: 4px;
}

.order-data-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

body.light-theme .product-detail-chip {
  background: rgba(0, 0, 0, 0.035) !important;
  color: rgba(0, 0, 0, 0.62) !important;
}

/* v67: keep long product descriptions inside the product detail layout */
.catalog-detail,
.product-detail-card,
.product-detail-surface,
.product-specs-grid,
.product-spec-card {
  min-width: 0;
  max-width: 100%;
}

.product-detail-card {
  overflow: hidden;
}

.product-detail-surface p {
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.product-spec-label,
.product-spec-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* v68: stock notification preference in Mini App settings */
.notification-setting {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0 4px 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    rgba(7, 7, 7, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.notification-setting-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.88);
}

.notification-setting-icon .icon {
  width: 25px;
  height: 25px;
}

.notification-setting-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.notification-setting-copy strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.12;
}

.notification-setting-copy > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  line-height: 1.3;
}

.notification-toggle {
  appearance: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.notification-toggle i {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 180ms ease;
}

.notification-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, background 180ms ease;
}

.notification-setting.is-enabled .notification-toggle {
  border-color: rgba(43, 214, 111, 0.28);
  background: rgba(43, 214, 111, 0.09);
  color: #45dc80;
}

.notification-setting.is-enabled .notification-toggle i {
  background: #2bd66f;
}

.notification-setting.is-enabled .notification-toggle i::after {
  transform: translateX(14px);
  background: #fff;
}

.notification-toggle:disabled {
  opacity: 0.55;
  cursor: wait;
}

body.light-theme .notification-setting {
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78)), #f6f6f3;
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(176, 171, 162, 0.14);
}

body.light-theme .notification-setting-icon {
  border-color: rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.8);
}

body.light-theme .notification-setting-copy strong {
  color: rgba(0, 0, 0, 0.9);
}

body.light-theme .notification-setting-copy > span {
  color: rgba(0, 0, 0, 0.5);
}

body.light-theme .notification-toggle {
  border-color: rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.035);
  color: rgba(0, 0, 0, 0.58);
}

@media (max-width: 374px) {
  .notification-setting {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .notification-setting-icon {
    width: 48px;
    height: 48px;
  }

  .notification-toggle {
    grid-column: 2;
    justify-self: start;
  }
}
