.profile-screen{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding-bottom:calc(22px + env(safe-area-inset-bottom))}
.profile-bar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:55px;text-align:center}
.profile-bar h1{font-size:17px;margin:0}
.back,.copy-value{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:36px}
.profile-bar>.back{justify-self:start}
.bar-right{justify-self:end}
.identity{position:relative;min-height:86px;margin:8px 0 15px}
.identity-link{display:grid;grid-template-columns:54px 1fr 20px;column-gap:15px;align-items:start;padding:6px 0;min-height:52px}
.identity-link>strong{margin-top:2px;font-size:18px;overflow-wrap:anywhere}
.identity-link>.icon{width:15px;margin-top:16px}
.profile-avatar{display:grid;place-items:center;width:54px;height:54px;background:#f0f2f2;border-radius:50%}
.profile-avatar .icon{width:31px;height:31px}
.identity-meta{margin-left:69px;margin-top:-28px;display:flex;flex-direction:column;align-items:flex-start}
.uid{display:inline-flex;align-items:center;gap:2px;font-size:12px;color:var(--muted)}
.copy-value{min-width:28px;min-height:27px;color:var(--muted)}
.copy-value .icon{width:13px;height:13px}
.rz{width:max-content;display:inline-block;background:#fff0db;color:#8e4b00;border-radius:4px;padding:1px 6px;font-size:11px}
.rz-2{background:#e5f6ef;color:#146648}.rz-3{background:#fdebf0;color:#a32c42}
.member-strip,.verify-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-radius:11px;margin-bottom:8px}
.member-strip{background:linear-gradient(110deg,#fff5e4,#fffcf8);border:1px solid #f7e8cd}
.member-strip b{color:#7e6850}
.member-strip span,.verify-strip>span{font-size:12px;font-weight:650;padding:6px 12px;border-radius:20px;background:#f0ebe3}
.verify-strip{background:#f1faec;min-height:70px}.verify-strip small{display:block;color:#47623b;margin-top:3px}
.verify-strip>span{background:var(--ink);color:white}
.profile-screen h2{font-size:16px;margin:19px 0 10px}
.service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 0}
.service{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:12px;min-height:69px}
.service-icon{position:relative;display:flex}
.unread{position:absolute;top:-8px;right:-12px;background:#b83546;color:white;border-radius:8px;padding:0 4px;font-size:9px}
.setting-row,.currency-choice{display:flex;align-items:center;text-align:left;gap:10px;width:100%;min-height:57px;border-bottom:1px solid var(--line);padding:8px 0}
.setting-row .row-value{margin-left:auto;text-align:right;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.setting-row>.icon{width:14px;color:var(--muted)}
.currency-choice{justify-content:space-between;font-weight:650}
.choice-tick{visibility:hidden}.currency-choice[aria-pressed=true] .choice-tick{visibility:visible}
.account-hero,.empty-section{display:grid;justify-items:center;text-align:center;padding:28px 0}
.account-hero h2{margin:10px 0 0}
.outline-button{display:block;text-align:center;border:1px solid var(--line);border-radius:26px;padding:12px 18px;font-weight:650}
.bottom-action{margin-top:auto}
.copy-result,.save-result{color:var(--muted);text-align:center;margin-top:14px;font-size:12px}
.member-hero,.verification-card{background:var(--soft);border-radius:14px;padding:22px;margin:14px 0}
.member-hero{background:linear-gradient(100deg,#fff3da,#f8f5f1)}
.member-hero h2{font-size:34px;margin:6px 0}
.profile-screen[data-profile=membership]{background:#11100f;color:#f6efdf}
.vip-intro{text-align:center;margin:0 -20px;padding:30px 20px;background:linear-gradient(160deg,#20160b,#49301a 75%,#aa7944)}
.vip-intro h2{font-size:28px;color:#f5d29b}.vip-intro p{color:#ead8bc}
.vip-support-link{color:inherit;text-decoration:underline;text-underline-offset:3px}
.vip-intro>a{display:block;border:1px solid #c59a62;border-radius:24px;padding:12px;margin-top:12px}
.vip-intro>a:first-of-type{background:#e8c18a;color:#26190c;font-weight:700}
.vip-tiers nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.vip-tiers nav a{padding:10px 0;text-align:center;font-size:13px;color:#d5cabe}
.vip-tiers nav a[aria-current]{color:#ffe3b4;border-bottom:2px solid}
.vip-card{margin:12px 0;padding:16px;border:1px solid #80684c;border-radius:12px;background:#29221a}
.vip-card h3{margin:0;color:#f1c995}.vip-card ul,.vip-rules ol{padding-left:22px;line-height:1.7}
.vip-rules p{line-height:1.65}
.vip-gifts nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.vip-gift-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(120deg,#29221a,#392f21)}
.vip-gift-card strong,.vip-gift-card .icon{color:#f1c995}
.vip-gift-card .icon{width:38px;height:38px}
.vip-gift-card p{margin:6px 0 0}
.newcomer-offer{margin:12px 0;overflow-wrap:anywhere}
.newcomer-offer h2{width:fit-content;margin:0 0 20px;padding-bottom:7px;border-bottom:2px solid currentColor;font-size:16px}
.newcomer-offer h3,.newcomer-offer h4{margin:0}
.registration-gift{margin-top:20px;padding:16px;border:1px solid #e4e8e6;border-radius:12px}
.registration-gift .registration-state{background:#eff8ee;color:#27643a;padding:8px 12px;border-radius:6px;font-size:13px}
.registration-gift a{color:#247047;font-weight:650}
.security-contacts{padding:12px 0 18px;border-bottom:1px solid var(--line)}.security-contacts label{display:grid;gap:6px;margin-bottom:12px}
.security-contacts input{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font:inherit}
.verification-card{background:#f1f8ed}.verification-card h2{font-size:21px;margin:13px 0 5px}
.verification-card p,.empty-section p{color:var(--muted);margin:6px 0}
@media(max-width:355px){.identity-link>strong{font-size:16px}.service{font-size:11px}}
.settings-heading { margin: 10px 0 8px; font-size: 25px; line-height: 1.35; }
[data-profile="settings"] .setting-row { min-height: 54px; border: 0; font-weight: 650; }
[data-profile="settings"] .row-value, [data-profile="settings"] [data-current-unit] { font-weight: 400; }
.language-choice { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 12px; font-size: 16px; font-weight: 600; }
.language-choice:active { background: var(--soft); }
[data-profile="currency"] .currency-choice {
    min-height: 54px;
    padding: 12px 0;
    border: 0;
    font-size: 16px;
    font-weight: 600;
}
[data-profile="currency"] .currency-choice:active { background: var(--soft); }
[data-profile="currency"] .choice-tick { font-size: 20px; line-height: 1; }
[data-profile="profile"] { padding-bottom: max(4px, env(safe-area-inset-bottom)); }
.version-check {
    display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px;
    margin-top: auto; padding: 8px 0; text-align: start;
}
.version-number { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.version-arrow { width: 18px; transform: rotate(180deg); }
.version-status {
    position: fixed; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%);
    max-width: calc(100vw - 32px); width: max-content; padding: 8px 16px; border-radius: 6px;
    background: #27282a; color: #fff; text-align: center; pointer-events: none;
}
.version-status:empty { opacity: 0; }

.security-passwords summary { cursor: pointer; justify-content: space-between; list-style: none; }
.security-passwords summary::-webkit-details-marker { display: none; }
.security-passwords[open] summary .icon { transform: rotate(90deg); }
.security-passwords > a { padding-inline-start: 16px; }
