:root{--p-navy:#113D5A;--p-dark:#0B2F46;--p-blue:#1F78B4;--p-page:#F3F7FA;--p-border:#D9E4EC;--p-muted:#5B6B7B}*{box-sizing:border-box}.profile-shell{min-height:100vh;background:var(--p-page);color:#0F172A}.profile-container{width:min(calc(100% - 28px),860px);margin:0 auto}.profile-topbar{background:var(--p-navy)}.profile-topbar-inner{min-height:62px;justify-content:space-between}.profile-back,.profile-topbar-inner{display:flex;align-items:center;color:white}.profile-back{gap:6px;font-size:var(--text-xs);font-weight:800;text-decoration:none}.profile-main{padding:22px 0 40px}.profile-section-title p{margin:0 0 3px;color:var(--p-blue);font-size:var(--text-xs);font-weight:900;letter-spacing:.14em}.profile-balance{display:flex;align-items:center;justify-content:space-between;border-radius:16px;color:white;background:var(--p-blue);box-shadow:0 12px 28px rgba(17,61,90,.14)}.profile-balance-copy{display:flex;flex-direction:column}.profile-balance small,.profile-balance span{color:#B7D4E4;font-size:var(--text-xs)}.profile-balance strong{font-size:var(--text-2xl)}.profile-section{margin-top:25px}.profile-section-title h2,.profile-section>h2{margin:0 0 11px;color:var(--p-dark);font-size:var(--text-md)}.profile-section-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:11px;color:var(--p-blue)}.profile-history,.profile-info,.profile-menu{overflow:hidden;border:1px solid var(--p-border);border-radius:14px;background:#F7F9FA}.profile-info>div{min-height:47px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #ecf1f4}.profile-info>div:last-child{border-bottom:0}.profile-info span{color:var(--p-muted);font-size:var(--text-xs)}.profile-info strong{color:var(--p-navy);font-size:var(--text-xs)}.profile-info>div>div{text-align:right}.profile-info small{display:block;margin-top:2px;color:#0C8E74;font-size:var(--text-xs);font-weight:800}.profile-username-note{margin:8px 2px 0;color:var(--p-muted);font-size:var(--text-xs);line-height:1.45}.profile-tabs{display:flex;gap:4px;margin-bottom:9px;padding:4px;overflow-x:auto;border:1px solid var(--p-border);border-radius:11px;background:#F7F9FA}.profile-tabs button{flex:1 0 auto;min-height:31px;padding:0 10px;border:0;border-radius:7px;color:var(--p-muted);background:transparent;font-size:var(--text-xs);font-weight:800}.profile-tabs button.active{color:white;background:var(--p-blue)}.profile-history-row{width:100%;padding:11px 9px;display:flex;align-items:center;gap:8px;border:0;border-bottom:1px solid #ecf1f4;text-align:left;background:#F7F9FA}.profile-history-row:last-child{border-bottom:0}.detail-icon,.history-icon,.menu-icon{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;border-radius:9px;color:var(--p-blue);background:#E6F3F9}.history-copy{min-width:0;flex:1;display:flex;flex-direction:column}.history-copy strong{overflow:hidden;font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap}.history-copy small,.history-side small{color:var(--p-muted);font-size:var(--text-xs)}.history-side{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:2px}.history-side strong{color:var(--p-navy);font-size:var(--text-xs)}.history-status.success{color:#0C8E74}.history-status.pending{color:#A46D00}.history-status.failed{color:#C33E53}.profile-empty{padding:25px;color:var(--p-muted);font-size:var(--text-xs);text-align:center}.profile-menu button{width:100%;padding:11px;display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid #ecf1f4;text-align:left;background:#F7F9FA}.profile-menu button:last-child{border-bottom:0}.profile-menu button>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.profile-menu strong{color:var(--p-navy);font-size:var(--text-xs)}.profile-menu small{color:var(--p-muted);font-size:var(--text-xs)}.logout-button strong{color:#C33E53}.logout-button .menu-icon{color:#C33E53;background:#FDE9EC}.profile-loading{min-height:100vh;display:grid;place-items:center;background:var(--p-page);color:var(--p-muted);font-size:var(--text-xs)}.profile-help-link{width:100%;padding:11px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #ecf1f4;color:inherit;text-align:left;text-decoration:none;background:#F7F9FA}.profile-help-link>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.profile-help-link strong{color:var(--p-navy);font-size:var(--text-xs)}.profile-help-link small{color:var(--p-muted);font-size:var(--text-xs)}.history-copy{gap:3px}.history-copy strong{font-size:var(--text-sm)}.history-copy small{font-size:var(--text-xs);line-height:var(--leading-normal)}.history-counterparty{color:var(--p-muted)}.history-counterparty b{color:var(--p-navy);font-weight:800}.history-side strong{font-size:var(--text-sm)}.history-icon.transfer-in{color:#08745F;background:#E4F6F0}.history-icon.transfer-out{color:var(--p-blue);background:#E6F3F9}.history-amount.incoming{color:#08745F}.history-amount.outgoing{color:var(--p-navy)}.profile-history{max-height:340px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-gutter:stable}.profile-history::-webkit-scrollbar{width:5px}.profile-history::-webkit-scrollbar-track{background:transparent}.profile-history::-webkit-scrollbar-thumb{background:rgba(17,61,90,.22);border-radius:999px}@media (max-width:640px){.profile-history{max-height:330px}}.profile-balance-actions{display:flex;align-items:stretch;flex:0 0 auto}.profile-balance-history,.profile-balance-topup{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;border:1px solid rgba(255,255,255,.34);border-radius:13px;color:#fff;background:rgba(255,255,255,.14);font-size:13px;font-weight:800;line-height:1.15;text-align:center;text-decoration:none;transition:background .18s ease,transform .18s ease}.profile-balance-actions span{color:inherit;font-size:inherit}.profile-balance-history{max-width:112px;background:rgba(255,255,255,.08)}.profile-balance-history:hover,.profile-balance-topup:hover{background:rgba(255,255,255,.2)}.profile-balance-history:active,.profile-balance-topup:active{transform:translateY(1px)}.profile-balance-history svg,.profile-balance-topup svg{width:18px;height:18px;flex:0 0 auto}@media (max-width:680px){.profile-balance-actions{flex-direction:column}}.profile-balance{padding:14px 16px;margin-bottom:20px}.profile-balance-copy{justify-content:center;gap:2px}.profile-balance-actions{gap:6px}.profile-balance-history,.profile-balance-topup{min-height:38px;padding:0 11px}@media (max-width:680px){.profile-balance{padding:13px 15px;margin-bottom:20px;gap:10px}.profile-balance-actions{gap:6px}.profile-balance-history,.profile-balance-topup{width:108px;min-height:38px;padding:0 9px;border-radius:11px;font-size:12px}.profile-balance-history svg,.profile-balance-topup svg{width:17px;height:17px}}.profile-shell .profile-section-title h2,.profile-shell .profile-section>h2{font-size:var(--text-base);font-weight:700;line-height:1.35}.profile-shell .profile-balance-copy>span{color:#E6F3FB}.profile-shell .profile-history-row{display:grid;grid-template-columns:32px minmax(0,1fr) max-content 16px;align-items:center;gap:8px;text-decoration:none}.profile-shell .history-copy strong{display:-webkit-box;overflow:hidden;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.4;font-weight:700}.profile-shell .history-copy small,.profile-shell .history-copy strong{white-space:normal;overflow-wrap:anywhere}.profile-shell .history-side{min-width:0;white-space:nowrap}.profile-shell .history-side strong{font-weight:700;font-variant-numeric:tabular-nums}.profile-history-loading{min-height:160px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--p-muted);font-size:var(--text-xs)}.profile-history-spinner{width:17px;height:17px;flex:0 0 auto;border:2px solid var(--p-border);border-top-color:var(--p-blue);border-radius:50%;animation:profile-history-spin .75s linear infinite}.profile-history-error{margin:14px;padding:14px;border:1px solid #f2c6ce;border-radius:10px;background:#FFF2F4;color:#B93349;font-size:var(--text-xs);line-height:1.5}.profile-history-error p{margin:0 0 10px}.profile-history-error button{min-height:44px;padding:0 14px;border:0;border-radius:8px;color:#FFFFFF;background:var(--p-blue);font-size:var(--text-xs);font-weight:700;cursor:pointer}.profile-history-error button:focus-visible{outline:2px solid var(--p-blue);outline-offset:3px}@keyframes profile-history-spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.profile-history-spinner{animation:none}}.profile-history,.profile-info,.profile-menu{border:0!important;box-shadow:none!important}