/* ============================================
   HORIZIA LIMITED - MAIN STYLESHEET
   Typography: Poppins + Inter
   BEM Naming Convention
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Brighter Theme */
    --color-primary: #1a237e;
    --color-primary-dark: #0d1542;
    --color-primary-light: #5c6bc0;
    --color-secondary: #e91e63;
    --color-accent: #9c27b0;
    --color-pink: #FF30E3;
    --color-pink-light: #FF6BED;
    --color-pink-bright: #FF30E3;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-dark: #fafafa;
    --color-bg-light: #fefefe;
    --color-border: #e8e8e8;
    --color-success: #4caf50;
    --color-error: #f44336;
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover,
a:focus {
    color: var(--color-primary-light);
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Lower than menu (9999) so menu appears on top */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.375rem var(--spacing-sm);
    min-height: 70px; /* Ensure consistent header height */
}

/* Mobile: Remove all spacing between header and hero */
@media (max-width: 767px) {
    .header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    header + main,
    .header + main,
    header ~ main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    main#main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    main > section:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Hero carousel spacing handled separately to prevent overlap */
    main > .hero-carousel:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 3rem !important; /* Ensure bottom spacing */
    }
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For absolute positioning of toggle button */
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.header__logo-image {
    height: 100px;
    width: auto;
    transition: transform var(--transition-base);
}

.header__logo-image:hover {
    transform: scale(1.05);
}

/* Logo text styles removed - logo is image only */

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile: Hide nav by default, only show when open */
@media (max-width: 1023px) {
    .nav {
        display: none !important;
    }
    
    .nav--open {
        display: flex !important;
    }
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link:focus {
    background: var(--color-bg-dark);
    color: var(--color-primary);
}

.nav__link--active {
    background: var(--color-pink);
    color: var(--color-bg);
    box-shadow: 0 2px 8px rgba(255, 48, 227, 0.3);
}

.nav__link-icon {
    font-size: 0.75rem;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    margin-top: 0.375rem;
    padding: 0.375rem 0;
    list-style: none;
}

.nav__dropdown li {
    list-style: none;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-link {
    display: block;
    padding: 0.625rem var(--spacing-sm);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus {
    background-color: var(--color-bg-dark);
    color: var(--color-primary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--spacing-xs);
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Ensure toggle is always visible on mobile/tablet even if parent nav is hidden */
@media (max-width: 1023px) {
    .nav__toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.nav__toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
}

.nav__toggle-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Mobile/Tablet: Make hamburger icon more visible */
@media (max-width: 1023px) {
    .nav__toggle-icon span {
        background-color: #ffffff;
        height: 3.5px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav__toggle:hover .nav__toggle-icon span,
.nav__toggle:focus .nav__toggle-icon span {
    background-color: var(--color-primary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero__content {
    z-index: 2;
    opacity: 0;
    transition: opacity 2s ease-in-out 0.3s;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__content {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide--active .hero__content {
    opacity: 1;
    transition: opacity 2s ease-in-out 0.3s;
}

.hero__heading {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__heading .word {
    display: inline-block;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__heading .word {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide--active .hero__heading .word {
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

.hero-carousel__slide--active .hero__heading .word:nth-child(1) { transition-delay: 0.05s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(2) { transition-delay: 0.08s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(3) { transition-delay: 0.11s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(4) { transition-delay: 0.14s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(5) { transition-delay: 0.17s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(6) { transition-delay: 0.2s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(7) { transition-delay: 0.23s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(8) { transition-delay: 0.26s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(9) { transition-delay: 0.29s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(10) { transition-delay: 0.32s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(11) { transition-delay: 0.35s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(12) { transition-delay: 0.38s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(13) { transition-delay: 0.41s; }
.hero-carousel__slide--active .hero__heading .word:nth-child(14) { transition-delay: 0.44s; }

.hero__heading-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--color-text-light);
    animation: blink 1s infinite;
    vertical-align: baseline;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero__description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__description {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide--active .hero__description {
    opacity: 1;
    transition: opacity 2s ease-in-out 0.4s;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__cta {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide--active .hero__cta {
    opacity: 1;
}

.hero__cta:hover,
.hero__cta:focus {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero__cta-icon {
    font-size: 1rem;
}

.hero__visual {
    position: relative;
    height: 450px;
    min-height: 450px;
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 2s ease-in-out 0.3s;
    box-shadow: none;
    border: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mobile: Allow hero visual to be flexible */
@media (max-width: 767px) {
    .hero__visual {
        height: auto !important;
        min-height: auto !important;
    }
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__visual {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide--active .hero__visual {
    opacity: 1;
    transition: opacity 2s ease-in-out 0.3s;
}

.hero__visual::before {
    display: none;
}

.hero__icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: visible;
}

.hero__icon svg {
    width: 80%;
    height: 80%;
    max-width: 400px;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(63, 81, 181, 0.3));
    animation: float 6s ease-in-out infinite;
    object-fit: contain;
    transition: opacity 2s ease-in-out 0.3s;
    opacity: 1;
}

.hero__icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    display: block;
    transition: opacity 2s ease-in-out 0.3s;
    opacity: 1;
}

/* Mobile: Allow image to display fully without height constraints */
@media (max-width: 767px) {
    .hero__icon img {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
}

.hero__icon--ai-data svg,
.hero__icon--ai-data img {
    animation: float 6s ease-in-out infinite, pulse 16s ease-in-out infinite;
}

.hero__icon--platform svg,
.hero__icon--platform img {
    animation: float 6s ease-in-out infinite 0.5s, pulse 16s ease-in-out infinite 0.5s;
}

.hero__icon--workflow svg,
.hero__icon--workflow img {
    animation: float 6s ease-in-out infinite 1s, pulse 16s ease-in-out infinite 1s;
}

.hero__icon--insights svg,
.hero__icon--insights img {
    animation: float 6s ease-in-out infinite 1.5s, pulse 16s ease-in-out infinite 1.5s;
}

.hero__icon--bespoke svg,
.hero__icon--bespoke img {
    animation: float 6s ease-in-out infinite 2s, pulse 16s ease-in-out infinite 2s;
}

@keyframes scaleInRotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero__icon {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__icon {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__icon svg,
.hero-carousel__slide:not(.hero-carousel__slide--active) .hero__icon img {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-carousel__slide--active .hero__icon {
    opacity: 1;
    transition: opacity 2s ease-in-out 0.3s;
}

.hero-carousel__slide--active .hero__icon svg,
.hero-carousel__slide--active .hero__icon img {
    opacity: 1;
    transition: opacity 2s ease-in-out 0.3s;
}


@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    min-height: 550px;
    overflow: visible;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f5f7fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    /* Ensure hero carousel creates its own stacking context */
    isolation: isolate;
    /* Prevent scroll handlers from affecting layout */
    contain: layout style paint;
}

.hero-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 48, 227, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(26, 35, 126, 0.015) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-carousel__slides {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    min-height: 550px;
    z-index: 1;
}

/* Desktop: Ensure proper spacing after hero carousel - ALL carousels identical */
@media (min-width: 768px) {
    .hero-carousel,
    main > .hero-carousel:first-of-type {
        margin-bottom: var(--spacing-lg); /* Reduced from var(--spacing-xxl) */
        padding-bottom: 0;
    }
    
    .hero-carousel + .section {
        margin-top: 0;
        padding-top: var(--spacing-xxl);
        position: relative;
        z-index: 1;
        /* Ensure section doesn't overlap hero when scrolling up */
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Mobile: Allow slides container to be flexible */
@media (max-width: 767px) {
    .hero-carousel__slides {
        height: auto !important;
        min-height: auto !important;
    }
}

.hero-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in-out, 
                visibility 2s ease-in-out;
    display: block;
    will-change: opacity, visibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 550px;
    pointer-events: none;
}

/* Mobile: Hero carousel styles are handled in responsive.css to avoid conflicts */
/* All mobile-specific hero carousel rules moved to responsive.css */

.hero-carousel__slide--active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    transform: translateZ(0);
    will-change: opacity, visibility;
    transition: opacity 2s ease-in-out, 
                visibility 2s ease-in-out;
    pointer-events: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-carousel__content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 550px;
    /* Prevent layout shifts during scroll - hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure hero content stays above background but below menu */
.hero-carousel__slide--active .hero__content {
    position: relative;
    z-index: 2;
}

.hero-carousel__slide--active .hero__cta {
    position: relative;
    z-index: 3;
}

/* Mobile: Remove excessive padding and fix alignment */
@media (max-width: 767px) {
    .hero-carousel__content {
        padding: 0 var(--spacing-sm) !important;
        gap: var(--spacing-sm) !important;
        align-items: flex-start !important;
    }
}

.hero-carousel__slides {
    position: relative;
    z-index: 1;
}

.hero-carousel__controls {
    display: none;
}

.hero-carousel__indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 0, 0, 0.12);
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hero-carousel__indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel__indicator:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.15);
}

.hero-carousel__indicator--active {
    background-color: var(--color-primary);
    width: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 3px 12px rgba(26, 35, 126, 0.25);
}

.hero-carousel__indicator--active::before {
    transform: scale(1);
}

.hero-carousel__arrow {
    display: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-pink);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 48, 227, 0.35);
    transform: translateY(-2px) scale(1.02);
}

.btn--primary:active {
    transform: translateY(0) scale(0.98);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

.btn--secondary:active {
    transform: translateY(0);
}

.btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 200px);
    padding-bottom: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 0;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.section + .section {
    margin-top: 0;
}

.section:last-of-type {
    padding-bottom: var(--spacing-xxl);
    margin-bottom: 0;
}

/* Ensure sections after hero carousel have proper spacing and z-index */
.hero-carousel + .section,
.hero + .section {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Desktop: Proper spacing */
@media (min-width: 768px) {
    .hero-carousel {
        margin-bottom: var(--spacing-xxl);
    }
    
    .hero-carousel + .section {
        margin-top: 0;
        padding-top: var(--spacing-xxl);
    }
}

.section__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    margin-top: var(--spacing-sm);
}

.section--alt {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.section--cta {
    background: #DBF8FF;
    color: var(--color-text);
    padding: var(--spacing-xxl) var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(219, 248, 255, 0.3);
}

.section--cta .section__title {
    color: var(--color-text);
}

.section--cta .section__subtitle {
    color: var(--color-text-light);
}

/* ===== CARDS ===== */
.card {
    background-color: var(--color-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 48, 227, 0.02) 0%, rgba(26, 35, 126, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(255, 48, 227, 0.1);
    border-color: rgba(255, 48, 227, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card__header {
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card__body {
    color: var(--color-text-light);
    line-height: 1.7;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card__body p {
    margin-bottom: 0;
}

.card__footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card__icon svg {
    width: 100%;
    height: 100%;
}

/* ===== PRODUCT HERO IMAGE (Angled Effect) ===== */
.product-hero__image-wrapper {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-hero__image-container {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-dark);
    padding: 1rem;
}

.product-hero__image-wrapper:hover .product-hero__image-container {
    transform: perspective(1000px) rotateY(-10deg) rotateX(3deg) scale(1.02);
}

.product-hero__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-card__image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card:hover .product-card__image {
    box-shadow: 0 8px 24px rgba(255, 48, 227, 0.2);
}

.product-card .btn--primary {
    position: relative;
    overflow: hidden;
}

.product-card .btn--primary svg {
    transition: transform 0.3s ease;
}

.product-card:hover .btn--primary svg {
    transform: translateX(4px);
}

.product-card .card__footer {
    border-top: none;
}

/* ===== PRICING CARDS ===== */
.pricing-card {
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card .card__header {
    text-align: left;
}

.pricing-card ul {
    line-height: 1.8;
}

.pricing-card ul li {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.pricing-card .card__footer {
    border-top: none;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: var(--spacing-xl);
    align-items: start;
    width: 100%;
}

.grid > * {
    min-width: 0;
}

/* Ensure grid items in 2-column layouts align properly */
.grid--2 > * {
    display: flex;
    flex-direction: column;
}

.grid--2 > * > h2:first-child {
    margin-top: 0;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #0a0f2e 100%);
    color: var(--color-bg);
    padding: var(--spacing-xxl) var(--spacing-lg);
    margin-top: 0;
    border-top: 3px solid rgba(255, 255, 255, 0.1);
    clear: both;
    position: relative;
    z-index: 1;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
    justify-items: start;
}

.footer__section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer__section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-bg);
}

.footer__list {
    list-style: none;
}

.footer__item {
    margin-bottom: var(--spacing-xs);
}

.footer__link {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-block;
}

.footer__link:hover,
.footer__link:focus {
    color: var(--color-bg);
    transform: translateX(4px);
}

.footer__bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== CHAT BUBBLE ===== */
.chat-bubble__widget {
    position: fixed;
    bottom: 80px;
    right: var(--spacing-lg);
    width: 320px;
    max-height: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.chat-bubble__widget.chat-bubble--visible {
    display: flex;
}

.chat-bubble__header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-bubble__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.chat-bubble__close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.375rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.chat-bubble__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.chat-bubble__messages {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
    background: #ffffff;
    min-height: 200px;
}

.chat-bubble__messages::-webkit-scrollbar {
    width: 6px;
}

.chat-bubble__messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-bubble__messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chat-bubble__messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.chat-bubble__message {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.875rem;
    background-color: #f0f2f5;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-bubble__message p {
    margin: 0;
    color: inherit;
}

.chat-bubble__message--bot {
    background: #f0f2f5;
    color: #1a1a1a;
    border-left: 3px solid #1a237e;
    max-width: 90%;
}

.chat-bubble__message--user {
    background: #1a237e;
    color: #ffffff;
    margin-left: auto;
    max-width: 85%;
}

.chat-bubble__message--user p {
    color: #ffffff;
}

.chat-bubble__input-area {
    padding: 0.875rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    background: #ffffff;
}

.chat-bubble__form-area {
    padding: 1.5rem;
    border-top: 1px solid #e8e8e8;
    background: #ffffff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.chat-bubble__name-input,
.chat-bubble__email-input {
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 0.75rem;
    background: #ffffff;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.chat-bubble__name-input:focus,
.chat-bubble__email-input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.chat-bubble__input {
    flex: 1;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    background: #ffffff;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.chat-bubble__input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
    background: #ffffff;
    color: #1a1a1a;
}

.chat-bubble__input::placeholder {
    color: #6b7280;
}

.chat-bubble__send {
    padding: 0.75rem 1.25rem;
    background: #1a237e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-bubble__send:hover {
    background: #283593;
    transform: translateY(-1px);
}

.chat-bubble__send:active {
    transform: translateY(0);
}

.chat-bubble__typing {
    opacity: 0.7;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    border-left: 3px solid #1a237e;
}

.chat-bubble__typing p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-light);
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-bubble__toggle {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.3), 0 0 0 0 rgba(26, 35, 126, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-bubble__toggle:hover,
.chat-bubble__toggle:focus {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.4), 0 0 0 4px rgba(26, 35, 126, 0.1);
}

.chat-bubble__toggle:active {
    transform: scale(0.98);
}

.chat-bubble__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background-color: var(--color-error);
    color: var(--color-bg);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== COOKIE MANAGER ===== */
.cookie-manager {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.cookie-manager--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}


.cookie-manager__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.cookie-manager__content {
    flex: 1;
}

.cookie-manager__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.cookie-manager__text {
    color: var(--color-text-light);
    margin: 0;
}

.cookie-manager__actions {
    display: flex;
    gap: var(--spacing-sm);
}

.cookie-manager__settings {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
}

.cookie-manager__accept {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
}

.cookie-manager__modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.cookie-manager__modal--visible {
    display: flex;
}

.cookie-manager__modal-content {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.cookie-manager__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.cookie-manager__modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.cookie-manager__modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.cookie-manager__category {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-bg-dark);
    border-radius: var(--radius-md);
}

.cookie-manager__category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cookie-manager__category-title {
    font-size: 1.125rem;
    margin: 0;
}

.cookie-manager__toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.cookie-manager__toggle--active {
    background-color: var(--color-primary);
}

.cookie-manager__toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.cookie-manager__toggle--active .cookie-manager__toggle-slider {
    transform: translateX(24px);
}

.cookie-manager__category-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ===== FORMS ===== */
.form {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.form__group {
    margin-bottom: var(--spacing-md);
}

.form__label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    background-color: var(--color-bg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.08);
    background-color: #fafbfc;
}

.form__input:hover,
.form__textarea:hover,
.form__select:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: none;
}

.form__error--visible {
    display: block;
}

.form__error--global {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 2px solid #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    display: block;
    animation: slideDown 0.3s ease-out;
}

.form__success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    display: block;
    animation: slideDown 0.3s ease-out;
}

.form__success--visible {
    display: block;
}

.form__message-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form__message-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__message-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.form__message-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 35, 126, 0.3);
    border-radius: var(--radius-full);
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

