/* 
  Deskbay Promotional Landing Page Styles
  Aesthetic: Premium, Glassmorphism, Deep Dark Mode, Vibrant Accents
*/

:root {
    /* Colors derived from Deskbay Official Theme */
    --clr-bg-dark: #0f172a;
    /* slate-900 */
    --clr-bg-darker: #020617;
    /* slate-950 */
    --clr-accent: #0ea5e9;
    /* sky-500 */
    --clr-accent-hover: #0284c7;
    /* sky-600 */
    --clr-accent-light: #38bdf8;
    /* sky-400 */
    --clr-accent-secondary: #6366f1;
    /* indigo-500 */

    --clr-text-main: #f8fafc;
    /* slate-50 */
    --clr-text-muted: #94a3b8;
    /* slate-400 */

    --clr-glass-bg: rgba(30, 41, 59, 0.4);
    /* slate-800 translucent */
    --clr-glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --max-width: 1210px;
    --section-pad: 5rem 2rem;
    --radius-sm: 0.75rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;

    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Hero Spacing Standard */
    --hero-pt-desktop: 8rem;
    --hero-pt-mobile: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg-darker);
    color: var(--clr-text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    width: 100%;
    overflow-x: clip; /* Fix for iOS scroll lock */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    position: relative;
    width: 100%;
    overflow-x: clip; /* Fix for iOS scroll lock */
}

/* Prevent background scroll correctly on iOS */
html.menu-open, body.menu-open {
    overflow: hidden !important;
    touch-action: none; /* Stops iOS bounce scroll entirely */
}

/* Glass & Premium Utilities */
.glass-panel {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Typography Base */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--clr-text-muted);
}

.section-padding {
    padding: var(--section-pad);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header.mb-0 {
    margin-bottom: 0 !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-image: linear-gradient(45deg, #38bdf8 0%, #6366f1 50%, #38bdf8 100%);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.5);
    transition: background-position 0.5s ease-in-out, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-main);
    border: 1px solid var(--clr-glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 1.5rem 2rem;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    isolation: isolate;
    will-change: padding;
}

/* Pseudo-element for the blur background - optimized to prevent flickering */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(2, 6, 23, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
    pointer-events: none;
    will-change: background, border-bottom;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.navbar.scrolled {
    padding: 0.9rem 2rem;
}

.navbar.scrolled::before {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-glass-border);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--clr-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-glass-border);
    color: var(--clr-text-main);
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(2, 6, 23, 0.7);
    /* Adjusted transparency */
    backdrop-filter: blur(40px);
    /* Deeper blur */
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
    /* Subtle scaling entry */
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--clr-text-main);
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.menu-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.mobile-menu-content {
    margin-top: 15vh;
    /* Push down to make room for logo at top */
    width: 100%;
}

.menu-logo {
    position: absolute;
    top: 2.3rem;
    left: 2.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.menu-logo img {
    height: 30px;
    /* Slightly larger professional logo */
    width: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    /* Elegant left alignment */
}

.mobile-link {
    font-size: 1.8rem;
    font-weight: 400;
    /* Lighter, more elegant */
    color: var(--clr-text-main);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.02em;
}

.mobile-link.active {
    color: var(--clr-accent);
}

.mobile-link:hover {
    padding-left: 0.5rem;
    color: var(--clr-accent-light);
}

/* Staggered animation when active */
.mobile-menu.active .menu-logo,
.mobile-menu.active .mobile-link,
.mobile-menu.active .btn {
    opacity: 1;
    transform: translate(0);
}

.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.4s;
}

.mobile-menu .btn {
    opacity: 0;
    margin-top: 4rem;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    width: fit-content;
    padding: 1rem 3rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--hero-pt-desktop) 2rem 4rem;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glow-1 {
    top: 10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: var(--clr-accent);
}

.glow-2 {
    bottom: 20%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: var(--clr-accent-secondary);
}

.hero-content {
    max-width: 1200px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--clr-accent-light);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-store-badges {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .hero-store-badges {
        margin-right: 12px;
    }
}

/* Animations - Reveal blocks */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpAnim 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-up.delay-3 {
    animation-delay: 0.3s;
}

.fade-up.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Visual & Gallery Slider */
.hero-visual {
    width: 100%;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(circle, var(--clr-accent) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    z-index: 0;
}

/* .hero-visual-section removed - moved to .mega-features */

.hero-visual {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.app-gallery-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3rem;
}

.app-gallery-slider {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem 0;
}

.app-gallery-slider::-webkit-scrollbar {
    display: none;
}

.app-gallery-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    margin: 0 auto;
    padding: 0 1rem;
}

/* On Desktop, make it a grid and disable scroll */
@media (min-width: 992px) {
    .app-gallery-slider {
        overflow: visible;
    }

    .app-gallery-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

.mockup-caption {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    opacity: 1;
    text-align: center;
    margin-bottom: 0.5rem;
}

.gallery-phone-mockup {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9/18.5;
    background: #000;
    border-radius: 40px;
    border: 6px solid #1e293b;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.15);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    transition: var(--transition-bounce);
}

.gallery-phone-mockup:hover {
    transform: scale(1.05) translateY(-20px);
    border-color: var(--clr-accent);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 165, 233, 0.3);
}

/* Staggered height effect for desktop */
@media (min-width: 992px) {
    .gallery-item:nth-child(even) {
        transform: translateY(30px);
    }

    .gallery-item:nth-child(even):hover .gallery-phone-mockup {
        transform: scale(1.05) translateY(-5px);
    }
}

.gallery-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    display: none;
    /* Hidden by default, shown by JS or media query when scrollable */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-ctrl:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

/* Show arrows ONLY if slider is active */
.slider-active .gallery-ctrl {
    display: flex;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 1;
    opacity: 1;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.1;
        transform: scale(1);
    }
}

.floating-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--clr-accent) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glow-1 {
    top: -10%;
    left: -10%;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--clr-accent-secondary) 0%, transparent 70%);
}

.section-padding {
    padding: var(--section-pad);
}

/* Sections Base */
.section-header {
    text-align: left;
    margin-bottom: 3rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {

    .pricing-page .section-header,
    .support-page .section-header {
        text-align: center;
    }

    .header-mb-lg {
        margin-bottom: 5rem;
    }
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Mega Features Section */
.badge-outline {
    background: transparent;
    border: 1px solid var(--clr-accent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--clr-accent) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-item:hover::before {
    opacity: 0.1;
}

.feature-item .f-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(14, 116, 144, 0.3);
    position: relative;
    z-index: 1;
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text);
    position: relative;
    z-index: 1;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* App Showcase Slider */
.app-showcase {
    position: relative;
}

.showcase-slider {
    display: flex;
    flex-direction: column;
}

.slide {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    flex: 1;
}

.slide-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.slide-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slide-bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.slide-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.glow-slide {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--clr-accent-secondary) 0%, transparent 60%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.3;
}

.qr-visual-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(14, 165, 233, 0.15));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qr-visual-wrapper:hover {
    transform: translateY(-15px) rotate(2deg);
}

.qr-branded-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    display: block;
}

/* CTA End Section */
.cta {
    text-align: center;
}

.cta-box {
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.glow-3 {
    width: 600px;
    height: 600px;
    background: var(--clr-accent-secondary);
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
}

.cta-box h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    z-index: 10;
}

.cta-box p {
    font-size: 1.2rem;
    max-width: 600px;
    z-index: 10;
}

/* Store Badges */
.cta-buttons {
    display: flex;
    gap: 1rem;
    z-index: 10;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Centralized CTA Wrapper for all pages */
.cta-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.cta-center-wrapper h2,
.cta-center-wrapper .section-title {
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-center-wrapper p,
.cta-center-wrapper .section-description {
    margin: 0 auto 3rem;
    max-width: 600px;
}

.cta-center-wrapper .btn {
    margin-left: auto;
    margin-right: auto;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #000;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.hero-store-badges .store-badge,
.cta-buttons .store-badge {
    min-width: 200px;
    height: 64px;
    justify-content: center;
}

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.badge-icon {
    font-size: 2rem;
}

.badge-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-texts span {
    font-size: 0.7rem;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.badge-texts strong {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 600;
}

.cta-note {
    font-size: 0.85rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-muted);
}

.cta-note i {
    color: #10b981;
}

/* Footer */
.footer {
    border-top: 1px solid var(--clr-glass-border);
    padding: 4rem 2rem 2rem;
    background: var(--clr-bg-darker);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 26px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 1rem;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--clr-text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--clr-accent);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    text-align: left;
}

.faq-item h4 {
    color: var(--clr-accent-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .showcase-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slide {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }

    /*.slide-bullets {
        align-items: center;
    }*/
}

/* -----------------------------------
   FORM & CONTACT STYLES
--------------------------------------*/
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-main);
}

.form-label .required {
    color: #ef4444;
    /* Standard red for required fields */
    margin-left: 0.25rem;
}

.form-control-underline {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-main);
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    width: 100%;
    border-radius: 0;
}

.form-control-underline:focus {
    outline: none;
    border-bottom-color: var(--clr-accent);
}

.form-control-underline::placeholder {
    color: var(--clr-text-muted);
}

select.form-control-underline {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1.25em;
    cursor: pointer;
}

select.form-control-underline option {
    background: var(--clr-bg-main);
    color: var(--clr-text-main);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--clr-accent);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    cursor: pointer;
}

@media (max-width: 768px) {
    .form-grid-mobile {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 3rem 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: var(--hero-pt-mobile) 1.25rem 3rem;
        min-height: auto;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.5vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .hero-content {
        text-align: center;
        width: 100%;
        padding: 0 0.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .hero-store-badges,
    .cta-buttons {
        gap: 0.75rem;
    }

    .hero-store-badges .store-badge,
    .cta-buttons .store-badge {
        min-width: 160px;
        height: 54px;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .badge-texts strong {
        font-size: 1rem;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: var(--hero-pt-mobile) 1rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-padding {
        padding: 4rem 1rem;
    }

    .app-gallery-slider {
        padding: 2.5rem 0;
        scroll-padding: 0 40px;
        /* Snaps to center relative to arrows */
    }

    .app-gallery-track {
        padding: 0 40px;
        gap: 1.5rem;
    }

    .gallery-phone-mockup {
        width: 250px;
        height: 500px;
        border-radius: 40px;
        border: 6px solid #1e293b;
    }

    .gallery-ctrl {
        display: flex !important;
        width: 44px;
        height: 44px;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 50;
    }

    .prev-btn {
        left: 0.25rem;
    }

    .next-btn {
        right: 0.25rem;
    }

    .gallery-item {
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .gallery-item:nth-child(even) {
        transform: none !important;
    }

    .gallery-item:hover .gallery-phone-mockup {
        transform: none !important;
    }

    .gallery-header {
        padding: 0 1rem;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .perspective-container {
        transform: scale(0.8);
        height: 350px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
}

@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 5px rgba(14, 165, 233, 0.1));
    }

    50% {
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(14, 165, 233, 0.2));
    }

    100% {
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 5px rgba(14, 165, 233, 0.1));
    }
}

.gallery-phone-mockup,
.qr-visual-wrapper {
    animation: glowPulse 4s infinite ease-in-out;
}

.pricing-hero {
    min-height: 55vh;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 10;
    backdrop-filter: none !important;
    /* Disable blur to fix navbar overlapping flicker */
    -webkit-backdrop-filter: none !important;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.pricing-card.featured {
    border-color: var(--clr-accent);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.15);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
}

.pricing-card.featured::before {
    content: "IL PIÙ SCELTO (Risparmi il 17%)";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--clr-accent-light), var(--clr-accent-secondary));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    z-index: 12;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.price-box {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-text-main);
    line-height: 1;
}

.pricing-card.featured .price-amount {
    font-size: 3rem;
}

.price-period {
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.pricing-features {
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.pricing-features li {
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start !important;
    /* Force top alignment for multiline items */
    gap: 0.75rem;
    line-height: 1.5;
    color: var(--clr-text-muted);
    text-align: left;
}

.pricing-features li i {
    flex-shrink: 0;
    margin-top: 0.25rem;
    /* Precise alignment with the first line of text */
    color: var(--clr-accent);
    font-size: 1.1rem;
}

.setup-premium-banner {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 80px rgba(14, 165, 233, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.setup-premium-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.setup-banner-content {
    padding: 2.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.setup-banner-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.setup-feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    color: var(--clr-text-main);
    font-size: 0.95rem;
}

.setup-feature-item i {
    color: var(--clr-accent);
    font-size: 1.25rem;
}

.setup-banner-action {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .pricing-hero {
        min-height: 75vh;
    }

    .pricing-grid {
        flex-direction: row;
        align-items: stretch;
    }

    .pricing-card.featured {
        transform: scale(1.05);
        z-index: 15;
    }
}

@media (min-width: 992px) {
    .setup-premium-banner {
        flex-direction: row;
    }

    .setup-banner-content {
        padding: 4rem;
        align-items: flex-start;
        text-align: left;
    }

    .setup-banner-action {
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        width: 350px;
    }

    .setup-banner-features {
        grid-template-columns: 1fr 1fr;
    }

    .setup-feature-item {
        justify-content: flex-start;
    }
}

/* =========================================================
   PAGE: Caratteristiche (Features Flow)
   ========================================================= */

.features-hero {
    min-height: 55vh;
}

.flow-step {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.flow-step:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .flow-step {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 8rem;
    }

    .flow-step:nth-child(even) {
        flex-direction: row-reverse;
    }

    .flow-content {
        flex: 1;
        max-width: 500px;
    }

    .flow-visual {
        flex: 1;
        max-width: 550px;
        display: flex;
        justify-content: center;
    }
}

.step-number {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent-light);
    margin-bottom: 1rem;
    display: inline-block;
}

.flow-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
}

.flow-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.flow-visual-box {
    width: 100%;
    aspect-ratio: 1250 / 750;
    max-width: 1250px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    border: 4px #41acf7 solid;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.flow-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.flow-visual-box:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* =========================================================
   PAGE: Prenotazioni (Booking Features)
   ========================================================= */

.prenotazioni-hero {
    min-height: 60vh;
}

.booking-feature {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-bottom: 7rem;
}

.booking-feature:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .booking-feature {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .booking-feature:nth-child(even) {
        flex-direction: row-reverse;
    }

    .booking-content {
        flex: 1;
        max-width: 480px;
    }

    .booking-visual {
        flex: 1;
        max-width: 600px;
        display: flex;
        justify-content: center;
    }
}

.booking-content h3 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
    line-height: 1.1;
}

.booking-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.benefit-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--clr-text-main);
}

.benefit-list li::before {
    content: '\EB7A';
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--clr-accent-light);
    font-size: 1.2rem;
}

.visual-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix iOS image disappearing bug */
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--clr-glass-border);
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-box:hover img {
    transform: scale(1.03);
}

.stat-card {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 8rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   GLOBAL: Mobile CTA button (injected via navbar include)
   ========================================================= */

.nav-cta-mobile {
    margin-top: 2.5rem;
    width: 100%;
    justify-content: center;
}

/* =========================================================
   GLOBAL: Active Nav Link (set dynamically via JS)
   ========================================================= */

.nav-links [data-nav].nav-active {
    color: var(--clr-text-main);
    font-weight: 700;
}

.mobile-link.nav-active {
    color: var(--clr-accent-light);
    font-weight: 700;
}

/* =========================================================
   PAGE: Versioni App (Changelog)
   ========================================================= */

.changelog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.version-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.version-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--clr-glass-border);
}

.version-item:last-child::before {
    height: 20px;
}

.version-dot {
    position: absolute;
    left: -7px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    border: 4px solid var(--clr-bg-main);
    box-shadow: 0 0 15px var(--clr-accent-light);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.version-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--clr-text-main);
}

.version-date {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    background: var(--clr-glass-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-glass-border);
}

.changelog-card {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
}

.changelog-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
}

.changelog-list li::before {
    content: '\F057';
    /* remix-icon check-line */
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    color: var(--clr-accent-light);
}

/* =========================================================
   PAGE: Lavora con noi (Coming Soon)
   ========================================================= */

.coming-soon-wrapper {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.badge-warning .badge-dot {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   LANGUAGE SELECTOR — Desktop & Mobile
   ========================================================= */

/* Desktop Language Selector */
.lang-selector {
    position: relative;
    z-index: 2000;
    margin-left: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-glass-border);
    color: var(--clr-text-main);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-toggle .lang-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--clr-text-main);
}

.lang-option.active {
    color: var(--clr-accent-light);
    background: rgba(14, 165, 233, 0.08);
}

.lang-option .lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* Mobile Language Selector */
.mobile-lang-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.mobile-menu.active .mobile-lang-selector {
    opacity: 1;
    transform: translateY(0);
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--clr-text-main);
}

.mobile-lang-option.active {
    color: var(--clr-accent-light);
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.08);
}

/* Hide desktop lang-selector on mobile, show mobile one */
@media (max-width: 768px) {
    .lang-selector {
        display: none;
    }
}

/* Nav right section alignment */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 2rem);
    max-width: 800px;
    background: rgba(15, 23, 42, 0.85);
    /* slate-900 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(14, 165, 233, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text-main);
    /*display: flex;*/
    align-items: center;
    gap: 0.5rem;
}

.cookie-title i {
    color: var(--clr-accent-light);
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

.cookie-links {
    margin-top: 0.2rem;
}

.cookie-link {
    color: var(--clr-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.cookie-link:hover {
    color: var(--clr-accent-light);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-cookie {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-content {
        flex: 1;
        padding-right: 2rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cookie-actions {
        flex-shrink: 0;
    }
}