﻿/* Shared navbar styles for landing and dashboard */
:root {
    --nav-bg: #0b1220;
    --nav-surface: #111b2e;
    --nav-text: #ffffff;
    --nav-text-muted: #d8e1f3;
    --nav-border: rgba(184, 202, 236, 0.34);
    --nav-accent: #ffffff;
    --nav-accent-hover: #e7edf5;
    --nav-radius: 12px;
    --nav-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
    --nav-item-width: 105px;
    --nav-dropdown-width: 122px;
    --nav-premium-width: 132px;
    --nav-resources-width: 132px;
    --nav-language-width: 88px;
    --promo-banner-height: 0px;
}

.site-promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1405;
    display: block;
    height: var(--promo-banner-height);
    overflow: hidden;
    margin-bottom: 0;
    padding: 0.46rem 1rem;
    box-sizing: border-box;
    contain: paint;
    text-decoration: none;
    color: #fff7ff;
    background:
        linear-gradient(90deg, rgba(95, 30, 255, 0.96) 0%, rgba(201, 89, 235, 0.95) 46%, rgba(255, 163, 128, 0.97) 100%);
    box-shadow: 0 8px 18px rgba(104, 36, 183, 0.2);
}

.site-promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 48%);
    pointer-events: none;
}

.site-promo-banner:hover {
    color: #ffffff;
}

.site-promo-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.78rem;
    text-align: center;
}

.site-promo-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-promo-banner__text {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-promo-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #7b3af3;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(63, 25, 139, 0.16);
}

body.has-promo-banner {
    --promo-banner-height: 44px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    padding: 0.8rem 0;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.98) 0%, rgba(11, 18, 32, 0.94) 100%);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    display: flex;
    align-items: center;
}

.topbar:not(.dashboard-topbar) {
    top: var(--promo-banner-height);
}

.topbar-inner {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: static;
    /* Allows menu to be relative to .topbar */
}

.topbar:not(.dashboard-topbar) .topbar-inner {
    justify-content: flex-start;
}

.dashboard-topbar .topbar-inner {
    justify-content: flex-start;
}

.brand {
    text-decoration: none;
    color: var(--nav-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    box-shadow: 0 0 15px rgba(214, 222, 233, 0.25);
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.topbar:not(.dashboard-topbar) .topbar-links {
    margin-left: 1.4rem;
    flex: 1 1 auto;
}

.dashboard-topbar .topbar-links {
    margin-left: 1.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-topbar .topbar-links > a#dashboard-nav-btn {
    margin-left: auto;
}

.dashboard-topbar .topbar-links > a.nav-premium-btn {
    margin-left: 0;
}

.dashboard-topbar.is-manage-mode .topbar-links > details,
.dashboard-topbar.is-manage-mode .topbar-links > a#dashboard-nav-btn {
    display: none;
}

.topbar:not(.dashboard-topbar) .profile-wrap {
    margin-left: 0;
}

.dashboard-topbar .profile-wrap {
    margin-left: 0;
}

.nav-mobile-toggle {
    display: none;
    border: 1px solid rgba(184, 202, 236, 0.35);
    background: rgba(17, 27, 46, 0.9);
    color: var(--nav-text);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-mobile-toggle:hover {
    background: rgba(184, 202, 236, 0.12);
    border-color: rgba(184, 202, 236, 0.55);
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--nav-text);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.nav-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.is-open span:nth-child(2) {
    width: 0;
    opacity: 0;
}

.nav-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.topbar-links>a {
    color: var(--nav-text-muted);
    text-decoration: none;
    font-size: clamp(0.84rem, 0.72rem + 0.42vw, 1rem);
    font-weight: 700;
    padding: 0 1rem;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 11rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown {
    position: static;
    display: inline-flex;
    height: 70px;
    align-items: center;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 12rem;
}

.nav-dropdown.nav-dropdown-resources {
    max-width: 12.5rem;
}

.nav-dropdown.nav-dropdown-language {
    position: relative;
    width: var(--nav-language-width);
    flex: 0 0 var(--nav-language-width);
    max-width: none;
}

.nav-dropdown>.nav-dropdown-menu {
    display: block;
}

.nav-dropdown-language>.nav-dropdown-menu {
    width: var(--nav-language-width);
    left: 0;
    top: calc(100% - 4px);
    padding: 0.35rem;
    border: 1px solid rgba(184, 202, 236, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.98) 0%, rgba(9, 15, 28, 0.98) 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    transform: translate3d(0, -8px, 0);
}

.nav-dropdown-language>.nav-dropdown-menu::before {
    display: none;
}

.topbar-links summary {
    list-style: none;
    color: var(--nav-text-muted);
    text-decoration: none;
    font-size: clamp(0.84rem, 0.72rem + 0.42vw, 1rem);
    font-weight: 700;
    padding: 0 0.95rem;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    position: relative;
    height: 70px;
    margin: 0;
    user-select: none;
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 769px) {
    .topbar-links summary {
        cursor: default;
    }
}

.topbar-links summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary svg {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    margin-left: 0;
}

.nav-dropdown.is-open summary svg,
.nav-dropdown:focus-within summary svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100vw;
    padding: 0;
    border: none;
    border-bottom: 1px solid rgba(184, 202, 236, 0.12);
    border-radius: 0;
    background: #0b1220;
    background: linear-gradient(180deg, #0b1220 0%, #090f1c 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    display: block;
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -8px, 0);
    transform-origin: top center;
    transition: opacity 0.07s ease-out, transform 0.08s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.08s;
    will-change: opacity, transform;
    contain: paint;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.07s ease-out, transform 0.08s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.nav-dropdown-language.is-open .nav-dropdown-menu,
.nav-dropdown-language:focus-within .nav-dropdown-menu {
    transform: translate3d(0, 0, 0);
}

.nav-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    min-height: 250px;
    padding: 2.2rem 3rem;
}

.nav-language-summary {
    width: 100%;
    min-width: 0;
    padding: 0 0.8rem;
    justify-content: space-between;
    border-radius: 14px;
}

.nav-language-summary::after {
    content: '';
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-language[open] .nav-language-summary::after {
    transform: rotate(180deg);
}

.nav-language-flag {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(184, 202, 236, 0.12);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: transparent;
    overflow: hidden;
    text-indent: -9999px;
}

.nav-language-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.nav-language-option {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.45rem;
    border: 1px solid rgba(184, 202, 236, 0.05);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    color: #eef3ff;
    text-align: center;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-language-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-language-option:hover {
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(184, 202, 236, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.nav-language-option:hover::before {
    opacity: 1;
}

.nav-language-option:active {
    transform: translateY(-1px) scale(0.98);
}

.nav-language-option[aria-current="true"] {
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(126, 166, 255, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-language-option-flag {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    position: relative;
    z-index: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(184, 202, 236, 0.16);
    color: transparent;
    overflow: hidden;
    text-indent: -9999px;
}

.nav-language-option-label {
    display: none;
}

.nav-language-flag,
.nav-language-option[data-language="en"] .nav-language-option-flag {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3CclipPath id='a'%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Crect width='64' height='64' fill='%23b22234'/%3E%3Cg fill='%23fff'%3E%3Crect y='4.92' width='64' height='4.92'/%3E%3Crect y='14.77' width='64' height='4.92'/%3E%3Crect y='24.62' width='64' height='4.92'/%3E%3Crect y='34.46' width='64' height='4.92'/%3E%3Crect y='44.31' width='64' height='4.92'/%3E%3Crect y='54.15' width='64' height='4.92'/%3E%3C/g%3E%3Crect width='29.2' height='34.46' fill='%233c3b6e'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='4.2' cy='4.3' r='1.15'/%3E%3Ccircle cx='10.5' cy='4.3' r='1.15'/%3E%3Ccircle cx='16.8' cy='4.3' r='1.15'/%3E%3Ccircle cx='23.1' cy='4.3' r='1.15'/%3E%3Ccircle cx='7.35' cy='8.6' r='1.15'/%3E%3Ccircle cx='13.65' cy='8.6' r='1.15'/%3E%3Ccircle cx='19.95' cy='8.6' r='1.15'/%3E%3Ccircle cx='26.25' cy='8.6' r='1.15'/%3E%3Ccircle cx='4.2' cy='12.9' r='1.15'/%3E%3Ccircle cx='10.5' cy='12.9' r='1.15'/%3E%3Ccircle cx='16.8' cy='12.9' r='1.15'/%3E%3Ccircle cx='23.1' cy='12.9' r='1.15'/%3E%3Ccircle cx='7.35' cy='17.2' r='1.15'/%3E%3Ccircle cx='13.65' cy='17.2' r='1.15'/%3E%3Ccircle cx='19.95' cy='17.2' r='1.15'/%3E%3Ccircle cx='26.25' cy='17.2' r='1.15'/%3E%3Ccircle cx='4.2' cy='21.5' r='1.15'/%3E%3Ccircle cx='10.5' cy='21.5' r='1.15'/%3E%3Ccircle cx='16.8' cy='21.5' r='1.15'/%3E%3Ccircle cx='23.1' cy='21.5' r='1.15'/%3E%3Ccircle cx='7.35' cy='25.8' r='1.15'/%3E%3Ccircle cx='13.65' cy='25.8' r='1.15'/%3E%3Ccircle cx='19.95' cy='25.8' r='1.15'/%3E%3Ccircle cx='26.25' cy='25.8' r='1.15'/%3E%3Ccircle cx='4.2' cy='30.1' r='1.15'/%3E%3Ccircle cx='10.5' cy='30.1' r='1.15'/%3E%3Ccircle cx='16.8' cy='30.1' r='1.15'/%3E%3Ccircle cx='23.1' cy='30.1' r='1.15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html[data-language="fr"] .nav-language-flag {
    background-image: linear-gradient(90deg, #0055a4 0 33.333%, #ffffff 33.333% 66.666%, #ef4135 66.666% 100%);
}

html[data-language="de"] .nav-language-flag {
    background-image: linear-gradient(180deg, #000000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

html[data-language="es"] .nav-language-flag {
    background-image: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.nav-language-option[data-language="fr"] .nav-language-option-flag {
    background-image: linear-gradient(90deg, #0055a4 0 33.333%, #ffffff 33.333% 66.666%, #ef4135 66.666% 100%);
}

.nav-language-option[data-language="de"] .nav-language-option-flag {
    background-image: linear-gradient(180deg, #000000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.nav-language-option[data-language="es"] .nav-language-option-flag {
    background-image: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.nav-menu-main {
    padding-right: 2.75rem;
    border-right: 1px solid rgba(184, 202, 236, 0.1);
}

.nav-menu-header {
    display: none;
    margin: 0;
}

.nav-menu-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7ea6ff;
    margin-bottom: 0;
}

.nav-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.2rem;
    padding: 0;
}

.nav-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 202, 236, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: auto;
}

.nav-feature-card:hover {
    background: rgba(184, 202, 236, 0.08);
    border-color: rgba(184, 202, 236, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.nav-feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-feature-card:hover .nav-feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.nav-feature-icon svg {
    width: 22px;
    height: 22px;
}

.nav-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-feature-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.25;
}

.nav-feature-copy {
    font-size: 0.85rem;
    color: #93a1c3;
    line-height: 1.35;
}

.nav-menu-sidebar {
    padding-left: 2.35rem;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.nav-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100%;
}

.nav-premium-highlight {
    display: block;
    flex: 1 1 auto;
    padding: 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(229, 185, 61, 0.1) 100%);
    border: 1px solid rgba(229, 185, 61, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-premium-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.nav-premium-highlight:hover::before {
    left: 100%;
}

.nav-premium-highlight:hover {
    border-color: rgba(229, 185, 61, 0.4);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(229, 185, 61, 0.15) 100%);
    transform: scale(1.02);
}

.highlight-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #f5d97a;
    margin-bottom: 0.5rem;
}

.nav-premium-highlight p {
    font-size: 0.83rem;
    color: #d1d9e9;
    line-height: 1.35;
    margin: 0 0 0.7rem;
}

.highlight-link {
    font-size: 0.84rem;
    font-weight: 800;
    color: #ffffff;
}

.topbar-links>a:hover {
    background: rgba(184, 202, 236, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-links>a:active {
    transform: translateY(1px) scale(0.98);
}

.topbar-links summary:hover,
.nav-dropdown.is-open summary,
.nav-dropdown:focus-within summary {
    background: rgba(184, 202, 236, 0.12);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-links summary:active {
    transform: none;
}

.nav-feature-card:hover,
.nav-spotlight-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(184, 202, 236, 0.3);
    background:
        linear-gradient(180deg, rgba(88, 101, 242, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.nav-feature-card:active {
    transform: translateY(-2px) scale(0.98);
    background: rgba(184, 202, 236, 0.15);
}

.nav-feature-card:hover .nav-feature-copy,
.nav-spotlight-card:hover .nav-spotlight-text,
.nav-spotlight-links a:hover {
    color: #dde7ff;
}

.topbar-links>a.active {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--nav-text-muted);
}

.topbar-links>a.active:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--nav-accent);
}

.topbar-links>a.nav-premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 46px;
    min-width: 0;
    width: auto;
    flex: 0 1 auto;
    margin: auto 0;
    padding: 0 1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffe27a, #e1b53b, #ffe27a);
    background-size: 200% auto;
    animation: premiumBgShift 3s ease infinite;
    color: #1a1400;
    font-weight: 800;
    font-size: clamp(0.74rem, 0.66rem + 0.28vw, 0.92rem);
    white-space: nowrap;
    max-width: 11.5rem;
    border: none;
    box-shadow: 0 3px 10px rgba(229, 185, 61, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.82), inset 0 -1px 3px rgba(184, 134, 11, 0.38);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes premiumBgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.topbar-links>a#dashboard-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 70px;
    min-width: 0;
    margin: auto 0.45rem auto auto;
    padding: 0 1rem;
    border-radius: 0;
    background: transparent;
    color: var(--nav-text-muted);
    font-weight: 700;
    font-size: clamp(0.84rem, 0.72rem + 0.42vw, 1rem);
    white-space: nowrap;
    max-width: 11.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    box-shadow: none;
    text-shadow: none;
}

.topbar-links>a#dashboard-nav-btn:hover {
    background: rgba(184, 202, 236, 0.08);
    color: var(--nav-text);
    transform: none;
    box-shadow: none;
}

.topbar-links>a#dashboard-nav-btn:active {
    transform: none;
}

.topbar-links>a.nav-premium-btn::before {
    content: '';
    position: relative;
    z-index: 1;
    width: 1.15rem;
    height: 1.15rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 19h16l-1.5-10-5.1 3.4L12 6l-1.4 6.4L5.5 9 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 19h16l-1.5-10-5.1 3.4L12 6l-1.4 6.4L5.5 9 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
    flex: 0 0 auto;
}

.topbar-links>a.nav-premium-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
}

@keyframes premiumShimmer {
    0% {
        left: -150%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.topbar-links>a.nav-premium-btn:hover {
    background: linear-gradient(135deg, #ffeb9a 0%, #e8be4e 100%);
    color: #0d0a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 185, 61, 0.36), inset 0 1px 1px rgba(255, 255, 255, 0.96), inset 0 -1px 3px rgba(184, 134, 11, 0.34);
}

.topbar-links>a.nav-premium-btn:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 2px 8px rgba(229, 185, 61, 0.3), inset 0 2px 4px rgba(184, 134, 11, 0.6);
}

.topbar-links>a.nav-premium-btn:hover::after {
    animation: premiumShimmer 1s infinite;
}


.nav-premium-mobile {
    display: none;
}

.profile-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-wrap[hidden] {
    display: none !important;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 70px;
    padding: 0 0.9rem;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--nav-text-muted);
}

.profile-chip:hover,
.profile-chip.is-open {
    color: var(--nav-text);
    background: rgba(184, 202, 236, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.profile-chip::after {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-chip.is-open::after {
    transform: rotate(180deg);
}

.profile-chip img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nav-bg);
}

.profile-chip span {
    font-weight: 700;
    font-size: 1rem;
    color: currentColor;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 248px;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.98) 0%, rgba(9, 15, 28, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 202, 236, 0.16);
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    box-sizing: border-box;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.07s ease-out, transform 0.08s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.08s;
}

.profile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.07s ease-out, transform 0.08s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.profile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.profile-menu-header {
    padding: 0.2rem 0.45rem 0;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.52);
}

.profile-menu-grid {
    display: grid;
    gap: 0.55rem;
}

.profile-item-card {
    width: 100%;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 202, 236, 0.05);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.profile-item-card:hover {
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(184, 202, 236, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.profile-item-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 14px;
    background: rgba(184, 202, 236, 0.09);
    position: relative;
    transition: transform 0.3s ease;
}

.profile-item-card:hover .profile-item-icon {
    transform: scale(1.08) rotate(-4deg);
}

.profile-item-card.billing .profile-item-icon::before,
.profile-item-card.logout .profile-item-icon::before {
    content: '';
    position: absolute;
    inset: 0.55rem;
    background-color: currentColor;
}

.profile-item-card.billing {
    color: #eef4ff;
}

.profile-item-card.billing .profile-item-icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='1' y1='10' x2='23' y2='10'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='1' y1='10' x2='23' y2='10'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-item-card.logout {
    color: #ff8d8d;
}

.profile-item-card.logout .profile-item-icon {
    background: rgba(239, 68, 68, 0.1);
}

.profile-item-card.logout .profile-item-icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.profile-item-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: currentColor;
}

.profile-item-copy {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
}

.profile-menu button {
    width: 100%;
    cursor: pointer;
    border: none;
    text-align: left;
}

.profile-logout-btn {
    color: #ef4444;
}

.profile-logout-btn:hover {
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.profile-billing-btn {
    color: var(--nav-text-muted);
}

.profile-billing-btn:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .site-promo-banner {
        padding: 0.42rem 0.8rem;
    }

    .site-promo-banner__inner {
        gap: 0.55rem;
        flex-wrap: wrap;
    }

    .site-promo-banner__eyebrow {
        font-size: 0.6rem;
    }

    .site-promo-banner__text {
        font-size: 0.78rem;
    }

    .site-promo-banner__cta {
        min-height: 28px;
        padding: 0.34rem 0.72rem;
        font-size: 0.76rem;
    }

    body.has-promo-banner {
        --promo-banner-height: 48px;
    }

    .topbar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1300;
        background: #080c16;
        padding: 0;
    }

    body.mobile-nav-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .topbar.dashboard-topbar {
        position: sticky;
        top: 0;
        z-index: 1400;
    }

    .dashboard-topbar .topbar-inner {
        gap: 0.75rem;
        justify-content: space-between;
    }

    .brand-text {
        display: inline;
        font-size: 1.05rem;
    }

    .topbar .topbar-inner {
        gap: 0.75rem;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .dashboard-topbar .topbar-inner {
        position: relative;
    }

    .topbar .nav-mobile-toggle {
        display: inline-flex;
        margin-left: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 1305;
    }

    .dashboard-topbar.is-manage-mode .nav-mobile-toggle {
        order: -1;
        margin-right: 0.1rem;
    }

    .dashboard-topbar:not(.is-manage-mode) .nav-mobile-toggle {
        order: 4;
        margin-left: 0.45rem;
        margin-right: 0;
    }

    .topbar:not(.dashboard-topbar) .nav-mobile-toggle {
        order: 3;
        margin-left: 0.45rem;
    }

    .topbar .nav-premium-mobile,
    .topbar .nav-premium-mobile.active {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        min-width: 0;
        margin-left: auto;
        padding: 0 1rem;
        border-radius: 12px;
        background: linear-gradient(135deg, #ffe27a, #e1b53b, #ffe27a);
        background-size: 200% auto;
        animation: premiumBgShift 3s ease infinite;
        color: #1b1400;
        border: none;
        box-shadow: 0 3px 10px rgba(229, 185, 61, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.82), inset 0 -1px 3px rgba(184, 134, 11, 0.38);
        font-size: 0.92rem;
        font-weight: 800;
        text-decoration: none;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
        white-space: nowrap;
        position: relative;
        z-index: 1305;
        overflow: hidden;
    }

    .dashboard-topbar .nav-premium-mobile,
    .dashboard-topbar .nav-premium-mobile.active {
        order: 3;
    }

    .topbar:not(.dashboard-topbar) .nav-premium-mobile,
    .topbar:not(.dashboard-topbar) .nav-premium-mobile.active {
        order: 2;
    }

    .topbar .nav-premium-mobile::before {
        content: '';
        width: 0.95rem;
        height: 0.95rem;
        margin-right: 0.45rem;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 19h16l-1.5-10-5.1 3.4L12 6l-1.4 6.4L5.5 9 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 19h16l-1.5-10-5.1 3.4L12 6l-1.4 6.4L5.5 9 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
        flex: 0 0 auto;
    }

    .topbar .nav-premium-mobile::after {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
        transform: skewX(-25deg);
    }

    .topbar .nav-premium-mobile:hover::after {
        animation: premiumShimmer 1s infinite;
    }

    .topbar .topbar-links>a.nav-premium-btn {
        display: none;
    }

    .topbar .profile-wrap:not([hidden])+.nav-mobile-toggle {
        margin-left: 0.45rem;
    }

    .topbar .brand {
        order: 0;
    }

    .dashboard-topbar .brand {
        order: 0;
    }

    .topbar .topbar-links {
        position: fixed;
        top: 70px;
        left: 50%;
        right: auto;
        bottom: 0;
        margin-left: -50vw;
        z-index: 1200;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        height: calc(100dvh - 70px);
        min-height: calc(100dvh - 70px);
        padding: 0.85rem 1rem 2rem;
        box-sizing: border-box;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        background: linear-gradient(180deg, #080c16 0%, #080c16 100%);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, -20px, 0);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, opacity;
        contain: layout paint style;

        /* Hide Scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .topbar:not(.dashboard-topbar) .topbar-links {
        left: 0;
        right: 0;
        margin-left: 0;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
    }

    .topbar .topbar-links::-webkit-scrollbar {
        display: none;
    }

    .topbar .topbar-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    .topbar .topbar-links>* {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .topbar .topbar-links>a,
    .topbar .topbar-links details {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .topbar .topbar-links.is-open>a,
    .topbar .topbar-links.is-open details {
        opacity: 1;
        transform: translateY(0);
    }

    .topbar .topbar-links.is-open>a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .topbar .topbar-links.is-open>a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .topbar .topbar-links.is-open details:nth-child(3) {
        transition-delay: 0.2s;
    }

    .topbar .topbar-links.is-open details:nth-child(4) {
        transition-delay: 0.25s;
    }

    .topbar .topbar-links.is-open .profile-wrap {
        transition-delay: 0.35s;
    }

    .dashboard-topbar.is-manage-mode .topbar-links {
        display: none !important;
    }

    /* Floating Labels */
    .topbar .topbar-links::before {
        content: 'MAIN MENU';
        display: block;
        width: 100%;
        margin: 0 0 0.35rem 0.5rem;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.45);
    }

    .topbar .profile-wrap::before {
        content: 'ACCOUNT';
        display: block;
        width: 100%;
        margin: 1.25rem auto 0.65rem;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.45);
    }

    .topbar .topbar-links>a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 52px;
        text-align: left;
        padding: 1rem 1.2rem;
        border-radius: 16px;
        background: rgba(184, 202, 236, 0.08);
        border: 1px solid rgba(184, 202, 236, 0.15);
        color: #ffffff;
        font-weight: 600;
        font-size: 1.05rem;
    }

    .topbar .nav-dropdown {
        background: rgba(184, 202, 236, 0.08);
        border: 1px solid rgba(184, 202, 236, 0.15);
        border-radius: 16px;
        overflow: visible;
        width: 100%;
        max-width: none;
        transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            border-radius 0.2s ease;
    }

    .topbar .nav-dropdown summary {
        display: flex;
        width: 100%;
        max-width: none;
        min-height: 52px;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 1rem 1.2rem;
        background: transparent;
        border: none;
        font-size: 1.05rem;
        font-weight: 600;
        color: #ffffff;
        cursor: pointer;
        list-style: none;
        border-radius: 16px;
    }

    .topbar .nav-dropdown[open] summary {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .topbar .nav-dropdown summary::-webkit-details-marker {
        display: none;
    }

    .topbar .nav-dropdown summary svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .topbar .nav-dropdown[open] summary svg {
        transform: rotate(180deg);
    }

    .topbar .topbar-links>a.nav-premium-btn,
    .topbar .topbar-links>a#dashboard-nav-btn {
        min-height: 50px;
        min-width: 0;
        margin: 0;
        padding: 0.92rem 1rem;
        font-size: 0.95rem;
        border-radius: 14px;
        justify-content: center;
        text-align: center;
    }

    .topbar .topbar-links>a#dashboard-nav-btn {
        justify-content: flex-start;
        width: 100%;
        max-width: none;
        min-height: 56px;
        margin: 0;
        padding: 1rem 1.1rem;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(126, 166, 255, 0.18), rgba(126, 166, 255, 0.08));
        border: 1px solid rgba(126, 166, 255, 0.24);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        color: #f4f7ff;
        font-weight: 700;
        gap: 0.72rem;
        text-align: left;
    }

    .topbar .topbar-links>a#dashboard-nav-btn::before {
        content: '';
        width: 1rem;
        height: 1rem;
        flex: 0 0 auto;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .topbar .topbar-links>a.nav-premium-btn {
        min-height: 56px;
        background: linear-gradient(135deg, #f7d669 0%, #e5b94a 100%);
        color: #1b1400;
        border: 1px solid rgba(240, 184, 92, 0.4);
        box-shadow: 0 8px 20px rgba(229, 185, 61, 0.22);
        font-weight: 800;
        text-shadow: none;
        animation: none;
        background-size: auto;
        overflow: visible;
        margin-top: 0.5rem;
    }

    .topbar .topbar-links>a.nav-premium-btn::after {
        display: none;
    }

    .topbar .topbar-links>a.nav-premium-btn::before {
        width: 1rem;
        height: 1rem;
    }

    .topbar .topbar-links>a.nav-premium-btn:hover,
    .topbar .topbar-links>a.nav-premium-btn:active,
    .topbar .topbar-links>a#dashboard-nav-btn:hover,
    .topbar .topbar-links>a#dashboard-nav-btn:active {
        transform: none;
    }

    .topbar .nav-dropdown {
        width: 100%;
        height: auto;
        display: block;
    }

    .topbar #dashboard-nav-btn {
        order: 1;
    }

    .topbar .topbar-links>a.nav-premium-btn {
        order: 2;
    }

    .topbar .nav-dropdown {
        order: 3;
    }

    .topbar .nav-dropdown.nav-dropdown-resources {
        order: 4;
    }

    .topbar .nav-dropdown.nav-dropdown-language {
        order: 5;
    }

    .topbar .profile-wrap {
        order: 6;
        margin-left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar .nav-dropdown-menu {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        display: none;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        contain: none;
    }

    .topbar .nav-dropdown[open] .nav-dropdown-menu {
        display: block;
        padding-bottom: 1rem;
        overflow: visible;
    }

    .topbar .nav-dropdown-language .nav-dropdown-menu {
        width: 100%;
        padding: 0.5rem 1.25rem 1rem;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .topbar .nav-dropdown-language .nav-dropdown-menu::before {
        display: none;
    }

    .topbar .nav-language-summary {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        padding: 1rem 1.2rem;
    }

    .topbar .nav-language-summary::after {
        content: '';
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .topbar .nav-dropdown-language[open] .nav-language-summary::after {
        transform: rotate(180deg);
    }

    .nav-menu-inner {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
        min-height: 0;
        overflow: visible;
    }

    .nav-menu-main {
        padding-right: 0;
        border-right: none;
    }

    .nav-menu-header {
        display: none;
    }

    .topbar .nav-feature-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .topbar .nav-feature-card {
        padding: 1rem;
        background: rgba(184, 202, 236, 0.06);
        border: 1px solid rgba(184, 202, 236, 0.12);
        border-radius: 14px;
    }

    .nav-feature-icon {
        width: 40px;
        height: 40px;
    }

    .nav-feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .topbar .nav-feature-title {
        font-size: 1rem;
    }

    .topbar .nav-feature-copy {
        font-size: 0.88rem;
    }

    .nav-menu-sidebar {
        padding-left: 0;
        margin-top: 0.75rem;
        gap: 1rem;
    }

    .nav-sidebar-section {
        gap: 0.75rem;
    }

    .nav-premium-highlight {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .topbar .nav-dropdown[open] .nav-dropdown-menu {
        display: block;
    }

    .topbar .nav-dropdown.is-open .nav-dropdown-menu,
    .topbar .nav-dropdown:focus-within .nav-dropdown-menu,
    .topbar .nav-dropdown[open] .nav-dropdown-menu {
        display: block;
    }

    .topbar .nav-feature-card:hover,
    .topbar .nav-spotlight-card:hover {
        transform: none;
        background: rgba(184, 202, 236, 0.12);
    }

    .topbar .profile-chip {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.62rem;
        height: auto;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        border: 1px solid rgba(184, 202, 236, 0.12);
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        color: var(--nav-text);
    }

    .topbar .profile-chip span {
        display: inline-block;
        max-width: calc(100% - 2.1rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar .profile-menu {
        position: static;
        top: auto;
        right: auto;
        min-width: 0;
        margin-top: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0.5rem;
    }

    .topbar .profile-menu button {
        color: #fff;
    }

    .topbar .profile-menu .profile-billing-btn {
        color: #fff;
    }

    .topbar .profile-menu-inner {
        gap: 0.5rem;
    }

    .topbar .profile-menu-header {
        padding: 0.1rem 0.35rem 0;
    }

    .topbar .profile-menu-grid {
        gap: 0.45rem;
    }

    .topbar .profile-item-card {
        grid-template-columns: 2rem minmax(0, 1fr);
        padding: 0.8rem 0.85rem;
        border-radius: 12px;
    }

    .topbar .profile-item-icon {
        width: 2rem;
        height: 2rem;
    }

    .topbar .topbar-links .profile-chip:hover,
    .topbar .topbar-links .profile-chip.is-open {
        border: 1px solid rgba(184, 202, 236, 0.16);
        box-shadow: none;
        background: rgba(184, 202, 236, 0.12);
    }
}
