/* Navbar: Premium Glassmorphism Theme */
/* Replaces the old "futuristic" neon style with a cleaner, high-end look */

/* === CORE VARIABLES & THEME === */
:root {
    --nav-glass-bg: rgba(10, 20, 35, 0.75);
    --nav-glass-scrolled: rgba(5, 12, 25, 0.90);
    --nav-border: 1px solid rgba(255, 255, 255, 0.08);
    --nav-blur: 16px;
    --nav-text-primary: #f0f4f8;
    --nav-text-secondary: #94a3b8;
    --nav-accent: #30d158;
    --nav-accent-glow: rgba(48, 209, 88, 0.25);
    --nav-brand-gradient: linear-gradient(135deg, #30d158 0%, #ffd60a 100%);
    --nav-height: 76px;
    /* default fixed height (slightly larger) */
    --nav-height-scrolled: 64px;
    /* smaller when scrolled */
}

/* === MAIN NAVBAR CONTAINER === */
/* === MAIN NAVBAR CONTAINER === */
.futuristic-nav {
    /* Floating Pill Style */
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--layout-max, 1400px);
    /* Match footer/layout max width */
    height: auto;
    min-height: 70px;
    z-index: 1050;

    /* Glass Effect */
    background: linear-gradient(180deg, rgba(10, 20, 35, 0.85), rgba(10, 20, 35, 0.75));
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    /* Pill shape */
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    /* Inner glow */

    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem 0.5rem 0.75rem;
}

.futuristic-nav.scrolled {
    background: rgba(5, 12, 25, 0.95);
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.4);
    top: 0.5rem;
    padding: 0.4rem 1.5rem;
    width: 98%;
    /* Slightly wider when scrolled or kept same preference */
}

/* Ensure page content is pushed below the fixed navbar */
body:not(.nav-no-fixed) {
    padding-top: 100px;
    /* Navbar height (70px) + top margin (1rem) + small spacing */
}

/* 👈 AÑADIDO: Asegurar que el layout-container tenga buen spacing */
.layout-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* === BRAND === */
.brand-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--nav-accent);
    padding: 0.5rem 0.9rem;
    /* 👈 Aumentado de 0.35rem 0.75rem */
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    /* 👈 Aumentado de 0.9rem */
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(48, 209, 88, 0);
}

.navbar-brand {
    text-decoration: none;
    /* 👈 AÑADIDO */
}

.navbar-brand:hover .brand-pill {
    background: rgba(48, 209, 88, 0.15);
    border-color: rgba(48, 209, 88, 0.3);
    box-shadow: 0 0 15px var(--nav-accent-glow);
    transform: translateY(-1px);
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    /* 👈 Aumentado de 1.15rem */
    background: var(--nav-brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 👈 AÑADIDO para Firefox */
    letter-spacing: -0.02em;
    position: relative;
}

/* === DESKTOP NAVIGATION === */
.desktop-nav {
    display: flex;
    /* 👈 AÑADIDO */
    align-items: center;
    /* 👈 AÑADIDO */
}

.futuristic-link {
    color: var(--nav-text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem !important;
    /* 👈 Aumentado de 0.5rem */
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    /* 👈 AÑADIDO */
    display: inline-block;
    /* 👈 AÑADIDO */
}

.futuristic-link:hover,
.futuristic-link.active {
    color: var(--nav-text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* make active link stand out persistently */
.futuristic-link.active {
    background: rgba(48, 209, 88, 0.2);
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
    border-radius: 8px;
}

/* adjust underline when active to be thicker and accent-coloured */
.futuristic-link.active .link-underline {
    background: var(--nav-accent);
    height: 3px;
}

/* accessible focus ring for keyboard users */
.futuristic-link:focus,
.futuristic-link:focus-visible {
    outline: none;
    color: var(--nav-text-primary) !important;
    background: rgba(48, 209, 88, 0.15);
    box-shadow: 0 0 0 3px var(--nav-accent-glow), 0 0 0 1px var(--nav-accent);
}

/* mobile menu links too */
.futuristic-mobile-link:focus,
.futuristic-mobile-link:focus-visible {
    outline: none;
    background: rgba(48, 209, 88, 0.15);
    box-shadow: 0 0 0 3px var(--nav-accent-glow);
}

.futuristic-link .link-underline {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--nav-brand-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.futuristic-link:hover .link-underline,
.futuristic-link.active .link-underline {
    transform: scaleX(1);
}

/* === USER MENU === */
.user-menu {
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.user-avatar {
    width: 36px;
    /* 👈 Aumentado de 32px */
    height: 36px;
    /* 👈 Aumentado de 32px */
    border-radius: 50%;
    background: var(--nav-brand-gradient);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    /* 👈 Aumentado de 0.85rem */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    /* 👈 AÑADIDO: evita que se encoja */
}

/* 👈 Estilos para el texto del username - siempre visible */
.user-menu {
    /* allow the dropdown toggle to expand with content */
    min-width: 8rem;
}
.user-menu .link-text,
.user-menu .user-name {
    /* use primary text so the name is legible next to the avatar */
    color: var(--nav-text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 6rem;
}

.user-menu:hover .link-text,
.user-menu:hover .user-name {
    color: var(--nav-text-primary);
}

/* === DROPDOWN === */
.futuristic-dropdown-menu {
    background: rgba(15, 25, 40, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.75rem !important;
    animation: animateDropdown 0.2s ease-out forwards;
}

@keyframes animateDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.futuristic-dropdown-menu .dropdown-item {
    color: var(--nav-text-secondary);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

.futuristic-dropdown-menu .dropdown-item:hover {
    background: rgba(48, 209, 88, 0.1);
    color: var(--nav-accent);
}

.futuristic-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444 !important;
}

.futuristic-dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* === BUTTONS (Login etc) === */
.futuristic-btn {
    position: relative;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--nav-accent);
    padding: 0.6rem 1.5rem;
    /* 👈 Aumentado de 0.5rem 1.25rem */
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    /* 👈 AÑADIDO */
}

.futuristic-btn:hover {
    background: var(--nav-accent);
    color: #0f172a;
    border-color: var(--nav-accent);
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.4);
    transform: translateY(-1px);
}

/* 👈 AÑADIDO: Estilos para el contenido del botón */
.btn-content {
    position: relative;
    z-index: 2;
}

/* === SIDEBAR NAVIGATION === */
.futuristic-sidebar {
    position: fixed;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(180deg, rgba(10,20,35,0.88), rgba(10,20,35,0.78));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(251,146,60,0.5);
    border-radius: 16px;
    padding: 0.75rem 0.6rem;
    z-index: 1060;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.35),
        0 0 0 1px rgba(251,146,60,0.06) inset;
}
.futuristic-sidebar a {
    color: rgba(148,163,184,0.7);
    font-size: 1.2rem;
    text-decoration: none;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.futuristic-sidebar a:hover {
    background: rgba(48,209,88,0.1);
    color: #f0f4f8;
    box-shadow: 0 0 0 1px rgba(48,209,88,0.2);
}
.futuristic-sidebar a.active {
    background: rgba(48,209,88,0.15);
    color: var(--nav-accent);
    box-shadow: 0 0 0 1px rgba(48,209,88,0.3);
}

/* Light mode */
html.dc-light .futuristic-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.85));
    border-color: rgba(22,163,74,0.45);
    box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 0 0 1px rgba(22,163,74,0.06) inset;
}
html.dc-light .futuristic-sidebar a {
    color: rgba(71,85,105,0.8);
}
html.dc-light .futuristic-sidebar a:hover {
    background: rgba(48,209,88,0.1);
    color: #0f172a;
}
html.dc-light .futuristic-sidebar a.active {
    background: rgba(48,209,88,0.15);
    color: #16a34a;
}

/* Active CUPS indicator dot */
.side-cups-badge {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: default;
}
.cups-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nav-accent);
    box-shadow: 0 0 6px var(--nav-accent-glow);
    animation: cupsDotPulse 2.5s ease-in-out infinite;
}
@keyframes cupsDotPulse {
    0%, 100% { box-shadow: 0 0 5px var(--nav-accent-glow); transform: scale(1); }
    50%       { box-shadow: 0 0 12px rgba(48,209,88,0.55); transform: scale(1.2); }
}

/* rest of file follows */

/* === MOBILE TOGGLER === */
.futuristic-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: var(--nav-text-primary);
    position: relative;
}

.futuristic-toggler .toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--nav-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.futuristic-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.futuristic-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.futuristic-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === OFFCANVAS (MOBILE) === */
.futuristic-offcanvas {
    background: rgba(10, 20, 35, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.futuristic-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.futuristic-offcanvas .offcanvas-title {
    color: var(--nav-text-primary);
    font-weight: 700;
}

/* 👈 AÑADIDO: Brand pill para mobile */
.brand-pill-mobile {
    background: rgba(48, 209, 88, 0.15);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--nav-accent);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.futuristic-mobile-link {
    color: var(--nav-text-secondary) !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    /* 👈 AÑADIDO */
    transition: all 0.3s ease;
    /* 👈 AÑADIDO */
}

.futuristic-mobile-link:hover,
.futuristic-mobile-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--nav-text-primary) !important;
    transform: translateX(5px);
}

/* 👈 AÑADIDO: Estilo específico para logout */
.futuristic-mobile-link.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.futuristic-mobile-link .mobile-link-icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

.mobile-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    opacity: 0.5;
}

.user-info-mobile {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: var(--nav-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 👈 AÑADIDO: Avatar para mobile */
.user-avatar-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nav-brand-gradient);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* === THEME TOGGLE BUTTON === */
.nav-theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.nav-theme-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: scale(1.08);
}

/* === LIGHT MODE === */
html.dc-light .futuristic-nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85)) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

html.dc-light .futuristic-nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.1);
}

html.dc-light .futuristic-link {
    color: #475569 !important;
}

html.dc-light .futuristic-link:hover,
html.dc-light .futuristic-link.active {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.04);
}

html.dc-light .futuristic-link .link-underline {
    background: linear-gradient(135deg, #30d158 0%, #ffd60a 100%);
}

html.dc-light .brand-pill {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.3);
    color: #1a7f37;
}

html.dc-light .navbar-brand:hover .brand-pill {
    background: rgba(48, 209, 88, 0.2);
    border-color: rgba(48, 209, 88, 0.45);
}

html.dc-light .brand-name {
    background: linear-gradient(135deg, #30d158 0%, #ffd60a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dc-light .user-menu .link-text {
    color: #475569;
}

html.dc-light .user-menu:hover .link-text {
    color: #0f172a;
}

html.dc-light .user-avatar {
    background: linear-gradient(135deg, #30d158 0%, #ffd60a 100%);
    color: #0f172a;
}

html.dc-light .futuristic-btn {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.35);
    color: #1a7f37;
}

html.dc-light .futuristic-btn:hover {
    background: #30d158;
    color: #0f172a;
    border-color: #30d158;
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.3);
}

html.dc-light .nav-theme-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
    color: #475569;
}

html.dc-light .nav-theme-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

html.dc-light .futuristic-toggler {
    color: #0f172a;
}

html.dc-light .futuristic-toggler .toggler-line {
    background-color: #0f172a;
}

html.dc-light .futuristic-offcanvas {
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

html.dc-light .futuristic-offcanvas .offcanvas-title {
    color: #0f172a;
}

html.dc-light .futuristic-mobile-link {
    color: #475569 !important;
}

html.dc-light .futuristic-mobile-link:hover,
html.dc-light .futuristic-mobile-link.active {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.04);
}

html.dc-light .futuristic-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

html.dc-light .futuristic-dropdown-menu .dropdown-item {
    color: #475569;
}

html.dc-light .futuristic-dropdown-menu .dropdown-item:hover {
    background: rgba(48, 209, 88, 0.08);
    color: #1a7f37;
}

html.dc-light .futuristic-dropdown-menu .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.08);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .futuristic-nav {
        padding: 0.6rem 0;
        min-height: 56px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-pill {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    /* Reduce body top padding — navbar is ~56px + 1rem top = ~72px */
    body:not(.nav-no-fixed) {
        padding-top: 80px;
    }

    /* Hide vertical sidebar on mobile — hamburger + offcanvas takes over */
    .futuristic-sidebar {
        display: none !important;
    }

    /* Prevent user-menu from expanding too wide on small phones */
    .user-menu {
        min-width: auto;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {
    .futuristic-nav {
        padding: 0.5rem 0;
        min-height: 52px;
    }

    body:not(.nav-no-fixed) {
        padding-top: 76px;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-pill {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* === MOBILE QUICK ACCESS ICON BUTTONS === */
.nav-quick-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-quick-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 20, 35, 0.9);
    color: var(--nav-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-quick-btn:hover {
    background: rgba(48, 209, 88, 0.2);
    border-color: rgba(48, 209, 88, 0.65);
    color: #f0fdf4;
    transform: translateY(-1px);
}

.nav-quick-btn.active {
    background: rgba(48, 209, 88, 0.25);
    border-color: var(--nav-accent);
    color: #ecfdf5;
    box-shadow: 0 0 0 1px var(--nav-accent-glow);
}

html.dc-light .nav-quick-btn {
    background: rgba(255,255,255,0.96);
    border-color: rgba(15,23,42,0.12);
    color: #0f172a;
}

html.dc-light .nav-quick-btn:hover {
    background: rgba(48,209,88,0.12);
    border-color: var(--nav-accent);
    color: #022c22;
}

html.dc-light .nav-quick-btn.active {
    background: rgba(48,209,88,0.18);
    border-color: var(--nav-accent);
    color: #022c22;
}

/* Mobile language selector + theme button alignment */
.nav-lang-mobile {
    position: relative;
}

.nav-lang-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 20, 35, 0.9);
    color: var(--nav-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-lang-btn:hover {
    background: rgba(48, 209, 88, 0.2);
    border-color: rgba(48, 209, 88, 0.65);
    color: #f0fdf4;
    transform: translateY(-1px);
}

.nav-lang-icon {
    line-height: 1;
}

.nav-theme-btn-mobile {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

html.dc-light .nav-lang-btn {
    background: rgba(255,255,255,0.96);
    border-color: rgba(15,23,42,0.12);
    color: #0f172a;
}

html.dc-light .nav-lang-btn:hover {
    background: rgba(48,209,88,0.12);
    border-color: var(--nav-accent);
    color: #022c22;
}

/* === OFFCANVAS BODY — SETTINGS ROW (theme + language) === */
.mobile-settings-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-setting-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--nav-text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.mobile-setting-btn:hover {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.35);
    color: var(--nav-accent);
}

.mobile-setting-label {
    font-size: 0.82rem;
    font-weight: 500;
}

/* Close button: white icon on dark bg; dark icon on light bg */
.futuristic-offcanvas .btn-close {
    filter: invert(1) grayscale(1) brightness(1.8);
}

html.dc-light .futuristic-offcanvas .btn-close {
    filter: none;
}

html.dc-light .mobile-setting-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

html.dc-light .mobile-setting-btn:hover {
    background: rgba(48, 209, 88, 0.08);
    border-color: rgba(48, 209, 88, 0.3);
    color: #16a34a;
}

/* === OFFCANVAS — UNAUTHENTICATED CTA === */
.mobile-auth-section {
    padding: 0.5rem 0 0.75rem;
}

.mobile-auth-intro {
    font-size: 0.82rem;
    color: var(--nav-text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
    padding: 0 0.25rem;
    line-height: 1.5;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: rgba(48, 209, 88, 0.12);
    border: 1px solid rgba(48, 209, 88, 0.35);
    border-radius: 12px;
    color: var(--nav-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-cta-btn:hover,
.mobile-cta-btn:focus {
    background: var(--nav-accent);
    color: #0f172a;
    border-color: var(--nav-accent);
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.35);
}

html.dc-light .mobile-auth-intro {
    color: #64748b;
}

html.dc-light .mobile-cta-btn {
    background: rgba(48, 209, 88, 0.1);
    border-color: rgba(48, 209, 88, 0.3);
    color: #16a34a;
}

html.dc-light .mobile-cta-btn:hover {
    background: #30d158;
    color: #0f172a;
    border-color: #30d158;
}