.gx-main-menu {
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid #dbe0ea;
    background: linear-gradient(135deg, #16334f 0%, #1f4d73 45%, #2b6a92 100%);
    box-shadow: 0 8px 24px rgba(11, 37, 56, 0.18);
}

.gx-main-menu-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.gx-brand {
    color: #f5fbff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.gx-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gx-link {
    text-decoration: none;
    color: #d9efff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.gx-link:hover,
.gx-link.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.gx-actions {
    display: flex;
    gap: 8px;
}

.gx-home-actions {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gx-home-actions button,
.gx-home-link-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.gx-home-actions #gx-home-register {
    background: #f6b133;
    border-color: #f6b133;
    color: #1a1a1a;
}

.gx-home-actions #gx-home-user-menu,
.gx-home-actions #gx-home-island-editor {
    background: rgba(121, 95, 255, 0.35);
    border-color: rgba(189, 177, 255, 0.8);
}

.gx-home-actions #gx-home-logout {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(252, 165, 165, 0.7);
}

.gx-actions button {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.gx-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none !important;
}

body.has-gx-menu {
    margin-top: 0;
}

body.gx-home-shared-menu #ui-overlay > header#header {
    display: none !important;
}

@media (max-width: 900px) {
    .gx-main-menu-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gx-nav {
        justify-content: flex-start;
    }

    .gx-actions {
        justify-content: flex-end;
    }

    .gx-home-actions {
        justify-content: flex-start;
    }
}
