/* Shared STAR POWER navigation and account UI, based on index.html. */

.main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05) !important;
}

.main-header .header-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 70px !important;
    height: 70px !important;
}

.main-header .logo-area {
    position: relative;
    z-index: 10;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.main-header .logo-area .logo {
    width: 45px !important;
    height: 45px !important;
    border: 0 !important;
    border-radius: 12px !important;
    object-fit: cover;
    box-shadow: none !important;
}

.main-header .website-name {
    margin: 0;
    color: #292929 !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.2;
}

.main-header .website-tagline {
    display: block;
    margin-top: 2px;
    color: #999 !important;
    font-size: 9px !important;
}

.main-header .desktop-menu {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    white-space: nowrap;
}

.main-header .desktop-menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 13px !important;
    border-radius: 10px;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.main-header .desktop-menu a::after {
    display: none !important;
}

.main-header .desktop-menu a:hover,
.main-header .desktop-menu a.active {
    transform: translateY(-1px);
    background: #f7f4ff !important;
    color: #7c4dff !important;
}

.main-header .desktop-menu a.active {
    font-weight: 600;
}

#desktopAuthNav,
.main-header .auth-nav,
.main-header .desktop-auth-nav,
.main-header .account-area {
    position: relative;
    z-index: 20;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
}

.main-header .account-area {
    margin-left: 18px;
}

.vote-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    padding: 8px 11px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.vote-back-link:hover {
    border-color: #eadbff;
    background: #f7f4ff;
    color: #7c4dff;
}

.main-header .google-login-btn,
.main-header .login-nav-btn,
.main-header .google-login-nav,
.main-header #rankingLoginButton,
.main-header #categoryLoginButton,
.main-header #openGoogleLoginBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 17px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
    box-shadow: 0 6px 18px rgba(139, 92, 246, .18);
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none;
    transition: .25s ease;
}

.main-header .google-login-btn:hover,
.main-header .login-nav-btn:hover,
.main-header .google-login-nav:hover,
.main-header #rankingLoginButton:hover,
.main-header #categoryLoginButton:hover,
.main-header #openGoogleLoginBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(139, 92, 246, .28);
    color: #fff !important;
}

.main-header .user-profile-btn,
.main-header .account-nav-btn,
.main-header .account-nav-button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 30px;
    background: transparent !important;
    color: #333 !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600;
}

.main-header .account-nav-btn.dropdown-toggle::after {
    display: none !important;
}

.main-header .user-avatar,
.main-header .account-nav-avatar,
.main-header #accountNavAvatar.account-nav-initial,
.main-header .account-nav-button img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 3px solid #f1c6ff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(168, 85, 199, .18);
}

.main-header #accountNavAvatar.account-nav-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
}

.main-header .account-nav-name,
.main-header .user-profile-name {
    max-width: 110px;
    overflow: hidden;
    color: #333 !important;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header .profile-chevron,
.main-header .account-nav-btn > i,
.main-header .account-nav-button > i {
    color: #999;
    font-size: 12px;
}

.main-header .account-dropdown,
.main-header .profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1050;
    width: 290px;
    min-width: 290px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15) !important;
    color: #333;
}

.main-header #accountDropdown {
    display: none;
}

.main-header #accountDropdown.show {
    display: block;
}

.voting-history-modal[hidden] {
    display: none;
}

.voting-history-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(24, 20, 38, .58);
}

.voting-history-card {
    position: relative;
    width: min(100%, 980px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.voting-history-card h2 {
    margin: 0 44px 18px 0;
    color: #282434;
    font-size: 22px;
    font-weight: 700;
}

.voting-history-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f4f1fa;
    color: #6c5c86;
    font-size: 24px;
    line-height: 1;
}

.voting-history-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 13px;
    border: 1px solid #e6e1ef;
    border-radius: 10px;
    color: #827693;
}

.voting-history-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #332d40;
    font: inherit;
}

.voting-history-status {
    min-height: 20px;
    margin: 8px 0;
    color: #736b80;
    font-size: 13px;
}

.voting-history-table-wrap {
    overflow-x: auto;
    border: 1px solid #eeeaf4;
    border-radius: 12px;
}

.voting-history-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.voting-history-table-wrap th,
.voting-history-table-wrap td {
    padding: 11px 12px;
    border-bottom: 1px solid #f0edf5;
    white-space: nowrap;
}

.voting-history-table-wrap th {
    background: #faf8fd;
    color: #756a86;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.voting-history-table-wrap tr:last-child td {
    border-bottom: 0;
}

.voting-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    color: #736b80;
    font-size: 12px;
}

.voting-history-pagination div {
    display: flex;
    gap: 8px;
}

.voting-history-pagination button {
    padding: 7px 12px;
    border: 1px solid #e6e1ef;
    border-radius: 8px;
    background: #fff;
    color: #65547e;
}

.voting-history-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .voting-history-modal {
        padding: 10px;
    }

    .voting-history-card {
        padding: 22px 16px;
    }
}

.main-header .profile-dropdown {
    display: none;
}

.main-header .profile-dropdown.show {
    display: block;
    animation: sharedProfileDrop .2s ease;
}

.main-header .account-dropdown-header,
.main-header .account-dropdown-profile,
.main-header .profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.main-header .account-dropdown-profile,
.main-header .profile-header {
    border-bottom: 1px solid #eee;
}

.main-header .account-dropdown-avatar,
.main-header .account-dropdown-profile > img,
.main-header .profile-header > img,
.main-header .account-dropdown-initial {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    object-fit: cover;
}

.main-header .account-dropdown-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    font-weight: 700;
}

.main-header .account-dropdown-user,
.main-header .account-dropdown-profile-info {
    min-width: 0;
    flex: 1;
}

.main-header .account-dropdown-name,
.main-header .account-dropdown-profile-info strong,
.main-header .profile-header h6 {
    display: block;
    margin: 0;
    overflow: hidden;
    color: #272727;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header .account-dropdown-email,
.main-header .account-dropdown-profile-info small,
.main-header .profile-header span {
    display: block;
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: #999;
    font-size: 11px;
}

.main-header .account-divider {
    margin: 0 0 14px;
    border: 0;
    border-top: 1px solid #eee;
}

.main-header .account-points-title,
.main-header .points-title {
    margin: 15px 0 9px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.main-header .account-points-grid,
.main-header .points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.main-header .account-point-card,
.main-header .point-box {
    display: block;
    min-height: 0;
    padding: 12px;
    border-radius: 13px;
    background: #faf7fc;
}

.main-header .account-point-card.free,
.main-header .point-box.free {
    background: linear-gradient(135deg, #fff1f8, #faf5ff);
}

.main-header .account-point-card.paid,
.main-header .point-box.paid {
    background: linear-gradient(135deg, #f2f0ff, #f8f5ff);
}

.main-header .account-point-label,
.main-header .point-box small {
    display: block;
    margin-bottom: 3px;
    color: #888;
    font-size: 10px;
}

.point-type-icon {
    display: inline-block;
    margin-right: 2px;
    font-size: 1.4em;
    line-height: 1;
    vertical-align: -2px;
}

.point-type-icon.free { color: #f04491; }
.point-type-icon.paid { color: #8051d6; }

.main-header .account-point-value,
.main-header .point-box strong {
    display: block;
    color: #7b3fa1;
    font-size: 18px;
    font-weight: 800;
}

.main-header .free-points-expiry {
    margin: 8px 0 0;
    color: #946d26;
    font-size: 10px;
    line-height: 1.45;
}

.main-header .account-total-card,
.main-header .total-points,
.main-header .account-point-row.total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f7f7;
    color: #777;
    font-size: 11px;
}

.main-header .account-total-value,
.main-header .total-points strong,
.main-header .account-point-row strong {
    color: #333;
    font-size: 14px;
}

.profile-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(24, 20, 35, .72);
}

.profile-edit-modal[hidden] { display: none; }
.profile-edit-card {
    position: relative;
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid #eee8f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.profile-edit-card h2 { margin: 0 0 20px; color: #282433; font-size: 20px; font-weight: 700; }
.profile-edit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #686274;
    background: #f5f2f8;
    font-size: 22px;
}
.profile-edit-avatar {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #7657ed;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.profile-edit-avatar img {
    width: 96px;
    height: 96px;
    border: 3px solid #f1c6ff;
    border-radius: 50%;
    background: #f8f5ff;
    object-fit: cover;
}
.profile-edit-avatar input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.profile-edit-name { display: grid; gap: 7px; color: #555; font-size: 12px; font-weight: 600; }
.profile-edit-name input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e6e2ed;
    border-radius: 9px;
    color: #282433;
    font-size: 14px;
}
.profile-edit-error { margin: 12px 0 0; color: #b4233b; font-size: 12px; }
.profile-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.profile-edit-actions button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 9px; font-size: 12px; font-weight: 600; }
.profile-edit-cancel { color: #666; background: #f2f1f5; }
.profile-edit-actions button[type="submit"] { color: #fff; background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.profile-edit-actions button:disabled { cursor: wait; opacity: .65; }

.main-header .account-logout-btn,
.main-header .account-logout-button,
.main-header .logout-btn {
    width: 100%;
    margin-top: 13px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: #fff0f3;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.main-header .account-logout-btn:hover,
.main-header .account-logout-button:hover,
.main-header .logout-btn:hover {
    background: #dc3545;
    color: #fff;
}

.mobile-menu-btn {
    display: none !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1) !important;
    color: #333 !important;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1050;
    display: flex;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
    transition: right .35s ease;
}

.mobile-nav.active,
.mobile-nav.show {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
}

.mobile-logo h4 {
    margin: 0;
    color: #7b3fa1;
    font-size: 18px;
    font-weight: 700;
}

.mobile-close {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 18px;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
}

.mobile-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: .2s ease;
}

.mobile-links a:hover,
.mobile-links a.active {
    transform: none;
    background: #f7f4ff;
    color: #7c4dff;
}

.mobile-links a.active {
    font-weight: 600;
}

.mobile-links a i {
    font-size: 18px;
}

.mobile-auth,
.mobile-account,
.mobile-auth-section {
    margin: 14px 0 0;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(0, 0, 0, .07);
    border-bottom: 0;
}

.mobile-login-btn,
.mobile-account-login,
.mobile-google-login {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.mobile-user,
.mobile-account .mobile-user,
.mobile-account-card,
.mobile-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 13px;
    background: #faf7fc;
    box-shadow: none;
}

.mobile-profile-card {
    flex-direction: column;
    align-items: stretch;
}

.mobile-profile-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-account-card img {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-profile-avatar,
.mobile-profile-initial {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-profile-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
}

.mobile-user h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.mobile-user span {
    color: #888;
    font-size: 10px;
}

.mobile-account-info {
    min-width: 0;
    flex: 1;
}

.mobile-account-info strong,
.mobile-account-info small,
.mobile-profile-name,
.mobile-profile-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-account-info strong,
.mobile-profile-name {
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.mobile-account-info small,
.mobile-profile-email {
    color: #888;
    font-size: 10px;
}

.mobile-points,
.mobile-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.mobile-point {
    padding: 10px;
    border-radius: 11px;
    background: #f7f4ff;
    text-align: center;
}

.mobile-point small,
.mobile-point strong {
    display: block;
}

.mobile-point small {
    color: #888;
    font-size: 10px;
}

.mobile-point strong {
    color: #7b3fa1;
    font-size: 16px;
}

.mobile-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 11px;
    background: #f2edff;
    color: #777;
    font-size: 11px;
}

.mobile-total strong {
    color: #7c4dff;
    font-size: 14px;
}

.mobile-point-box {
    padding: 10px;
    border-radius: 11px;
    background: #f7f4ff;
}

.mobile-point-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 10px;
    border-radius: 11px;
    background: #f7f4ff;
}

.mobile-point-item.total {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.mobile-point-item span {
    color: #888;
    font-size: 10px;
}

.mobile-point-item strong {
    color: #7b3fa1;
    font-size: 16px;
}

.mobile-point-box small,
.mobile-point-box strong {
    display: block;
}

.mobile-point-box small {
    color: #888;
    font-size: 10px;
}

.mobile-point-box strong {
    color: #7b3fa1;
    font-size: 16px;
}

.mobile-logout,
.mobile-logout-btn,
.mobile-logout-button {
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 11px;
    background: #fff0f3;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
}

.mobile-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.mobile-footer p {
    margin-bottom: 14px;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

.mobile-social {
    display: flex;
    gap: 10px;
}

.mobile-social a {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
}

.menu-overlay,
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
}

.menu-overlay.active,
.mobile-overlay.active,
.menu-overlay.show,
.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

#googleLoginModal .modal-dialog {
    max-width: 300px;
}

#googleLoginModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
}

#googleLoginModal .modal-header {
    padding: 25px 25px 5px;
    border: 0;
}

#googleLoginModal .modal-body {
    padding: 10px 30px 30px;
    text-align: center;
}

#googleLoginModal .google-login-logo {
    width: 78px;
    height: 78px;
    margin-bottom: 18px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(168, 85, 199, .18);
}

#googleLoginModal h3,
#googleLoginModal h4,
#googleLoginModal h5 {
    margin: 0 0 7px;
    color: #292929;
    font-size: 22px;
    font-weight: 800;
}

#googleLoginModal p {
    margin: 0 0 24px;
    color: #888;
    font-size: 13px;
    line-height: 1.65;
}

#googleLoginModal #googleSignInButton,
#googleLoginModal #googleSignInBtn {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 13px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

#googleLoginModal #googleSignInButton:hover,
#googleLoginModal #googleSignInBtn:hover {
    border-color: #ccc;
    background: #f8f8f8;
}

#googleLoginModal .google-icon {
    width: 20px;
    height: 20px;
}

#googleLoginModal .login-note {
    margin-top: 16px;
    margin-bottom: 0;
    color: #888;
    font-size: 11px;
}

@keyframes sharedProfileDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .main-header .desktop-menu { gap: 3px !important; }
    .main-header .desktop-menu a { padding: 8px 9px !important; }
}

@media (max-width: 991px) {
    .main-header .desktop-menu { display: none !important; }
    .main-header .mobile-menu-btn { display: flex !important; }
    .vote-back-link { display: none; }
    .main-header #desktopAuthNav,
    .main-header .auth-nav,
    .main-header .desktop-auth-nav,
    .main-header .account-area { margin-left: auto; }
    .mobile-nav { width: min(320px, 88vw); }
}

@media (max-width: 575px) {
    .main-header .header-wrapper { min-height: 64px !important; height: 64px !important; }
    .main-header #desktopAuthNav,
    .main-header .auth-nav,
    .main-header .desktop-auth-nav,
    .main-header .account-area { display: none !important; }
    .main-header .logo-area .logo { width: 40px !important; height: 40px !important; }
    .main-header .mobile-menu-btn { margin-left: auto; }
    .main-header .account-dropdown,
    .main-header .profile-dropdown { right: -48px; width: min(290px, 88vw); min-width: 0; }
}
