:root{color-scheme:dark;--profile-bg:#0b0d12;--profile-card:#151820;--profile-card-2:#191d27;--profile-line:#2b303b;--profile-text:#f4f5f7;--profile-muted:#9ba2b1;--profile-red:#ff3048}
body.digi-profile-page{min-width:300px;min-height:100svh;background:radial-gradient(ellipse at 50% -18%,#32141e 0,transparent 44%),var(--profile-bg);color:var(--profile-text);font-family:RoomEstedad,Call,Tahoma,sans-serif}
.profile-shell{width:min(100% - 30px,580px);margin-inline:auto;padding:18px 0 34px}
.profile-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 18px}
.profile-brand{display:inline-flex;align-items:center;gap:9px;font-weight:850;font-size:1rem;letter-spacing:.01em}
.profile-brand img{width:29px;height:29px;object-fit:contain}
.profile-back{display:inline-flex;align-items:center;gap:7px;color:#c4c7d0;font-size:.82rem;padding:7px 10px;border:1px solid #2b303b;border-radius:10px;background:#141720}
.profile-back span{font-size:1.15rem;color:var(--profile-red)}
.profile-hero{overflow:hidden;border:1px solid var(--profile-line);border-radius:21px;background:linear-gradient(145deg,#171a22,#11141b);box-shadow:0 18px 60px #0005}
.profile-cover{height:116px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 82% 12%,#8e2947 0,transparent 52%),radial-gradient(ellipse at 12% 100%,#49202c 0,transparent 60%),linear-gradient(120deg,#15151d,#321721 62%,#11141b)}
.profile-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 25%,#ffffff08 50%,transparent 75%);pointer-events:none}
.profile-cover img{display:block;width:100%;height:100%;object-fit:cover}
.profile-hero-body{padding:0 18px 18px}
.profile-identity{display:flex;align-items:flex-end;gap:13px;margin-top:-43px;position:relative}
.profile-avatar{width:88px;height:88px;flex:none;display:grid;place-items:center;overflow:hidden;border:4px solid #151820;border-radius:50%;background:#29232d;color:#fff;font-size:1.8rem;font-weight:850;box-shadow:0 0 0 2px #9d3448}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-avatar[data-frame=founder]{box-shadow:0 0 0 2px #e4bd73,0 0 22px #e4bd7344}
.profile-avatar[data-frame=gold]{box-shadow:0 0 0 2px #d7ad61,0 0 18px #d7ad6133}
.profile-avatar[data-frame=ember]{box-shadow:0 0 0 2px #ed6677,0 0 18px #ed667733}
.profile-meta{min-width:0;flex:1;padding-bottom:5px}
.profile-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-name{margin:0;font-size:1.35rem;line-height:1.45;font-weight:850;overflow-wrap:anywhere}
.profile-level{display:inline-flex;align-items:center;padding:3px 9px;border:1px solid #795b37;border-radius:8px;background:#342719;color:#ffda95;font-size:.72rem;font-weight:850;white-space:nowrap}
.profile-handle{display:block;margin-top:1px;color:#aeb2bd;direction:ltr;text-align:right;font-size:.8rem}
.profile-status{display:inline-flex;align-items:center;gap:7px;margin-top:8px;color:#b8bdc8;font-size:.76rem}
.profile-status i{width:7px;height:7px;border-radius:50%;background:#777d89;flex:none}
.profile-status.is-online i{background:#45c58b;box-shadow:0 0 9px #45c58b77}
.profile-bio{margin:15px 0 0;color:#d3d5dc;font-size:.88rem;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-badges{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin-top:14px}
.profile-badge{width:38px;height:38px;display:grid;place-items:center;border:1px solid #3c414d;border-radius:12px;background:linear-gradient(145deg,#292d38,#1a1d25);color:#e9d3a0}
.profile-badge svg{width:19px;height:19px}
.profile-badge[data-tone=gold]{border-color:#82643a;background:linear-gradient(145deg,#3c3020,#1c1a18);color:#ffda91}
.profile-badge[data-tone=red]{border-color:#75313f;background:linear-gradient(145deg,#3a1e26,#1b171b);color:#ff9aa8}
.profile-badge[data-tone=violet]{border-color:#594477;color:#c5a5ff}
.profile-badge[data-tone=blue]{border-color:#365c7a;color:#91caff}
.profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}
.profile-action{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;border:1px solid #414651;border-radius:10px;background:#222630;color:#f1f2f5;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.profile-action:hover{background:#2a2f3a;border-color:#666d7a}
.profile-action:active{transform:scale(.97)}
.profile-action.primary{background:#a92339;border-color:#d84a60;color:#fff}
.profile-action.primary:hover{background:#c02b44}
.profile-action svg{width:17px;height:17px}
.profile-action:disabled{opacity:.5;cursor:default;transform:none}
.profile-friend-state{display:inline-flex;align-items:center;gap:7px;color:#91d7b1;font-size:.8rem;font-weight:750}
.profile-friend-state svg{width:17px;height:17px}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.profile-stat{min-width:0;min-height:91px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:12px;border:1px solid var(--profile-line);border-radius:14px;background:var(--profile-card);color:var(--profile-text);text-align:right}
button.profile-stat{width:100%;font:inherit;cursor:pointer}
button.profile-stat:hover:not(:disabled){border-color:#9b3a4b;background:#1e2029}
.profile-stat:disabled{cursor:default}
.profile-stat-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#321b23;color:#ff6c7d}
.profile-stat-icon svg{width:17px;height:17px}
.profile-stat-label{color:#aeb3bf;font-size:.72rem}
.profile-stat-value{font-size:1.08rem;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
.profile-stat-like.is-liked .profile-stat-icon{background:#54212e;color:#ff7082}
.profile-feedback{min-height:20px;margin:8px 2px 0;color:#aeb3bf;font-size:.76rem;text-align:right}
.profile-tabs{display:flex;gap:5px;margin-top:14px;padding:5px;border:1px solid var(--profile-line);border-radius:13px;background:#12151c}
.profile-tab{flex:1;min-width:0;min-height:39px;padding:7px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:#aeb3bf;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer}
.profile-tab[aria-selected=true]{border-color:#71303e;background:#321a22;color:#ff8a98}
.profile-panel{margin-top:11px;padding:17px;border:1px solid var(--profile-line);border-radius:15px;background:var(--profile-card)}
.profile-panel h2{margin:0 0 8px;font-size:1rem}
.profile-panel-copy{margin:0;color:#aeb3bf;font-size:.82rem;line-height:1.9}
.profile-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:22px;text-align:center}
.profile-empty>svg{width:36px;height:36px;color:#ff687c}
.profile-empty strong{font-size:.95rem}
.profile-empty p{max-width:38ch;margin:0;color:#aeb3bf;font-size:.8rem;line-height:1.9}
.profile-friends{display:grid;gap:8px}
.profile-friend{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid #2c303a;border-radius:12px;background:#191d25}
.profile-friend-avatar{width:39px;height:39px;display:grid;place-items:center;overflow:hidden;flex:none;border:1px solid #4b4f5a;border-radius:50%;background:#2a2d37;font-weight:800}
.profile-friend-avatar img{width:100%;height:100%;object-fit:cover}
.profile-friend-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.profile-friend-main strong{font-size:.83rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-friend-main small{color:#9ba2b1;font-size:.72rem;direction:ltr;text-align:right}
.profile-friend-status{color:#aeb3bf;font-size:.72rem}
.profile-notice{padding:26px 18px;border:1px dashed #414651;border-radius:15px;background:#151820;text-align:center;color:#c4c8d1}
.profile-notice p{margin:0 0 13px;font-size:.87rem;line-height:1.9}
.profile-loading{padding:55px 16px;text-align:center;color:#aeb3bf}
.profile-footer{padding:23px 0 0;color:#707786;text-align:center;font-size:.7rem}
@media(max-width:420px){
 .profile-shell{width:min(100% - 22px,580px);padding-top:12px}
 .profile-cover{height:100px}
 .profile-hero-body{padding-inline:13px}
 .profile-identity{gap:10px;margin-top:-38px}
 .profile-avatar{width:78px;height:78px;font-size:1.55rem}
 .profile-name{font-size:1.18rem}
 .profile-stats{gap:7px}
 .profile-stat{min-height:84px;padding:9px}
 .profile-stat-value{font-size:.98rem}
 .profile-back{font-size:.75rem}
}
.profile-cover{height:168px}
.profile-identity{flex-direction:column;align-items:flex-start;gap:8px;margin-top:-57px}
.profile-avatar{width:118px;height:118px;box-shadow:0 0 0 2px #3a404d;border-color:#151820}
.profile-meta{width:100%;padding-bottom:0}
.profile-name{font-size:1.55rem}
.profile-status{margin-top:5px}
.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-stat{min-height:84px}
.profile-badges{margin-top:10px}
.profile-device-icons{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
.profile-device-icon{display:grid;place-items:center;width:39px;height:39px;border:1px solid #363b45;border-radius:11px;background:#1f242d;color:#d7dbe3}
.profile-device-icon svg{width:21px;height:21px}
.profile-badge-panel,.profile-device-panel{padding:14px 16px}
.profile-badge-panel h2,.profile-device-panel h2{font-size:.9rem}
.profile-feedback:empty{display:none}
.digi-profile-overlay{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(94vw,480px);max-width:94vw;max-height:92dvh;overflow:auto;padding:12px 14px 18px;border:1px solid #30343e;border-radius:20px;background:#0b0d12;color:#f4f5f7;box-shadow:0 22px 100px #000b;text-align:right;font-family:RoomEstedad,Call,Tahoma,sans-serif}
.digi-profile-overlay::backdrop{background:#0009;backdrop-filter:blur(4px)}
.digi-profile-overlay .profile-overlay-header{display:flex;align-items:center;justify-content:space-between;padding:1px 3px 12px;gap:8px}
.digi-profile-overlay .profile-close{min-width:36px;width:36px;height:36px;padding:0;min-height:36px;font-size:1.5rem;line-height:1}
.digi-profile-overlay .profile-overlay-content{display:block;width:100%;min-width:0}
.digi-profile-overlay .profile-panel[hidden]{display:none!important}
.digi-profile-overlay .profile-stat:disabled{opacity:1}
#rooms-account .digi-account-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
.digi-member-devices .digi-device-symbol{display:inline-grid;place-items:center;min-width:30px;font-size:1.2rem}
@media(max-width:480px){
 .digi-profile-overlay{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border:0;border-radius:0;padding:12px 14px 25px}
 .profile-cover{height:145px}
 .profile-avatar{width:108px;height:108px}
 .profile-identity{margin-top:-51px}
 .profile-name{font-size:1.35rem}
}
