.profile-page { width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; padding: calc(var(--site-header-space, 90px) + 16px) 18px 100px; color: #f8fafc; }
.profile-back { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; border: 0; padding: 0; background: none; color: #a8c8ee; font: inherit; font-size: 13px; cursor: pointer; }
.profile-heading { margin-bottom: 16px; }
.profile-heading h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; font-weight: 900; outline: none; }
.profile-heading p { margin: 0; color: #a8bce0; font-size: 14px; }
.profile-identity { display: flex; align-items: center; gap: 15px; min-width: 0; margin-bottom: 16px; padding: 15px 18px; border: 1px solid #334969; border-radius: 14px; background: linear-gradient(125deg, #14213977, #090f1d88); }
.profile-user-avatar { display: grid; place-items: center; width: 49px; height: 49px; flex: 0 0 49px; border: 1px solid #506595; border-radius: 50%; background: linear-gradient(145deg, #33466c, #1d2d4b); color: #b2c7f4; font-size: 30px; }
.profile-identity > div { min-width: 0; }
.profile-identity strong { display: block; color: #f8fafc; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.profile-balance-card { padding: 20px 16px 17px; margin-bottom: 16px; border: 1px solid #0ea5e9; border-radius: 14px; background: radial-gradient(ellipse at 5% 0, #07578677, transparent 65%), linear-gradient(140deg, #0b2b4c, #0a182d 68%, #0a2346); text-align: center; }
.profile-balance-label { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 0 0 9px; font-size: 15px; }
.profile-wallet-icon { display: block; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; filter: url('#header-wallet-color'); }
.profile-balance-value { display: block; margin: 0 0 18px; color: #38bdf8; font-size: clamp(26px, 10vw, 46px); line-height: 1.15; font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-actions button, .profile-invite-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 49px; border: 1px solid #38bdf8; border-radius: 10px; padding: 11px 10px; color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.profile-deposit, .profile-invite-button { background: linear-gradient(110deg, #24c8ed, #079bdc 55%, #0065f6); box-shadow: inset 0 1px 1px #bbf6ff55, 0 4px 16px #0896d520; }
.profile-actions .profile-withdraw { background: linear-gradient(120deg, #123b71, #173f83 60%, #122c56); }
.profile-actions i { font-size: 19px; }
.profile-withdraw-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
.profile-invite { padding: 0; border: 1px solid #0ea5e9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #101e35, #071120 75%); }
.profile-invite-ribbon { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #225987; background: linear-gradient(110deg, #0c3357, #0c2540 65%, #092440); }
.profile-invite-coin { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.profile-invite-ribbon p { margin: 0; text-align: center; font-size: 15px; font-weight: 800; line-height: 1.3; }
.profile-invite strong { color: #38bdf8; font-weight: 900; }
.profile-invite-body { padding: 22px 14px 16px; text-align: center; }
.profile-invite-body h2 { margin: 0 0 20px; font-size: 17px; line-height: 1.4; font-weight: 800; }
.profile-invite-button { width: 100%; min-height: 50px; font-size: 14px; gap: 9px; padding-left: 8px; padding-right: 8px; }
.profile-invite-button i { font-size: 22px; }
body.profile-page-open .hero-section, body.profile-page-open .winners-section, body.profile-page-open .raspadinhas-showcase, body.profile-page-open .footer { display: none; }
body.profile-page-open .mobile-dock .dock-profile.active { color: #38bdf8; }
.profile-referral-dialog { width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px 20px 20px; border: 1px solid #286398; border-radius: 14px; background: #0f172a; color: #f8fafc; overflow-y: auto; }
.profile-referral-dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.profile-referral-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: #1e293b; color: #cbd5e1; cursor: pointer; }
.profile-referral-dialog h2 { padding-right: 16px; margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.profile-referral-dialog p, .profile-referral-dialog label { color: #a8bce0; font-size: 13px; }
.profile-referral-dialog p { margin-bottom: 20px; }
.profile-referral-dialog label { display: block; margin-bottom: 7px; }
.profile-referral-dialog input { width: 100%; min-height: 45px; padding: 10px; border: 1px solid #385479; border-radius: 8px; background: #091321; color: #d9eaff; font: inherit; font-size: 16px; }
.profile-referral-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.profile-referral-actions button { min-width: 0; min-height: 43px; border: 1px solid #38bdf8; border-radius: 8px; background: #102642; color: #fff; padding: 9px 5px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.profile-referral-actions button:last-child, .profile-referral-actions [data-invite-copy].is-copied { background: linear-gradient(110deg, #18b9ea, #047be4); }
.profile-referral-actions i { margin-right: 4px; }
body:has(.profile-referral-dialog[open]) { overflow: hidden; }
@media (max-width: 768px) { .profile-page { padding-bottom: calc(var(--mobile-dock-height, 96px) + 24px); } }
@media (max-width: 360px) {
 .profile-page { padding-left: 15px; padding-right: 15px; }
 .profile-identity { padding: 15px; gap: 11px; }
 .profile-identity strong { font-size: 16px; }
 .profile-invite-ribbon p { font-size: 13px; }
 .profile-invite-body { padding-left: 10px; padding-right: 10px; }
 .profile-invite-body h2 { font-size: 15px; }
 .profile-invite-button { font-size: 12px; gap: 7px; }
 .profile-actions button { gap: 7px; font-size: 14px; }
}
