/* Profile mobile refinement. Original controls/data and desktop presentation retained. */
@media(max-width:768px){
 html body:has(.pf-shell){--pf-bg:#f4f7fb;--pf-surface:#fff;--pf-surface-2:#f8fafc;--pf-border:#dfe7f1;--pf-text:#18283f;--pf-text-muted:#62758e;--pf-cyan:#2861d8;--pf-bg-soft:#edf3fb;background:var(--pf-bg)!important;font-family:Inter,system-ui,sans-serif}
 html.dark body:has(.pf-shell){--pf-bg:#0c1421;--pf-surface:#142033;--pf-surface-2:#17263b;--pf-border:#2b3c53;--pf-text:#e8eef7;--pf-text-muted:#a2b2c9;--pf-cyan:#9abaff;--pf-bg-soft:#203454}
 body:has(.pf-shell)::before{background:none!important}
 html body .pf-shell{display:flex;flex-direction:column;gap:14px;width:100%;max-width:640px;padding:80px 14px 48px;box-sizing:border-box}
 html body .pf-main{padding:0!important;min-width:0;overflow:visible}
 html body .pf-page-head{margin:0!important;padding:0 2px}
 html body .pf-page-title{font:700 23px/1.3 Inter,system-ui,sans-serif;letter-spacing:-.035em;color:var(--pf-text)}
 html body .pf-nav{position:sticky;top:64px;z-index:40;display:flex;flex-direction:row;align-self:stretch;gap:4px;padding:4px 14px;margin:0 -14px;width:calc(100% + 28px);max-height:none;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:1px solid var(--pf-border);border-radius:0;background:var(--pf-bg);box-shadow:none;-webkit-mask-image:none;mask-image:none;scrollbar-width:thin;scrollbar-color:var(--pf-border) transparent;scroll-padding-inline:14px}
 html body .pf-nav{scrollbar-width:none}
 html body .pf-nav::-webkit-scrollbar{display:none}
 html body .pf-nav::-webkit-scrollbar-thumb{background:var(--pf-border);border-radius:3px}
 html body .pf-nav-link{flex:0 0 auto;min-height:44px;gap:7px;padding:0 11px;font-size:12px;font-weight:600;border:1px solid transparent;border-radius:9px;color:var(--pf-text-muted);background:transparent;text-transform:none}
 html body .pf-nav-link.active{color:var(--pf-cyan);background:var(--pf-surface);border-color:var(--pf-border)}
 html body .pf-nav-link svg{width:16px;height:16px;opacity:1}
 html body .pf-main>section{scroll-margin-top:132px;margin:0 0 16px}
 html body .pf-main>section:last-child{margin-bottom:0}
 html body .pf-hero{border-radius:16px;border-color:var(--pf-border);box-shadow:none;margin-bottom:14px!important}
 html body .pf-hero-banner{height:3px;background:#2f7bff;opacity:1}
 html body .pf-hero-banner::after{display:none}
 html body .pf-hero-body{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:12px;padding:16px}
 html body .pf-hero-avatar-wrap{margin:0;width:64px;height:64px}
 html body .pf-hero-ring{width:64px;height:64px;padding:2px;background:var(--pf-border);box-shadow:none}
 html body .pf-hero-inner{font-size:22px;color:var(--pf-cyan)}
 html body .pf-hero-inner::after{display:none}
 html body .pf-hero-inner img{filter:none}
 html body .pf-avatar-edit-overlay{inset:auto 0 0 auto;width:24px;height:24px;opacity:1;border-radius:8px;background:var(--pf-surface);color:var(--pf-cyan)}
 html body .pf-avatar-edit-overlay svg{width:14px;height:14px}
 html body .pf-hero-status{width:11px;height:11px;border-width:2px;top:0;right:0;bottom:auto}
 html body .pf-hero-info-row{display:block;min-width:0;align-self:center}
 html body .pf-hero-name{font:650 18px/1.3 Inter,system-ui,sans-serif;letter-spacing:-.025em;margin-bottom:4px;overflow-wrap:anywhere}
 html body .pf-hero-email{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
 html body .pf-hero-tags{gap:6px}
 html body .pf-tag{font-size:10px;line-height:1.4;padding:4px 7px;border-radius:6px;letter-spacing:0;box-shadow:none}
 html body .pf-tag-plan{background:var(--pf-bg-soft);color:var(--pf-cyan);border:1px solid var(--pf-border);box-shadow:none}
 html body .pf-hero-actions{margin-top:4px}
 html body .pf-hero-actions .pf-btn{position:relative;isolation:isolate;min-height:44px;padding:0 10px;background:transparent!important;border:0!important;color:var(--pf-cyan)!important;font-size:12px;box-shadow:none}
 html body .pf-hero-actions .pf-btn::before{content:"";position:absolute;inset:5px 0;z-index:-1;border:1px solid var(--pf-border);border-radius:8px;background:var(--pf-surface)}
 html body .pf-mobile-hero-footer{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:6px;margin-top:-4px}
 html body .pf-mobile-hero-footer .pf-hero-tags{display:contents}
 html body .pf-mobile-hero-footer .pf-tag{min-width:0;min-height:34px;justify-content:center;gap:4px;padding:4px 5px;white-space:normal;text-align:center}
 html body .pf-mobile-hero-footer .pf-hero-actions{margin:0;min-width:0;grid-column:3}
 html body .pf-mobile-hero-footer .pf-hero-actions .pf-btn{width:100%;padding-inline:5px;font-size:11px;white-space:normal;text-align:center;line-height:1.4}
 html body .pf-plan-symbol{display:inline-flex;flex:0 0 14px;width:14px;height:14px;font-size:0!important;line-height:0;align-items:center}
 html body .pf-plan-symbol::before{content:"";width:14px;height:14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 4-5h10l4 5-9 11L3 9Z M3 9h18 M9 4 7 9l5 11 5-11-2-5'/%3E%3C/svg%3E") center/contain no-repeat}
 html body .pf-grid2{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:14px 0!important}
 html body .pf-card{padding:18px;border:1px solid var(--pf-border);border-radius:14px;background:var(--pf-surface);box-shadow:none;transform:none!important;transition:none}
 html body .pf-card:hover{border-color:var(--pf-border)!important}
 html body .pf-card-full{margin-bottom:14px}
 html body .pf-card-hd{gap:10px;align-items:center;margin-bottom:16px}
 html body .pf-card-title{margin:0;gap:0;font:650 15px/1.4 Inter,system-ui,sans-serif;letter-spacing:-.015em}
 html body .pf-card-title::before{display:none}
 html body .pf-card-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;font-size:12px}
 html body .pf-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 html body .pf-form-grid>.pf-field:has(#pfCountryCode,#pfPhone,#pfLanguage,#pfEmail){grid-column:1/-1}
 html body .pf-field{min-width:0;gap:7px}
 html body .pf-label{color:var(--pf-text-muted);font:550 12px/1.4 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:0}
 html body .pf-input{min-width:0;max-width:100%;min-height:46px;padding:11px 12px;border:1px solid var(--pf-border);border-radius:9px;background-color:var(--pf-surface-2);color:var(--pf-text);font:400 16px/1.4 Inter,system-ui,sans-serif;box-shadow:none}
 html body .pf-input{font-weight:400!important}
 html body select.pf-input{padding-inline-end:34px}
 html body .pf-input:focus{border-color:var(--pf-cyan);box-shadow:0 0 0 3px color-mix(in srgb,var(--pf-cyan) 12%,transparent)}
 html body .pf-input[readonly]{opacity:1;color:var(--pf-text-muted)}
 html body #pfEcOpenBtn{align-self:flex-end!important;font-size:12px}
 html body .pf-form-actions{margin-top:18px;padding-top:16px}
 html body .pf-btn{justify-content:center;min-height:44px;padding:10px 16px;border-radius:9px;font-size:13px;box-shadow:none;transform:none!important}
 html body .pf-btn-primary,html body .pf-modal-primary,html body .pf-modal-grad{background:#2861e8!important;color:#fff!important;box-shadow:none!important;border-color:transparent!important}
 html body #pfSaveBtn{width:100%}
 html body .pf-sec-row{gap:10px 12px;padding:14px 0;align-items:flex-start}
 html body .pf-sec-main{flex:1;min-width:140px}
 html body .pf-sec-title{font:600 13px/1.5 Inter,system-ui,sans-serif;gap:6px}
 html body .pf-sec-desc{font-size:12px;line-height:1.6;margin-top:3px}
 html body .pf-sec-action{gap:8px;max-width:100%;flex-wrap:wrap;align-self:center}
 html body .pf-sec-row:has(.pf-sec-action button)>.pf-sec-action{width:100%;justify-content:flex-end}
 html body .pf-sec-row:has(.pf-sec-action button)>.pf-sec-action>.pf-badge{margin-inline-end:auto}
 html body .pf-sec-ic{width:32px;height:32px;border-radius:8px;background:var(--pf-bg-soft);border:1px solid var(--pf-border);box-shadow:none}
 html body .pf-sec-ic svg{width:16px;height:16px}
 html body .pf-mini-btn,html body .pf-session-revoke{min-height:44px;padding:9px 12px;max-width:100%;font:600 12px/1.4 Inter,system-ui,sans-serif;border-radius:9px;white-space:normal}
 html body .pf-mini-btn{background:var(--pf-surface-2);color:var(--pf-text);border-color:var(--pf-border)}
 html body .pf-badge,html body .pf-count-badge{padding:4px 7px;font-size:10px;line-height:1.4;border-radius:6px;white-space:normal;box-shadow:none}
 html body .pf-shell .pf-badge-ok,html body .pf-shell .pf-tag-verified{background:#eaf7f1;color:#208159!important;border-color:#cce9dc}
 html body .pf-shell .pf-badge-muted{color:var(--pf-text-muted)!important;background:var(--pf-bg-soft)}
 html.dark body .pf-shell .pf-badge-ok,html.dark body .pf-shell .pf-tag-verified{background:#16392f;color:#83d6b3!important;border-color:#285344}
 html.dark body .pf-badge-warn{background:#3c3021;color:#e8bf81}
 html body .pf-inline-form{margin-top:6px;padding-top:14px;border-top-style:solid}
 html body .pf-inline-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 html body #exchangesList,html body #mtAccountsList,html body #pfSessionsList,html body #pfLoginHistoryList{scrollbar-color:var(--pf-border) transparent;overscroll-behavior:auto;padding-inline-end:4px}
 html body .pf-ex-item{gap:10px}
 html body #exchangesList .exchange-logo-box,html body #mtAccountsList .pf-mt-mark{width:32px;height:32px;border-radius:8px;font-size:10px}
 html body .pf-ex-name{font-size:12px;line-height:1.5}
 html body .pf-ex-key{font-size:11px;line-height:1.5}
 html body .pf-ex-status{font-size:10px}
 html body .pf-ex-add{min-height:44px;font-size:12px;border-style:solid;background:var(--pf-surface-2)}
 html body .pf-inv-head{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);padding:0!important;border:0!important;white-space:nowrap}
 html body .pf-inv-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding:14px 0!important;align-items:start;font-size:12px;line-height:1.5}
 html body .pf-inv-row>span{display:block!important;min-width:0;overflow-wrap:anywhere}
 html body .pf-inv-row>span::before{content:attr(data-pf-label);display:block;margin-bottom:4px;color:var(--pf-text-muted);font:500 10px/1.4 Inter,system-ui,sans-serif}
 html body .pf-inv-row span:nth-child(3){display:inline!important}
 html body .pf-session-row{gap:10px}
 html body .pf-session-ic{width:30px;height:30px;border-radius:8px}
 html body .pf-session-main{min-width:0;flex:1}
 html body .pf-session-dev{font-size:12px;line-height:1.5}
 html body .pf-session-meta{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
 html body .pf-session-revoke{margin-inline-start:40px;color:#c74764;border-color:var(--pf-border)}
 html body .pf-logout-all{justify-content:stretch}
 html body .pf-logout-all .pf-mini-btn{width:100%}
 html body .pf-toggle-row{gap:16px;padding:14px 0;align-items:center}
 html body .pf-toggle-title{font:600 13px/1.5 Inter,system-ui,sans-serif}
 html body .pf-toggle-desc{font-size:11.5px;line-height:1.6;margin-top:3px}
 html body .pf-toggle{width:44px;height:44px;border-radius:10px;background:transparent!important;touch-action:manipulation}
 html body .pf-toggle::before{content:'';position:absolute;inset:10px 0;border-radius:14px;background:#b3c0d1}
 html.dark body .pf-toggle::before{background:#465770}
 html body .pf-toggle.on::before{background:#3478ef}
 html body .pf-toggle::after{top:13px;background:#fff}
 html body .pf-pay-method{padding:12px;gap:10px;border:1px solid var(--pf-border);border-radius:10px;background:var(--pf-surface-2)}
 html body #sec-billing>.pf-card{margin-bottom:14px}
 html body .pf-mobile-export{margin-bottom:14px}
 html body .pf-mobile-export .pf-sec-row{padding:0!important;border:0!important}
 html body .pf-danger{padding:18px;border-radius:14px;background:var(--pf-surface);border:1px solid #edc9d1}
 html.dark body .pf-danger{border-color:#593449}
 html body .pf-danger-title{font-size:14px;color:#c74764;margin-bottom:12px}
 html.dark body .pf-danger-title{color:#f391a7}
 html body .pf-danger-name{font-size:13px}
 html body .pf-danger-desc{font-size:12px;line-height:1.6}
 html body .pf-danger-row{gap:14px}
 html body .pf-btn-danger{min-height:44px;padding:10px 14px;border:1px solid #edc9d1;background:#fff4f6;color:#bd3856;font-size:12px;border-radius:9px}
 html.dark body .pf-btn-danger{background:#352234;color:#f391a7;border-color:#593449}
 html body .pf-empty{padding:22px 12px;font-size:12px;line-height:1.6}
 html body .pf-shell :is(a,button,[role="switch"]):focus-visible,html body .pf-modal-overlay :is(a,button):focus-visible{outline:2px solid var(--pf-cyan);outline-offset:2px}
 html body .pf-modal-overlay{inset:64px 0 0;z-index:100001;padding:20px 14px;align-items:flex-start;overflow-y:auto;overscroll-behavior:contain;background:rgba(8,16,30,.46);backdrop-filter:none}
 html body .pf-modal{box-sizing:border-box;max-width:440px;margin:auto;max-height:calc(100dvh - 104px);overflow-y:auto;padding:20px;border-radius:16px;box-shadow:0 12px 40px #0002;animation:none}
 html body .pf-modal-title{font-size:18px;line-height:1.4;letter-spacing:-.02em}
 html body .pf-modal-desc{font-size:12px;line-height:1.65}
 html body .pf-modal-badge{width:44px;height:44px;margin-bottom:14px;border-radius:12px;background:#2861e8;box-shadow:none}
 html body .pf-modal-badge svg{width:23px;height:23px}
 html body .pf-modal-actions{gap:8px}
 html body .pf-modal-actions>button{min-height:44px;min-width:0;max-width:none;padding:10px 12px;font-size:12px;white-space:normal}
 html body .pf-modal-cancel{background:var(--pf-surface-2);border:1px solid var(--pf-border);color:var(--pf-text)}
 html body .pf-otp-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;max-width:300px;margin-inline:auto}
 html body .pf-otp-box{min-width:0;width:100%;height:46px;font-size:20px}
 html body .pf-2fa-opt{padding:12px;gap:10px}
 html body .pf-2fa-opt-title{font-size:13px}
 html body .pf-2fa-opt-desc{font-size:11.5px;line-height:1.5}
 html body .pf-link-btn{min-height:44px;margin-top:4px;padding:8px}
 html body .pf-toast{top:76px;z-index:100010;max-width:calc(100vw - 28px);padding:12px 16px;font-size:12px;line-height:1.5}
}
@media(max-width:359px){
 html body .pf-shell{padding-inline:12px}
 html body .pf-nav{margin-inline:-12px;width:calc(100% + 24px);padding-inline:12px}
 html body .pf-card{padding:16px}
 html body .pf-hero-body{padding:16px;gap:12px;grid-template-columns:56px minmax(0,1fr)}
 html body .pf-hero-avatar-wrap,html body .pf-hero-ring{width:56px;height:56px}
 html body .pf-form-grid{grid-template-columns:minmax(0,1fr)}
}

/* Native date controls must fit the same mobile grid cell as the city field. */
@media(max-width:768px){
 html body .pf-shell :is(#pfDateOfBirth,#pfCity){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:46px;min-height:46px}
 html body .pf-shell #pfDateOfBirth{appearance:none;-webkit-appearance:none;padding:10px 8px;overflow:hidden}
 html body .pf-shell #pfDateOfBirth::-webkit-datetime-edit{min-width:0;padding:0}
 html body .pf-shell #pfDateOfBirth::-webkit-datetime-edit-fields-wrapper{padding:0}
 html body .pf-shell #pfDateOfBirth::-webkit-date-and-time-value{min-width:0;text-align:start}
 html body .pf-shell #pfDateOfBirth::-webkit-calendar-picker-indicator{flex:0 0 16px;width:16px;height:16px;margin:0;padding:0;opacity:1;cursor:pointer}
 html body #mtAccountsList .pf-mt-mark{box-sizing:border-box;padding:4px;overflow:hidden;border:1px solid var(--pf-border);background:#fff}
 html.dark body #mtAccountsList .pf-mt-mark{background:#eef1f4}
 html body #mtAccountsList .pf-mt-abbr{display:none}
 html body #mtAccountsList .pf-mt-logo{display:block;width:100%;height:100%;object-fit:contain}
}
