.auth-area { position: relative; display: flex; align-items: center; gap: 8px; }
.account-login, .account-toggle { min-height: 40px; border: 1px solid #ffffff35; border-radius: 7px; background: #242427; color: #fff; font: 800 12px/1 "Golos Text", Arial, sans-serif; cursor: pointer; }
.account-login { display: grid; width: 40px; padding: 9px; place-items: center; }
.account-login svg { width: 20px; height: 20px; fill: currentColor; }
.account-login:hover:not(:disabled), .account-toggle:hover { border-color: #f3ff00; background: #303033; }
.account-login:disabled { cursor: not-allowed; opacity: .6; }
.account-toggle { display: flex; align-items: center; gap: 7px; max-width: 160px; padding: 4px 9px 4px 5px; }
.account-toggle img { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; }
.account-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 150px; padding: 6px; border: 1px solid #ffffff25; border-radius: 7px; background: #1c1d20; box-shadow: 0 14px 34px #0009; }
.account-menu button, .account-menu .admin-menu-link { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: #fff; font: 700 12px/1 "Golos Text", Arial, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu button:hover, .account-menu .admin-menu-link:hover { background: #ffffff16; }
.account-menu .admin-menu-link { border-block: 1px solid #ffffff12; border-radius: 0; color: #f3ff00; }
.account-menu .admin-menu-link small { display: block; margin-top: 5px; color: #aeb4af; font-size: 10px; font-weight: 600; }
.account-menu button:disabled { cursor: not-allowed; opacity: .55; }
.auth-dialog { width: min(448px, calc(100vw - 32px)); padding: 0; border: 1px solid #ffffff28; border-radius: 8px; background: #202020; color: #fff; }
.auth-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.auth-dialog-panel { position: relative; display: grid; justify-items: center; gap: 18px; padding: 40px; text-align: center; }
.auth-dialog .close-button { position: absolute; top: 14px; right: 14px; }
.auth-dialog-mark { width: 48px; height: 48px; padding: 12px; border: 1px solid #ffffff16; border-radius: 8px; background: #292929; object-fit: contain; }
.auth-dialog-copy { min-width: 0; }
.auth-dialog-copy h2 { margin: 0; font: 900 29px/1 "Golos Text", Arial, sans-serif; }
.auth-dialog-copy > p:last-child { margin: 12px 0 0; color: #b9b9b9; font: 600 13px/1.4 "Golos Text", Arial, sans-serif; }
.auth-google-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 51px; border: 1px solid #dfe3e8; border-radius: 10px; background: #f8f9fa; color: #202938; font: 800 14px/1 "Golos Text", Arial, sans-serif; cursor: pointer; }
.auth-google-button:hover:not(:disabled) { background: #fff; }
.auth-google-button:disabled { opacity: .55; cursor: not-allowed; }
.google-g { position: relative; display: inline-block; flex: 0 0 20px; width: 20px; height: 20px; overflow: hidden; }
.google-g img { position: absolute; width: 32.6px; height: 32.6px; max-width: none; left: -6.3px; top: -6.3px; }
.auth-dialog-legal { width: 100%; padding-top: 18px; border-top: 1px solid #ffffff18; }
.auth-dialog-legal small { display: block; color: #b9b9b9; font: 600 11px/1.35 "Golos Text", Arial, sans-serif; }
.auth-dialog-legal p { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 12px 0 0; color: #aeb7b0; font: 600 11px/1.5 "Golos Text", Arial, sans-serif; }
.auth-dialog-legal a { color: #f4f6f2; text-underline-offset: 3px; }
.auth-dialog-legal a:hover, .auth-dialog-legal a:focus-visible { color: #ffe600; }
.profile-dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #ffffff28; border-radius: 8px; background: #191a1c; color: #fff; }
.profile-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.profile-panel { position: relative; max-height: calc(100dvh - 28px); overflow-y: auto; padding: 30px; }
.profile-panel .close-button { position: absolute; top: 12px; right: 12px; }
.profile-eyebrow { margin: 0 0 7px; color: #f3ff00; font: italic 900 12px/1 "Archivo Shop Display", Arial, sans-serif; }
.profile-panel h2 { margin: 0; font: italic 900 29px/1 "Archivo Shop Display", Arial, sans-serif; text-transform: uppercase; }
.profile-copy { margin: 12px 0 22px; color: #c4c4c4; font: 600 13px/1.45 "Golos Text", Arial, sans-serif; }
.profile-field, .avatar-picker { display: grid; gap: 8px; margin: 0 0 20px; color: #fff; font: 800 13px/1.2 "Golos Text", Arial, sans-serif; }
.profile-field input { width: 100%; padding: 12px; border: 1px solid #ffffff35; border-radius: 6px; outline: 0; background: #101113; color: white; font: 700 15px/1 "Golos Text", Arial, sans-serif; }
.profile-field input:focus { border-color: #f3ff00; box-shadow: 0 0 0 2px #f3ff0033; }
.profile-field span { color: #a7a7a7; font-size: 11px; font-weight: 600; }
.avatar-picker { border: 0; padding: 0; }
.avatar-carousel { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 8px; }
.avatar-carousel-arrow { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid #ffffff2b; border-radius: 50%; background: #111; color: #fff; font: 900 27px/1 Arial, sans-serif; cursor: pointer; }
.avatar-carousel-arrow:hover { border-color: #f3ff00; color: #f3ff00; }
.avatar-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.avatar-choices.is-moving[data-direction="next"] { animation: avatar-slide-next 180ms ease-out; }
.avatar-choices.is-moving[data-direction="previous"] { animation: avatar-slide-previous 180ms ease-out; }
.avatar-choice { aspect-ratio: 1; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: #111; cursor: pointer; }
.avatar-choice[aria-pressed="true"] { border-color: #f3ff00; box-shadow: 0 0 0 2px #f3ff004d; }
.avatar-choice img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.profile-status { min-height: 18px; margin: 0 0 10px; color: #c9c9c9; font: 600 12px/1.3 "Golos Text", Arial, sans-serif; }
.profile-status.is-error { color: #ff9c9c; }
.profile-save { width: 100%; min-height: 45px; }
@keyframes avatar-slide-next { from { opacity: .25; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes avatar-slide-previous { from { opacity: .25; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 760px) { .account-toggle { width: 40px; padding: 4px; } .account-toggle span { display: none; } .profile-panel { padding: 26px 20px; } }
@media (max-width: 520px) { .auth-dialog-panel { padding: 36px 24px; } .auth-dialog-copy h2 { font-size: 25px; } }
@media (max-width: 460px) { .avatar-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .avatar-choices.is-moving { animation: none; } }
