#auth-avatar{display:flex;align-items:center;justify-content:center;gap:7px;padding:0;border:0;background:none;color:#e7eaf0;cursor:pointer;min-width:40px}
#auth-avatar img{width:40px;height:40px;object-fit:cover;border:2px solid #f07a3f;border-radius:50%;display:block}
#auth-avatar:hover img{box-shadow:0 0 12px rgba(240,122,63,.45)}
.auth-username{display:none;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
#auth-avatar.authenticated .auth-username{display:block}
.auth-window{max-width:94vw;width:500px}
.auth-modal-body{max-height:calc(100vh - 120px);overflow:auto}
.auth-intro,.auth-demo-note{color:#92a1bc;text-align:center;font-size:12px}
.auth-consent{display:flex;align-items:flex-start;gap:9px;margin:13px 0;color:#d9deea;cursor:pointer}
.auth-consent input{flex:0 0 auto;margin-top:2px;accent-color:#f07a3f}
.auth-consent a{color:#f6a45a;text-decoration:underline}
.auth-provider{position:relative;width:100%;min-height:44px;border:1px solid #374151;border-radius:5px;background:#202734;color:#f3f4f6;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:700;cursor:pointer;transition:filter .2s,border-color .2s,background .2s}
.auth-provider:hover:not(:disabled){filter:brightness(1.14);border-color:#f6a45a}
.auth-provider:disabled{color:#707b8e;background:#20242c;border-color:#303744;cursor:not-allowed;opacity:.68}
.auth-provider-mark{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:4px;background:#303949;color:#fff;font-size:15px}
.auth-steam{margin-top:17px;background:linear-gradient(110deg,#24384a,#15202b);border-color:#5a7187}
.auth-steam .auth-provider-mark{border-radius:50%;background:#0c1821;color:#f6a45a}
.auth-provider-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.auth-google .auth-provider-mark{background:#fff;color:#4285f4}
.auth-facebook .auth-provider-mark{background:#1877f2;color:#fff;font-weight:800}
.auth-telegram-block{min-height:44px;margin-top:10px;display:flex;align-items:center;justify-content:center}
.auth-telegram-placeholder{width:100%;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center;color:#8390a5;font-size:12px}
.auth-unconfigured{font-size:12px}
.auth-demo-note{margin:15px 0 0}
.profile-top{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin:0 auto 22px;max-width:1120px}
.profile-identity,.profile-balance{min-height:126px;padding:20px;display:flex;align-items:center;gap:18px}
.profile-identity>img{width:76px;height:76px;object-fit:cover;border:2px solid #f07a3f;border-radius:50%;background:#202734}
.profile-identity h2{margin:0 0 7px;color:#fff;font-size:20px}
.profile-identity span,.profile-identity a{display:block;color:#92a1bc;font-size:13px;margin-top:4px}
.profile-identity a{color:#f6a45a}
.profile-balance{align-items:flex-start;justify-content:center;flex-direction:column;gap:6px}
.profile-detailed-link{color:#f6a45a;font-size:11px;text-decoration:underline;text-underline-offset:2px}
.profile-balance>span,.profile-balance small{color:#92a1bc;font-size:12px}
.profile-balance strong{color:#f6a45a;font-size:25px}
.profile-section{max-width:1120px;margin:0 auto 22px}
.profile-section-heading{display:flex;align-items:baseline;justify-content:space-between;margin:0 2px 12px}
.profile-section-heading h2{margin:0;font-size:18px;color:#f3f5f8}
.profile-section-heading>span{color:#718099;font-size:12px}
.profile-inventory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.profile-item{position:relative;min-width:0;padding:10px;background:#1b212c;border:1px solid #303846;border-radius:5px;overflow:hidden}
.profile-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--rc,#64748b)}
.profile-item>img{display:block;width:100%;height:104px;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.55))}
.profile-item-price{position:absolute;right:9px;top:8px;color:#f6a45a;font-weight:700;font-size:12px}
.profile-item-name{display:flex;flex-direction:column;gap:3px;min-height:36px;margin:3px 0 8px;font-size:12px}
.profile-item-name b{color:#e7eaf0}
.profile-item-name span{color:#92a1bc}
.profile-item-actions{display:grid;grid-template-columns:1fr;gap:6px}
.profile-item-actions button,.auth-logout{border:1px solid #414b5c;border-radius:4px;padding:7px 6px;background:#252d3a;color:#e4e8ef;cursor:pointer;font-size:11px}
.profile-item-actions button:hover,.auth-logout:hover{border-color:#f07a3f;color:#f6a45a}
.profile-item-actions button:last-child{color:#f6a45a}
.profile-empty,.profile-transactions{padding:16px}
.profile-transactions{max-width:1120px;margin:0 auto 24px}
.profile-transactions-list{overflow-x:auto;color:#92a1bc;font-size:12px}
.profile-transaction-table{min-width:580px}
.profile-transaction-row{display:grid;grid-template-columns:1.2fr 1fr .8fr 1.2fr;gap:12px;padding:10px 4px;border-bottom:1px solid #2c3441;align-items:center}
.profile-transaction-row b{color:#f6a45a}
.profile-transaction-row time{color:#8290a7}
.profile-transaction-head{color:#77859a;font-weight:700}
.auth-logout{margin-top:16px;padding:8px 18px}
.profile-login-prompt{max-width:650px;margin:40px auto;padding:26px;text-align:center}
.profile-login-prompt h2{font-size:19px}
.profile-login-prompt p{color:#92a1bc}

@media (max-width:900px){
  .auth-username{max-width:78px;font-size:10px}
  .profile-inventory{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:600px){
  #auth-avatar img{width:34px;height:34px}
  .auth-username{max-width:56px}
  #auth-block{padding:0 8px;gap:7px}
  .profile-top{grid-template-columns:1fr;gap:9px;margin-bottom:16px}
  .profile-identity,.profile-balance{min-height:96px;padding:14px}
  .profile-identity>img{width:60px;height:60px}
  .profile-identity h2{font-size:17px}
  .profile-balance strong{font-size:22px}
  .profile-inventory{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .profile-item{padding:8px}
  .profile-item>img{height:82px}
  .profile-section-heading h2{font-size:16px}
  .auth-provider-grid{grid-template-columns:1fr}
  .auth-window .modal-body{padding:10px 15px 18px}
}
