/* Juicer site header + navigation */

.juicer-topnav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(180deg, rgba(16, 18, 28, 0.94) 0%, rgba(10, 12, 20, 0.92) 100%);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.juicer-topnav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.45), transparent);
    pointer-events: none;
}

.juicer-topnav-inner {
    max-width: min(1520px, 98vw);
    margin: 0 auto;
    padding: 14px clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.juicer-topnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    font-size: 1.02rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(280px, 36vw);
}

.juicer-topnav-brand:hover {
    color: var(--accent, #ff8000);
}

.juicer-topnav-brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #ff8000);
    box-shadow: 0 0 14px var(--accent-glow, rgba(255, 128, 0, 0.45));
    flex-shrink: 0;
}

.juicer-topnav-brand .brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.juicer-topnav-brand .brand-product {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    background: linear-gradient(90deg, #fff 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.juicer-topnav-brand:hover .brand-product {
    background: linear-gradient(90deg, #fde68a, #ff8000);
    -webkit-background-clip: text;
    background-clip: text;
}

.juicer-topnav-brand .brand-guild {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.58);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.juicer-topnav-links-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.juicer-topnav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 2px 4px;
    scrollbar-width: none;
}

.juicer-topnav-links::-webkit-scrollbar {
    display: none;
}

.juicer-topnav-links a {
    color: rgba(255, 255, 255, 0.72);
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    border: 1px solid transparent;
}

.juicer-topnav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.juicer-topnav-links a.active {
    color: #0a0806;
    background: linear-gradient(135deg, #fbbf24, #ff8000);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 128, 0, 0.35);
}

.juicer-topnav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.juicer-topnav-actions .btn-login {
    background: rgba(88, 101, 242, 0.2);
    color: #fff;
    border: 1px solid rgba(88, 101, 242, 0.65);
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.juicer-topnav-actions .btn-login:hover {
    background: rgba(88, 101, 242, 0.38);
    color: #fff;
}

.juicer-topnav .user-dd-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    font-weight: 700;
    font-size: 0.82rem;
}

.juicer-topnav .user-dd-toggle:hover {
    border-color: var(--accent, #ff8000);
}

.juicer-topnav .user-dd-toggle img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.juicer-topnav .burger-btn {
    display: none;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.juicer-topnav .burger-btn:hover {
    border-color: var(--accent, #ff8000);
    color: var(--accent, #ff8000);
}

.juicer-topnav-mobile {
    display: none;
    padding: 8px 14px 14px;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 12, 18, 0.98);
}

.juicer-topnav-mobile.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.juicer-topnav-mobile a {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.juicer-topnav-mobile a.active {
    color: #0a0806;
    background: linear-gradient(135deg, #fbbf24, #ff8000);
    border-color: transparent;
}

@media (max-width: 900px) {
    .juicer-topnav-links-wrap {
        display: none;
    }

    .juicer-topnav .burger-btn {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    .juicer-topnav-inner {
        padding: 10px 12px;
        gap: 10px;
    }

    .juicer-topnav-brand {
        max-width: min(200px, 42vw);
    }

    .juicer-topnav-brand .brand-product {
        font-size: 0.88rem;
    }

    .juicer-topnav-brand .brand-guild {
        font-size: 0.62rem;
    }
}

/* User dropdown — flex layout only when open (.show); never override display:none */
.juicer-topnav .dropdown-menu.juicer-dd {
    --dd-w: min(300px, calc(100vw - 20px));
    min-width: var(--dd-w);
    max-width: var(--dd-w);
    width: var(--dd-w);
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(14, 16, 24, 0.98), rgba(8, 10, 16, 0.98));
    border: 1px solid rgba(251, 191, 36, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.juicer-topnav .dropdown-menu.juicer-dd.show {
    display: flex !important;
    flex-direction: column;
    max-height: min(85vh, 640px) !important;
    overflow: hidden !important;
}

.juicer-dd > li {
    list-style: none;
}

.juicer-dd__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    flex-shrink: 0;
    background: linear-gradient(165deg, rgba(14, 16, 24, 1), rgba(10, 12, 18, 0.98));
    border-radius: 16px 16px 0 0;
}

.juicer-dd__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.juicer-dd__scroll {
    max-height: min(58vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 191, 36, 0.35) transparent;
}

.juicer-dd__scroll::-webkit-scrollbar {
    width: 6px;
}

.juicer-dd__scroll::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.35);
    border-radius: 999px;
}

.juicer-dd__foot {
    flex-shrink: 0;
    padding: 4px 8px 10px;
    background: linear-gradient(0deg, rgba(10, 12, 18, 1), rgba(10, 12, 18, 0.98));
    border-radius: 0 0 16px 16px;
}

.juicer-dd__team {
    list-style: none;
}

.juicer-dd-team {
    margin: 0;
}

.juicer-dd-team__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.juicer-dd-team__summary::-webkit-details-marker {
    display: none;
}

.juicer-dd-team__chev {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.juicer-dd-team[open] .juicer-dd-team__chev {
    transform: rotate(180deg);
}

.juicer-dd-team__links {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.juicer-dd__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.35);
}

.juicer-dd__name {
    display: block;
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}

.juicer-dd__hint {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.juicer-dd__divider {
    margin: 6px 8px;
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.juicer-dd__section {
    display: block;
    padding: 6px 12px 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.juicer-dd__item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 10px !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
}

.juicer-dd__item:hover,
.juicer-dd__item:focus {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fff !important;
}

.juicer-dd__item--muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.juicer-dd__item--staff {
    color: rgba(255, 200, 200, 0.9) !important;
}

.juicer-dd__item--logout {
    color: #f87171 !important;
    font-weight: 700;
}

.juicer-dd__item--logout:hover {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}

.juicer-dd__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fbbf24;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.juicer-dd__item--staff .juicer-dd__icon {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.juicer-topnav .user-dd-toggle {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(251, 191, 36, 0.22);
}

.juicer-topnav .user-dd-toggle::after {
    margin-left: 4px;
    opacity: 0.55;
}
