/* STROYX personal area: graphite type, warm orange accents, quiet surfaces. */
.icon-defs { position:absolute; width:0; height:0; overflow:hidden; }
.ui-icon { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
body.profile-mode { background:#f3f4f7; }
body.profile-mode > header { display:none; }
#tab-profile { min-height:calc(100dvh - 80px); background:#f3f4f7; }
.profile-toolbar { height:80px; display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:12px; padding:0 24px; background:#fff; border-bottom:1px solid #edeef1; }
.profile-toolbar h1 { text-align:center; margin:0; font-size:21px; font-weight:750; letter-spacing:-.035em; }
.profile-brand-button,.profile-icon-button { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:6px; background:none; border:0; border-radius:12px; cursor:pointer; color:var(--text-main); }
.profile-brand-button img { display:block; }
.profile-toolbar #logout-btn { grid-column:3; color:#e77d0b; }
.profile-icon-button:hover,.profile-brand-button:hover { background:#fff3e6; }
#profile-view { max-width:640px; padding:24px; min-height:0; background:transparent; }
.profile-identity,.profile-cart-summary { width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px; border:0; background:#fff; color:var(--text-main); text-align:left; cursor:pointer; font:inherit; }
.profile-identity { padding:24px; border-radius:24px; min-height:108px; margin-bottom:12px; }
.profile-identity-text { display:flex; flex-direction:column; min-width:0; gap:6px; }
#user-fullname { font-weight:800; font-size:26px; letter-spacing:-.04em; line-height:1.2; overflow-wrap:anywhere; }
#user-username { font-size:15px; color:var(--text-muted); font-weight:600; overflow-wrap:anywhere; }
.profile-identity > .ui-icon { width:26px; height:26px; }
.profile-cart-summary { min-height:88px; padding:17px 24px; border-radius:18px; margin-bottom:16px; }
.profile-summary-label { display:block; color:var(--text-muted); font-weight:600; font-size:14px; margin-bottom:3px; }
#profile-cart-count { font-weight:400; margin-left:5px; color:#9096a0; }
#profile-cart-total { font-size:23px; line-height:1.3; letter-spacing:-.035em; }
.profile-summary-icon { color:#e77909; display:flex; }
.profile-summary-icon .ui-icon { width:32px; height:32px; stroke-width:1.65; }
.cashback-summary { border:1px solid #ffe0b9; }
.cashback-use { display:flex; align-items:center; gap:12px; padding:16px; margin:16px 0; background:#fff3e5; border-radius:14px; cursor:pointer; }
.cashback-use input { width:22px; height:22px; flex:none; accent-color:var(--primary); }
.cashback-use small { display:block; margin-top:5px; color:var(--text-muted); }
.cashback-credit { color:#976000; }
.cashback-panel { padding:24px; margin-bottom:24px; border:1px solid #ffe0b9; background:#fffaf3; border-radius:20px; }
.cashback-panel h2 { font-size:32px; margin:12px 0; }
.cashback-entry { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px; margin:10px 0; background:white; border-radius:16px; }
.cashback-entry p { margin:6px 0 0; color:var(--text-muted); font-size:13px; }
.cashback-entry > strong { white-space:nowrap; }
.profile-menu { background:#fff; border-radius:24px; overflow:hidden; }
.profile-menu-row { border:0; border-bottom:1px solid #eef0f3; background:none; width:100%; min-height:72px; padding:14px 20px; display:flex; align-items:center; gap:14px; text-align:left; font:inherit; font-size:16px; font-weight:650; cursor:pointer; color:var(--text-main); transition:background .18s; }
.profile-menu-row:last-child { border-bottom:0; }
a.profile-menu-row { text-decoration:none; }
.profile-menu-row:hover,.profile-identity:hover,.profile-cart-summary:hover { background:#fffcf8; }
.profile-menu-row:active { background:#fff3e6; }
.profile-menu-icon { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:13px; background:#fff3e5; color:#ed850f; flex:none; }
.profile-menu-icon .ui-icon { width:25px; height:25px; }
.profile-menu-row > .ui-icon { margin-left:auto; width:20px; height:20px; stroke-width:1.8; color:#474b53; }
.profile-footer { padding:26px 8px 12px; text-align:center; }
.profile-wordmark { font-size:21px; font-weight:950; letter-spacing:-.06em; color:#333740; }
.profile-wordmark span { color:var(--primary); }
.profile-footer p { margin:5px 0 0; font-size:12px; color:#9297a0; }
#install-help { padding:16px; background:#fff3e5; border-radius:16px; color:#885019; font-size:14px; line-height:1.6; }
.profile-back { border:0; padding:10px 0; margin:0 0 14px; background:none; color:#bd6200; font:inherit; cursor:pointer; }
#profile-orders .order-card { border:0; padding:20px; box-shadow:none; }
#orders-history-container > p { padding:32px 20px; background:#fff; border-radius:20px; }
#profile-account-dialog { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:24px; border:0; border-radius:24px; color:var(--text-main); box-shadow:0 24px 80px #10141b33; }
#profile-account-dialog::backdrop { background:#171b2466; backdrop-filter:blur(4px); }
.profile-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.profile-dialog-heading h2 { margin:0; font-size:22px; letter-spacing:-.035em; }
#profile-account-dialog .account-panel { padding:0; background:none; border:0; margin:16px 0 0; }
#google-login { width:100%; min-height:44px; background:#fff; color:#202329; border:1px solid #e3e6eb; }
.sms-primary { width:100%; min-height:48px; border:0; border-radius:12px; background:var(--primary); color:#202329; font:inherit; font-weight:750; cursor:pointer; }
.sms-primary:disabled { opacity:.5; cursor:default; }
#phone-login-form label,#sms-code-form label { font-size:14px; font-weight:650; }
#phone-login-form .link-input { margin-top:8px; font-size:18px; }
#profile-account-dialog .sms-hint { font-size:12px; line-height:1.6; margin:12px 0 0; }
.sms-code-input { text-align:center; font-size:26px; letter-spacing:.28em; }
.sms-secondary-actions { display:flex; gap:12px; justify-content:space-between; margin:14px 0 0; }
.sms-secondary-actions button { border:0; background:none; color:#bd6200; padding:8px 0; cursor:pointer; font:inherit; font-size:13px; }
.sms-secondary-actions button:disabled { color:#9096a0; cursor:default; }
#profile-account-dialog .sms-status { color:#a64811; font-size:14px; margin:14px 0; }
#profile-account-dialog .sms-status:empty { display:none; }
#profile-account-dialog .sms-verified { background:#f0f8ed; padding:14px; border-radius:12px; color:#436c35; font-size:14px; }
.sms-legacy { margin:20px 0; padding-top:16px; border-top:1px solid #e9ebef; font-size:13px; color:var(--text-muted); }
.sms-legacy summary { cursor:pointer; }
.sms-legacy #google-login { margin-top:12px; font-size:14px; }
#link-telegram-form { margin-top:20px; }
.tab-bar { min-height:76px; padding-top:10px; padding-bottom:max(10px,env(safe-area-inset-bottom)); border-top:1px solid #eceef1; box-shadow:0 -4px 24px #20232903; background:#fff; }
.tab-item { width:25%; gap:5px; font-size:11px; font-weight:600; color:#858b94; min-height:48px; justify-content:center; }
.tab-item svg,.tab-item.active svg { width:25px; height:25px; fill:none; stroke:currentColor; }
.tab-item.active { color:#d57007; }
.tab-item.active svg { color:#f28b17; }
@media(min-width:760px) {
    .profile-toolbar { padding-left:max(24px,calc((100vw - 592px)/2)); padding-right:max(24px,calc((100vw - 592px)/2)); }
    #profile-view { padding-top:32px; }
    .tab-bar { justify-content:center; gap:40px; }
    .tab-item { max-width:140px; }
}
@media(max-width:420px) {
    .profile-toolbar { height:68px; padding:0 18px; }
    .profile-toolbar h1 { font-size:19px; }
    #profile-view { padding:18px 16px; }
    .profile-identity { padding:20px; min-height:100px; border-radius:22px; }
    #user-fullname { font-size:24px; }
    #user-username { font-size:14px; }
    .profile-cart-summary { padding:15px 20px; }
    .profile-menu-row { min-height:66px; padding:12px 16px; font-size:15px; gap:12px; }
    .profile-menu-icon { width:38px; height:38px; border-radius:11px; }
}
