.profile-modal{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;padding:12px;overflow:hidden;background:rgba(4,6,10,.72);backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .28s}
.profile-modal.open{opacity:1;pointer-events:auto}
.profile-modal.hidden{display:none}
.profile-sheet{position:relative;width:min(440px,calc(100vw - 28px));max-height:calc(100vh - 24px);padding:28px 22px 18px;border-radius:28px;background:linear-gradient(180deg,#1a140c 0%,#10161c 42%,#0c1016 100%);border:1px solid rgba(226,180,87,.45);box-shadow:0 30px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,236,190,.2);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(240,212,138,.55) transparent;transform:translateY(28px) scale(.94);opacity:0}
.profile-modal.open .profile-sheet{animation:profileIn .55s cubic-bezier(.16,1,.3,1) forwards}
@keyframes profileIn{to{transform:none;opacity:1}}
.profile-glow{position:absolute;left:50%;top:0;width:280px;height:180px;transform:translateX(-50%);background:radial-gradient(circle,rgba(242,193,77,.45),transparent 68%);pointer-events:none;animation:glowPulse 2.8s ease-in-out infinite}
@keyframes glowPulse{50%{opacity:.55;transform:translateX(-50%) scale(1.08)}}
.profile-x{position:sticky;top:8px;z-index:5;float:right;width:34px;height:34px;margin:0 0 -34px;border:0;border-radius:50%;background:rgba(255,255,255,.06);color:#f6ead2;font-size:20px;cursor:pointer}
.profile-ring{position:relative;width:108px;height:108px;margin:8px auto 12px;display:grid;place-items:center}
.profile-ring:before{content:"";position:absolute;inset:-6px;border-radius:50%;background:conic-gradient(from 0deg,#f8e7a2,#8a5a12,#fff4cc,#e0aa3a,#f8e7a2);animation:ringSpin 4.5s linear infinite}
.profile-ring:after{content:"";position:absolute;inset:-1px;border-radius:50%;background:#120e09}
@keyframes ringSpin{to{transform:rotate(1turn)}}
.profile-ring img{position:relative;z-index:1;width:96px;height:96px;border-radius:50%;object-fit:cover;background:#1b140c}
.profile-kicker{display:block;text-align:center;letter-spacing:.28em;font-size:11px;color:#f0d48a;font-weight:800}
.profile-sheet h3{margin:4px 0 0;text-align:center;color:#fff8ea;font-size:28px}
.profile-user{margin:2px 0 14px;text-align:center;color:#b7a88a;font-size:13px}
.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.profile-stats div{background:rgba(255,255,255,.04);border:1px solid rgba(226,180,87,.18);border-radius:14px;padding:8px 4px;text-align:center;color:#f4ead4;transform:translateY(10px);opacity:0}
.profile-modal.open .profile-stats div{animation:statIn .45s ease forwards}
.profile-modal.open .profile-stats div:nth-child(2){animation-delay:.08s}
.profile-modal.open .profile-stats div:nth-child(3){animation-delay:.16s}
.profile-modal.open .profile-stats div:nth-child(4){animation-delay:.24s}
@keyframes statIn{to{transform:none;opacity:1}}
.profile-stats b{display:block;font-size:16px}
.profile-stats span{font-size:10px;letter-spacing:.06em;color:#cbb892}
.profile-badges{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.profile-badges em{font-style:normal;padding:5px 10px;border-radius:999px;background:linear-gradient(90deg,#3a2c12,#16120c);border:1px solid rgba(226,180,87,.45);color:#f8e7a2;font-size:12px;font-weight:800}
.profile-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.profile-actions button{border:0;border-radius:14px;min-height:46px;padding:6px 4px;cursor:pointer;font-size:12px;line-height:1.15;font-weight:800;color:#2a1c08;background:linear-gradient(180deg,#f8e7a2,#c8963e);position:relative;overflow:hidden}
.profile-actions button:nth-child(2){background:#18202a;color:#f6ead2;border:1px solid rgba(226,180,87,.28)}
.profile-actions button:nth-child(3){background:#24180f;color:#f6ead2;border:1px solid rgba(226,180,87,.28)}
.profile-actions button.on{box-shadow:inset 0 0 0 1px #f0d48a}
.profile-actions button:after{content:none;animation:none}
.profile-actions button[hidden]{display:none}
.profile-chat{max-height:0;overflow:hidden;opacity:0;transition:max-height .35s ease,opacity .35s ease,margin .35s}
.profile-chat.open{max-height:240px;opacity:1;margin-top:12px}
.profile-thread{max-height:120px;overflow:auto;display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.profile-thread p{margin:0;padding:7px 9px;border-radius:12px;background:#121820;color:#f4ead4;font-size:13px}
.profile-thread p.mine{background:#2c2416;text-align:right}
.profile-chat form,.profile-chat .profile-send{display:flex;gap:6px}
.profile-chat input{flex:1;border:1px solid rgba(226,180,87,.28);background:#0c1117;color:#fff;border-radius:12px;padding:10px}
.profile-chat button{border:0;border-radius:12px;padding:0 12px;background:#f0d48a;color:#2a1c08;font-weight:800;cursor:pointer}
.profile-note{margin:0 0 8px;color:#d7c49a;font-size:12px}
.profile-actions.is-self{display:none}
.profile-sheet::-webkit-scrollbar{width:8px}
.profile-sheet::-webkit-scrollbar-thumb{background:rgba(240,212,138,.5);border-radius:99px}
.profile-sheet::-webkit-scrollbar-track{background:transparent}
