.auth-login {
  display: flex;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.auth-login li {
  float: left;
  display: inline;
}

.auth-login li a {
  display: block;
  color: black;
  text-align: center;
  padding: 12px 10px;
  text-decoration: none;
  font-size: 20px;
  background-color: #ffb400;
}

.auth-login li a:hover:not(.active) {
  background-color: #ffa400;
}

.auth-login li .active {
  background-color: #ffa400;
}

/* =========================
   LOGGED IN AUTH
   ========================= */
.auth-login.logged-in {
  display: flex;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  z-index: 10000;

}

.auth-login.logged-in li {
  float: left;
  display: inline;
  margin: 0;
  padding: 0;
  position: relative;
}

.auth-login.logged-in li:last-child {
  border-right: none;
}

.auth-login.logged-in li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  margin: 0;
  padding: 0 12px;
  background-color: transparent;
}

.auth-login.logged-in li a:hover {
  background-color: #ffa400;
}

.auth-login.logged-in .account-link {
  justify-content: flex-start;
  gap: 8px;
  min-width: 120px;
}

.auth-login.logged-in .auth-avatar {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border: 1px solid #1f1f1f;
  background-color: #222222;
}

.auth-login.logged-in .auth-username {
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
}

.auth-login.logged-in .auth-mail-link svg {
  display: block;
}

.auth-login.logged-in .auth-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-login.logged-in .auth-icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2f80ff;
  color: #ffffff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px #000000;
}

.auth-login.logged-in .auth-flag-link {
  font-size: 24px;
  position: relative;
  top: -2px;
}

/* =========================
   AUTH DROPDOWNS SHARED
   ========================= */
.auth-login.logged-in .auth-dropdown-item {
  position: relative;
}

.auth-login.logged-in .auth-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  margin: 0;
  padding: 0;
  z-index: 10001;
  text-align: left;
}

.auth-login.logged-in .auth-dropdown-item:hover > .auth-dropdown,
.auth-login.logged-in .auth-dropdown-item:focus-within > .auth-dropdown {
  display: block;
}

/* =========================
   MAIL / FLAG DROPDOWNS
   ========================= */
.auth-login.logged-in .mail-dropdown,
.auth-login.logged-in .flag-dropdown {
  width: 290px;
  background-color: #000000;
  border-top: 2px solid #ffb400;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  color: #cccccc;
}

.auth-login.logged-in .auth-dropdown-title {
  display: block;
  margin: 0;
  padding: 12px 12px 10px 12px;
  font-size: 14px;
  line-height: normal;
  color: #ffffff;
  background-color: #000000;
  border-bottom: 1px solid #1f1f1f;
}

.auth-login.logged-in .auth-dropdown-body {
  display: block;
  margin: 0;
  padding: 14px 12px;
  font-size: 14px;
  line-height: normal;
  color: #aaaaaa;
  background-color: #0a0a0a;
  border-bottom: 1px solid #1f1f1f;
}

.auth-login.logged-in .auth-dropdown-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.auth-login.logged-in .auth-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.auth-login.logged-in .auth-dropdown-list-item {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  background: #0b0b0b;
}

.auth-login.logged-in .auth-dropdown-list-item.is-unread {
  border-color: rgba(47, 128, 255, 0.45);
}

.auth-login.logged-in .auth-dropdown-list-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.auth-login.logged-in .auth-dropdown-list-meta,
.auth-login.logged-in .auth-dropdown-list-body,
.auth-login.logged-in .auth-dropdown-empty {
  color: #aaaaaa;
  font-size: 13px;
  line-height: 1.4;
}

.auth-login.logged-in .auth-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  background-color: #000000;
}

.auth-login.logged-in .auth-dropdown-footer a {
  display: inline-block;
  height: auto;
  line-height: normal;
  margin: 0;
  padding: 10px 12px;
  color: #cccccc;
  font-size: 14px;
  text-decoration: none;
  background-color: transparent;
}

.auth-login.logged-in .auth-dropdown-footer a:hover {
  background-color: #ffa400;
  color: #222222;
}

/* =========================
   ACCOUNT DROPDOWN
   ========================= */
.auth-login.logged-in .account-dropdown {
  width: 320px;
  background-color: #000000;
  border-top: 2px solid #ffb400;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  color: #cccccc;
}

.auth-login.logged-in .account-dropdown-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background-color: #0a0a0a;
  border-bottom: 1px solid #1f1f1f;
}

.auth-login.logged-in .account-dropdown-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid #1f1f1f;
  background-color: #111111;
  flex: 0 0 96px;
}

.auth-login.logged-in .account-dropdown-summary {
  flex: 1;
  min-width: 0;
}

.auth-login.logged-in .account-dropdown-name {
  display: block;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  margin: 0 0 10px 0;
  padding: 0;
}

.auth-login.logged-in .account-dropdown-profile {
  display: block;
  font-size: 14px;
  line-height: 18px;
  color: #ffb400;
  margin: 0;
  padding: 0;
  text-decoration: none;
  background: none;
  height: auto;
}

.auth-login.logged-in .account-dropdown-profile:hover {
  color: #ffd166;
  background: none;
}

.auth-login.logged-in .account-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  background-color: #000000;
}

.auth-login.logged-in .account-dropdown-grid a {
  display: block;
  height: auto;
  min-height: 32px;
  line-height: 20px;
  padding: 6px 14px;
  margin: 0;
  color: #cccccc;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  background-color: #000000;
  box-sizing: border-box;
}

.auth-login.logged-in .account-dropdown-grid a:hover {
  background-color: #111111;
  color: #ffffff;
}

.auth-login.logged-in .account-dropdown-grid .account-dropdown-empty {
  display: block;
  min-height: 32px;
  background-color: #000000;
}

.auth-login.logged-in .account-dropdown-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #1f1f1f;
  background-color: #000000;
}

.auth-login.logged-in .account-dropdown-bottom a,
.auth-login.logged-in .account-dropdown-bottom label {
  display: block;
  height: auto;
  min-height: 34px;
  line-height: 18px;
  padding: 8px 14px;
  margin: 0;
  color: #cccccc;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  background: none;
  box-sizing: border-box;
}

.auth-login.logged-in .account-dropdown-bottom a:hover,
.auth-login.logged-in .account-dropdown-bottom label:hover {
  background-color: #111111;
  color: #ffffff;
}

.auth-login.logged-in .account-dropdown-bottom label input {
  position: relative;
  top: 2px;
  margin-right: 6px;
}

.auth-login.logged-in .account-dropdown-status {
  padding: 12px 10px 10px 10px;
  border-top: 1px solid #1f1f1f;
  background-color: #000000;
}

.auth-login.logged-in .account-dropdown-status textarea {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  resize: none;
  border: 1px solid #1f1f1f;
  background-color: #111111;
  color: #cccccc;
  font-size: 14px;
  padding: 6px 8px;
  font-family: inherit;
}

/* =========================
   LOGIN / SIGNUP MODAL
   ========================= */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.auth-modal-dialog {
  position: relative;
  width: min(460px, 100%);
  background: #101010;
  border: 1px solid rgba(255, 180, 0, 0.38);
  border-radius: 8px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #181818;
  color: #ffffff;
  cursor: pointer;
}

.auth-modal-dialog h2 {
  margin: 0 36px 8px 0;
  font-size: 28px;
}

.auth-modal-copy {
  margin: 0 0 18px 0;
  color: #bbbbbb;
}

.auth-modal-form {
  display: grid;
  gap: 14px;
}

.auth-modal-form label {
  display: grid;
  gap: 6px;
  color: #dddddd;
  font-size: 14px;
}

.auth-password-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-password-field input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.auth-password-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #181818;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
}

.auth-password-toggle:hover {
  background: #202020;
}

.auth-password-toggle.is-active {
  border-color: #ffb400;
  color: #ffb400;
}

.auth-password-toggle-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}

.auth-password-toggle-text {
  display: none;
}

.auth-modal-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #050505;
  color: #ffffff;
  padding: 10px 12px;
  font: inherit;
}

.auth-modal-form input:focus {
  outline: 2px solid rgba(255, 180, 0, 0.35);
  border-color: #ffb400;
}

.auth-captcha {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0b0b0b;
}

.auth-captcha-label {
  color: #8ebee6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-captcha-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 84px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #050505;
}

.auth-captcha-refresh {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #181818;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.auth-captcha-refresh:hover {
  background: #202020;
}

.auth-modal-submit {
  min-height: 44px;
  border: 1px solid #ffb400;
  border-radius: 8px;
  background: #ffb400;
  color: #171717;
  font-weight: 700;
  cursor: pointer;
}

.auth-modal-message {
    min-height: 20px;
    font-size: 14px;
}

.auth-modal-message-link {
    margin-top: 4px;
    font-size: 13px;
}

.auth-modal-message-link a {
    color: #8fc7ff;
    text-decoration: underline;
}

.auth-modal-message.is-error {
    color: #ff827a;
}

.auth-modal-message.is-success {
    color: #8ee59c;
}

.auth-modal-message.is-info {
    color: #c9d2db;
}

.auth-modal-switch {
  margin: 18px 0 0 0;
  color: #cccccc;
  text-align: center;
}

.auth-modal-switch button {
  border: 0;
  background: transparent;
  color: #ffb400;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .auth-modal {
    padding: 16px;
  }

  .auth-modal-dialog {
    padding: 22px;
  }
}
