.glasmo-topbar {
    background: #0a2540;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 24px;
}

.glasmo-topbar a {
    color: #fff;
    text-decoration: none;
}

/* LEFT - messages */

.glasmo-topbar-left {
    position: relative;
    flex: 1 1 auto;
    min-height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-right: 20px;
}

.glasmo-topbar-msg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: ease-in-out;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
}

.glasmo-topbar-msg.active {
    opacity: 1;
    pointer-events: auto;
}

.glasmo-topbar-msg a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* RIGHT - navigation */

.glasmo-topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.glasmo-topbar-navitem {
    position: relative;
}

.glasmo-topbar-navlink,
.glasmo-topbar-navbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.glasmo-topbar-navlink:hover,
.glasmo-topbar-navbtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.glasmo-topbar-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.glasmo-topbar-navitem.open .glasmo-topbar-arrow {
    transform: rotate(180deg);
}

/* Dropdown */

.glasmo-topbar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0d2e4d;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10001;
}

.glasmo-topbar-navitem.open .glasmo-topbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glasmo-topbar-dropdown-link {
    display: block;
    padding: 10px 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    transition: background-color 0.15s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glasmo-topbar-dropdown-link:last-child {
    border-bottom: none;
}

.glasmo-topbar-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile */

@media (max-width: 767px) {
    .glasmo-topbar {
        padding: 0 15px;
    }

    .glasmo-topbar-right {
        display: none;
    }

    .glasmo-topbar-left {
        margin-right: 0;
    }

    .glasmo-topbar-msg {
        font-size: 10px;
    }
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
    .glasmo-topbar {
        background: #111;
        border-bottom: 1px solid #222;
    }

    .glasmo-topbar-dropdown {
        background: #1a1a1a;
    }

    .glasmo-topbar-dropdown-link {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

[data-theme="dark"] .glasmo-topbar {
    background: #111;
    border-bottom: 1px solid #222;
}

[data-theme="dark"] .glasmo-topbar-dropdown {
    background: #1a1a1a;
}

[data-theme="dark"] .glasmo-topbar-dropdown-link {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
