:root { color-scheme: light; --u: min(1vw, 4.3px); --v: max(var(--u), calc(100svh / 166)); --pink: #df0760; --ink: #160b30; --muted: #686466; }
* { box-sizing: border-box; }
html { min-height: 100%; background: #fceaf2; }
body { margin: 0; min-width: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; background: radial-gradient(ellipse at 50% 3%, #f9d8e8 0%, transparent 48%), radial-gradient(ellipse at 17% 70%, #ffe7f0 0%, transparent 48%), radial-gradient(ellipse at 86% 57%, #fce0ee 0%, transparent 43%), linear-gradient(115deg, #f9e2ed, #fff6fa 49%, #fae5f0); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; color: inherit; border: 0; background: none; transition: transform .16s ease, filter .16s ease, background-color .16s ease; }
button:active { transform: scale(.96); }
button:focus-visible { outline: 3px solid #851b69; outline-offset: 3px; }
button:hover { filter: brightness(1.035); }
[hidden] { display: none !important; }
.icon { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sprite { position: absolute; overflow: hidden; pointer-events: none; }
.icon-button { display: inline-grid; place-items: center; padding: 0; min-width: 44px; min-height: 44px; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.floating-heart { position: absolute; width: 24px; height: 24px; background: #fff9fc; opacity: .58; transform: rotate(-22deg); filter: blur(.4px); animation: drift 9s ease-in-out infinite alternate; }
.floating-heart::before, .floating-heart::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.floating-heart::before { left: -50%; }
.floating-heart::after { top: -50%; }
.heart-one { left: 27%; top: 6%; width: 16px; height: 16px; }
.heart-two { left: 70%; top: 11%; width: 20px; height: 20px; animation-delay: -3s; }
.heart-three { left: 26%; top: 87%; width: 22px; height: 22px; animation-delay: -5s; }
.heart-four { left: 70%; top: 81%; width: 16px; height: 16px; animation-delay: -7s; }
.sparkle { position: absolute; width: 5px; height: 5px; background: white; border-radius: 50%; box-shadow: 0 0 9px 3px #fff9; animation: twinkle 4s ease-in-out infinite alternate; }
.sparkle-one { left: 15%; top: 37%; }
.sparkle-two { left: 72%; top: 35%; animation-delay: -2s; }
.sparkle-three { left: 32%; top: 90%; animation-delay: -1s; }
.petal { position: absolute; width: 12px; height: 24px; background: linear-gradient(140deg, #fff8, #f58db6a0); border-radius: 100% 0 100% 0; transform: rotate(25deg); }
.petal-one { left: 30%; top: 82%; }
.petal-two { left: 26%; top: 64%; width: 6px; height: 13px; background: #fffc; transform: rotate(-35deg); }
.app { width: 100%; max-width: 430px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; position: relative; isolation: isolate; overflow: clip; padding-bottom: calc(var(--u) * 24 + env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse at 0% 78%, #f9bad2 0%, transparent 21%), radial-gradient(ellipse at 100% 91%, #f8d2e1 0%, transparent 35%), linear-gradient(135deg, #fce5ed, #fff0f5 52%, #fce2ec); box-shadow: 0 7px 38px #d778a51a; }
.app::before { content: ''; position: absolute; z-index: -1; width: 38%; height: 9%; left: -27%; top: calc(var(--v) * 118); border: calc(var(--u) * 3.8) solid #f79dbf55; border-radius: 50%; transform: rotate(-40deg); box-shadow: 0 0 10px #fff8, inset 0 0 15px #f587b055; pointer-events: none; }
.profile { height: calc(var(--v) * 55.3); position: relative; color: #fff; background: #9c437d url('profile-sunset.png') center / 100% 100% no-repeat; }
.profile::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #30183b00 17%, #3d133110 62%, #ee9ac045 83%, #fce4ed 100%); }
.settings { position: absolute; z-index: 2; top: calc(var(--u) * 3.2); right: calc(var(--u) * 3.4); color: white; font-size: calc(var(--u) * 7.7); filter: drop-shadow(0 1px 2px #66265540); }
.user { position: absolute; z-index: 1; top: calc(var(--v) * 19.4); left: calc(var(--u) * 7.7); right: calc(var(--u) * 5.3); display: flex; align-items: flex-start; gap: calc(var(--u) * 4.4); }
.avatar { width: calc(var(--u) * 24.2); height: calc(var(--u) * 24.2); border-radius: 50%; background: #fff; flex-shrink: 0; border: calc(var(--u) * .45) solid #eab65b; padding: 1px; box-shadow: 0 1px 7px #8b365c25; overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.user-info { min-width: 0; padding-top: calc(var(--u) * 1.1); flex: 1; }
.username { margin: 0 0 calc(var(--u) * .9); font-size: calc(var(--u) * 6.65); line-height: 1.15; font-weight: 700; text-shadow: 0 2px 4px #64234935; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-customer-id { margin: 0 0 calc(var(--u) * .9); color: #fff; font-size: clamp(12px,calc(var(--u) * 3),13px); font-weight: 600; line-height: 1.25; text-shadow: 0 1px 3px #562045; overflow-wrap: anywhere; }
.vip { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--u) * 1.8); min-width: calc(var(--u) * 21.8); height: calc(var(--u) * 5.8); padding: 0 calc(var(--u) * 2.6); border-radius: 99px; background: linear-gradient(#fff9cf 0%, #ffdf79 60%, #ffc95b 100%); color: #bf6900; box-shadow: 0 0 10px #ffe09c90, inset 0 1px 2px #fff; font-size: calc(var(--u) * 3.95); font-weight: 700; white-space: nowrap; }
.vip .icon { width: calc(var(--u) * 4.7); height: calc(var(--u) * 4.4); color: #e99700; stroke-width: 1.4; fill: #f4b311; }
.progress { position: absolute; z-index: 1; top: calc(var(--v) * 40.6); left: calc(var(--u) * 36.3); right: calc(var(--u) * 7); height: calc(var(--u) * 2.65); padding: 1px; border-radius: 99px; background: #fff2f7e8; border: 1px solid #ff9dbf; box-shadow: 0 0 5px #ffb3d2, inset 0 1px 3px #be5b8230; overflow: hidden; }
.progress > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(#ff8bb8, #ff2e7a); }
.dashboard-content { position: relative; z-index: 1; margin-top: calc(var(--v) * -2); padding: 0 calc(var(--u) * 4.6); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 2.8); margin-bottom: calc(var(--v) * 3); position: relative; }
.actions::before { content: ''; position: absolute; inset: calc(var(--u) * -2.8) calc(var(--u) * -2.1) calc(var(--u) * -2.8); border-radius: calc(var(--u) * 6) calc(var(--u) * 6) 0 0; z-index: -1; background: linear-gradient(#fff8, #fff0); }
.action-button { display: flex; justify-content: center; align-items: center; gap: calc(var(--u) * 3); height: calc(var(--v) * 13.7); min-height: 44px; border-radius: calc(var(--u) * 3.9); font-size: calc(var(--u) * 4.5); font-weight: 700; box-shadow: 0 3px 5px #dd668b3d, inset 0 1px 1px #fff8; }
.action-button .icon { width: calc(var(--u) * 6.8); height: calc(var(--u) * 6.8); stroke-width: 1.6; }
.deposit { color: white; background: radial-gradient(ellipse at 5% 5%, #ffb4a6 0%, transparent 25%), radial-gradient(ellipse at 88% 0%, #9a217e 0%, transparent 64%), linear-gradient(125deg, #f42b53, #ec0c6e); border: 1px solid #ef76a1; }
.withdraw { color: var(--ink); background: linear-gradient(150deg, #fff, #fce4ed); border: 1px solid #fff9; }
.withdraw .icon { color: var(--pink); }
.card { background: linear-gradient(125deg, #fff9, #fffafccf); border: 1px solid #fff9; border-radius: calc(var(--u) * 5.2); box-shadow: 0 3px 7px #de7a9c38, 0 0 2px #f5acc270; }
.wallet { position: relative; overflow: hidden; padding: 0 calc(var(--u) * 5.1); margin-bottom: calc(var(--v) * 3); }
.wallet-title { height: calc(var(--v) * 15.1); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f5cddd; }
.wallet-title h2 { margin: 0; font-size: calc(var(--u) * 4.65); line-height: 1.2; font-weight: 700; }
.details-button { min-height: 44px; padding: 0; color: #ee0b69; font-size: calc(var(--u) * 3.9); white-space: nowrap; }
.details-button span { font-size: 1.3em; vertical-align: -.04em; }
.balance-row { min-height: calc(var(--v) * 17.4); display: flex; align-items: center; justify-content: space-between; gap: 4px; border-bottom: 1px solid #f5cddd; }
.amount { color: #df2163; font-size: calc(var(--u) * 9.3); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: calc(var(--u) * 3.95); line-height: 1.25; }
.balance-tools { display: flex; align-items: center; gap: calc(var(--u) * 1.4); margin-right: calc(var(--u) * -1.6); }
.refresh { color: var(--pink); font-size: calc(var(--u) * 5.8); }
.refresh .icon { stroke-width: 1.9; }
.refresh.is-refreshing .icon { animation: spin .6s ease-in-out; }
.credit-row { position: relative; z-index: 1; display: flex; align-items: center; gap: calc(var(--u) * 3); min-height: calc(var(--v) * 18.7); }
.credit-amount { min-width: calc(var(--u) * 31.5); font-size: calc(var(--u) * 8.7); }
.credit-tools { padding-top: calc(var(--u) * 1.1); display: flex; flex-direction: column; align-items: flex-start; }
.credit-tools .refresh { min-height: 44px; min-width: 44px; width: 44px; margin-left: -10px; font-size: calc(var(--u) * 5.4); }
.wallet-decoration { position: absolute; pointer-events: none; right: -3px; bottom: -2px; width: calc(var(--u) * 18); height: calc(var(--u) * 13); }
.wallet-decoration i { width: calc(var(--u) * 4.5); height: calc(var(--u) * 4.5); position: absolute; background: radial-gradient(at 24% 20%, #ffb5d2, #f63780); border-radius: 0 0 20% 0; transform: rotate(45deg); right: calc(var(--u) * 4.8); top: calc(var(--u) * 2.3); filter: drop-shadow(1px 3px 2px #ef769c40); }
.wallet-decoration i::before, .wallet-decoration i::after { content: ''; width: 100%; height: 100%; background: inherit; position: absolute; border-radius: 50%; }
.wallet-decoration i::before { top: -50%; }
.wallet-decoration i::after { left: -50%; }
.wallet-decoration i:nth-child(2) { transform: rotate(32deg) scale(.7); right: calc(var(--u) * 10); top: calc(var(--u) * 5); background: linear-gradient(135deg, #fff7fc, #ffbfdb); outline: 2px solid #ffbdd3; }
.wallet-decoration span { position: absolute; width: 130%; height: calc(var(--u) * 2.3); background: linear-gradient(#ffd2e2, #fff1f8 50%, #f6aac5); bottom: calc(var(--u) * 2); left: -5%; transform: rotate(-34deg); box-shadow: 0 1px 4px #eb84a440; }
.quick-links { height: calc(var(--v) * 16.9); display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; padding: 0 calc(var(--u) * 3.3); }
.quick-links button { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 3); width: 100%; min-height: 48px; padding: 0; font-size: calc(var(--u) * 3.45); line-height: 1.22; }
.quick-links .icon { width: calc(var(--u) * 5.8); height: calc(var(--u) * 5.8); color: var(--pink); stroke-width: 1.6; }
.link-divider { height: calc(var(--u) * 7); background: #f7d4e1; }
.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; display: grid; grid-template-columns: 1fr 1fr 1.06fr 1fr 1fr; align-items: center; height: calc(var(--u) * 20.4 + env(safe-area-inset-bottom, 0px)); padding: calc(var(--u) * 1.5) calc(var(--u) * 1.7) calc(var(--u) * 1.2 + env(safe-area-inset-bottom, 0px)); border-radius: calc(var(--u) * 8) calc(var(--u) * 8) calc(var(--u) * 6.5) calc(var(--u) * 6.5); background: linear-gradient(135deg, #fffbfded, #fff4f9e8); border-top: 1px solid #fff; box-shadow: 0 -2px 12px #fff6; }
.bottom-nav::before { content: ''; width: calc(var(--u) * 22); height: calc(var(--u) * 10); border-radius: 50% 50% 0 0; background: #fff7fb; position: absolute; left: 50%; top: calc(var(--u) * -2.2); transform: translateX(-50%); z-index: -1; }
.nav-item { height: 100%; min-height: 44px; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: calc(var(--u) * 1.4); color: #9c0035; border-radius: calc(var(--u) * 4.5); padding: calc(var(--u) * 1) 0; position: relative; font-size: calc(var(--u) * 3.05); white-space: nowrap; }
.nav-item .icon { width: calc(var(--u) * 6.7); height: calc(var(--u) * 6.7); color: #d80b60; stroke-width: 1.55; }
.nav-item.is-active { color: #ec075e; font-weight: 700; background: radial-gradient(ellipse at 50% 110%, #ffc5dcdc, transparent 74%); }
.nav-item .home-icon { fill: #f12a73; stroke: #f12a73; filter: drop-shadow(0 1px 1px #ffa4c5); }
.match-button { padding: 0; z-index: 1; }
.match-button img { display: block; width: calc(var(--u) * 16.8); height: calc(var(--u) * 17.7); margin-top: calc(var(--u) * -2.3); filter: drop-shadow(0 3px 3px #e986aa55); }
.match-button.is-active { background: none; }
.page { min-height: calc(100dvh - var(--u) * 24); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 76px; padding: 12px 12px 10px; background: linear-gradient(135deg, #fff6faed, #f9d5e6); border-bottom: 1px solid #f2bfd4; }
.page-header h1 { font-size: 20px; line-height: 1.3; text-align: center; margin: 0; outline: none; }
.back { color: var(--pink); font-size: 25px; }
.header-spacer { width: 44px; flex-shrink: 0; }
.sub-content { padding: 20px; }
.empty-state { text-align: center; padding: 42px 20px; margin-top: 8px; }
.empty-state > .icon { margin: 0 auto 18px; font-size: 45px; color: #df4b88; stroke-width: 1.3; }
.empty-state h2 { font-size: 19px; margin: 0 0 12px; }
.empty-state p { margin: 0; color: #786976; font-size: 14px; line-height: 1.65; }
.info-list { margin: 0; padding: 8px 20px; }
.info-row { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #f5d5e2; font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: #746574; }
.info-row dd { margin: 0; font-weight: 700; }
.sub-note { margin: 17px 5px; color: #786976; font-size: 13px; line-height: 1.65; }
.settings-link { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 12px 18px; font-size: 15px; }
.settings-link + .settings-link { border-top: 1px solid #f5d5e2; }
.settings-link span:last-child { color: var(--pink); font-size: 24px; }
.toast { position: fixed; z-index: 20; bottom: calc(var(--u) * 24 + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translate(-50%, 8px); width: max-content; max-width: min(88vw, 378px); background: #54203feb; color: white; font-size: 13px; line-height: 1.5; text-align: center; border-radius: 13px; padding: 12px 17px; box-shadow: 0 4px 20px #64254120; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (min-width: 431px) { :root { --v: var(--u); } body { min-height: 100dvh; padding: 2px 0 7px; display: grid; place-items: center; } .app { min-height: calc(var(--u) * 166); border-radius: 31px; } }
@media (max-width: 350px) { .page-header h1 { font-size: 18px; } .sub-content { padding: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { translate: 4px -12px; rotate: 8deg; } }
@keyframes twinkle { to { opacity: .3; scale: .7; } }
