/* Account layout uses actual guest, trade-draft and saved-cart data. */
body[data-page=account] #main::before{height:920px;background-image:linear-gradient(90deg,rgba(10,11,18,.74),rgba(10,11,18,.38) 40%,rgba(10,11,18,.08) 75%),url('img/cs2-dust2-v1.webp')}
.account-page.container{max-width:1120px;padding-bottom:180px}
.account-heading{padding-block:56px 40px}
.account-heading h1{font-size:clamp(44px,5vw,68px)}
.account-heading>p{margin-top:16px;font-size:16px;color:#ddd6eb}
.account-nav{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:20px}
.account-nav a{min-height:44px}
.account-nav .icon{width:16px;height:16px;flex-basis:16px}
.account-content{grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}
.profile-panel{grid-row:1/span 2;align-self:stretch;display:flex;flex-direction:column}
.profile-identity{flex-wrap:wrap}
.profile-avatar{width:80px;height:80px;flex-basis:80px}
.profile-avatar .icon{width:36px;height:36px;flex-basis:36px}
.profile-identity h3{font-size:28px}
.profile-status{flex-basis:100%;margin-left:0}
.profile-connect{flex-direction:column;align-items:stretch;gap:16px;margin-top:auto}
.profile-connect .button{width:100%}
.account-trade-panel,.account-stats{grid-column:2}
.account-picks-panel,.account-history{grid-column:1/-1}
.account-trade-panel .trade-draft-controls{flex-wrap:wrap}
.account-trade-panel .trade-draft-controls input{flex-basis:100%;font-size:14px}
.account-trade-panel .trade-draft-controls .button{min-height:44px}
.account-trade-panel [aria-invalid=true]{border-color:var(--error)}
#trade-draft-status:not(:empty){padding:10px 12px;border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text)}
.account-trade-panel:has([aria-invalid=true]) #trade-draft-status{color:var(--error)}
.account-stats{gap:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.account-stats>div{border:0;border-radius:0;background:none;padding:20px}
.account-stats>div+div{border-left:1px solid var(--border)}
.account-empty{font-size:14px;line-height:1.8;padding-block:28px}
.account-history p,.profile-connect p{font-size:14px;line-height:1.75}
.account-content h2{scroll-margin-top:100px}
@media(max-width:1023px){
    .account-content{grid-template-columns:260px minmax(0,1fr);gap:20px}
    .account-panel{padding:24px}
    .account-section-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}
    .account-stats>div{padding:16px 12px}
    .account-stats strong{font-size:20px}
    .account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .account-stats>div:nth-child(2){grid-column:1/-1;grid-row:1;border-left:0;border-bottom:1px solid var(--border)}
}
@media(max-width:767px){
    body[data-page=account] #main::before{background-image:linear-gradient(90deg,rgba(10,11,18,.78),rgba(10,11,18,.32)),url('img/cs2-dust2-v1.webp')}
    .account-page.container{padding-bottom:140px}
    .account-heading{padding-block:36px 28px}
    .account-heading h1{font-size:44px}
    .account-heading>p{font-size:15px}
    .account-nav{gap:4px 20px;margin-top:16px;font-size:12px}
    .account-content{grid-template-columns:1fr;gap:16px}
    .profile-panel{grid-row:auto}
    .account-trade-panel,.account-stats,.account-picks-panel,.account-history{grid-column:auto}
    .account-panel{padding:22px 18px}
    .profile-connect{margin-top:0}
    .account-trade-panel .trade-draft-controls input{font-size:16px}
    .account-trade-panel .trade-draft-controls .button{width:auto;flex:1}
    .account-section-heading .text-link{font-size:12px;min-height:44px}
}
@media(prefers-reduced-motion:no-preference){
    #trade-draft-status:not(:empty){animation:account-feedback 160ms ease-out}
}
@keyframes account-feedback{from{opacity:.4;clip-path:inset(0 0 35%)}to{opacity:1;clip-path:inset(0)}}

/* Matte dossier surfaces; the approved account geometry stays unchanged. */
.account-panel,.account-stats{position:relative;border-color:#51475e;border-radius:6px;background:#17141f;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),inset 0 -1px 0 rgba(0,0,0,.28)}
.profile-panel{background:#211a2d}
.account-panel::before,.account-stats::before{content:'';position:absolute;inset:7px;pointer-events:none;background:
    radial-gradient(circle,#09080d 0 1px,#6c6077 1px 2px,transparent 2px) left top/4px 4px no-repeat,
    radial-gradient(circle,#09080d 0 1px,#6c6077 1px 2px,transparent 2px) right top/4px 4px no-repeat,
    radial-gradient(circle,#09080d 0 1px,#6c6077 1px 2px,transparent 2px) left bottom/4px 4px no-repeat,
    radial-gradient(circle,#09080d 0 1px,#6c6077 1px 2px,transparent 2px) right bottom/4px 4px no-repeat}
.profile-avatar{border-radius:6px;background:#2b2435 url('img/profile-avatar-v1.webp') center/cover no-repeat;box-shadow:inset 0 0 0 1px #65556f}
.profile-avatar .icon{visibility:hidden}
.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-identity>div{min-width:0;max-width:100%}
.profile-identity h3,.profile-status{overflow-wrap:anywhere}
.account-trade-panel .trade-draft-controls input{background:#121018;box-shadow:inset 0 2px 4px rgba(0,0,0,.2)}
.account-stats>div{border-color:#51475e}
