:root {
    --bg: #f7f5f2;
    --bg-soft: #efebe6;
    --surface: #ffffff;
    --surface-soft: #faf6ee;
    --surface-muted: #f1ece5;
    --surface-tint: rgba(255, 255, 255, 0.8);
    --text: #231f20;
    --muted: #7c7269;
    --line: rgba(35, 31, 32, 0.08);
    --line-strong: rgba(35, 31, 32, 0.14);
    --accent: #f9d650;
    --accent-strong: #e3b62f;
    --accent-soft: rgba(249, 214, 80, 0.18);
    --accent-gradient: linear-gradient(135deg, #e9bb38 0%, #f9d650 48%, #fff0a0 100%);
    --success: #2f8955;
    --success-soft: rgba(47, 137, 85, 0.12);
    --warning: #c48a21;
    --warning-soft: rgba(196, 138, 33, 0.12);
    --danger: #b5554a;
    --danger-soft: rgba(181, 85, 74, 0.12);
    --shadow-lg: 0 22px 70px rgba(56, 38, 16, 0.08);
    --shadow-md: 0 14px 34px rgba(56, 38, 16, 0.07);
    --shadow-sm: 0 8px 22px rgba(56, 38, 16, 0.06);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 10px;
}

:root[data-theme="dark"] {
    --bg: #11100f;
    --bg-soft: #1a1817;
    --surface: #1f1c1b;
    --surface-soft: #262221;
    --surface-muted: #2a2624;
    --surface-tint: rgba(31, 28, 27, 0.88);
    --text: #f5efe7;
    --muted: #b8afa7;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.13);
    --accent-soft: rgba(249, 214, 80, 0.16);
    --success-soft: rgba(84, 179, 124, 0.18);
    --warning-soft: rgba(196, 138, 33, 0.18);
    --danger-soft: rgba(181, 85, 74, 0.18);
    --shadow-lg: 0 28px 74px rgba(0, 0, 0, 0.36);
    --shadow-md: 0 18px 36px rgba(0, 0, 0, 0.26);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior-x: none;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 214, 80, 0.16), transparent 30%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    touch-action: manipulation;
}

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

button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

input,
textarea {
    outline: none;
    border: 0;
    background: transparent;
    color: inherit;
}

.intro-overlay,
.loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.intro-overlay {
    z-index: 50;
    background: #ffffff;
}

.intro-overlay[data-intro-theme="dark"] {
    background: #000000;
}

.intro-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intro-overlay.is-hiding {
    opacity: 0;
}

.intro-overlay__media {
    position: relative;
    width: min(52vw, 260px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.intro-video {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    outline: none;
    background: transparent;
}

.intro-overlay[data-intro-theme="light"] .intro-video--light,
.intro-overlay[data-intro-theme="dark"] .intro-video--dark {
    display: block;
}

.intro-overlay[data-intro-theme="light"] .intro-video--light {
    transform: scale(1.1);
    transform-origin: center center;
}

.loading-overlay {
    z-index: 40;
    display: grid;
    place-items: center;
    background: rgba(247, 245, 242, 0.94);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-logo {
    width: 40px;
    height: 50px;
    border-radius: 1px;
    background: var(--accent-gradient);
    box-shadow: 0 18px 38px rgba(226, 179, 42, 0.28);
    animation: loaderPulse 1.05s ease-in-out infinite;
    opacity: 0;
    transition: opacity 180ms ease;
}

.loading-overlay.show-logo .loading-logo {
    opacity: 1;
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.92;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.app-shell {
    position: relative;
    width: min(100%, 480px);
    margin: 0 auto;
    min-height: 100vh;
    padding: max(14px, env(safe-area-inset-top)) 16px calc(124px + env(safe-area-inset-bottom));
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 16px;
    backdrop-filter: blur(18px);
}

.topbar-pill,
.topbar-icon,
.ghost-btn,
.secondary-btn,
.outline-btn,
.text-btn,
.primary-btn,
.toggle-self-btn,
.menu-row,
.bottom-dock__item,
.profile-orb,
.wallet-card__plus,
.preset-card,
.sheet-option,
.payment-method,
.metric-toggle {
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-tint);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 18px;
    font-weight: 500;
}

.topbar-pill svg,
.topbar-icon svg {
    width: 18px;
    height: 18px;
}

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

.topbar-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.app-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-card,
.profile-strip,
.notice-card,
.service-card,
.mini-stats__item,
.menu-row,
.sheet-card,
.leaderboard-row,
.activity-row,
.preset-card,
.payment-method,
.detail-card,
.copy-card,
.recipient-preview,
.estimate-card,
.topup-balance,
.confirm-recipient,
.confirm-summary,
.metric-toggle {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.profile-strip,
.panel-card,
.notice-card,
.sheet-card,
.leaderboard-row,
.activity-row,
.preset-card,
.payment-method,
.detail-card,
.copy-card,
.recipient-preview,
.estimate-card,
.topup-balance,
.confirm-recipient,
.confirm-summary,
.metric-toggle {
    border-radius: var(--radius-lg);
}

.panel-card,
.notice-card,
.sheet-card {
    padding: 16px;
}

.profile-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.profile-strip__avatar,
.profile-wallet-card__avatar,
.recipient-preview__avatar,
.leaderboard-row__avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #86df67 0%, #67c9a2 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-strip__copy,
.recipient-preview__copy,
.menu-row__copy,
.payment-method__copy,
.activity-row__copy,
.leaderboard-row__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-strip__copy strong,
.recipient-preview__copy strong,
.panel-card strong,
.sheet-card strong,
.leaderboard-row__copy strong,
.activity-row__copy strong,
.service-card__copy strong,
.menu-row__copy strong,
.payment-method__copy strong {
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.profile-strip__copy span,
.panel-card span,
.panel-card small,
.recipient-preview__copy span,
.activity-row__copy span,
.activity-row__copy small,
.leaderboard-row__copy span,
.service-card__copy span,
.menu-row__copy span,
.payment-method__copy span,
.helper-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.18), rgba(255, 255, 255, 0.86));
}

:root[data-theme="dark"] .wallet-card {
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.14), rgba(31, 28, 27, 0.92));
}

.wallet-card__amount {
    display: block;
    margin: 6px 0 4px;
    font-size: 30px;
    line-height: 1;
}

.wallet-card__plus {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--accent-gradient);
    color: #231f20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 26px rgba(226, 179, 42, 0.18);
}

.wallet-card__plus svg {
    width: 24px;
    height: 24px;
}

.panel-kicker,
.notice-eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.16em;
}

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

.service-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    height: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.service-card__icon,
.contest-icon,
.activity-row__icon,
.menu-row__icon,
.payment-method__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #231f20;
    flex-shrink: 0;
}

.service-card__icon {
    margin-top: 0;
}

.service-card__icon svg,
.contest-icon svg,
.activity-row__icon svg,
.menu-row__icon svg,
.payment-method__icon svg,
.metric-toggle svg,
.empty-state__icon svg,
.status-badge svg {
    width: 22px;
    height: 22px;
}

.service-card__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.service-card__copy strong {
    font-size: 15px;
    margin: 0;
    line-height: 1.12;
}

.service-card__copy span {
    font-size: 12px;
    line-height: 1.24;
}

.contest-card {
    overflow: hidden;
    background:
        radial-gradient(circle at right top, rgba(249, 214, 80, 0.16), transparent 34%),
        var(--surface);
}

.contest-card--clickable {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.contest-card__head,
.section-head,
.button-row,
.contest-meta,
.confirm-summary,
.sheet-head,
.copy-card,
.payment-method,
.detail-card,
.topup-balance,
.profile-wallet-card__balance,
.profile-wallet-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.copy-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
}

.copy-card > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-card .ghost-btn {
    width: 82px;
    flex-shrink: 0;
    margin-top: 2px;
}

.section-head + .activity-list {
    margin-top: 10px;
}

.section-head + .referral-steps {
    margin-top: 8px;
}

.section-head.is-title {
    margin-bottom: 8px;
}

.section-head strong {
    display: block;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-head.compact {
    margin-bottom: 10px;
}

.section-head.compact strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.section-head > div {
    min-width: 0;
}

.contest-card__media {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.contest-card__media img,
.contest-sheet__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contest-card__head strong,
.contest-card__head span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contest-sheet__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.contest-progress {
    position: relative;
    margin: 16px 0 14px;
    height: 10px;
    border-radius: 999px;
    background: var(--surface-muted);
    overflow: hidden;
}

.contest-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: var(--accent-gradient);
}

.contest-meta {
    align-items: flex-end;
}

.contest-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contest-meta strong {
    font-size: 17px;
}

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

.mini-stats__item {
    padding: 16px 10px;
    border-radius: var(--radius-md);
    text-align: center;
}

.mini-stats__item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.mini-stats__item span {
    color: var(--muted);
    font-size: 14px;
}

.mini-stats__value.fit-sm {
    font-size: 21px;
}

.mini-stats__value.fit-xs {
    font-size: 18px;
    letter-spacing: -0.05em;
}

.mini-stats__value.fit-xxs {
    font-size: 16px;
    letter-spacing: -0.07em;
}

.mini-stats--uniform .mini-stats__value--uniform {
    font-size: 21px;
    letter-spacing: -0.04em;
}

.mini-stats--uniform .mini-stats__value--uniform.fit-sm,
.mini-stats--uniform .mini-stats__value--uniform.fit-xs {
    font-size: 19px;
}

.mini-stats--uniform .mini-stats__value--uniform.fit-xxs {
    font-size: 17px;
}

.activity-list,
.leaderboard-list,
.sheet-options,
.payment-methods,
.rating-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-row,
.leaderboard-row {
    padding: 14px;
    gap: 12px;
}

.activity-row.is-compact {
    padding: 12px;
}

.activity-row.is-compact .activity-row__icon {
    width: 38px;
    height: 38px;
}

.activity-row.is-compact .activity-row__copy strong {
    font-size: 15px;
}

.activity-row.is-compact .status-badge {
    font-size: 10px;
    padding: 4px 7px;
}

.activity-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
}

.activity-row__icon {
    width: 42px;
    height: 42px;
}

.activity-row__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.activity-row__copy,
.leaderboard-row__copy {
    flex: 1;
}

.activity-row__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.activity-row__copy strong {
    font-size: 16px;
    line-height: 1.12;
}

.activity-row__time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 74px;
    text-align: right;
}

.activity-row__time strong,
.activity-row__time span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.1;
    white-space: nowrap;
}

.status-badge {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.success {
    background: var(--success-soft);
    color: var(--success);
}

.status-badge.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-badge.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.service-card:hover,
.topbar-pill:hover,
.topbar-icon:hover,
.ghost-btn:hover,
.secondary-btn:hover,
.outline-btn:hover,
.text-btn:hover,
.primary-btn:hover,
.toggle-self-btn:hover,
.menu-row:hover,
.bottom-dock__item:hover,
.profile-orb:hover,
.wallet-card__plus:hover,
.preset-card:hover,
.sheet-option:hover,
.payment-method:hover,
.metric-toggle:hover {
    transform: translateY(-1px);
}

.ghost-btn,
.secondary-btn,
.outline-btn,
.text-btn,
.primary-btn,
.toggle-self-btn {
    border-radius: 14px;
    padding: 13px 16px;
    font-weight: 600;
}

.toggle-self-btn {
    min-width: 88px;
    padding: 11px 12px;
    font-size: 14px;
}

.primary-btn {
    width: 100%;
    background: var(--accent-gradient);
    color: #231f20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 28px rgba(226, 179, 42, 0.2);
}

.secondary-btn {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--text);
}

.ghost-btn,
.outline-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.text-btn {
    padding: 0;
    color: var(--accent-strong);
}

.recipient-row,
.custom-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 12px;
}

.recipient-input,
.field-block,
.custom-input-row,
.estimate-card,
.topup-balance,
.confirm-recipient,
.confirm-summary,
.detail-card,
.copy-card {
    padding: 14px 16px;
}

.recipient-input,
.field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.recipient-input {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.recipient-input span {
    color: var(--accent-strong);
    font-weight: 700;
    flex-shrink: 0;
}

.recipient-input input,
.field-block input {
    width: 100%;
    font-size: 17px;
}

.recipient-input.has-value input {
    background-image: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--accent-strong);
}

.recipient-input input::placeholder,
.field-block input::placeholder {
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
}

.toggle-self-btn.active,
.segmented-tabs button.active,
.unit-switch button.active,
.metric-toggle.active {
    background: var(--accent-gradient);
    color: #231f20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.recipient-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.recipient-preview__copy strong,
.copy-card strong,
.service-card__copy strong {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
}

.segmented-tabs,
.unit-switch {
    display: grid;
    gap: 8px;
}

.segmented-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
    padding: 6px;
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
}

.segmented-tabs button,
.unit-switch button {
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--muted);
    font-weight: 600;
}

.unit-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 5px;
    background: var(--surface-muted);
    border-radius: 14px;
    width: 160px;
}

.preset-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.preset-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    text-align: left;
    border-width: 2px;
}

.preset-card.active,
.sheet-option.active,
.payment-method.active {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(249, 214, 80, 0.14);
}

.preset-card__value {
    font-size: 18px;
    font-weight: 700;
}

.preset-card__price {
    font-size: 16px;
    color: var(--muted);
}

.preset-card__check {
    width: 10px;
    height: 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #231f20;
    border: 1px solid rgba(35, 31, 32, 0.14);
}

.preset-card.active .preset-card__check {
    background: var(--accent-gradient);
    border-color: transparent;
}

.preset-card__check svg {
    width: 6px;
    height: 6px;
}

.preset-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(249, 214, 80, 0.18);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.manual-plan-block {
    margin-bottom: 12px;
}

.payout-choice-stack .preset-card__price {
    font-size: 13px;
    line-height: 1.2;
}

.field-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.field-stack--spacious {
    gap: 16px;
    margin-bottom: 16px;
}

.ton-custom-block {
    margin-top: 12px;
}

.sell-flow-section {
    margin-top: 14px;
}

.estimate-card {
    margin-top: 4px;
    margin-bottom: 12px;
}

.estimate-card strong,
.topup-balance strong,
.confirm-summary strong,
.detail-card strong {
    font-size: 18px;
}

.helper-text {
    margin: 0;
}

.market-soon__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.market-soon__item {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(249, 214, 80, 0.22), rgba(255, 255, 255, 0.3)),
        var(--surface-soft);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    opacity: 0.88;
}

.soon-pill {
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.profile-wallet-card__balance {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.18), rgba(255, 255, 255, 0.8));
    border: 1px solid var(--line);
}

:root[data-theme="dark"] .profile-wallet-card__balance {
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.14), rgba(31, 28, 27, 0.92));
}

.profile-wallet-card__head {
    justify-content: flex-start;
    align-items: center;
}

.profile-wallet-card__identity,
.profile-wallet-card__balance-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-wallet-card__identity strong,
.profile-wallet-card__balance-copy strong {
    display: block;
    margin: 0;
    line-height: 1.12;
}

.profile-wallet-card__identity span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-wallet-card__balance {
    align-items: center;
}

.profile-wallet-card__balance-copy {
    align-items: flex-start;
    gap: 2px;
}

.profile-wallet-card__balance-copy span {
    font-size: 13px;
}

.profile-wallet-card__balance-copy strong {
    font-size: 18px;
}

.referral-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.referral-entry {
    width: 100%;
    text-align: left;
}

.referral-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #db76a3 0%, #c63670 100%);
    color: #fff;
    flex-shrink: 0;
}

.referral-card__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.referral-card__copy strong {
    font-size: 15px;
}

.referral-card__copy span {
    font-size: 12px;
}

.referral-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    white-space: nowrap;
}

.referral-card__meta--inline {
    justify-content: flex-end;
}

.referral-card__meta strong {
    text-align: right;
    font-size: 14px;
}

.referral-entry__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--muted);
}

.referral-entry__arrow svg {
    width: 14px;
    height: 14px;
}

.referral-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 220px;
}

.referral-card__actions .ghost-btn,
.referral-card__actions .secondary-btn {
    width: 100%;
    padding: 11px 12px;
}

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

.menu-list.compact {
    margin-top: 6px;
}

.menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 18px;
    text-align: left;
}

.menu-row__arrow {
    color: var(--muted);
}

.flow-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}

.detail-card--stack > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-card--stack small {
    color: var(--muted);
    white-space: nowrap;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 22px 42px minmax(0, 1fr) minmax(86px, 102px);
    align-items: center;
    gap: 10px;
}

.leaderboard-row__rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    line-height: 1;
}

.leaderboard-row__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-strong);
    text-align: right;
    line-height: 1.12;
    letter-spacing: -0.03em;
    min-width: 0;
    justify-self: end;
}

.leaderboard-row__value.fit-sm {
    font-size: 13px;
}

.leaderboard-row__value.fit-xs,
.leaderboard-row__value.fit-xxs {
    font-size: 12px;
}

.leaderboard-row.is-current {
    border-color: var(--accent-strong);
    background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}

.leaderboard-row__copy strong,
.leaderboard-row__copy span {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-row__copy strong {
    font-size: 14px;
}

.leaderboard-row__copy span {
    font-size: 11px;
}

.leaderboard-row__avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.rating-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.metric-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    text-align: center;
}

.metric-toggle span {
    color: var(--accent-strong);
}

.metric-toggle strong {
    font-size: 16px;
}

.notice-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.18), var(--surface));
}

.notice-actions {
    display: flex;
    gap: 10px;
}

.bottom-dock {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 18;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 452px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bottom-dock__rail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 5px 10px;
    border-radius: 50px;
    background: rgba(127, 122, 129, 0.92);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

:root[data-theme="dark"] .bottom-dock__rail {
    background: rgba(48, 44, 45, 0.94);
}

.bottom-dock__item {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    color: #f5f3f1;
}

.bottom-dock__item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 48px;
    min-height: 56px;
    padding: 7px 4px;
    border-radius: 100px;
    color: #f5f3f1;
}

.bottom-dock__item strong {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.12;
    white-space: nowrap;
}

.bottom-dock__icon,
.bottom-dock__item svg,
.profile-orb svg {
    width: 18px;
    height: 18px;
}

.bottom-dock__item.active .bottom-dock__item-inner {
    background: var(--accent-gradient);
    color: #231f20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    width: 60px;
    min-height: 60px;
    border-radius: 50px;
}

.profile-orb {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.profile-orb__inner {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #86df67 0%, #67c9a2 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(80, 144, 101, 0.3);
    border: 3px solid rgba(247, 245, 242, 0.78);
    font-size: 24px;
    font-weight: 700;
}

.profile-orb.active .profile-orb__inner {
    box-shadow: 0 0 0 3px rgba(249, 214, 80, 0.28), 0 18px 40px rgba(80, 144, 101, 0.3);
}

:root[data-theme="dark"] .profile-orb__inner {
    border-color: rgba(17, 16, 15, 0.82);
}

.sheet-root {
    position: fixed;
    inset: 0;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.sheet-root.active {
    opacity: 1;
    visibility: visible;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 16, 15, 0.36);
    backdrop-filter: blur(7px);
}

.sheet-shell {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0 env(safe-area-inset-bottom);
}

.sheet-card {
    position: relative;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: var(--shadow-lg);
    max-height: min(82vh, 760px);
    overflow-y: auto;
}

.sheet-card.is-tall {
    min-height: 52vh;
}

.sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -16px -16px 12px;
    padding: 16px 16px 14px;
    background: var(--surface);
    box-shadow: 0 1px 0 var(--line);
}

.sheet-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.sheet-option,
.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    text-align: left;
}

.sheet-option__swatch {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    flex-shrink: 0;
    font-weight: 700;
}

.swatch-system {
    background: linear-gradient(135deg, #1e1d1b 0%, #1e1d1b 50%, #f7f5f2 50%, #f7f5f2 100%);
}

.swatch-light {
    background: #f7f5f2;
}

.swatch-dark {
    background: #1f1c1b;
}

.swatch-lang {
    color: var(--accent-strong);
}

.sheet-option__copy,
.payment-method__copy {
    flex: 1;
    min-width: 0;
}

.sheet-option__check {
    width: 10px;
    height: 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #231f20;
    border: 1px solid rgba(35, 31, 32, 0.14);
    flex-shrink: 0;
}

.sheet-option.active .sheet-option__check {
    background: var(--accent-gradient);
    border-color: transparent;
}

.sheet-option__check svg {
    width: 6px;
    height: 6px;
}

.segmented-tabs--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.segmented-tabs--wide button {
    padding: 11px 6px;
    font-size: 12px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.referral-overview__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: var(--accent-gradient);
    color: #231f20;
}

.referral-overview__hero span {
    color: rgba(35, 31, 32, 0.7);
}

.referral-overview__hero strong {
    display: block;
    margin-top: 4px;
    font-size: 34px;
}

.contest-sheet {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contest-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contest-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.contest-info-row span,
.contest-rank-note {
    color: var(--muted);
}

.contest-info-row strong {
    text-align: right;
    font-size: 14px;
    line-height: 1.25;
}

.contest-inline-link {
    max-width: 62%;
    padding: 0;
    text-align: right;
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.contest-rank-note {
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.35;
}

.contest-sheet__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contest-sheet-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.contest-sheet-row.is-current {
    border-color: var(--accent-strong);
    background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}

.contest-sheet-row__rank {
    color: var(--muted);
    font-weight: 700;
}

.contest-sheet-row__name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.contest-sheet-row__value {
    font-size: 14px;
    color: var(--accent-strong);
    text-align: right;
    white-space: nowrap;
}

.referral-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-mini-stats .mini-stats__item {
    padding: 12px 10px;
    border-radius: 14px;
}

.referral-mini-stats .mini-stats__item strong {
    margin-bottom: 6px;
    font-size: 18px;
}

.referral-mini-stats .mini-stats__item span {
    font-size: 12px;
    line-height: 1.3;
}

.referral-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.referral-link-card {
    margin-top: 8px;
    grid-template-columns: minmax(0, 1fr);
}

.referral-link-actions {
    margin-top: 12px;
}

.referral-link-actions .primary-btn,
.referral-link-actions .secondary-btn {
    width: auto;
    flex: 1;
}

.referral-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.referral-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-step span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #231f20;
    font-weight: 700;
    flex-shrink: 0;
}

.referral-user-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.referral-user-row__meta {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.payment-method.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.confirm-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 8px 0 18px;
}

.confirm-hero__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--accent-gradient);
    color: #231f20;
}

.confirm-hero__icon svg {
    width: 34px;
    height: 34px;
}

.confirm-summary {
    margin: 12px 0;
}

.confirm-summary div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.full-width {
    width: 100%;
    margin-top: 14px;
}

.empty-state,
.skeleton-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.empty-state {
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
    padding: 16px;
}

.empty-state.standalone {
    min-height: calc(100vh - 190px);
}

.empty-state__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--accent-strong);
}

.skeleton-card {
    height: 190px;
    border-radius: 24px;
    background: linear-gradient(90deg, var(--surface-muted), var(--surface), var(--surface-muted));
    background-size: 200% 100%;
    animation: skeleton 1.2s linear infinite;
}

.skeleton-card.short {
    height: 126px;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.toast-stack {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 35;
    width: min(calc(100% - 32px), 400px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(35, 31, 32, 0.94);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.success {
    background: rgba(47, 137, 85, 0.94);
}

.toast.error {
    background: rgba(181, 85, 74, 0.94);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 374px) {
    .service-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mini-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .bottom-dock__rail {
        gap: 0;
        padding: 7px 8px;
    }

    .bottom-dock__item strong {
        font-size: 8px;
    }

    .bottom-dock__item-inner {
        width: 44px;
        min-height: 52px;
    }

    .bottom-dock__item.active .bottom-dock__item-inner {
        width: 56px;
        min-height: 66px;
    }

    .profile-orb {
        width: 54px;
        height: 54px;
    }

    .profile-orb__inner {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 481px) {
    .app-shell {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Figma Refresh */

:root {
    --surface: #ffffff;
    --surface-soft: #fcfbf8;
    --surface-muted: #f1eeea;
    --surface-tint: rgba(255, 255, 255, 0.92);
    --line: rgba(35, 31, 32, 0.08);
    --line-strong: rgba(35, 31, 32, 0.12);
    --muted: #7a7268;
    --shadow-sm: 0 6px 16px rgba(35, 31, 32, 0.05);
    --shadow-md: 0 12px 28px rgba(35, 31, 32, 0.06);
    --shadow-lg: 0 20px 40px rgba(35, 31, 32, 0.09);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

:root[data-theme="dark"] {
    --surface: #22201f;
    --surface-soft: #292624;
    --surface-muted: #2f2a27;
    --surface-tint: rgba(34, 32, 31, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.12);
    --muted: #ada59d;
    --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.32);
}

body {
    background:
        radial-gradient(circle at top center, rgba(249, 214, 80, 0.12), transparent 34%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.app-shell {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.app-main {
    gap: 16px;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-hero__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.page-hero__icon,
.page-hero__action {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.page-hero__icon {
    background: linear-gradient(180deg, rgba(249, 214, 80, 0.28), rgba(249, 214, 80, 0.12));
    color: #231f20;
}

.page-hero__icon svg {
    width: 24px;
    height: 24px;
}

.page-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.page-hero__copy .panel-kicker {
    margin-bottom: 0;
}

.page-hero__copy strong {
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-hero__copy span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.42;
}

.page-hero__action {
    background: linear-gradient(135deg, #86df67 0%, #67c9a2 100%);
    color: #fff;
    font-size: 27px;
    font-weight: 700;
}

.profile-strip,
.panel-card,
.sheet-card,
.notice-card,
.menu-row,
.activity-row,
.leaderboard-row,
.preset-card,
.payment-method,
.detail-card,
.copy-card,
.estimate-card,
.topup-balance,
.confirm-recipient,
.confirm-summary,
.metric-toggle,
.recipient-preview {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel-card,
.sheet-card,
.notice-card {
    padding: 20px;
}

.profile-strip {
    padding: 18px;
    gap: 14px;
    align-items: center;
}

.profile-strip__avatar,
.profile-wallet-card__avatar,
.recipient-preview__avatar,
.leaderboard-row__avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 28px;
}

.profile-strip__copy strong,
.profile-wallet-card__identity strong {
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.profile-strip__copy span,
.profile-wallet-card__identity span {
    font-size: 14px;
}

.wallet-card {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.24), rgba(255, 255, 255, 0.96));
    align-items: stretch;
}

:root[data-theme="dark"] .wallet-card {
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.16), rgba(34, 32, 31, 0.96));
}

.wallet-card__amount {
    margin: 8px 0 4px;
    font-size: 38px;
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.wallet-card > div > span {
    max-width: 220px;
}

.wallet-card__plus {
    width: 58px;
    height: 58px;
    align-self: center;
    border-radius: 18px;
}

.service-grid {
    gap: 12px;
    grid-auto-rows: 132px;
}

.service-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: var(--surface);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(249, 214, 80, 0.34), rgba(249, 214, 80, 0.14));
}

.service-card__copy {
    gap: 6px;
}

.service-card__copy strong {
    font-size: 19px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.service-card__copy span {
    font-size: 14px;
    line-height: 1.38;
}

.contest-card {
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at right top, rgba(249, 214, 80, 0.18), transparent 34%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.contest-card__head {
    align-items: flex-start;
}

.contest-icon,
.menu-row__icon,
.activity-row__icon,
.payment-method__icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(249, 214, 80, 0.34), rgba(249, 214, 80, 0.14));
}

.contest-card__head strong {
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.contest-meta strong {
    font-size: 18px;
}

.mini-stats {
    gap: 12px;
}

.mini-stats__item {
    padding: 18px 12px;
    border-radius: 20px;
}

.mini-stats__item strong {
    margin-bottom: 8px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.mini-stats__item span {
    font-size: 13px;
}

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

.menu-list--home {
    gap: 10px;
}

.menu-row {
    padding: 16px 18px;
    border-radius: 20px;
}

.menu-row__copy strong {
    font-size: 17px;
}

.menu-row__copy span {
    font-size: 13px;
}

.menu-row__arrow {
    color: var(--muted);
}

.section-head {
    margin-bottom: 2px;
}

.section-head strong {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-head + .activity-list,
.section-head + .leaderboard-list {
    margin-top: 14px;
}

.recipient-row,
.custom-input-row {
    gap: 12px;
    margin-bottom: 14px;
}

.recipient-input,
.field-block,
.topup-balance,
.confirm-recipient,
.confirm-summary,
.detail-card,
.copy-card,
.estimate-card {
    padding: 16px 18px;
    border-radius: 18px;
}

.recipient-input,
.field-block {
    border-width: 1px;
}

.recipient-input input,
.field-block input {
    font-size: 18px;
}

.toggle-self-btn {
    min-width: 78px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.segmented-tabs {
    padding: 5px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: var(--surface-muted);
}

.segmented-tabs button {
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 15px;
}

.preset-stack {
    gap: 12px;
}

.preset-card {
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 20px;
}

.preset-card__value {
    font-size: 19px;
    letter-spacing: -0.03em;
}

.preset-card__price {
    font-size: 15px;
}

.preset-card__check {
    width: 18px;
    height: 18px;
}

.preset-card__check svg {
    width: 10px;
    height: 10px;
}

.field-stack,
.payment-methods,
.activity-list,
.leaderboard-list,
.sheet-options {
    gap: 14px;
}

.estimate-card {
    margin-top: 6px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.estimate-card strong,
.topup-balance strong,
.confirm-summary strong,
.detail-card strong {
    font-size: 20px;
    letter-spacing: -0.04em;
}

.button-row {
    gap: 12px;
}

.payment-method {
    padding: 16px 18px;
    border-radius: 20px;
}

.payment-method__icon {
    width: 44px;
    height: 44px;
}

.activity-row,
.leaderboard-row {
    padding: 16px;
    border-radius: 20px;
}

.activity-row__icon {
    width: 44px;
    height: 44px;
}

.activity-row__copy strong,
.leaderboard-row__copy strong {
    font-size: 16px;
}

.activity-row__copy span,
.leaderboard-row__copy span {
    font-size: 13px;
}

.status-badge {
    margin-top: 4px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 28px 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.leaderboard-row__rank {
    width: 28px;
    font-size: 18px;
}

.leaderboard-row__avatar {
    width: 52px;
    height: 52px;
    font-size: 24px;
}

.leaderboard-row__value {
    font-size: 18px;
    letter-spacing: -0.04em;
}

.profile-wallet-card {
    padding: 18px;
}

.profile-wallet-card__balance {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 20px;
}

.profile-wallet-card__balance-copy strong {
    font-size: 30px;
    letter-spacing: -0.05em;
}

.referral-card {
    padding: 16px 18px;
    gap: 14px;
}

.referral-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.referral-card__copy strong {
    font-size: 18px;
}

.referral-card__copy span {
    font-size: 13px;
}

.referral-card__meta--inline {
    gap: 8px;
}

.referral-card__meta strong {
    font-size: 18px;
}

.referral-overview__hero {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.24), rgba(255, 255, 255, 0.92));
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

:root[data-theme="dark"] .referral-overview__hero {
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.14), rgba(34, 32, 31, 0.96));
}

.referral-overview__hero strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    letter-spacing: -0.06em;
}

.referral-mini-stats {
    gap: 10px;
}

.referral-mini-stats .mini-stats__item {
    padding: 14px 10px;
    border-radius: 16px;
}

.referral-mini-stats .mini-stats__item strong {
    font-size: 20px;
    margin-bottom: 6px;
}

.referral-steps {
    gap: 12px;
}

.referral-step {
    padding: 14px 16px;
    border-radius: 18px;
}

.bottom-dock {
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 480px);
    padding: 0 16px;
    justify-content: space-between;
}

.bottom-dock__rail {
    flex: 1;
    gap: 4px;
    padding: 8px;
    border-radius: 24px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.bottom-dock__item {
    flex: 1;
    min-width: 0;
}

.bottom-dock__item-inner {
    width: 100%;
    min-height: 64px;
    border-radius: 18px;
    gap: 4px;
}

.bottom-dock__item strong {
    font-size: 11px;
}

.bottom-dock__item.active .bottom-dock__item-inner {
    width: 100%;
    min-height: 64px;
    background: linear-gradient(180deg, rgba(249, 214, 80, 0.96), rgba(249, 214, 80, 0.76));
    color: #231f20;
}

.profile-orb {
    width: 58px;
    height: 58px;
}

.profile-orb__inner {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.sheet-card {
    border-radius: 30px 30px 0 0;
    padding: 18px 20px 24px;
}

.sheet-head {
    position: sticky;
    top: -18px;
    z-index: 4;
    margin: -18px -20px 14px;
    padding: 18px 20px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.sheet-head strong {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.sheet-option {
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.sheet-option__swatch {
    border-radius: 14px;
}

.confirm-hero {
    gap: 10px;
    padding: 2px 0 8px;
}

.confirm-hero__icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(249, 214, 80, 0.24), rgba(249, 214, 80, 0.1));
}

.confirm-hero strong {
    font-size: 28px;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.market-soon__grid {
    gap: 12px;
    margin: 18px 0 0;
}

.market-soon__item {
    border-radius: 20px;
}

@media (max-width: 374px) {
    .page-hero__copy strong {
        font-size: 24px;
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
    }

    .wallet-card__amount {
        font-size: 34px;
    }

    .bottom-dock__item-inner {
        min-height: 60px;
    }

    .bottom-dock__item.active .bottom-dock__item-inner {
        min-height: 60px;
    }
}

/* Export-aligned layout */

.app-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.app-main {
    gap: 18px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.dashboard-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-hero__copy strong {
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.dashboard-hero__copy span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-hero__profile {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #231f20;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: none;
    flex-shrink: 0;
}

.dashboard-hero__profile svg {
    width: 20px;
    height: 20px;
}

.page-hero,
.page-hero.page-hero--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding-top: 6px;
    padding-bottom: 2px;
}

.page-hero__main,
.page-hero__action {
    display: none;
}

.page-hero__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(249, 214, 80, 0.12);
    border: 1px solid rgba(249, 214, 80, 0.24);
    box-shadow: none;
}

.page-hero__icon svg {
    width: 30px;
    height: 30px;
}

.page-hero__copy {
    align-items: center;
    text-align: center;
    gap: 6px;
}

.page-hero__copy strong {
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.page-hero__copy span {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.48;
    color: var(--muted);
}

.title-hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
}

.title-hero strong {
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.title-hero span {
    font-size: 14px;
    line-height: 1.48;
    color: var(--muted);
}

.panel-card,
.menu-row,
.activity-row,
.leaderboard-row,
.preset-card,
.payment-method,
.detail-card,
.copy-card,
.estimate-card,
.topup-balance,
.confirm-recipient,
.confirm-summary,
.metric-toggle,
.recipient-preview,
.wallet-card,
.profile-overview {
    border-radius: 16px;
    box-shadow: none;
}

.panel-card,
.sheet-card,
.notice-card {
    padding: 18px;
}

.wallet-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.92), rgba(249, 214, 80, 0.78));
    color: #231f20;
    border-color: rgba(249, 214, 80, 0.55);
}

:root[data-theme="dark"] .wallet-card {
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.32), rgba(249, 214, 80, 0.18));
    color: var(--text);
}

.wallet-card .panel-kicker,
.wallet-card span {
    color: rgba(35, 31, 32, 0.72);
}

:root[data-theme="dark"] .wallet-card .panel-kicker,
:root[data-theme="dark"] .wallet-card span {
    color: rgba(247, 245, 242, 0.72);
}

.wallet-card__amount {
    margin: 8px 0 2px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.wallet-card__plus {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-self: flex-start;
    background: rgba(35, 31, 32, 0.08);
    color: #231f20;
}

.service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(132px, auto);
    gap: 14px;
}

.service-card {
    padding: 18px;
    gap: 12px;
    justify-content: flex-start;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
}

.service-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(249, 214, 80, 0.12);
}

.service-card__copy strong {
    font-size: 18px;
    line-height: 1.12;
}

.service-card__copy span {
    font-size: 13px;
    line-height: 1.4;
}

.contest-card {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 214, 80, 0.18), rgba(249, 214, 80, 0.08));
    border: 1px solid rgba(249, 214, 80, 0.28);
}

.contest-card__head strong {
    font-size: 18px;
    line-height: 1.2;
}

.contest-card__head span {
    font-size: 13px;
}

.menu-list {
    gap: 10px;
}

.menu-row {
    padding: 16px;
    border-radius: 14px;
}

.menu-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.menu-row__copy strong {
    font-size: 16px;
    line-height: 1.2;
}

.menu-row__copy span {
    font-size: 13px;
    line-height: 1.4;
}

.profile-overview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0 2px;
    background: transparent;
    border: 0;
}

.profile-overview__avatar {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #231f20;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-overview__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-overview__copy strong {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.profile-overview__copy span {
    font-size: 14px;
    color: var(--muted);
}

.mini-stats {
    gap: 10px;
}

.mini-stats__item {
    padding: 16px 12px;
    border-radius: 14px;
}

.mini-stats__item strong {
    font-size: 24px;
}

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

.leaderboard-podium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: center;
}

.leaderboard-podium.is-champion {
    background: linear-gradient(180deg, rgba(249, 214, 80, 0.18), var(--surface));
    border-color: rgba(249, 214, 80, 0.32);
}

.leaderboard-podium__medal {
    font-size: 20px;
    line-height: 1;
}

.leaderboard-podium__avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(249, 214, 80, 0.12);
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
}

.leaderboard-podium strong {
    font-size: 15px;
    line-height: 1.2;
}

.leaderboard-podium span {
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
}

.leaderboard-podium__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.leaderboard-row {
    grid-template-columns: 32px 44px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
}

.leaderboard-row__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 20px;
}

.leaderboard-row__copy strong {
    font-size: 15px;
    line-height: 1.2;
}

.leaderboard-row__copy span {
    font-size: 12px;
}

.leaderboard-row__value {
    font-size: 15px;
}

.bottom-dock {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    padding: 0;
}

.bottom-dock__rail {
    width: min(100%, 480px);
    margin: 0 auto;
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -12px 28px rgba(35, 31, 32, 0.08);
    backdrop-filter: none;
}

:root[data-theme="dark"] .bottom-dock__rail {
    background: rgba(28, 27, 26, 0.98);
}

.bottom-dock__item-inner {
    min-height: 54px;
    border-radius: 12px;
    gap: 4px;
}

.bottom-dock__item strong {
    font-size: 10px;
    font-weight: 500;
}

.bottom-dock__item.active .bottom-dock__item-inner {
    min-height: 54px;
    background: rgba(249, 214, 80, 0.16);
    color: #231f20;
}

:root[data-theme="dark"] .bottom-dock__item.active .bottom-dock__item-inner {
    color: #f9d650;
}

.profile-orb {
    display: none !important;
}

@media (max-width: 374px) {
    .dashboard-hero__copy strong,
    .page-hero__copy strong,
    .title-hero strong {
        font-size: 25px;
    }

    .leaderboard-top {
        gap: 8px;
    }

    .leaderboard-podium {
        padding: 14px 8px;
    }
}

/* Final dark redesign */
body {
    background: #2d2d2d;
}

.app-shell {
    width: min(100%, 460px);
    padding: max(24px, env(safe-area-inset-top)) 18px calc(112px + env(safe-area-inset-bottom));
}

.app-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wa-home-header,
.wa-page-header,
.wa-centered-hero,
.wa-balance-card,
.wa-highlight-card,
.wa-menu-card,
.wa-quick-card,
.wa-info-card,
.wa-transaction-card,
.wa-sheet-card,
.wa-status-card,
.wa-feature-card,
.wa-plan-card,
.wa-market-card,
.wa-stat-card,
.wa-link-card,
.wa-step-card,
.wa-history-card,
.wa-summary-stats-card,
.wa-position-card,
.wa-price-card,
.wa-pay-card,
.wa-radio-card,
.wa-empty-card,
.wa-flow-card,
.wa-copy-card,
.wa-contest-meta-card,
.wa-warning-card {
    border-radius: 24px;
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
}

.wa-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wa-home-header__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-home-header__copy strong,
.wa-page-header strong,
.wa-centered-hero strong,
.wa-sheet-head strong,
.wa-list-section h3,
.wa-section-block h3,
.wa-settings-block h3,
.wa-profile-screen h1 {
    color: #f8f8f8;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 700;
    margin: 0;
}

.wa-home-header__copy span,
.wa-page-header span,
.wa-centered-hero span,
.wa-sheet-head span,
.wa-menu-card__copy span,
.wa-info-card span,
.wa-transaction-card__copy span,
.wa-transaction-card__meta span,
.wa-balance-card span,
.wa-plan-card__copy span,
.wa-status-card span,
.wa-status-card em,
.wa-feature-item span,
.wa-step-card small,
.wa-link-card span,
.wa-radio-card__copy,
.wa-position-card__copy span,
.wa-price-card em {
    color: #a6a6a6;
    font-size: 14px;
    line-height: 1.45;
}

.wa-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wa-back-btn,
.wa-home-header__profile,
.wa-sheet-close {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #f6d34d;
    flex-shrink: 0;
}

.wa-back-btn svg,
.wa-home-header__profile svg,
.wa-sheet-close svg {
    width: 24px;
    height: 24px;
}

.wa-centered-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    background: transparent;
    border: 0;
    padding: 8px 0 6px;
}

.wa-hero-badge {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(246, 211, 77, 0.12);
    color: #f6d34d;
}

.wa-hero-badge svg {
    width: 36px;
    height: 36px;
}

.wa-balance-card {
    padding: 24px;
    background: linear-gradient(135deg, #f2d24f 0%, #f7db65 100%);
    color: #191919;
    box-shadow: 0 18px 50px rgba(246, 211, 77, 0.18);
}

.wa-balance-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.wa-balance-card__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(25, 25, 25, 0.86) !important;
    font-size: 16px !important;
}

.wa-balance-card__label svg {
    width: 22px;
    height: 22px;
}

.wa-balance-card strong {
    display: block;
    color: #191919;
    font-size: 28px;
    line-height: 1.05;
    margin-bottom: 8px;
}

.wa-balance-card__plus {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 25, 25, 0.14);
    color: #191919;
}

.wa-balance-card--earnings {
    margin-top: 2px;
}

.wa-quick-grid,
.wa-action-grid,
.wa-stat-grid,
.wa-market-grid {
    display: grid;
    gap: 16px;
}

.wa-quick-grid,
.wa-action-grid,
.wa-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wa-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wa-quick-card,
.wa-action-card,
.wa-stat-card,
.wa-market-card {
    padding: 22px;
    min-height: 158px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
}

.wa-quick-card__icon,
.wa-action-card__icon,
.wa-stat-card__icon,
.wa-menu-card__icon,
.wa-transaction-card__icon,
.wa-pay-card__icon,
.wa-feature-item__icon,
.wa-history-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 211, 77, 0.12);
    color: #f6d34d;
    flex-shrink: 0;
}

.wa-quick-card__icon svg,
.wa-action-card__icon svg,
.wa-stat-card__icon svg,
.wa-menu-card__icon svg,
.wa-transaction-card__icon svg,
.wa-pay-card__icon svg,
.wa-feature-item__icon svg,
.wa-history-card__icon svg {
    width: 24px;
    height: 24px;
}

.wa-quick-card strong,
.wa-action-card strong,
.wa-market-card strong,
.wa-menu-card__copy strong,
.wa-transaction-card__copy strong,
.wa-position-card__copy strong,
.wa-link-card strong,
.wa-feature-card strong,
.wa-status-card strong,
.wa-plan-card__topline strong,
.wa-plan-card__copy strong,
.wa-history-card__copy strong,
.wa-sheet-head strong,
.wa-contest-prize strong,
.wa-copy-card strong,
.wa-info-row strong,
.wa-summary-card__row strong,
.wa-summary-card__total strong,
.wa-history-card__bottom strong {
    font-size: 18px;
    line-height: 1.22;
    color: #f7f7f7;
}

.wa-quick-card span,
.wa-action-card span,
.wa-market-card span,
.wa-stat-card span,
.wa-status-card span,
.wa-link-card span,
.wa-feature-card span,
.wa-info-row span,
.wa-summary-card__row span,
.wa-summary-card__total span,
.wa-price-card span,
.wa-copy-card span,
.wa-flow-row span,
.wa-contest-meta-card span {
    font-size: 14px;
    color: #a6a6a6;
}

.wa-action-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
}

.wa-action-card.is-active {
    background: linear-gradient(135deg, #f2d24f 0%, #f7db65 100%);
    color: #181818;
}

.wa-action-card.is-active strong,
.wa-action-card.is-active span,
.wa-action-card.is-active .wa-action-card__icon {
    color: #181818;
}

.wa-action-card.is-active .wa-action-card__icon {
    background: rgba(25, 25, 25, 0.12);
}

.wa-highlight-card,
.wa-menu-card,
.wa-transaction-card,
.wa-position-card,
.wa-link-card,
.wa-feature-card,
.wa-status-card,
.wa-price-card {
    padding: 22px;
}

.wa-highlight-card,
.wa-menu-card,
.wa-transaction-card,
.wa-position-card,
.wa-copy-card,
.wa-pay-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wa-highlight-card {
    background: linear-gradient(135deg, rgba(246, 211, 77, 0.2), rgba(246, 211, 77, 0.08));
    border-color: rgba(246, 211, 77, 0.3);
}

.wa-highlight-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 211, 77, 0.12);
    color: #f6d34d;
    flex-shrink: 0;
}

.wa-highlight-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-highlight-card__copy,
.wa-menu-card__copy,
.wa-profile-head__copy,
.wa-transaction-card__copy,
.wa-pay-card__copy,
.wa-link-card,
.wa-step-card div,
.wa-ranking-card__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.wa-highlight-card__copy strong {
    font-size: 20px;
    color: #f8f8f8;
}

.wa-highlight-card__copy em {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(246, 211, 77, 0.18);
    color: #f6d34d;
    font-style: normal;
    font-size: 13px;
    margin-top: 6px;
}

.wa-row-stack,
.wa-transaction-list,
.wa-step-list,
.wa-ranking-list,
.wa-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-row-arrow {
    margin-left: auto;
    color: #b3b3b3;
}

.wa-row-arrow svg {
    width: 20px;
    height: 20px;
}

.wa-info-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wa-info-row,
.wa-summary-card__row,
.wa-summary-card__total,
.wa-summary-stats-card__row,
.wa-flow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wa-list-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-transaction-card__meta {
    margin-left: auto;
    text-align: right;
}

.wa-empty-card {
    padding: 24px;
    text-align: center;
}

.wa-sheet-card {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 18px);
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
    background: #1d1d1d;
}

.wa-sheet-card--tall {
    max-height: calc(100vh - 12px);
}

.wa-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.wa-sheet-head > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-field-group,
.wa-section-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.wa-field-group--spaced {
    margin-top: 8px;
}

.wa-field-stack,
.wa-pay-grid,
.wa-radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-field-label {
    color: #b0b0b0;
    font-size: 14px;
}

.wa-input-shell {
    min-height: 74px;
    padding: 0 18px;
    border-radius: 20px;
    background: #303030;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f2d24f;
}

.wa-input-shell svg {
    width: 22px;
    height: 22px;
}

.wa-input-shell input {
    width: 100%;
    color: #f5f5f5;
    font-size: 18px;
    min-width: 0;
}

.wa-input-shell input::placeholder {
    color: #878787;
}

.wa-input-shell--recipient input {
    color: #f6d34d;
}

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

.wa-self-btn {
    min-width: 98px;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f3f3f3;
    font-size: 15px;
    font-weight: 600;
}

.wa-self-btn.is-active {
    border-color: rgba(246, 211, 77, 0.5);
    color: #f6d34d;
}

.wa-recipient-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #252525;
    border: 1px solid rgba(246, 211, 77, 0.28);
}

.wa-recipient-preview__avatar,
.wa-transaction-card__avatar,
.wa-profile-head__avatar {
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f2d24f, #f7db65);
    color: #191919;
    font-weight: 700;
}

.wa-recipient-preview__avatar,
.wa-transaction-card__avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.wa-profile-head__avatar {
    width: 88px;
    height: 88px;
    font-size: 34px;
}

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

.wa-choice-btn {
    min-height: 68px;
    padding: 0 12px;
    border-radius: 18px;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f2f2f2;
    font-size: 18px;
    font-weight: 500;
}

.wa-choice-btn.is-active,
.wa-plan-card.is-active,
.wa-radio-card.is-active {
    border-color: #f6d34d;
    box-shadow: inset 0 0 0 1px rgba(246, 211, 77, 0.18);
    background: rgba(246, 211, 77, 0.08);
}

.wa-summary-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 18px;
}

.wa-summary-card__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.wa-summary-card__total strong {
    font-size: 22px;
}

.wa-primary-btn,
.wa-secondary-btn {
    width: 100%;
    min-height: 66px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.wa-primary-btn {
    background: linear-gradient(135deg, #f2d24f 0%, #f7db65 100%);
    color: #171717;
}

.wa-secondary-btn {
    background: #262626;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-full-btn {
    margin-top: 6px;
}

.wa-note-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(246, 211, 77, 0.08);
    color: #cfbf7a;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.5;
}

.wa-pay-card {
    align-items: center;
    padding: 18px;
}

.wa-pay-card.is-active {
    border-color: rgba(246, 211, 77, 0.5);
    background: rgba(246, 211, 77, 0.08);
}

.wa-pay-card.is-disabled {
    opacity: 0.46;
}

.wa-plan-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-plan-card {
    width: 100%;
    min-height: 110px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.wa-plan-card__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.wa-plan-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(246, 211, 77, 0.2);
    color: #f6d34d;
    font-size: 13px;
    font-weight: 600;
}

.wa-plan-card__check,
.wa-radio-card__tick {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f6d34d;
    flex-shrink: 0;
}

.wa-plan-card.is-active .wa-plan-card__check,
.wa-radio-card.is-active .wa-radio-card__tick {
    background: #f6d34d;
    color: #191919;
    border-color: #f6d34d;
}

.wa-plan-card__check svg,
.wa-radio-card__tick svg {
    width: 16px;
    height: 16px;
}

.wa-status-card,
.wa-feature-card,
.wa-section-block,
.wa-settings-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-status-card {
    padding: 26px 22px;
    align-items: center;
    text-align: center;
}

.wa-status-card strong {
    font-size: 24px;
}

.wa-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wa-price-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(246, 211, 77, 0.16), rgba(246, 211, 77, 0.08));
    border-color: rgba(246, 211, 77, 0.26);
}

.wa-price-card strong {
    font-size: 32px;
    line-height: 1;
}

.wa-price-card__trend {
    color: #00c853;
    font-size: 16px;
    font-weight: 700;
}

.wa-market-tabs,
.wa-period-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-period-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wa-market-tabs button,
.wa-period-tabs button {
    min-height: 54px;
    border-radius: 16px;
    color: #ededed;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wa-market-tabs button.is-active,
.wa-period-tabs button.is-active {
    background: #202020;
    box-shadow: inset 0 0 0 1px rgba(246, 211, 77, 0.22);
    color: #ffffff;
}

.wa-market-card {
    min-height: 0;
    gap: 14px;
}

.wa-market-card__art {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(246, 211, 77, 0.14);
    font-size: 56px;
}

.wa-profile-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wa-profile-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wa-profile-head__copy strong {
    font-size: 26px;
    color: #f8f8f8;
}

.wa-profile-head__copy em {
    color: #9b9b9b;
    font-style: normal;
    font-size: 14px;
}

.wa-stat-card {
    min-height: 138px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wa-stat-card strong {
    font-size: 22px;
}

.wa-link-card__row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding-top: 10px;
}

.wa-inline-copy {
    color: #f6d34d;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.wa-step-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.wa-step-card > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 211, 77, 0.12);
    color: #f6d34d;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.wa-podium {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: end;
    gap: 14px;
}

.wa-podium__main,
.wa-podium__side {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.wa-podium__avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f2d24f, #f7db65);
    color: #191919;
}

.wa-podium__avatar svg {
    width: 42px;
    height: 42px;
}

.wa-podium__main strong,
.wa-podium__side strong {
    font-size: 20px;
}

.wa-podium__main em,
.wa-podium__side em {
    color: #f6d34d;
    font-style: normal;
    font-size: 18px;
    font-weight: 700;
}

.wa-podium__medal {
    font-size: 38px;
}

.wa-ranking-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: #232323;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-ranking-card.is-top {
    background: linear-gradient(135deg, rgba(246, 211, 77, 0.12), rgba(246, 211, 77, 0.05));
    border-color: rgba(246, 211, 77, 0.28);
}

.wa-ranking-card__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.wa-ranking-card__rank {
    color: #a6a6a6;
    font-size: 24px;
    min-width: 42px;
}

.wa-ranking-card__copy strong {
    font-size: 18px;
    color: #f8f8f8;
}

.wa-ranking-card__points {
    text-align: right;
    flex-shrink: 0;
}

.wa-ranking-card__points strong {
    font-size: 20px;
    color: #f4f4f4;
}

.wa-position-card {
    background: linear-gradient(135deg, rgba(246, 211, 77, 0.18), rgba(246, 211, 77, 0.08));
    border-color: rgba(246, 211, 77, 0.25);
}

.wa-position-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f2d24f, #f7db65);
    color: #191919;
    font-weight: 700;
    font-size: 22px;
}

.wa-position-card__meta {
    margin-left: auto;
    text-align: right;
}

.wa-position-card__meta strong {
    display: block;
    font-size: 22px;
    color: #f8f8f8;
}

.wa-position-card__meta span {
    color: #d0d0d0;
}

.wa-history-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
}

.wa-history-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-history-card__top,
.wa-history-card__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.wa-history-card__copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.wa-history-card__copy strong {
    font-size: 18px;
    color: #f8f8f8;
}

.wa-history-card__copy span,
.wa-history-card__stamp span,
.wa-history-card__stamp small {
    color: #a8a8a8;
    font-size: 14px;
}

.wa-history-card__status {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
}

.wa-history-card__status.is-completed {
    color: #00c853;
}

.wa-history-card__status.is-pending {
    color: #f1a700;
}

.wa-history-card__status.is-cancelled {
    color: #ff3b30;
}

.wa-history-card__bottom strong {
    font-size: 18px;
}

.wa-summary-stats-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-copy-card {
    padding: 18px;
    justify-content: space-between;
}

.wa-copy-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-copy-card strong {
    font-size: 18px;
    word-break: break-word;
}

.wa-flow-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

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

.wa-contest-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(246, 211, 77, 0.1);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.wa-contest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-contest-placeholder {
    color: #f6d34d;
}

.wa-contest-placeholder svg {
    width: 84px;
    height: 84px;
}

.wa-contest-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    text-align: center;
}

.contest-inline-link {
    color: #f8f8f8;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

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

.wa-contest-meta-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-contest-meta-card strong {
    font-size: 18px;
}

.wa-radio-list {
    gap: 12px;
}

.wa-radio-card {
    width: 100%;
    min-height: 72px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wa-radio-card__copy {
    color: #f4f4f4;
    font-size: 17px;
}

.wa-settings-block {
    margin-top: 4px;
}

.wa-version {
    color: #8f8f8f;
    text-align: center;
    font-size: 14px;
    padding: 6px 0 2px;
}

.wa-warning-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 80, 80, 0.12);
    border-color: rgba(255, 80, 80, 0.18);
}

.wa-warning-card strong {
    font-size: 17px;
}

.wa-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
}

.wa-bottom-nav__rail {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    background: #232323;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-bottom-nav__item {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #b3b3b3;
}

.wa-bottom-nav__icon,
.wa-bottom-nav__item svg {
    width: 24px;
    height: 24px;
}

.wa-bottom-nav__item strong {
    font-size: 12px;
    font-weight: 500;
}

.wa-bottom-nav__item.is-active {
    color: #f6d34d;
}

@media (max-width: 420px) {
    .app-shell {
        padding-inline: 14px;
    }

    .wa-home-header__copy strong,
    .wa-page-header strong,
    .wa-centered-hero strong,
    .wa-profile-screen h1 {
        font-size: 24px;
    }

    .wa-quick-card,
    .wa-action-card,
    .wa-market-card {
        min-height: 142px;
        padding: 18px;
    }

    .wa-stat-grid {
        gap: 12px;
    }

    .wa-stat-card {
        min-height: 126px;
        padding: 16px 10px;
    }

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

    .wa-period-tabs button {
        font-size: 13px;
    }
}

/* Compact dark redesign polish */
.app-shell {
    padding: max(34px, calc(env(safe-area-inset-top) + 10px)) 16px calc(96px + env(safe-area-inset-bottom));
}

.app-main,
.wa-profile-screen,
.wa-list-section,
.wa-row-stack,
.wa-transaction-list,
.wa-step-list,
.wa-ranking-list,
.wa-history-list {
    gap: 12px;
}

.wa-home-header,
.wa-page-header {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    gap: 12px;
}

.wa-home-header__copy strong,
.wa-profile-screen h1 {
    font-size: 22px;
    line-height: 1.12;
}

.wa-page-header strong,
.wa-centered-hero strong {
    font-size: 18px;
    line-height: 1.14;
}

.wa-home-header__copy span,
.wa-page-header span,
.wa-centered-hero span,
.wa-sheet-head span,
.wa-menu-card__copy span,
.wa-info-card span,
.wa-transaction-card__copy span,
.wa-transaction-card__meta span,
.wa-balance-card span,
.wa-plan-card__copy span,
.wa-status-card span,
.wa-status-card em,
.wa-feature-item span,
.wa-step-card small,
.wa-link-card span,
.wa-radio-card__copy,
.wa-position-card__copy span,
.wa-price-card em,
.wa-ranking-card__copy span,
.wa-history-card__copy span,
.wa-history-card__stamp span,
.wa-history-card__stamp small,
.wa-stat-card span {
    font-size: 13px;
    line-height: 1.35;
}

.wa-back-btn,
.wa-home-header__profile,
.wa-sheet-close {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.wa-back-btn svg,
.wa-home-header__profile svg,
.wa-sheet-close svg {
    width: 21px;
    height: 21px;
}

.wa-centered-hero {
    gap: 12px;
    padding: 4px 0 2px;
}

.wa-hero-badge {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.wa-hero-badge svg {
    width: 30px;
    height: 30px;
}

.wa-balance-card,
.wa-highlight-card,
.wa-menu-card,
.wa-transaction-card,
.wa-sheet-card,
.wa-status-card,
.wa-feature-card,
.wa-plan-card,
.wa-market-card,
.wa-stat-card,
.wa-link-card,
.wa-step-card,
.wa-history-card,
.wa-summary-stats-card,
.wa-position-card,
.wa-price-card,
.wa-pay-card,
.wa-radio-card,
.wa-empty-card,
.wa-flow-card,
.wa-copy-card,
.wa-contest-meta-card,
.wa-warning-card,
.wa-info-card,
.wa-summary-card {
    border-radius: 20px;
}

.wa-balance-card,
.wa-info-card,
.wa-highlight-card,
.wa-menu-card,
.wa-transaction-card,
.wa-position-card,
.wa-link-card,
.wa-feature-card,
.wa-status-card,
.wa-price-card,
.wa-summary-stats-card {
    padding: 18px;
}

.wa-balance-card {
    box-shadow: 0 14px 36px rgba(246, 211, 77, 0.14);
}

.wa-balance-card__head {
    margin-bottom: 14px;
}

.wa-balance-card__label {
    font-size: 15px !important;
}

.wa-balance-card__label svg {
    width: 20px;
    height: 20px;
}

.wa-balance-card strong {
    font-size: 24px;
    margin-bottom: 6px;
}

.wa-balance-card__plus {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.wa-quick-grid,
.wa-action-grid,
.wa-stat-grid,
.wa-market-grid,
.wa-contest-meta-grid,
.wa-inline-actions,
.wa-choice-grid {
    gap: 10px;
}

.wa-quick-card,
.wa-action-card,
.wa-market-card {
    min-height: 122px;
    padding: 16px;
}

.wa-stat-card {
    min-height: 106px;
    padding: 14px 10px;
}

.wa-quick-card__icon,
.wa-action-card__icon,
.wa-stat-card__icon,
.wa-menu-card__icon,
.wa-transaction-card__icon,
.wa-pay-card__icon,
.wa-feature-item__icon,
.wa-history-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.wa-quick-card__icon svg,
.wa-action-card__icon svg,
.wa-stat-card__icon svg,
.wa-menu-card__icon svg,
.wa-transaction-card__icon svg,
.wa-pay-card__icon svg,
.wa-feature-item__icon svg,
.wa-history-card__icon svg {
    width: 20px;
    height: 20px;
}

.wa-quick-card strong,
.wa-action-card strong,
.wa-market-card strong,
.wa-menu-card__copy strong,
.wa-transaction-card__copy strong,
.wa-position-card__copy strong,
.wa-link-card strong,
.wa-feature-card strong,
.wa-status-card strong,
.wa-plan-card__topline strong,
.wa-plan-card__copy strong,
.wa-history-card__copy strong,
.wa-sheet-head strong,
.wa-contest-prize strong,
.wa-copy-card strong,
.wa-info-row strong,
.wa-summary-card__row strong,
.wa-summary-card__total strong,
.wa-history-card__bottom strong {
    font-size: 16px;
    line-height: 1.2;
}

.wa-action-card {
    min-height: 118px;
    border-radius: 22px;
}

.wa-action-card.is-active {
    box-shadow: none;
}

.wa-highlight-card {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(246, 211, 77, 0.13), rgba(246, 211, 77, 0.05));
}

.wa-highlight-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.wa-highlight-card__copy,
.wa-menu-card__copy,
.wa-profile-head__copy,
.wa-transaction-card__copy,
.wa-pay-card__copy,
.wa-link-card,
.wa-step-card div,
.wa-ranking-card__copy {
    gap: 4px;
}

.wa-highlight-card__copy strong {
    font-size: 17px;
}

.wa-highlight-card__copy span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wa-highlight-card__copy em {
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 12px;
}

.wa-highlight-card__leaders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.wa-highlight-card__leader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    color: #f0e7bc;
    font-size: 12px;
    line-height: 1;
}

.wa-highlight-card__leader strong {
    font-size: 12px;
    color: #fff4bc;
}

.wa-row-arrow svg {
    width: 18px;
    height: 18px;
}

.wa-sheet-card {
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
}

.wa-sheet-head {
    gap: 14px;
    margin-bottom: 18px;
}

.wa-field-group,
.wa-section-block {
    gap: 10px;
    margin-bottom: 16px;
}

.wa-field-stack,
.wa-pay-grid,
.wa-radio-list {
    gap: 10px;
}

.wa-field-label {
    font-size: 13px;
}

.wa-input-shell {
    min-height: 60px;
    padding: 0 16px;
    border-radius: 18px;
    gap: 12px;
}

.wa-input-shell svg {
    width: 20px;
    height: 20px;
}

.wa-input-shell input {
    font-size: 16px;
}

.wa-recipient-row {
    align-items: stretch;
}

.wa-self-btn {
    min-width: 104px;
    height: 60px;
    border-radius: 18px;
    font-size: 14px;
}

.wa-recipient-preview {
    padding: 14px 16px;
    border-radius: 18px;
}

.wa-recipient-preview__avatar,
.wa-transaction-card__avatar {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.wa-profile-head__avatar {
    width: 72px;
    height: 72px;
    font-size: 28px;
}

.wa-choice-btn {
    min-height: 56px;
    border-radius: 16px;
    padding: 0 10px;
    font-size: 16px;
}

.wa-summary-card {
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
}

.wa-summary-card__total strong {
    font-size: 20px;
}

.wa-primary-btn,
.wa-secondary-btn {
    min-height: 56px;
    border-radius: 18px;
    font-size: 16px;
}

.wa-note-card {
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 14px;
}

.wa-plan-list {
    gap: 12px;
}

.wa-plan-card {
    min-height: 92px;
    padding: 16px 18px;
}

.wa-plan-card__badge {
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 12px;
}

.wa-plan-card__check,
.wa-radio-card__tick {
    width: 24px;
    height: 24px;
}

.wa-plan-card__check svg,
.wa-radio-card__tick svg {
    width: 13px;
    height: 13px;
}

.wa-status-card {
    padding: 22px 18px;
}

.wa-status-card strong {
    font-size: 20px;
}

.wa-price-card {
    padding: 18px;
}

.wa-price-card strong {
    font-size: 24px;
}

.wa-price-card__trend {
    font-size: 15px;
}

.wa-market-tabs,
.wa-period-tabs {
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
}

.wa-market-tabs button,
.wa-period-tabs button {
    min-height: 46px;
    border-radius: 14px;
    font-size: 14px;
}

.wa-market-tabs button svg,
.wa-period-tabs button svg {
    width: 18px;
    height: 18px;
}

.wa-market-card {
    padding: 16px;
    gap: 10px;
}

.wa-market-card__art {
    border-radius: 18px;
    font-size: 48px;
}

.wa-profile-head {
    gap: 16px;
}

.wa-profile-head__copy strong {
    font-size: 20px;
}

.wa-profile-head__copy em {
    font-size: 13px;
}

.wa-stat-card strong {
    font-size: clamp(16px, 3.8vw, 19px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.wa-step-card {
    gap: 14px;
    padding: 18px;
}

.wa-step-card > span {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.wa-podium {
    grid-template-columns: 1fr 1.14fr 1fr;
    gap: 8px;
    align-items: end;
}

.wa-podium__main,
.wa-podium__side {
    gap: 5px;
    min-width: 0;
}

.wa-podium__avatar {
    width: 84px;
    height: 84px;
}

.wa-podium__avatar svg {
    width: 32px;
    height: 32px;
}

.wa-podium__main strong,
.wa-podium__side strong {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}

.wa-podium__main span,
.wa-podium__side span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.wa-podium__main em,
.wa-podium__side em {
    font-size: 15px;
}

.wa-podium__medal {
    font-size: 26px;
}

.wa-ranking-card {
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
}

.wa-ranking-card__left {
    gap: 10px;
    flex: 1;
}

.wa-ranking-card__rank {
    min-width: 28px;
    font-size: 19px;
    text-align: center;
}

.wa-ranking-card__copy {
    flex: 1;
    min-width: 0;
}

.wa-ranking-card__copy strong {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-ranking-card__copy span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-ranking-card__points {
    min-width: 102px;
}

.wa-ranking-card__points strong {
    font-size: 15px;
    white-space: nowrap;
}

.wa-ranking-card__points span {
    font-size: 12px;
}

.wa-position-card {
    padding: 16px 18px;
}

.wa-position-card__avatar {
    width: 46px;
    height: 46px;
    font-size: 19px;
}

.wa-position-card__meta strong {
    font-size: 18px;
}

.wa-position-card__meta span {
    font-size: 13px;
}

.wa-history-card {
    gap: 12px;
    padding: 16px 18px;
}

.wa-history-card__body {
    gap: 10px;
}

.wa-history-card__top,
.wa-history-card__bottom {
    gap: 12px;
}

.wa-history-card__copy strong {
    font-size: 16px;
}

.wa-history-card__status {
    font-size: 14px;
}

.wa-history-card__bottom strong {
    font-size: 16px;
    white-space: nowrap;
}

.wa-summary-stats-card {
    gap: 12px;
}

.wa-copy-card,
.wa-flow-card {
    padding: 16px;
}

.wa-contest-media {
    border-radius: 22px;
    margin-bottom: 16px;
}

.wa-contest-media img {
    object-position: center;
}

.wa-contest-placeholder svg {
    width: 72px;
    height: 72px;
}

.wa-contest-prize {
    gap: 8px;
    margin-bottom: 16px;
}

.contest-inline-link {
    font-size: 21px;
    word-break: break-word;
}

.wa-contest-meta-card {
    padding: 16px;
}

.wa-contest-meta-card strong {
    font-size: 16px;
}

.wa-contest-ranking {
    margin-top: 16px;
}

.wa-radio-card {
    min-height: 60px;
    padding: 0 16px;
}

.wa-radio-card__copy {
    font-size: 15px;
}

.wa-version {
    font-size: 13px;
}

.wa-bottom-nav__rail {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 4px;
    border-radius: 28px 28px 0 0;
}

.wa-bottom-nav__item {
    min-height: 52px;
    gap: 5px;
}

.wa-bottom-nav__icon,
.wa-bottom-nav__item svg {
    width: 22px;
    height: 22px;
}

.wa-bottom-nav__item strong {
    font-size: 11px;
}

@media (max-width: 420px) {
    .wa-home-header__copy strong,
    .wa-page-header strong,
    .wa-centered-hero strong,
    .wa-profile-screen h1 {
        font-size: 20px;
    }

    .wa-quick-card,
    .wa-action-card,
    .wa-market-card {
        min-height: 116px;
    }

    .wa-stat-card {
        min-height: 100px;
    }
}
