header.site-header {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    background-color: #eeeeee;
    color: #ffffff;
}

.site-header .header-left {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-left: 10px;
}

.site-header .header-left a {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-header .logo-image {
    scale: 1.5;
    border-radius: 5px;
    margin: 9px 10px 7px 20px;
}

.site-header .header-left img {
    width: 60px;
    margin-right: 10px;
    margin-left: 20px;
}

.site-header .header-left input {
    padding: 5px;
    border: none;
    border-radius: 3px;
}

.site-header .header-right {
    flex: 0 0 auto;
    min-width: 0;
}

.site-header .header-right ul {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-header .header-right li {
    margin-right: 20px;
}

.site-header .header-right a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #616161;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .header-right ul li a:hover {
    text-decoration: underline;
}

.site-header .header-profile-pic {
    display: block;
    width: 24px;
    height: 24px;
    margin-right: 4px;
    border-radius: 50%;
    object-fit: cover;
}

.site-header .fa-stack {
    margin: -10px -10px -8px;
}

.site-header .fas.fa-bell {
    color: #003660;
}

.site-header .fa-stack .fa-bell {
    font-size: 1.15em;
}

.site-header .notification-count {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    font-size: 0.6em;
}

.site-header .unread-notifications {
    color: rgb(255, 0, 0);
}

.site-header .header-right ul li:first-child {
    margin-right: 15px;
}

.site-header .menu-trigger-wrapper {
    position: relative;
}

.site-header .menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #cdcdcd;
    border-radius: 5px 5px 0 0;
    color: #333333;
    background-color: #f7f7f7;
}

.site-header .menu-title p {
    margin: 0;
}

.site-header .close-menu-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    border: none;
    color: #333333;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

.site-header .close-menu-btn:hover {
    color: #ff0000;
}

.site-header .header-menu-panel {
    position: absolute;
    top: 150%;
    right: 0;
    z-index: 1000;
    display: none;
    width: fit-content;
    border: 1px solid #cdcdcd;
    border-radius: 5px;
    background-color: #ececec;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    white-space: nowrap;
}

.site-header .header-menu-panel a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #cdcdcd;
    border-radius: 3px;
    color: #333333;
    text-decoration: none;
}

.site-header .header-menu-panel a:last-child {
    border-bottom: none;
}

.site-header .header-menu-panel a:hover {
    background-color: #cdcdcd;
}

.site-header .header-menu-panel.active {
    display: block;
}

.site-header .menu-icon-wrapper {
    position: relative;
    display: inline-block;
}

.site-header .notification-bubble {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    padding: 0.5px;
    border-radius: 50%;
    color: #ffffff;
    background-color: #ff3b3b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 9px;
    font-weight: bold;
}

.site-header .notification-bubble[hidden] {
    display: none;
}

.site-header .special-header {
    margin-right: 12px;
    margin-bottom: 1.5px;
    margin-left: -5px;
}

body.auth-modal-is-open {
    overflow: hidden;
}

.auth-modal[hidden],
.auth-modal__panel[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 18, 18, 0.58);
}

.auth-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    font-family: Arial, sans-serif;
}

.auth-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1d1d1f;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.auth-modal__close:hover,
.auth-modal__close:focus-visible {
    background: #f2f2f2;
    outline: none;
}

.auth-modal__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 64px 2px;
    margin-top: 2px;
    margin-bottom: 15px;
}

.auth-modal__logo {
    position: absolute;
    top: 5px;
    left: 15px;
    z-index: 1;
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.auth-modal__note {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4px 28px 12px;
    padding: 8px 12px;
    border: 1px solid #e1edf4;
    border-radius: 8px;
    background: #f7fbfd;
    color: #42515c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.auth-modal__note[hidden] {
    display: none;
}

.auth-modal__body {
    overflow-y: auto;
    padding: 0 28px 24px;
}

.auth-modal__tabs {
    display: flex;
    width: fit-content;
    margin: 0;
    padding: 3px;
    border-radius: 999px;
    background: #ededed;
}

.auth-modal__tab {
    min-width: 88px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.auth-modal__tab.is-active {
    background: #003660;
    color: #ffffff;
}

.auth-modal__oauth-stack {
    display: grid;
    gap: 10px;
}

.auth-modal__oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 10px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background: #ffffff;
    color: #5d5d5d;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.22);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__oauth:hover {
    text-decoration: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.24);
    border-color: #aaa;
}

.auth-modal__oauth:active {
    background: #eeeeee;
}

.auth-modal__oauth:focus-visible {
    outline: none;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.24), 0 0 0 3px #c8dafc;
}

.auth-modal__oauth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.auth-modal__oauth-icon--google {
    background-image: none;
}

.auth-modal__oauth-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-modal__oauth-icon--facebook {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%231877F2'/><path fill='white' d='M14.8 8.6h-1.3c-.3 0-.6.3-.6.7v1.3h1.9l-.2 2h-1.7v5.4h-2.2v-5.4H9.2v-2h1.6V9.3c0-1.5 1-2.6 2.5-2.6h1.6v1.9z'/></svg>");
}

.auth-modal__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 12px;
    color: #666666;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #808080;
}

.auth-modal__form {
    display: grid;
    gap: 10px;
}

.auth-modal__form[data-auth-mode="signup"] {
    gap: 7px;
}

.auth-modal__form-summary {
    display: none;
    padding: 10px 12px;
    border: 1px solid #e08a8a;
    border-radius: 8px;
    background: #fff4f4;
    color: #a40000;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.auth-modal__form-summary.is-visible {
    display: block;
}

.auth-modal__field {
    display: grid;
    gap: 5px;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 800;
}

.auth-modal__field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0 12px;
    border: 0.5px solid #ddd;
    border-radius: 8px;
    background: #f4f4f4;
    color: #1d1d1f;
    font-size: 15px;
    outline: none;
}

.auth-modal__field input:focus {
    border-color: #111111;
    background: #ffffff;
}

.auth-modal__field input[aria-invalid="true"] {
    border-color: #d93025;
    background: #fff8f8;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__field {
    gap: 5px;
    font-size: 12px;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__field input {
    min-height: 36px;
    font-size: 14px;
}

.auth-modal__field small,
.auth-modal__recaptcha small {
    min-height: 0;
    color: #d93025;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.auth-modal__recaptcha {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-height: 70px;
}

.auth-modal__recaptcha > div {
    height: 70px;
    transform: scale(0.9);
    transform-origin: left top;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__recaptcha {
    gap: 4px;
    min-height: 66px;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__recaptcha > div {
    height: 66px;
    transform: scale(0.85);
}

.auth-modal__submit {
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: #007acd;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__submit {
    min-height: 40px;
    margin-top: 2px;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__divider {
    margin: 8px 0 4px;
}

.auth-modal__form[data-auth-mode="signup"] .auth-modal__oauth {
    min-height: 38px;
    font-size: 14px;
}

.auth-modal__submit:hover,
.auth-modal__submit:focus-visible {
    background: #005d9c;
    outline: none;
}

.auth-modal__submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.auth-modal__forgot {
    justify-self: center;
    color: #006edb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-modal__forgot:hover {
    text-decoration: underline;
}

@media (max-width: 1150px) {
    .site-header .header-text {
        display: none;
    }

    .site-header .header-right ul li {
        margin-right: 30px;
        font-size: 13px;
    }

    .site-header .header-right ul li:first-child {
        margin-right: 30px;
    }

    .site-header .notifications,
    .site-header .createlisting,
    .site-header .profilename {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    header.site-header {
        gap: 6px;
    }

    .site-header .header-left {
        flex: 1 1 auto;
        margin-left: 6px;
    }

    .site-header .logo-image {
        margin-left: 12px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .auth-modal {
        align-items: stretch;
        padding: 0;
    }

    .auth-modal__dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .auth-modal__header {
        min-height: 56px;
        padding: 10px 52px 2px;
    }

    .auth-modal__logo {
        top: 10px;
        left: 16px;
        width: 38px;
        height: 38px;
    }

    .auth-modal__close {
        top: 12px;
        right: 14px;
    }

    .auth-modal__body {
        padding: 0 18px 22px;
    }

    .auth-modal__note {
        margin: -2px 18px 10px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .auth-modal__tab {
        min-width: 82px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .auth-modal__oauth,
    .auth-modal__submit {
        font-size: 15px;
    }

    .auth-modal__form[data-auth-mode="signup"] .auth-modal__oauth,
    .auth-modal__form[data-auth-mode="signup"] .auth-modal__submit {
        font-size: 14px;
    }

    .site-header .header-right ul li,
    .site-header .header-right ul li:last-child,
    .site-header .header-right ul li:first-child {
        margin-right: 15px;
    }

    .site-header .header-menu-panel {
        right: -10px;
    }

    .site-header .special-header {
        margin-bottom: 0;
        margin-left: 3px;
    }
}
