.showcase-container {
    position: relative;
    padding: clamp(16px, 2.2vw, 22px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--edge, rgba(15, 23, 42, 0.1));
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    transition: transform 180ms ease, border-color 180ms ease;
}

.showcase-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 16% 18%, rgba(251, 191, 36, 0.22), transparent 52%),
                radial-gradient(circle at 84% 28%, rgba(29, 78, 216, 0.14), transparent 56%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
    border-radius: 22px;
}

.showcase-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
    border-radius: 22px;
}

.nav-container.showcase-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: visible !important;
}

.nav-container.showcase-container > .nav-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    color: var(--text-main, #0f172a);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.7);
}

.main-nav {
    width: 100%;
    position: relative;
    z-index: 1;
}

.nav-logo-item {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.nav-brand img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 140px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main, #0f172a);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-blue, #1d4ed8);
}

.nav-link i {
    font-size: 1.1em;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 180px;
    list-style: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.has-submenu:hover .nav-submenu {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.has-submenu:focus-within .nav-submenu {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu .nav-link {
    justify-content: flex-start;
    width: 100%;
    font-size: 0.95em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-container.nav-compact.showcase-container {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 10px 56px 10px 12px;
}

.nav-container.nav-compact .nav-toggle {
    display: inline-flex;
}

.nav-container.nav-compact .nav-menu {
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
}

.nav-container.nav-compact .nav-brand img {
    height: 32px;
    max-width: 120px;
}

.nav-container.nav-compact.nav-open .nav-menu {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
}

.nav-container.nav-compact.nav-open .nav-menu > li {
    width: 100%;
}

.nav-container.nav-compact.nav-open .nav-logo-item .nav-brand {
    width: 100%;
    justify-content: flex-start;
}

.nav-container.nav-compact.nav-open .nav-link {
    width: 100%;
    justify-content: flex-start;
}

.nav-container.nav-compact.nav-open .nav-submenu {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 6px 0 0 12px;
    border: 0;
    box-shadow: none;
    min-width: 0;
}
