/* ============================================================
   PROFIL — izolált prémium parancsnoki archívum
   ============================================================ */

body[data-shell-active="profil"] {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 18% 18%, rgba(81,171,218,.1), transparent 34%),
        radial-gradient(ellipse at 82% 38%, rgba(128,78,176,.08), transparent 36%),
        linear-gradient(145deg, #050a12, #02050a 52%, #07111b);
    background-attachment: fixed;
}
body[data-shell-active="profil"]::before { position: fixed; z-index: -1; inset: 0; content: ""; background-image: linear-gradient(rgba(117,189,220,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(117,189,220,.018) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(#000, transparent 80%); pointer-events: none; }

#profil-shell { width: min(100%,1500px); max-width: none; padding: 20px 30px 70px; box-sizing: border-box; }

.profile-premium-intro { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 126px; margin-bottom: 14px; padding: 22px 34px; box-sizing: border-box; overflow: hidden; border: 1px solid rgba(103,205,238,.2); border-radius: 3px; background: linear-gradient(110deg, rgba(12,21,33,.96), rgba(5,10,18,.95)); box-shadow: 0 18px 45px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.03); }
.profile-premium-intro::before { position: absolute; top: 0; left: 34px; width: 250px; height: 2px; content: ""; background: linear-gradient(90deg, transparent, #68d8f3, #d7b75c, transparent); box-shadow: 0 0 15px rgba(104,216,243,.35); }
.profile-premium-intro::after { position: absolute; z-index: -1; right: -90px; bottom: -190px; width: 400px; height: 400px; border: 1px solid rgba(104,216,243,.07); border-radius: 50%; content: ""; box-shadow: 0 0 0 43px rgba(104,216,243,.014), 0 0 0 44px rgba(104,216,243,.045); }
.profile-premium-copy { position: relative; z-index: 1; }
.profile-premium-eyebrow { display: flex; align-items: center; gap: 9px; color: rgba(112,218,243,.68); font-size: .53rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.profile-premium-eyebrow i { width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 7px currentColor; }
.profile-premium-copy h1 { margin: 5px 0 2px; color: #f8f1e5; font-family: "AOW",serif; font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 400; letter-spacing: .055em; line-height: 1.1; }
.profile-premium-copy p { margin: 0; color: rgba(173,194,208,.62); font-size: .7rem; line-height: 1.45; }
.profile-premium-mark { position: relative; display: flex; align-items: center; gap: 13px; color: #d7b75c; }
.profile-premium-mark span { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.profile-premium-mark span:last-child { transform: scaleX(-1); }
.profile-premium-mark b { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(215,183,92,.45); transform: rotate(45deg); background: rgba(3,7,13,.55); box-shadow: 0 0 22px rgba(215,183,92,.1), inset 0 0 13px rgba(215,183,92,.07); font-family: "AOW",serif; font-size: .68rem; font-weight: 400; }
.profile-premium-mark b em { display: block; font-style: normal; transform: rotate(-45deg); }

.profile-header { position: relative; min-height: 166px; gap: 34px; margin-bottom: 15px; padding: 28px 38px; overflow: hidden; border-color: rgba(91,206,238,.26); border-radius: 3px; background: linear-gradient(120deg, rgba(10,21,34,.96), rgba(4,9,16,.96)); box-shadow: 0 22px 52px rgba(0,0,0,.38), 0 0 30px rgba(76,212,255,.06), inset 0 1px rgba(255,255,255,.035); }
.ph-avatar-wrap { z-index: 2; width: 122px; height: 122px; }
.ph-avatar-ring { box-sizing: border-box; padding: 5px; background: conic-gradient(from 180deg, #54d9f5, #d8b95d, #527de0, #54d9f5); box-shadow: 0 0 0 5px rgba(3,8,14,.68), 0 0 30px rgba(76,212,255,.25); }
.profile-header:not([class*="profile-theme-"]) .ph-avatar-ring { animation: pfpAvatarGlow 3.8s ease-in-out infinite; }
.ph-avatar-ring img { box-sizing: border-box; border-width: 3px; }
.ph-info { position: relative; z-index: 2; gap: 14px; margin-left: 5px; padding: 12px 14px; }
.ph-info:hover { background: linear-gradient(90deg, rgba(255,255,255,.035), transparent); }
.ph-name { color: #fff3df; font-size: clamp(1.65rem,2.5vw,2.25rem); letter-spacing: .045em; text-shadow: 0 3px 18px rgba(0,0,0,.6); }
.ph-xp-block { max-width: 680px; }
.ph-xp-track { height: 8px; padding: 2px; box-sizing: content-box; border-color: rgba(91,206,238,.18); border-radius: 1px; background: rgba(1,5,10,.58); }
.ph-xp-fill { border-radius: 0; background: linear-gradient(90deg,#277fd3,#5de0f1 70%,#e0c064); box-shadow: 0 0 12px rgba(76,212,255,.45); }
.ph-xp-text { color: rgba(170,192,207,.58); font-size: .69rem; }
.ph-xp-text span:first-child { color: rgba(230,238,242,.85); letter-spacing: .04em; }

.profile-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,220px)); gap: 0; margin-bottom: 16px; padding: 0 12px; border: 1px solid rgba(135,174,197,.14); border-radius: 3px; background: linear-gradient(180deg,rgba(9,16,26,.93),rgba(4,8,14,.96)); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.profile-tab { position: relative; min-height: 52px; padding: 10px 24px; border: 0; color: rgba(167,188,201,.6); font-family: "Montserrat",sans-serif; font-size: .64rem; font-weight: 700; letter-spacing: .16em; }
.profile-tab + .profile-tab { border-left: 1px solid rgba(255,255,255,.07); }
.profile-tab::after { position: absolute; right: 30%; bottom: -1px; left: 30%; height: 2px; content: ""; background: transparent; transition: right var(--t-mid),left var(--t-mid),background var(--t-mid),box-shadow var(--t-mid); }
.profile-tab:hover { color: #edf3f6; }
.profile-tab.is-active { border: 0; color: #79def3; text-shadow: 0 0 13px rgba(76,212,255,.33); }
.profile-tab.is-active::after { right: 10%; left: 10%; background: linear-gradient(90deg,transparent,#61d8f1,transparent); box-shadow: 0 0 12px rgba(76,212,255,.46); }

.pf-stat-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.pf-stat-card { min-height: 132px; padding: 20px 20px 17px; box-sizing: border-box; border-color: rgba(127,172,198,.15); border-radius: 3px; background: linear-gradient(145deg,rgba(11,20,31,.92),rgba(4,9,16,.96)); box-shadow: 0 14px 30px rgba(0,0,0,.27),inset 0 1px rgba(255,255,255,.025); }
.pf-stat-card::before { top: 0; right: auto; bottom: 0; left: 0; width: 2px; height: auto; background: linear-gradient(transparent,rgba(85,215,240,.62),transparent); }
.pf-stat-card::after { position: absolute; top: -1px; right: -1px; width: 28px; height: 28px; border-top: 1px solid rgba(215,183,92,.42); border-right: 1px solid rgba(215,183,92,.42); content: ""; }
.pf-stat-card:hover { border-color: rgba(85,215,240,.42); transform: translateY(-4px); box-shadow: 0 20px 38px rgba(0,0,0,.34),0 0 20px rgba(76,212,255,.06); }
.pf-stat-icon { width: 25px; height: 25px; filter: drop-shadow(0 0 8px rgba(76,212,255,.2)); }
.pf-stat-num { color: #daf6fb; font-size: 2rem; font-weight: 400; text-shadow: 0 0 17px rgba(76,212,255,.2); }
.pf-stat-label { color: rgba(109,216,239,.65); font-size: .55rem; font-weight: 700; letter-spacing: .15em; }
.pf-stat-sub { color: rgba(170,190,204,.5); font-size: .6rem; }
.pf-stat-card--progress .pf-stat-track { height: 5px; border-radius: 0; background: rgba(255,255,255,.055); }
.pf-stat-card--progress .pf-stat-fill { border-radius: 0; background: linear-gradient(90deg,#36a8dd,#63e1ef); box-shadow: 0 0 9px rgba(76,212,255,.3); }

@keyframes pfpAvatarGlow { 0%,100% { box-shadow: 0 0 0 5px rgba(3,8,14,.68),0 0 24px rgba(76,212,255,.19); } 50% { box-shadow: 0 0 0 5px rgba(3,8,14,.7),0 0 36px rgba(76,212,255,.34); } }
@media (max-width: 980px) { .pf-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) { #profil-shell { padding: 12px 12px 55px; } .profile-premium-intro { padding-inline: 20px; } .profile-premium-mark { display:none; } .profile-header { padding: 24px 20px; } .ph-avatar-wrap { width: 104px;height:104px; } .profile-tabs { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 460px) { .pf-stat-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { .ph-avatar-ring { animation:none; } .profile-header { animation:none!important; } }
