.particle-background { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
body > main, body > .site-footer { position: relative; z-index: 1; }
.account-nav { position: relative; flex-shrink: 0; }
.account-sign-in { white-space: nowrap; min-height: 46px; }
.profile-toggle { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid #333; border-radius: 99px; padding: 6px 13px 6px 6px; color: white; cursor: pointer; }
.profile-toggle img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.profile-toggle span:first-of-type { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.profile-dropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 230px; padding: 8px; border: 1px solid #383838; border-radius: 17px; background: #111; box-shadow: 0 20px 45px #000b; }
.profile-dropdown a, .profile-dropdown button { display: block; width: 100%; padding: 12px; text-align: left; border: 0; color: #fff; background: transparent; border-radius: 9px; cursor: pointer; font-size: .93rem; }
.profile-dropdown a:hover, .profile-dropdown button:hover { background: #292929; }
[hidden] { display: none !important; }
.account-page { width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 100px; min-height: 70vh; }
.account-page > h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.1; letter-spacing: -.06em; margin: 14px 0 18px; }
.account-page > p { margin-bottom: 30px; color: #bbb; }
.auth-card { max-width: 480px; margin: 0 auto; padding: 30px; background: rgba(18,18,18,.92); border: 1px solid #343434; border-radius: 26px; }
.signin-heading { text-align: center; }
.account-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid #333; border-radius: 14px; margin-bottom: 28px; background: #080808; }
.account-tabs button { flex: 1; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: #aaa; font-weight: 750; cursor: pointer; }
.account-tabs button[aria-selected="true"] { color: #000; background: #fff; }
.account-form { display: grid; gap: 16px; }
.account-form label:not(.avatar-label) { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
.account-form input:not([type="file"]) { width: 100%; min-width: 0; min-height: 49px; padding: 12px 14px; border: 1px solid #414141; border-radius: 11px; background: #080808; color: #fff; font: inherit; }
.account-form input::placeholder { color: #888; }
.account-form input:focus-visible, .account-page button:focus-visible, .account-nav button:focus-visible, .account-nav a:focus-visible { outline: 2px solid #e8bb64; outline-offset: 3px; }
.account-form button[type="submit"] { margin-top: 6px; }
.account-form button:disabled { opacity: .55; cursor: wait; }
.account-message { color: #c6c6c6; font-size: .88rem; min-height: 1.4em; overflow-wrap: anywhere; }
.account-message.is-error { color: #ff9999; }
.account-muted { color: #aaa; font-size: .87rem; font-weight: 400; }
.avatar-picker { display: grid; justify-items: center; gap: 10px; margin-bottom: 8px; }
.avatar-picker button { position: relative; border-radius: 50%; padding: 0; width: 100px; height: 100px; border: 2px dashed #666; background: #171717; cursor: pointer; overflow: hidden; }
.avatar-picker img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-picker button::after { content: '+'; position: absolute; right: 0; bottom: 0; left: 0; background: #000a; color: white; font-size: 1.2rem; line-height: 25px; }
.avatar-picker span { color: #bbb; font-size: .85rem; }
.account-gate, .settings-card, .license-card { padding: 30px; border: 1px solid #333; border-radius: 22px; background: rgba(17,17,17,.93); }
.account-gate p { margin-bottom: 20px; }
.settings-card { max-width: 720px; }
.settings-card h2, .license-card h2 { font-size: 1.7rem; letter-spacing: -.03em; margin-bottom: 10px; }
.settings-card .account-form { max-width: 480px; }
.settings-card .account-tabs { margin-top: 5px; }
.settings-card .avatar-picker { justify-items: start; }
.settings-card .account-muted { margin-bottom: 18px; }
.account-text-button { border: 0; background: transparent; color: #bbb; text-decoration: underline; cursor: pointer; padding: 8px; }
.owned-products { display: grid; gap: 20px; margin: 24px 0 36px; }
.owned-product { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 20px; background: rgba(17,17,17,.93); border: 1px solid #333; border-radius: 20px; }
.owned-product > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: #050505; align-self: center; }
.owned-product h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
.owned-status { color: #e8bb64; font-size: .9rem; margin: 5px 0 12px; }
.owned-time { font-size: 1.15rem; font-weight: 750; }
.license-card .account-form { max-width: 520px; margin-top: 20px; }
.license-card details { color: #bbb; }
.license-card summary { cursor: pointer; margin-bottom: 12px; }
.account-info { margin-bottom: 20px; padding: 14px; background: #171717; border: 1px solid #333; border-radius: 12px; }
@media (min-width: 761px) and (max-width: 1080px) {
  .navbar { gap: 12px; }
  .nav-links { gap: 14px; font-size: .84rem; }
  .profile-toggle span:first-of-type { max-width: 75px; }
}
@media (max-width: 760px) {
  .navbar { gap: 12px; }
  .nav-toggle { margin-left: auto; }
  .profile-toggle span:first-of-type { max-width: 84px; }
  .account-sign-in { min-height: 40px; padding: 0 16px; }
  .account-page { padding-top: 38px; }
  .auth-card, .settings-card, .license-card { padding: 22px; }
  .account-tabs { flex-wrap: wrap; }
  .owned-product { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.signin-heading { margin-bottom: 30px; }
.signin-heading h1 { font-size: clamp(2.5rem,6vw,4rem); letter-spacing: -.06em; line-height: 1.15; margin: 12px 0 18px; }
