/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improve touch interactions on mobile */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    .clickable {
        -webkit-tap-highlight-color: rgba(13, 212, 197, 0.2);
        touch-action: manipulation;
    }
}

:root {
    /* Brand Colors - Supply Mavericks turquoise theme */
    --primary-color: #0dd4c5;
    --primary-dark: #0ab3a5;
    --primary-light: #3fe0d3;
    --secondary-color: #1A1A1A;

    /* Neutral Colors */
    --bg-color: #FFFFFF;
    --bg-gray: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

html, body {
    overflow-x: hidden !important;
}

/* Prevent horizontal overflow on all sections */
section,
div[class*="-section"],
div[class*="-animated-bg"],
.container,
.row {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure images and media don't cause overflow */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Box sizing for all elements to include padding in width */
* {
    box-sizing: border-box;
}

/* Hide any horizontal scrollbars */
::-webkit-scrollbar:horizontal {
    display: none;
    height: 0;
}

/* ==========================================
   TOP NAVIGATION - TRANSPARENT WITH SCROLL EFFECT
   ========================================== */
.top-nav {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.top-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 1rem 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.nav-left {
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    transition: color var(--transition-base);
}

.top-nav.scrolled .logo-text {
    color: var(--gray-900);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.top-nav.scrolled .nav-link {
    color: var(--gray-700);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-right {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    backdrop-filter: blur(10px);
}

.top-nav.scrolled .nav-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.top-nav.scrolled .nav-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.nav-btn i {
    font-size: 1.1rem;
}

.cart-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.top-nav.scrolled .cart-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.cart-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.top-nav.scrolled .cart-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--error-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.logout-btn {
    background: transparent;
    border-color: var(--error-color);
    color: var(--error-color);
    padding: 0.6rem 0.8rem;
}

.top-nav.scrolled .logout-btn {
    background: transparent;
    border-color: var(--error-color);
    color: var(--error-color);
}

.logout-btn:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    color: var(--white);
}

.top-nav.scrolled .logout-btn:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    color: var(--white);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #0dd4c5 0%, #0ab3a5 100%);
    background-size: 200% 200%;
    animation: gradientShift 18s ease-in-out infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background-image: url('images/Hero.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    animation: heroZoom 25s ease-in-out infinite;
}

@keyframes heroZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Hero Animated Background (matching footer style) */
.hero-animated-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

/* Parallax layers - smooth transform for mouse following */
.hero-stars,
.hero-dots,
.hero-orbs,
.hero-grid {
    will-change: transform;
}

/* Hero Twinkling Stars */
.hero-stars {
    position: absolute;
    inset: 0;
}

.hero-stars .star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.5);
    animation: twinkle 4s ease-in-out infinite;
}

.hero-stars .star:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hero-stars .star:nth-child(2) {
    top: 20%;
    left: 15%;
    animation-delay: 0.5s;
}

.hero-stars .star:nth-child(3) {
    top: 15%;
    left: 30%;
    animation-delay: 1s;
}

.hero-stars .star:nth-child(4) {
    top: 8%;
    left: 45%;
    animation-delay: 1.5s;
}

.hero-stars .star:nth-child(5) {
    top: 25%;
    left: 55%;
    animation-delay: 2s;
}

.hero-stars .star:nth-child(6) {
    top: 12%;
    left: 70%;
    animation-delay: 0.3s;
}

.hero-stars .star:nth-child(7) {
    top: 30%;
    left: 80%;
    animation-delay: 0.8s;
}

.hero-stars .star:nth-child(8) {
    top: 18%;
    left: 90%;
    animation-delay: 1.3s;
}

.hero-stars .star:nth-child(9) {
    top: 50%;
    left: 8%;
    animation-delay: 1.8s;
}

.hero-stars .star:nth-child(10) {
    top: 60%;
    left: 25%;
    animation-delay: 2.3s;
}

.hero-stars .star:nth-child(11) {
    top: 55%;
    left: 40%;
    animation-delay: 0.6s;
}

.hero-stars .star:nth-child(12) {
    top: 70%;
    left: 60%;
    animation-delay: 1.1s;
}

.hero-stars .star:nth-child(13) {
    top: 45%;
    left: 75%;
    animation-delay: 1.6s;
}

.hero-stars .star:nth-child(14) {
    top: 65%;
    left: 88%;
    animation-delay: 2.1s;
}

.hero-stars .star:nth-child(15) {
    top: 80%;
    left: 50%;
    animation-delay: 0.4s;
}

/* Additional stars (2x) */
.hero-stars .star:nth-child(16) {
    top: 5%;
    left: 22%;
    animation-delay: 0.2s;
}

.hero-stars .star:nth-child(17) {
    top: 35%;
    left: 12%;
    animation-delay: 0.7s;
}

.hero-stars .star:nth-child(18) {
    top: 22%;
    left: 38%;
    animation-delay: 1.2s;
}

.hero-stars .star:nth-child(19) {
    top: 40%;
    left: 52%;
    animation-delay: 1.7s;
}

.hero-stars .star:nth-child(20) {
    top: 16%;
    left: 62%;
    animation-delay: 2.2s;
}

.hero-stars .star:nth-child(21) {
    top: 48%;
    left: 72%;
    animation-delay: 0.4s;
}

.hero-stars .star:nth-child(22) {
    top: 62%;
    left: 82%;
    animation-delay: 0.9s;
}

.hero-stars .star:nth-child(23) {
    top: 75%;
    left: 18%;
    animation-delay: 1.4s;
}

.hero-stars .star:nth-child(24) {
    top: 85%;
    left: 35%;
    animation-delay: 1.9s;
}

.hero-stars .star:nth-child(25) {
    top: 72%;
    left: 45%;
    animation-delay: 2.4s;
}

.hero-stars .star:nth-child(26) {
    top: 38%;
    left: 28%;
    animation-delay: 0.1s;
}

.hero-stars .star:nth-child(27) {
    top: 52%;
    left: 58%;
    animation-delay: 0.55s;
}

.hero-stars .star:nth-child(28) {
    top: 28%;
    left: 92%;
    animation-delay: 1.05s;
}

.hero-stars .star:nth-child(29) {
    top: 88%;
    left: 68%;
    animation-delay: 1.55s;
}

.hero-stars .star:nth-child(30) {
    top: 42%;
    left: 95%;
    animation-delay: 2.05s;
}

/* Hero Floating Dots (all white) */
.hero-dots {
    position: absolute;
    inset: 0;
}

.hero-dots .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    animation: floatDot 8s ease-in-out infinite;
}

.hero-dots .dot:nth-child(1) {
    bottom: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-dots .dot:nth-child(2) {
    bottom: 40%;
    left: 20%;
    animation-delay: 1s;
}

.hero-dots .dot:nth-child(3) {
    bottom: 30%;
    left: 35%;
    animation-delay: 2s;
}

.hero-dots .dot:nth-child(4) {
    bottom: 50%;
    left: 50%;
    animation-delay: 3s;
}

.hero-dots .dot:nth-child(5) {
    bottom: 25%;
    left: 65%;
    animation-delay: 4s;
}

.hero-dots .dot:nth-child(6) {
    bottom: 45%;
    left: 75%;
    animation-delay: 5s;
}

.hero-dots .dot:nth-child(7) {
    bottom: 35%;
    left: 85%;
    animation-delay: 6s;
}

.hero-dots .dot:nth-child(8) {
    bottom: 60%;
    left: 95%;
    animation-delay: 7s;
}

/* Additional dots (2x) */
.hero-dots .dot:nth-child(9) {
    bottom: 70%;
    left: 5%;
    animation-delay: 0.5s;
}

.hero-dots .dot:nth-child(10) {
    bottom: 55%;
    left: 15%;
    animation-delay: 1.5s;
}

.hero-dots .dot:nth-child(11) {
    bottom: 65%;
    left: 28%;
    animation-delay: 2.5s;
}

.hero-dots .dot:nth-child(12) {
    bottom: 75%;
    left: 42%;
    animation-delay: 3.5s;
}

.hero-dots .dot:nth-child(13) {
    bottom: 15%;
    left: 55%;
    animation-delay: 4.5s;
}

.hero-dots .dot:nth-child(14) {
    bottom: 80%;
    left: 68%;
    animation-delay: 5.5s;
}

.hero-dots .dot:nth-child(15) {
    bottom: 10%;
    left: 80%;
    animation-delay: 6.5s;
}

.hero-dots .dot:nth-child(16) {
    bottom: 85%;
    left: 92%;
    animation-delay: 7.5s;
}

/* Hero Glowing Orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
}

.hero-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: orbPulse 10s ease-in-out infinite;
}

.hero-orbs .orb:nth-child(1) {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.8);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orbs .orb:nth-child(2) {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.6);
    top: 50%;
    right: 15%;
    animation-delay: 3s;
}

.hero-orbs .orb:nth-child(3) {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.7);
    bottom: 20%;
    left: 40%;
    animation-delay: 6s;
}

/* Hero Grid Pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 20s linear infinite;
}

.hero-lines {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05), transparent 40%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.9) 90%, transparent 100%);
    animation: moveLines 12s linear infinite;
    opacity: 0.45;
}

.hero-lines::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.16) 0px,
            rgba(255, 255, 255, 0.16) 1px,
            transparent 1px,
            transparent 32px);
    animation: moveLines 18s linear infinite reverse;
}

.hero-rings {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    top: 18%;
    left: 20%;
    animation: pulseRing 9s ease-in-out infinite;
    opacity: 0.6;
}

.hero-rings::before,
.hero-rings::after {
    content: '';
    position: absolute;
    inset: 40px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.hero-rings::after {
    inset: 80px;
    border-style: solid;
    opacity: 0.5;
}

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.35;
    animation: driftDots 16s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(2 2 2 / 65%) 0%, rgb(19 33 31 / 70%) 100%);
    z-index: 2;
}

/* Bottom fade to blend into wave divider */
.hero-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(26, 26, 46, 0.1) 20%,
            rgba(26, 26, 46, 0.3) 40%,
            rgba(26, 26, 46, 0.5) 60%,
            rgba(26, 26, 46, 0.75) 80%,
            rgba(26, 26, 46, 1) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #ffffff 20%, #c9fffa 40%, #ffffff 60%, #a3fff3 80%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero.primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-hero.primary:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-hero.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hero.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-floating-badges {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: min(520px, 90vw);
    z-index: 9;
}

.badge-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    animation: floatY 11s ease-in-out infinite alternate;
}

.badge-card:nth-child(2) {
    animation-duration: 13s;
    animation-delay: 0.6s;
}

.badge-card-primary {
    box-shadow: 0 12px 30px rgba(13, 212, 197, 0.25);
}

.badge-card-secondary {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.badge-card i {
    font-size: 1.4rem;
}

.badge-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

.badge-value {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Old cloud/particle styles removed - now using footer-style animations */

/* Enhanced orb animations */
@keyframes floatY {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(15px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-full {
    max-width: 92%;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 750px;
    margin: 0 auto;
}

/* ==========================================
   MISSION IMAGE SECTION
   ========================================== */
.mission-image-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mission-full-image {
    width: 100%;
    height: auto;
    display: block;
}

/* EFFECT OPTION 1: Subtle parallax zoom on scroll */
.mission-image-section.effect-parallax .mission-full-image {
    transform: scale(1.05);
    transition: transform 0.3s ease-out;
}

.mission-image-section.effect-parallax:hover .mission-full-image {
    transform: scale(1.08);
}

/* EFFECT OPTION 2: Gradient overlay fade */
.mission-image-section.effect-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 161, 154, 0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 161, 154, 0.15) 100%
    );
    pointer-events: none;
}

/* EFFECT OPTION 3: Vignette with subtle glow */
.mission-image-section.effect-vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

/* EFFECT OPTION 4: Animated shine sweep */
.mission-image-section.effect-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    animation: shineSweep 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shineSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* EFFECT OPTION 5: No effect - clean image */
/* Just use .mission-image-section without any effect class */

/* ==========================================
   ABOUT SECTION
   ========================================== */
.mission-hero {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.18), rgba(10, 179, 165, 0.14));
    overflow: hidden;
}

.mission-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1586773860383-dab5f3bc1f5b?w=1600&h=1000&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(2px);
    transform: scale(1.05);
}

.mission-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.12), transparent 40%);
    pointer-events: none;
}

.mission-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.mission-text {
    color: var(--gray-900);
}

.mission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.mission-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(13, 212, 197, 0.4);
    color: var(--gray-800);
    font-weight: 700;
    box-shadow: var(--shadow);
    animation: floatY 10s ease-in-out infinite alternate;
}

.mission-gallery {
    display: grid;
    grid-template-areas:
        "a b"
        "a c";
    gap: 0.75rem;
}

.mission-tile {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-xl);
    animation: floatY 14s ease-in-out infinite alternate;
}

.mission-tile.large {
    grid-area: a;
    min-height: 360px;
    animation-duration: 16s;
}

.mission-tile:nth-child(2) {
    grid-area: b;
    animation-duration: 12s;
}

.mission-tile:nth-child(3) {
    grid-area: c;
    animation-duration: 13s;
}

.mission-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}

.mission-tile-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
    border-radius: var(--radius);
    font-weight: 700;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.about-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    max-width: 100vw;
}

.about-content.stacked {
    display: flex;
    justify-content: center;
}

.about-card-wide {
    max-width: 1100px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
}

.about-card-wide h3 {
    font-size: 1.9rem;
    line-height: 1.4;
}

.about-card-wide p {
    font-size: 1.05rem;
}

.about-card-wide .about-bullets li {
    font-size: 1.05rem;
}

.about-card-wide p+p {
    margin-top: 1rem;
}

.about-card-wide ul {
    margin-top: 1rem;
}

.mission-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.mission-quote {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.mission-subtext {
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 720px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    font-weight: 700;
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.about-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.about-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.about-quote-card {
    margin-top: 1rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.15), rgba(10, 179, 165, 0.1));
    border: 1px solid rgba(13, 212, 197, 0.25);
    box-shadow: var(--shadow-lg);
}

.about-quote-card p {
    margin: 0 0 0.5rem;
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.6;
}

.about-quote-meta {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.about-bullets {
    list-style: none;
    padding: 0 0 0 1.2rem;
    margin: 1rem 0 1.5rem;
}

.about-bullets li {
    position: relative;
    margin-bottom: 0.4rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.about-bullets li::before {
    content: '•';
    position: absolute;
    left: -1.2rem;
    color: var(--primary-color);
    font-weight: 900;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.team-section {
    padding: 6rem 0;
    background: var(--bg-gray);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(13, 212, 197, 0.06), transparent 32%),
        radial-gradient(circle at 75% 70%, rgba(10, 179, 165, 0.05), transparent 30%);
    pointer-events: none;
}

.team-section .container {
    max-width: 1800px;
    width: 96%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: teamCardFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
}

.team-card:nth-child(1) {
    animation-delay: 0.1s;
}

.team-card:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card:nth-child(3) {
    animation-delay: 0.3s;
}

.team-card:nth-child(4) {
    animation-delay: 0.4s;
}

.team-card:nth-child(5) {
    animation-delay: 0.5s;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.05), rgba(10, 179, 165, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(13, 212, 197, 0.25);
    border-color: var(--primary-color);
}

.team-card > * {
    position: relative;
    z-index: 1;
}

@keyframes teamCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-avatar {
    width: 220px;
    height: 220px;
    margin: 0 0 1.5rem 0;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-light);
    box-shadow: 0 8px 30px rgba(13, 212, 197, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.team-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(13, 212, 197, 0.2), transparent);
    transform: rotate(0deg);
    animation: avatarShine 3s linear infinite;
}

@keyframes avatarShine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(13, 212, 197, 0.5);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
    /* Improve image quality and rendering for photos */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.team-card:hover .team-avatar img {
    transform: scale(1.05) translateZ(0);
}

.team-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.team-card:hover h3 {
    color: var(--primary-color);
}

.team-role {
    font-size: 1.05rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.team-card-preview {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.btn-view-bio {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-view-bio:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-view-bio:active {
    transform: translateY(0);
}

/* ==========================================
   WHY US SECTION
   ========================================== */
.why-us-section {
    padding: 6rem 0;
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 950px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    text-align: center;
    margin-top: 50px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================
   PROMOTIONAL BANNER
   ========================================== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    background-size: 180% 180%;
    animation: gradientShift 16s ease-in-out infinite;
    padding: 4rem 0;
    color: var(--white);
}

.promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.promo-content::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
    filter: blur(20px);
}

.promo-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.promo-text p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-promo {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    display: inline-block;
}

.btn-promo:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   SECTION DIVIDERS - Animated Transitions
   ========================================== */
.section-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: -1px 0;
}

.section-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Enhanced Wave Divider (Hero → Products) */
.divider-waves-enhanced {
    height: 180px;
    position: relative;
    background: linear-gradient(180deg,
            rgba(26, 26, 46, 1) 0%,
            rgba(26, 26, 46, 0.98) 20%,
            rgba(30, 40, 50, 0.85) 40%,
            rgba(60, 80, 100, 0.5) 60%,
            rgba(150, 180, 200, 0.25) 80%,
            var(--white) 100%);
    overflow: hidden;
}

.divider-waves-enhanced .waves-top-blend {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(26, 26, 46, 1) 0%,
            rgba(26, 26, 46, 0.8) 50%,
            transparent 100%);
    z-index: 2;
}

.divider-waves-enhanced .waves-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 3;
}

/* Wave layers with different opacities and animations */
.divider-waves-enhanced .wave-layer {
    fill: var(--white);
}

.divider-waves-enhanced .wave-layer-4 {
    fill: rgba(13, 212, 197, 0.08);
    animation: waveMove4 12s ease-in-out infinite;
}

.divider-waves-enhanced .wave-layer-3 {
    fill: rgba(255, 255, 255, 0.15);
    animation: waveMove3 10s ease-in-out infinite reverse;
}

.divider-waves-enhanced .wave-layer-2 {
    fill: rgba(255, 255, 255, 0.4);
    animation: waveMove2 8s ease-in-out infinite;
}

.divider-waves-enhanced .wave-layer-1 {
    fill: var(--white);
    animation: waveMove1 6s ease-in-out infinite reverse;
}

@keyframes waveMove1 {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }
}

@keyframes waveMove2 {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}

@keyframes waveMove3 {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-40px);
    }
}

@keyframes waveMove4 {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(50px);
    }
}

/* Floating particles */
.divider-waves-enhanced .waves-particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.divider-waves-enhanced .w-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: waveParticleFloat 5s ease-in-out infinite;
}

.divider-waves-enhanced .w-particle:nth-child(1) {
    left: 8%;
    top: 30%;
    animation-delay: 0s;
}

.divider-waves-enhanced .w-particle:nth-child(2) {
    left: 22%;
    top: 50%;
    animation-delay: 0.8s;
}

.divider-waves-enhanced .w-particle:nth-child(3) {
    left: 38%;
    top: 35%;
    animation-delay: 1.6s;
}

.divider-waves-enhanced .w-particle:nth-child(4) {
    left: 55%;
    top: 55%;
    animation-delay: 2.4s;
}

.divider-waves-enhanced .w-particle:nth-child(5) {
    left: 72%;
    top: 40%;
    animation-delay: 3.2s;
}

.divider-waves-enhanced .w-particle:nth-child(6) {
    left: 88%;
    top: 45%;
    animation-delay: 4s;
}

@keyframes waveParticleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-15px) scale(1.3);
        opacity: 1;
    }
}

/* Glowing orbs */
.divider-waves-enhanced .waves-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.divider-waves-enhanced .w-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: waveOrbPulse 6s ease-in-out infinite;
}

.divider-waves-enhanced .w-orb:nth-child(1) {
    width: 120px;
    height: 120px;
    background: rgba(13, 212, 197, 0.25);
    left: 15%;
    top: 20%;
    animation-delay: 0s;
}

.divider-waves-enhanced .w-orb:nth-child(2) {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    left: 50%;
    top: 30%;
    animation-delay: 2s;
}

.divider-waves-enhanced .w-orb:nth-child(3) {
    width: 80px;
    height: 80px;
    background: rgba(13, 212, 197, 0.2);
    right: 20%;
    top: 25%;
    animation-delay: 4s;
}

@keyframes waveOrbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

@keyframes waveFloat {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-15px) translateY(8px);
    }

    50% {
        transform: translateX(0) translateY(-8px);
    }

    75% {
        transform: translateX(15px) translateY(8px);
    }
}

/* Flowing Divider (Products → Mission) */
.divider-flow {
    height: 200px;
    position: relative;
    background: linear-gradient(180deg,
            #f8f9fa 0%,
            rgba(245, 252, 251, 1) 20%,
            rgba(230, 250, 248, 1) 50%,
            rgba(200, 243, 240, 0.9) 80%,
            rgba(180, 238, 234, 0.8) 100%);
    overflow: hidden;
}

.divider-flow .flow-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #f8f9fa 0%, rgba(248, 249, 250, 0.5) 50%, transparent 100%);
    z-index: 3;
}

.divider-flow .flow-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 2;
}

.divider-flow .flow-wave {
    fill: rgba(26, 26, 46, 0.95);
}

.divider-flow .flow-wave-1 {
    fill: rgba(26, 26, 46, 1);
    animation: flowWave1 8s ease-in-out infinite;
}

.divider-flow .flow-wave-2 {
    fill: rgba(26, 26, 46, 0.7);
    animation: flowWave2 10s ease-in-out infinite;
}

.divider-flow .flow-wave-3 {
    fill: rgba(13, 212, 197, 0.15);
    animation: flowWave3 12s ease-in-out infinite;
}

@keyframes flowWave1 {

    0%,
    100% {
        d: path("M0,180 C360,140 720,200 1080,160 C1260,140 1380,170 1440,180 L1440,200 L0,200 Z");
    }

    50% {
        d: path("M0,170 C360,200 720,140 1080,180 C1260,200 1380,160 1440,170 L1440,200 L0,200 Z");
    }
}

@keyframes flowWave2 {

    0%,
    100% {
        d: path("M0,140 C180,180 360,100 540,140 C720,180 900,100 1080,140 C1260,180 1380,140 1440,160 L1440,200 L0,200 Z");
    }

    50% {
        d: path("M0,160 C180,100 360,180 540,140 C720,100 900,180 1080,140 C1260,100 1380,160 1440,140 L1440,200 L0,200 Z");
    }
}

@keyframes flowWave3 {

    0%,
    100% {
        d: path("M0,160 C240,120 480,180 720,140 C960,100 1200,160 1440,120 L1440,200 L0,200 Z");
    }

    50% {
        d: path("M0,120 C240,160 480,100 720,140 C960,180 1200,120 1440,160 L1440,200 L0,200 Z");
    }
}

/* Flow particles */
.divider-flow .flow-particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.divider-flow .flow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(13, 212, 197, 0.8);
    animation: flowParticle 6s ease-in-out infinite;
}

.divider-flow .flow-particle:nth-child(1) {
    left: 5%;
    bottom: 20%;
    animation-delay: 0s;
}

.divider-flow .flow-particle:nth-child(2) {
    left: 15%;
    bottom: 40%;
    animation-delay: 0.75s;
}

.divider-flow .flow-particle:nth-child(3) {
    left: 28%;
    bottom: 30%;
    animation-delay: 1.5s;
}

.divider-flow .flow-particle:nth-child(4) {
    left: 42%;
    bottom: 50%;
    animation-delay: 2.25s;
}

.divider-flow .flow-particle:nth-child(5) {
    left: 58%;
    bottom: 35%;
    animation-delay: 3s;
}

.divider-flow .flow-particle:nth-child(6) {
    left: 72%;
    bottom: 45%;
    animation-delay: 3.75s;
}

.divider-flow .flow-particle:nth-child(7) {
    left: 85%;
    bottom: 25%;
    animation-delay: 4.5s;
}

.divider-flow .flow-particle:nth-child(8) {
    left: 95%;
    bottom: 55%;
    animation-delay: 5.25s;
}

@keyframes flowParticle {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Flow orbs */
.divider-flow .flow-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.divider-flow .flow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: flowOrb 8s ease-in-out infinite;
}

.divider-flow .flow-orb:nth-child(1) {
    width: 150px;
    height: 150px;
    background: rgba(13, 212, 197, 0.3);
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.divider-flow .flow-orb:nth-child(2) {
    width: 120px;
    height: 120px;
    background: rgba(13, 212, 197, 0.25);
    right: 15%;
    top: 30%;
    animation-delay: 4s;
}

@keyframes flowOrb {

    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateX(20px) translateY(-10px) scale(1.2);
        opacity: 0.5;
    }
}

/* Curved Divider (Mission → About) */
.divider-curve {
    height: 120px;
    background: #1a1a2e;
    position: relative;
}

.divider-curve svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
}

.divider-curve .curve-path {
    fill: var(--white);
    animation: curveMorph 12s ease-in-out infinite;
}

@keyframes curveMorph {

    0%,
    100% {
        d: path("M0,120 L0,80 Q360,0 720,60 T1440,40 L1440,120 Z");
    }

    50% {
        d: path("M0,120 L0,60 Q360,100 720,40 T1440,80 L1440,120 Z");
    }
}

.divider-curve .curve-glow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(13, 212, 197, 0.3), transparent 70%);
    filter: blur(20px);
    animation: curveGlow 4s ease-in-out infinite;
}

@keyframes curveGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Layered Waves Divider (About → Team) */
.divider-layers {
    height: 150px;
    background: var(--white);
    position: relative;
}

.divider-layers svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
}

.divider-layers .layer {
    opacity: 0.9;
}

.divider-layers .layer-1 {
    fill: rgba(13, 212, 197, 0.15);
    animation: layerWave 8s ease-in-out infinite;
}

.divider-layers .layer-2 {
    fill: rgba(13, 212, 197, 0.25);
    animation: layerWave 6s ease-in-out infinite reverse;
}

.divider-layers .layer-3 {
    fill: var(--white);
    animation: layerWave 10s ease-in-out infinite;
}

@keyframes layerWave {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-30px);
    }
}

/* Zigzag Divider (Team → Contact) */
.divider-zigzag {
    height: 80px;
    background: var(--white);
    position: relative;
}

.divider-zigzag svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
}

.divider-zigzag .zigzag-shape {
    fill: var(--white);
    animation: zigzagShift 3s ease-in-out infinite;
}

@keyframes zigzagShift {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-60px);
    }
}

.divider-zigzag .zigzag-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 212, 197, 0.2), transparent);
    animation: shimmerSlide 4s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* ==========================================
   PRODUCTS MAIN SECTION
   ========================================== */
.products-main-section {
    padding: 3rem 0;
    background: var(--bg-gray);
    position: relative;
}

.products-main-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(13, 212, 197, 0.05), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(10, 179, 165, 0.05), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(63, 224, 211, 0.05), transparent 32%);
    pointer-events: none;
}

/* Bottom gradient fade for smooth transition to divider */
.products-main-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(248, 249, 250, 0.4) 25%,
            rgba(248, 249, 250, 0.7) 50%,
            rgba(248, 249, 250, 0.9) 75%,
            #f8f9fa 100%);
    pointer-events: none;
    z-index: 1;
}

/* Search Bar */
.search-container {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-bar-main {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.search-bar-main:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.search-bar-main i {
    color: var(--gray-400);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.search-bar-main input {
    flex: 1;
    border: none;
    padding: 1.25rem 0;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ==========================================
   SIDEBAR FILTERS - FIXED OVERFLOW
   ========================================== */
.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f6fffd 100%);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    backdrop-filter: blur(8px);
    isolation: isolate;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(13, 212, 197, 0.05);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.filter-title i {
    color: var(--primary-color);
}

.filter-group {
    border: 1px solid var(--gray-200);
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.filter-group+.filter-group {
    margin-top: 0.5rem;
}

.filter-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: left;
    transition: background var(--transition-base);
}

.filter-group-toggle:hover {
    background: rgba(13, 212, 197, 0.08);
}

.filter-group-toggle:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.filter-toggle-icon {
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.filter-group.collapsed .filter-toggle-icon {
    transform: rotate(-90deg);
}

.filter-body {
    padding: 0 1rem 1rem;
    max-height: 900px;
    transition: max-height var(--transition-slow), opacity var(--transition-fast);
    overflow: hidden;
    opacity: 1;
}

.filter-group.collapsed .filter-body {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding-top: 0.25rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    margin: 0.1rem 0.8rem;
}

.filter-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.filter-option input[type="checkbox"]:checked+span {
    color: var(--primary-dark);
    font-weight: 700;
}

.filter-empty {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* FIXED: Price inputs container with proper sizing */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.price-inputs span {
    color: var(--gray-500);
    font-weight: 600;
    flex-shrink: 0;
}

/* FIXED: Price input with proper constraints */
.price-input {
    flex: 1;
    min-width: 0;
    /* Allow inputs to shrink below their content size */
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    width: 100%;
    /* Ensure inputs take available space */
    background: var(--white);
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.15);
}

.apply-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow);
}

.apply-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.clear-filters-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.clear-filters-btn:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* ==========================================
   ENHANCED PRICE SLIDER
   ========================================== */
.price-slider-container {
    padding: 0.5rem 0;
}

.price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.1) 0%, rgba(13, 212, 197, 0.05) 100%);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    border: 1px solid rgba(13, 212, 197, 0.2);
}

.slider-track {
    position: relative;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 1.5rem 0;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(13, 212, 197, 0.3);
}

.slider-inputs {
    position: relative;
    height: 0;
}

.price-slider {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    top: -18px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(13, 212, 197, 0.4);
}

.price-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.price-slider::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.price-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(13, 212, 197, 0.4);
}

.price-slider::-moz-range-thumb:active {
    transform: scale(1.05);
}

/* ==========================================
   FILTER SEARCH BOX
   ========================================== */
.filter-search {
    position: relative;
    margin-bottom: 0.75rem;
}

.filter-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.85rem;
    pointer-events: none;
}

.filter-search input {
    width: 100%;
    margin: 5px;
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.1);
}

.filter-search input::placeholder {
    color: var(--gray-400);
}

/* ==========================================
   ENHANCED FILTER GROUP TOGGLE ICONS
   ========================================== */
.filter-group-toggle span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-toggle span i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

/* ==========================================
   FILTER OPTIONS SCROLLBAR
   ========================================== */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================================
   ACTIVE FILTER CHIPS
   ========================================== */
.active-filters-container {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.05) 0%, rgba(13, 212, 197, 0.02) 100%);
    border: 1px solid rgba(13, 212, 197, 0.2);
    border-radius: var(--radius-lg);
}

.active-filters-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-filters-title::before {
    content: "\f0b0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
}

.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem 0.4rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.filter-chip:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.filter-chip-text {
    color: var(--gray-700);
    line-height: 1;
}

.filter-chip-text strong {
    color: var(--gray-900);
}

.filter-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--gray-600);
    font-size: 0.7rem;
}

.filter-chip-remove:hover {
    background: #ef4444;
    color: var(--white);
    transform: scale(1.1);
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.products-section {
    flex: 1;
    position: relative;
}

/* ==========================================
   CATALOG ANIMATED BACKGROUND
   ========================================== */
.catalog-bg-animation {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.25;
    animation: floatRotate 12s infinite ease-in-out;
    filter: blur(0.5px);
}

.floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    top: 10%;
    left: 5%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 40%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.floating-shape.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ffd89b, #ff6b6b);
    bottom: 20%;
    left: 15%;
    animation-duration: 16s;
    animation-delay: -10s;
}

.floating-shape.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    top: 60%;
    right: 25%;
    animation-duration: 13s;
    animation-delay: -8s;
}

.floating-shape.shape-5 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 25%;
    left: 40%;
    animation-duration: 17s;
    animation-delay: -15s;
}

.floating-shape.shape-6 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #0dd4c5, #00f2fe);
    bottom: 40%;
    right: 5%;
    animation-duration: 14s;
    animation-delay: -12s;
}

.floating-shape.shape-7 {
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, #ff6b95, #ffc371);
    top: 5%;
    right: 35%;
    animation-duration: 16s;
    animation-delay: -3s;
}

.floating-shape.shape-8 {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    bottom: 10%;
    left: 35%;
    animation-duration: 13s;
    animation-delay: -7s;
}

.floating-shape.shape-9 {
    width: 210px;
    height: 210px;
    background: linear-gradient(135deg, #fa709a, #fee140);
    top: 35%;
    left: 25%;
    animation-duration: 19s;
    animation-delay: -11s;
}

.floating-shape.shape-10 {
    width: 155px;
    height: 155px;
    background: linear-gradient(135deg, #30cfd0, #330867);
    bottom: 25%;
    right: 40%;
    animation-duration: 15s;
    animation-delay: -6s;
}

/* Small Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 8s infinite ease-in-out;
    filter: blur(0px);
    box-shadow: 0 0 10px rgba(13, 212, 197, 0.6);
}

.particle-1 {
    top: 15%;
    left: 20%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.particle-2 {
    top: 35%;
    left: 60%;
    animation-duration: 9s;
    animation-delay: -3s;
}

.particle-3 {
    top: 55%;
    left: 10%;
    animation-duration: 8s;
    animation-delay: -6s;
}

.particle-4 {
    top: 75%;
    left: 80%;
    animation-duration: 10s;
    animation-delay: -9s;
}

.particle-5 {
    top: 20%;
    right: 15%;
    animation-duration: 7.5s;
    animation-delay: -4s;
}

.particle-6 {
    top: 45%;
    right: 30%;
    animation-duration: 9.5s;
    animation-delay: -7s;
}

.particle-7 {
    bottom: 30%;
    left: 45%;
    animation-duration: 8.5s;
    animation-delay: -10s;
}

.particle-8 {
    bottom: 15%;
    right: 20%;
    animation-duration: 10.5s;
    animation-delay: -5s;
}

.particle-9 {
    top: 10%;
    left: 50%;
    animation-duration: 7.8s;
    animation-delay: -2s;
    background: #ff6b95;
    box-shadow: 0 0 10px rgba(255, 107, 149, 0.7);
}

.particle-10 {
    top: 65%;
    right: 10%;
    animation-duration: 9.2s;
    animation-delay: -8s;
    background: #43e97b;
    box-shadow: 0 0 10px rgba(67, 233, 123, 0.7);
}

.particle-11 {
    bottom: 25%;
    left: 30%;
    animation-duration: 8.7s;
    animation-delay: -11s;
    background: #ffc371;
    box-shadow: 0 0 10px rgba(255, 195, 113, 0.7);
}

.particle-12 {
    top: 42%;
    right: 45%;
    animation-duration: 9.8s;
    animation-delay: -6s;
    background: #4facfe;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.7);
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    animation: orbPulse 5s infinite ease-in-out;
}

.gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f093fb, transparent);
    top: -100px;
    right: -100px;
    animation-duration: 6s;
}

.gradient-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4facfe, transparent);
    bottom: -100px;
    left: -100px;
    animation-duration: 7s;
    animation-delay: -4s;
}

.gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffd89b, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 8s;
    animation-delay: -8s;
}

.gradient-orb.orb-4 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #43e97b, transparent);
    top: 15%;
    left: 20%;
    animation-duration: 9s;
    animation-delay: -2s;
}

.gradient-orb.orb-5 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #ff6b95, transparent);
    bottom: 20%;
    right: 25%;
    animation-duration: 7.5s;
    animation-delay: -5s;
}

/* Animations */
@keyframes floatRotate {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(50px, -50px) rotate(90deg) scale(1.15);
    }

    50% {
        transform: translate(0, -100px) rotate(180deg) scale(0.85);
    }

    75% {
        transform: translate(-50px, -50px) rotate(270deg) scale(1.1);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.25;
    }

    25% {
        transform: translate(40px, -60px);
        opacity: 0.35;
    }

    50% {
        transform: translate(-40px, -120px);
        opacity: 0.15;
    }

    75% {
        transform: translate(60px, -60px);
        opacity: 0.3;
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.22;
    }
}

/* Ensure products grid is above animation */
.products-grid {
    position: relative;
    z-index: 1;
}

.results-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.results-info p {
    color: var(--gray-600);
}

/* Compact search bar in results header */
.search-bar-compact {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    gap: 0.75rem;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(13, 212, 197, 0.15);
}

.search-bar-compact:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.25);
}

.search-bar-compact i {
    color: var(--primary-color);
    font-size: 1rem;
}

.search-bar-compact input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    color: var(--gray-700);
}

.search-bar-compact input::placeholder {
    color: var(--gray-500);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-controls label {
    font-weight: 600;
    color: var(--gray-700);
}

.sort-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.6rem 0.9rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.view-btn:hover {
    background: var(--gray-100);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card.list-view-card {
    flex-direction: row;
    align-items: stretch;
}

.product-card.list-view-card .product-image-container {
    flex: 0 0 220px;
    height: 220px;
}

.product-card.list-view-card .product-info {
    padding: 1.5rem 1.5rem 1rem;
}

.product-card.list-view-card .product-actions {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

.product-card.list-view-card .product-actions .btn-view,
.product-card.list-view-card .product-actions .btn-add-cart {
    width: 160px;
}

/* List view pricing - hidden by default in grid view */
.list-view-pricing {
    display: none;
}

/* ==========================================
   PRODUCT CARD
   ========================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    animation: fadeScaleIn 0.45s ease both;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--error-color);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.9rem;
    flex: 1;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-price-original {
    font-size: 1.1rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-msrp {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-discount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.12);
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.product-enterprise-badge,
.enterprise-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #b45309;
    background: linear-gradient(90deg, #fef3c7, #fcd34d);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.12);
}

.product-enterprise-badge i,
.enterprise-discount-badge i {
    color: #d97706;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.btn-view,
.btn-add-cart {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-view:hover {
    background: var(--gray-200);
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.6rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    color: var(--gray-700);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 0.5rem;
    color: var(--gray-500);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--white) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(13, 212, 197, 0.08), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(10, 179, 165, 0.06), transparent 35%);
    pointer-events: none;
}

/* Two-card contact grid layout */
.contact-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-card-large {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.contact-card-large:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.08), rgba(10, 179, 165, 0.04));
    border-bottom: 1px solid var(--gray-200);
}

.contact-card-header .contact-card-icon {
    width: 50px;
    height: 50px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.3);
    flex-shrink: 0;
}

.contact-card-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.contact-card-title .contact-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0.25rem 0 0 0;
}

.contact-card-body {
    padding: 1.5rem 2rem;
}

/* Location card styles */
.location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.address-block .address-line {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.address-block .address-line strong {
    color: var(--gray-900);
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.contact-map-small {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.contact-map-small iframe {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
}

/* Contact & Hours card styles */
.contact-info-block {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.info-block-header i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.info-block-content p {
    margin: 0.35rem 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.info-block-content i {
    color: var(--primary-color);
    margin-right: 0.4rem;
    width: 14px;
}

.info-block-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.info-block-content a:hover {
    color: var(--primary-dark);
}

/* Hours Schedule */
.hours-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
}

.hours-row .time {
    color: var(--gray-900);
    font-size: 0.9rem;
    font-weight: 600;
}

.hours-row.closed .day,
.hours-row.closed .time {
    color: var(--gray-500);
}

.hours-row.closed .time {
    font-style: italic;
}

/* Phone in Hours Section */
.hours-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.hours-phone i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.hours-phone span {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
}

.hours-phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.hours-phone a:hover {
    color: var(--primary-dark);
}

/* Team members */
.contact-team {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.team-member:hover {
    background: rgba(13, 212, 197, 0.08);
}

.member-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    font-size: 1rem;
}

.member-role {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin: 0.15rem 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.member-contacts a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.member-contacts a:hover {
    color: var(--primary-color);
}

.member-contacts a i {
    color: var(--primary-color);
    width: 14px;
    font-size: 0.8rem;
}

/* Email Us Button Block */
.contact-action-block {
    margin-top: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.25rem;
    border-radius: var(--radius-lg);
}

.contact-question-text {
    margin-bottom: 1rem;
}

.contact-question-text h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
}

.contact-question-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.btn-email-us {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-email-us:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--gray-100);
}

.btn-email-us i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-card-header {
        padding: 1.25rem 1.5rem;
    }

    .contact-card-body {
        padding: 1.25rem 1.5rem;
    }

    .location-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-contacts a {
        font-size: 0.8rem;
    }
}

/* ==========================================
   INFO MODALS (Help Center, Shipping, Returns, Warranty)
   ========================================== */
.info-modal-content {
    max-width: 700px;
}

.info-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.info-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(13, 212, 197, 0.3);
}

.info-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.info-modal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.info-modal-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-modal-section h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-modal-section p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.info-modal-section p:last-child {
    margin-bottom: 0;
}

.info-modal-section strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.info-modal-note {
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.08), rgba(10, 179, 165, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-light);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.info-modal-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-modal-note p {
    color: var(--gray-800);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* Coming Soon Specific Styles */
.coming-soon-content {
    text-align: center;
    padding: 2rem 0;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.coming-soon-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.coming-soon-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.quick-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.quick-link-btn i {
    font-size: 1.1rem;
}

/* Responsive for info modals */
@media (max-width: 768px) {
    .info-modal-content {
        max-width: 95%;
    }

    .info-modal-header h2 {
        font-size: 1.5rem;
    }

    .info-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .contact-quick-links {
        flex-direction: column;
    }

    .quick-link-btn {
        width: 100%;
        justify-content: center;
    }

    .info-modal-section {
        padding: 1rem;
    }
}

/* ==========================================
   FULL TERMS & CONDITIONS MODAL
   ========================================== */
.terms-modal-content {
    max-width: 900px;
    max-height: 85vh;
}

.terms-modal-content .modal-body {
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.terms-subtitle {
    margin-top: 0.5rem;
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 400;
}

.terms-intro {
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.08), rgba(10, 179, 165, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.terms-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.terms-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.terms-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-700);
}

.terms-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.terms-contact {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.terms-contact p {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.terms-contact i {
    color: var(--primary-color);
    width: 20px;
}

.terms-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    text-align: center;
}

.terms-footer p {
    margin: 1rem 0;
    color: var(--gray-700);
    line-height: 1.7;
}

.terms-effective-date {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
}

@media (max-width: 768px) {
    .terms-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .terms-modal-content .modal-body {
        max-height: calc(90vh - 80px);
    }

    .terms-intro {
        padding: 1rem;
    }

    .terms-contact {
        padding: 1rem;
    }
}

/* ==========================================
   PREVIOUSLY VIEWED BADGE
   ========================================== */
.previously-viewed-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 2;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: fadeInScale 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.previously-viewed-badge i {
    font-size: 1rem;
    transition: transform 0.8s ease;
    flex-shrink: 0;
}

.previously-viewed-badge .badge-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: nowrap;
}

.previously-viewed-badge:hover {
    width: auto;
    min-width: 250px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.previously-viewed-badge:hover i {
    transform: scale(1.1);
}

.previously-viewed-badge:hover .badge-text {
    max-width: 300px;
    opacity: 1;
    margin-left: 0.5rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Footer Animated Background */
.footer-animated-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Twinkling Stars */
.footer-stars {
    position: absolute;
    inset: 0;
}

.footer-stars .star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s ease-in-out infinite;
}

.footer-stars .star:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.footer-stars .star:nth-child(2) {
    top: 20%;
    left: 15%;
    animation-delay: 0.5s;
}

.footer-stars .star:nth-child(3) {
    top: 15%;
    left: 30%;
    animation-delay: 1s;
}

.footer-stars .star:nth-child(4) {
    top: 8%;
    left: 45%;
    animation-delay: 1.5s;
}

.footer-stars .star:nth-child(5) {
    top: 25%;
    left: 55%;
    animation-delay: 2s;
}

.footer-stars .star:nth-child(6) {
    top: 12%;
    left: 70%;
    animation-delay: 0.3s;
}

.footer-stars .star:nth-child(7) {
    top: 30%;
    left: 80%;
    animation-delay: 0.8s;
}

.footer-stars .star:nth-child(8) {
    top: 18%;
    left: 90%;
    animation-delay: 1.3s;
}

.footer-stars .star:nth-child(9) {
    top: 50%;
    left: 8%;
    animation-delay: 1.8s;
}

.footer-stars .star:nth-child(10) {
    top: 60%;
    left: 25%;
    animation-delay: 2.3s;
}

.footer-stars .star:nth-child(11) {
    top: 55%;
    left: 40%;
    animation-delay: 0.6s;
}

.footer-stars .star:nth-child(12) {
    top: 70%;
    left: 60%;
    animation-delay: 1.1s;
}

.footer-stars .star:nth-child(13) {
    top: 45%;
    left: 75%;
    animation-delay: 1.6s;
}

.footer-stars .star:nth-child(14) {
    top: 65%;
    left: 88%;
    animation-delay: 2.1s;
}

.footer-stars .star:nth-child(15) {
    top: 80%;
    left: 50%;
    animation-delay: 0.4s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Floating Dots */
.footer-dots {
    position: absolute;
    inset: 0;
}

.footer-dots .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatDot 8s ease-in-out infinite;
}

.footer-dots .dot:nth-child(1) {
    bottom: 20%;
    left: 10%;
    animation-delay: 0s;
}

.footer-dots .dot:nth-child(2) {
    bottom: 40%;
    left: 20%;
    animation-delay: 1s;
}

.footer-dots .dot:nth-child(3) {
    bottom: 30%;
    left: 35%;
    animation-delay: 2s;
}

.footer-dots .dot:nth-child(4) {
    bottom: 50%;
    left: 50%;
    animation-delay: 3s;
}

.footer-dots .dot:nth-child(5) {
    bottom: 25%;
    left: 65%;
    animation-delay: 4s;
}

.footer-dots .dot:nth-child(6) {
    bottom: 45%;
    left: 75%;
    animation-delay: 5s;
}

.footer-dots .dot:nth-child(7) {
    bottom: 35%;
    left: 85%;
    animation-delay: 6s;
}

.footer-dots .dot:nth-child(8) {
    bottom: 60%;
    left: 95%;
    animation-delay: 7s;
}

@keyframes floatDot {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.4;
    }
}

/* Glowing Orbs */
.footer-orbs {
    position: absolute;
    inset: 0;
}

.footer-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: orbPulse 10s ease-in-out infinite;
}

.footer-orbs .orb:nth-child(1) {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: -50px;
    left: 10%;
    animation-delay: 0s;
}

.footer-orbs .orb:nth-child(2) {
    width: 150px;
    height: 150px;
    background: #3b82f6;
    bottom: -30px;
    right: 20%;
    animation-delay: 3s;
}

.footer-orbs .orb:nth-child(3) {
    width: 180px;
    height: 180px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

@keyframes orbPulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

/* Grid Pattern */
.footer-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(50px) translateY(50px);
    }
}

/* Ensure footer content is above animations */
.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-logo {
    width: 60px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

/* ==========================================
   MODAL - IMPROVED STYLES
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.modal.active {
    display: flex;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1;
}

/* Cart modal with two-column layout needs extra width */
.cart-modal-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive: stack columns on smaller screens */
@media (max-width: 900px) {
    .cart-modal-content > div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .cart-modal-content > div[style*="display: flex"] > div[style*="width: 380px"] {
        width: 100% !important;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-700);
    transition: all var(--transition-base);
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem 3rem;
    min-height: 150px;
    overscroll-behavior: contain;
}

.modal-header {
    padding: 2rem 3rem 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.1);
}

.btn-modal {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-modal-confirm {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
    margin-top: 1rem;
}

.btn-modal-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-modal-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
    margin-right: 1rem;
}

.btn-modal-cancel:hover {
    background: var(--gray-300);
}

.btn-modal-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-modal-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-modal-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   TEAM BIO MODAL
   ========================================== */
.team-bio-modal {
    max-width: 800px;
}

.team-bio-modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.team-bio-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.team-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Improve image quality and rendering for photos */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.team-bio-header-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.team-bio-header-text .team-bio-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.team-bio-content {
    line-height: 1.7;
    color: var(--gray-700);
}

.team-bio-section {
    margin-bottom: 1.5rem;
}

.team-bio-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-bio-section h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.team-bio-section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.team-bio-section p:last-child {
    margin-bottom: 0;
}

.team-credentials {
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.08), rgba(10, 179, 165, 0.05));
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
}

.team-credentials ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-credentials li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-800);
}

.team-credentials li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.team-bio-personal {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

.team-bio-personal h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-bio-personal h4 i {
    color: var(--primary-color);
}

.team-bio-personal p {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

/* Mobile responsive for team bio modal */
@media (max-width: 768px) {
    .team-bio-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .team-bio-avatar {
        width: 150px;
        height: 150px;
    }

    .team-bio-header-text h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================
   CONFIRMATION MODAL
   ========================================== */
.confirmation-modal-content {
    text-align: center;
    padding: 2rem 0;
}

.confirmation-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.confirmation-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.confirmation-modal-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.confirmation-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modal-confirm {
    background: var(--primary-color);
    color: var(--white);
}

.btn-modal-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-modal-cancel {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-modal-cancel:hover {
    background: var(--gray-200);
}

.btn-modal-secondary {
    background: #f59e0b;
    color: var(--white);
    border: none;
}

.btn-modal-secondary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--success-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(150%);
    transition: transform var(--transition-base);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

.toast.info {
    background: var(--info-color);
}

.toast i {
    font-size: 1.25rem;
}

.toast span {
    font-weight: 600;
}

/* ==========================================
   ANIMATIONS & REVEAL
   ========================================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatY {
    0% {
        transform: translateY(0px) translateZ(0);
    }

    100% {
        transform: translateY(-18px) translateZ(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes fadeScaleIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes moveLines {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-80px);
    }
}

@keyframes pulseRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.07);
        opacity: 0.9;
    }
}

@keyframes driftDots {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(12px, -12px, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    animation: floatY 9s ease-in-out infinite alternate;
}

.feature-card:nth-child(2) {
    animation-duration: 10s;
}

.feature-card:nth-child(3) {
    animation-duration: 11s;
}

.feature-card:nth-child(4) {
    animation-duration: 9.5s;
}

.feature-card:nth-child(5) {
    animation-duration: 10.5s;
}

.feature-card:nth-child(6) {
    animation-duration: 11.5s;
}

.promo-content {
    animation: floatY 12s ease-in-out infinite alternate;
}

.about-image img {
    animation: floatY 14s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {

    .hero-section,
    .promo-banner,
    .feature-card,
    .promo-content,
    .about-image img,
    .product-card,
    .hero-ambient .orb,
    .hero-ambient .grid-glow,
    .hero-lines,
    .hero-rings,
    .hero-dots,
    .hero-floating-badges {
        animation: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .mission-hero-content {
        grid-template-columns: 1fr;
    }

    .main-container {
        grid-template-columns: 250px 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mission-hero {
        padding: 4rem 0;
    }

    .about-card-wide {
        padding: 2rem;
    }

    .mission-gallery {
        grid-template-areas:
            "a"
            "b"
            "c";
    }

    .mission-tile.large {
        min-height: 280px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .nav-links {
        display: none;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-card-wide {
        padding: 1.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-btn span {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ==========================================
   PRODUCT REQUEST FORM
   ========================================== */
/* Help button in navbar */
.nav-btn.help-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 50px;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(13, 212, 197, 0.3);
    position: relative;
    font-size: 0.9rem;
}

.nav-btn.help-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.4);
}

.nav-btn.help-btn i {
    font-size: 1rem;
    margin: 0;
}

.nav-btn.help-btn span {
    display: inline;
}

/* Request button in product section */
.request-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(13, 212, 197, 0.3);
    margin-right: 1.5rem;
    position: relative;
}

.request-product-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.4);
}

.request-product-btn i {
    font-size: 1rem;
    margin: 0;
}

.request-product-btn span {
    display: inline;
}

/* Request Form Modal */
.request-form-modal {
    max-width: 600px;
    border-radius: var(--radius-xl);
}

.request-form-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    color: var(--white);
    margin: -1.5rem -1.5rem 1.5rem;
}

.request-form-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.request-form-icon i {
    font-size: 1.8rem;
}

.request-form-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.request-form-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

/* Request Form Styles */
.request-form {
    padding: 0 1.5rem 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-group .required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Locked/readonly field styling */
.form-group input.field-locked,
.form-group textarea.field-locked {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.form-group input.field-locked:focus,
.form-group textarea.field-locked:focus {
    border-color: #e5e7eb;
    box-shadow: none;
}

.form-section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.form-section-divider span {
    padding: 0 1rem;
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.btn-secondary,
.btn-primary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(13, 212, 197, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SECTION ANIMATED BACKGROUNDS
   ========================================== */

/* Mission Section - Enhanced Animation */
.mission-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Mission Stars */
.mission-stars {
    position: absolute;
    inset: 0;
}

.mission-stars .star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(13, 212, 197, 0.6);
    animation: twinkle 4s ease-in-out infinite;
}

.mission-stars .star:nth-child(1) {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
}

.mission-stars .star:nth-child(2) {
    top: 15%;
    left: 20%;
    animation-delay: 0.5s;
}

.mission-stars .star:nth-child(3) {
    top: 5%;
    left: 35%;
    animation-delay: 1s;
}

.mission-stars .star:nth-child(4) {
    top: 20%;
    left: 50%;
    animation-delay: 1.5s;
}

.mission-stars .star:nth-child(5) {
    top: 10%;
    left: 65%;
    animation-delay: 2s;
}

.mission-stars .star:nth-child(6) {
    top: 25%;
    left: 80%;
    animation-delay: 0.3s;
}

.mission-stars .star:nth-child(7) {
    top: 70%;
    left: 10%;
    animation-delay: 0.8s;
}

.mission-stars .star:nth-child(8) {
    top: 80%;
    left: 25%;
    animation-delay: 1.3s;
}

.mission-stars .star:nth-child(9) {
    top: 75%;
    left: 45%;
    animation-delay: 1.8s;
}

.mission-stars .star:nth-child(10) {
    top: 85%;
    left: 60%;
    animation-delay: 2.3s;
}

.mission-stars .star:nth-child(11) {
    top: 78%;
    left: 75%;
    animation-delay: 0.6s;
}

.mission-stars .star:nth-child(12) {
    top: 90%;
    left: 90%;
    animation-delay: 1.1s;
}

/* Mission Floating Dots */
.mission-dots {
    position: absolute;
    inset: 0;
}

.mission-dots .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(13, 212, 197, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(13, 212, 197, 0.4);
    animation: floatDot 10s ease-in-out infinite;
}

.mission-dots .dot:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.mission-dots .dot:nth-child(2) {
    top: 30%;
    left: 15%;
    animation-delay: 1.5s;
}

.mission-dots .dot:nth-child(3) {
    top: 45%;
    left: 5%;
    animation-delay: 3s;
}

.mission-dots .dot:nth-child(4) {
    top: 60%;
    left: 12%;
    animation-delay: 4.5s;
}

.mission-dots .dot:nth-child(5) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.mission-dots .dot:nth-child(6) {
    top: 40%;
    right: 5%;
    animation-delay: 3.5s;
}

.mission-dots .dot:nth-child(7) {
    top: 65%;
    right: 8%;
    animation-delay: 5s;
}

.mission-dots .dot:nth-child(8) {
    top: 85%;
    right: 15%;
    animation-delay: 6.5s;
}

/* Mission Glowing Orbs */
.mission-orbs {
    position: absolute;
    inset: 0;
}

.mission-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    animation: orbPulse 9s ease-in-out infinite;
}

.mission-orbs .orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.mission-orbs .orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: -10%;
    right: -5%;
    animation-delay: 2s;
}

.mission-orbs .orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.mission-orbs .orb:nth-child(4) {
    width: 180px;
    height: 180px;
    background: var(--primary-light);
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.mission-orbs .orb:nth-child(5) {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    bottom: 30%;
    left: 25%;
    animation-delay: 3s;
}

/* Mission Floating Icons */
.mission-float-icons {
    position: absolute;
    inset: 0;
}

.mission-float-icons .float-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.4;
    animation: floatIcon 10s ease-in-out infinite;
}

.mission-float-icons .float-icon:nth-child(1) {
    top: 8%;
    left: 3%;
    animation-delay: 0s;
    font-size: 2.2rem;
}

.mission-float-icons .float-icon:nth-child(2) {
    top: 25%;
    right: 5%;
    animation-delay: 0.8s;
    font-size: 2rem;
}

.mission-float-icons .float-icon:nth-child(3) {
    bottom: 15%;
    left: 6%;
    animation-delay: 1.6s;
    font-size: 1.8rem;
}

.mission-float-icons .float-icon:nth-child(4) {
    bottom: 40%;
    right: 3%;
    animation-delay: 2.4s;
    font-size: 1.6rem;
}

.mission-float-icons .float-icon:nth-child(5) {
    top: 55%;
    left: 12%;
    animation-delay: 3.2s;
    font-size: 1.5rem;
}

.mission-float-icons .float-icon:nth-child(6) {
    top: 15%;
    right: 15%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

.mission-float-icons .float-icon:nth-child(7) {
    bottom: 25%;
    right: 12%;
    animation-delay: 4.8s;
    font-size: 1.6rem;
}

.mission-float-icons .float-icon:nth-child(8) {
    top: 70%;
    left: 25%;
    animation-delay: 5.6s;
    font-size: 1.4rem;
}

.mission-float-icons .float-icon:nth-child(9) {
    top: 40%;
    left: 2%;
    animation-delay: 1.2s;
    font-size: 1.5rem;
}

.mission-float-icons .float-icon:nth-child(10) {
    bottom: 60%;
    right: 8%;
    animation-delay: 2s;
    font-size: 1.7rem;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-25px) rotate(12deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px) rotate(-8deg);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-30px) rotate(8deg);
        opacity: 0.5;
    }
}

/* Mission Grid Pattern */
.mission-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 212, 197, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 212, 197, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 25s linear infinite;
}

/* About Section - Enhanced Dot Grid with Floating Elements */
.about-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    max-width: 100%;
}

.dot-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle, var(--primary-light) 1px, transparent 1px);
    background-size: 50px 50px, 25px 25px;
    background-position: 0 0, 12.5px 12.5px;
    opacity: 0.15;
    animation: dotGridMove 40s linear infinite;
}

.dot-grid::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 212, 197, 0.2), transparent);
    border-radius: 50%;
    animation: floatAround 15s ease-in-out infinite;
}

.dot-grid::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(10, 179, 165, 0.15), transparent);
    border-radius: 50%;
    animation: floatAround 18s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes dotGridMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-20px, -50px) scale(0.9);
        opacity: 0.15;
    }

    75% {
        transform: translate(-40px, 20px) scale(1.05);
        opacity: 0.25;
    }
}

/* Floating Icons in About Section */
.about-float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 212, 197, 0.15);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: aboutFloatIcon 10s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(13, 212, 197, 0.35);
    opacity: 0.5;
}

.about-float-icon.icon-1 {
    top: 12%;
    left: 5%;
    animation-delay: 0s;
    font-size: 1.8rem;
}

.about-float-icon.icon-2 {
    top: 20%;
    right: 8%;
    animation-delay: 1s;
    font-size: 1.6rem;
}

.about-float-icon.icon-3 {
    top: 50%;
    left: 3%;
    animation-delay: 2s;
    font-size: 1.5rem;
}

.about-float-icon.icon-4 {
    bottom: 25%;
    right: 5%;
    animation-delay: 3s;
    font-size: 1.7rem;
}

.about-float-icon.icon-5 {
    top: 35%;
    right: 3%;
    animation-delay: 4s;
    font-size: 1.4rem;
}

.about-float-icon.icon-6 {
    bottom: 40%;
    left: 8%;
    animation-delay: 5s;
    font-size: 1.5rem;
}

.about-float-icon.icon-7 {
    top: 70%;
    right: 12%;
    animation-delay: 6s;
    font-size: 1.6rem;
}

.about-float-icon.icon-8 {
    bottom: 15%;
    left: 12%;
    animation-delay: 7s;
    font-size: 1.4rem;
}

.about-float-icon.icon-9 {
    top: 8%;
    right: 25%;
    animation-delay: 8s;
    font-size: 1.3rem;
}

.about-float-icon.icon-10 {
    bottom: 55%;
    right: 20%;
    animation-delay: 9s;
    font-size: 1.5rem;
}

@keyframes aboutFloatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-25px) rotate(3deg);
        opacity: 0.6;
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }

    25% {
        transform: translate(20px, -40px) rotate(90deg);
        opacity: 0.25;
    }

    50% {
        transform: translate(-15px, -80px) rotate(180deg);
        opacity: 0.1;
    }

    75% {
        transform: translate(30px, -40px) rotate(270deg);
        opacity: 0.2;
    }
}

/* Team Section - Connection Lines */
.team-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.conn-line {
    stroke: var(--primary-color);
    stroke-width: 1.5;
    opacity: 0;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 8s ease-in-out infinite;
}

.conn-line.line-1 {
    animation-delay: 0s;
}

.conn-line.line-2 {
    animation-delay: 1.6s;
}

.conn-line.line-3 {
    animation-delay: 3.2s;
}

.conn-line.line-4 {
    animation-delay: 4.8s;
}

.conn-line.line-5 {
    animation-delay: 6.4s;
}

.conn-dot {
    fill: var(--primary-color);
    opacity: 0;
    animation: dotPulse 8s ease-in-out infinite;
}

.conn-dot.dot-1 {
    animation-delay: 0s;
}

.conn-dot.dot-2 {
    animation-delay: 1.6s;
}

.conn-dot.dot-3 {
    animation-delay: 3.2s;
}

.conn-dot.dot-4 {
    animation-delay: 4.8s;
}

.conn-dot.dot-5 {
    animation-delay: 6.4s;
}

@keyframes drawLine {

    0%,
    100% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.2;
    }

    50% {
        stroke-dashoffset: 0;
        opacity: 0.15;
    }
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }
}

/* Contact Section - Ripple Effect */
.contact-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ripple {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: rippleExpand 6s ease-out infinite;
}

.ripple-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.ripple-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.ripple-3 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 40%;
    animation-delay: 3s;
}

.ripple-4 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 35%;
    animation-delay: 4.5s;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Ensure content is above animations */
.mission-hero .container,
.about-section .container,
.team-section .container,
.contact-section .container {
    position: relative;
    z-index: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .wave,
    .dot-grid,
    .about-float-icon,
    .conn-line,
    .conn-dot,
    .ripple {
        animation: none !important;
    }
}

/* ==========================================
   LOADING OVERLAY
   ========================================== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in-out;
}

.loading-content {
    position: relative;
    z-index: 10001;
    background: white;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    min-width: 320px;
    animation: scaleIn 0.3s ease-out;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-top-color: var(--primary-light);
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--primary-dark);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.loading-message {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Prevent animation in reduced motion mode */
@media (prefers-reduced-motion: reduce) {

    .loading-backdrop,
    .loading-content,
    .spinner-ring {
        animation: none !important;
    }
}

/* =====================================================
   ACCOUNT MODAL STYLES
   ===================================================== */

/* Account Modal - Full Screen */
.account-modal .modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.account-modal .account-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 97vw;
    height: 90vh;
    max-width: 1920px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: accountModalFadeIn 0.25s ease-out;
}

/* Scrollable content wrapper - everything below header scrolls */
.account-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fafc;
}

@keyframes accountModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.account-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.account-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Account Modal Header */
.account-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 70px 20px 24px;
    background: linear-gradient(135deg, #0dd4c5 0%, #0ab3a5 100%);
    color: white;
}

.account-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-header-left i {
    font-size: 2rem;
}

.account-header-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.account-header-right {
    display: flex;
    align-items: center;
}

.account-welcome-mini {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

/* Account Info Section */
.account-info-section-modal {
    padding: 0.5rem 1.5rem 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.info-card-modal {
    background: white;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.info-body-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.info-body-modal .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-body-modal .info-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-body-modal .info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

/* Account Info Card (My Account Modal) */
.account-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    width: 100%;
}

.account-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.account-info-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.account-info-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    flex: 1;
}

.account-info-header .account-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.account-info-header .badge-direct {
    background: rgba(13, 212, 197, 0.15);
    color: var(--primary-dark);
}

.account-info-header .badge-child {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.account-info-item.full-width {
    grid-column: 1 / -1;
}

.account-info-item i {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    width: 1rem;
    flex-shrink: 0;
}

.account-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.account-info-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.account-info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.account-info-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
}

.account-info-status.status-ready {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.account-info-status.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.account-info-status.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.account-info-status i {
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .account-info-header {
        flex-wrap: wrap;
    }

    .account-info-name {
        width: 100%;
        order: -1;
        margin-bottom: 0.5rem;
    }
}

/* Account Tabs */
.account-tabs-container {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.account-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.account-tab-btn:hover {
    color: #0dd4c5;
    background: rgba(13, 212, 197, 0.05);
}

.account-tab-btn.active {
    color: #0dd4c5;
    border-bottom-color: #0dd4c5;
    background: rgba(13, 212, 197, 0.05);
}

.account-tab-btn i {
    font-size: 1rem;
}

.account-badge {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.account-tab-btn.active .account-badge {
    background: #0dd4c5;
    color: white;
}

/* Account Modal Body */
.account-modal-body {
    padding: 16px 24px 24px;
    min-height: 350px;
}

/* Tab Content */
.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

.tab-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header-row h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.tab-header-row h3 i {
    color: #0dd4c5;
}

/* Content Grid */
.account-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* Order/Quote Cards */
.account-content-grid .order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.account-content-grid .order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0dd4c5;
}

.account-content-grid .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.account-content-grid .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-content-grid .card-title i {
    color: #0dd4c5;
    font-size: 1.25rem;
}

.account-content-grid .card-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.account-content-grid .card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.account-content-grid .card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-content-grid .card-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-content-grid .card-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.account-content-grid .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.account-content-grid .items-count {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-content-grid .items-count i {
    color: #0dd4c5;
}

.account-content-grid .view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(13, 212, 197, 0.1);
    color: #0dd4c5;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.account-content-grid .view-btn:hover {
    background: #0dd4c5;
    color: white;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.quoted {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.invoiced {
    background: #fef3c7;
    color: #b45309;
}

.status-badge.paid {
    background: #d1fae5;
    color: #047857;
}

.status-badge.cancelled,
.status-badge.quote-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.balance-due {
    background: #fef3c7;
    color: #b45309;
}

/* Contact Cards */
.account-content-grid .contact-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-content-grid .contact-card .contact-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-content-grid .contact-card .contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0dd4c5, #0ab3a5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.account-content-grid .contact-card .contact-info {
    flex: 1;
}

.account-content-grid .contact-card .contact-name {
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.account-content-grid .contact-card .contact-email {
    font-size: 0.85rem;
    color: #6b7280;
}

.account-content-grid .contact-card .contact-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Access Message */
.access-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 16px;
}

.access-message i {
    color: #b45309;
    font-size: 1.25rem;
}

.access-message p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

/* Loading State */
.account-content-grid .loading,
.account-modal-body .loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #6b7280;
    grid-column: 1 / -1;
}

.account-content-grid .loading i,
.account-modal-body .loading i {
    font-size: 2rem;
    color: #0dd4c5;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: #6b7280;
    grid-column: 1 / -1;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.empty-state p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
    background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center no-repeat;
    background-size: 16px;
    cursor: pointer;
    appearance: none;
}

.filter-select:focus {
    outline: none;
    border-color: #0dd4c5;
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.1);
}

/* Primary/Secondary Buttons in Account Modal */
.account-modal-body .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0dd4c5 0%, #0ab3a5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.account-modal-body .primary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.3);
}

.account-modal-body .primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.account-modal-body .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.account-modal-body .secondary-btn:hover {
    background: #e5e7eb;
}

/* Form Styles for Account Modal */
.account-modal .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.account-modal .form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-modal .form-grid label span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.account-modal .form-grid input {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.account-modal .form-grid input:focus {
    outline: none;
    border-color: #0dd4c5;
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.1);
}

.account-modal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Quote Detail Modal Styles */
.quote-detail-container {
    padding: 0;
}

.quote-header-info {
    margin-bottom: 24px;
}

.quote-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.quote-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quote-info-grid .label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-info-grid .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.quote-items-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header-flex h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.section-header-flex h4 i {
    color: #0dd4c5;
}

.quote-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.quote-footer-actions .btn-primary,
.quote-footer-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.quote-footer-actions .btn-primary {
    background: linear-gradient(135deg, #0dd4c5 0%, #0ab3a5 100%);
    color: white;
}

.quote-footer-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.3);
}

.quote-footer-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.quote-footer-actions .btn-secondary:hover {
    background: #e5e7eb;
}

/* Items Table */
.items-list {
    overflow-x: auto;
}

.quote-items-table,
.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-items-table th,
.quote-items-table td,
.invoice-items-table th,
.invoice-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.quote-items-table th,
.invoice-items-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
}

.quote-items-table td,
.invoice-items-table td {
    font-size: 0.9rem;
    color: #374151;
}

.quote-items-table .numeric,
.invoice-items-table .numeric {
    text-align: right;
}

/* Branch Cards */
.branches-grid .branch-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.branches-grid .branch-card .branch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.branches-grid .branch-card .branch-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0dd4c5, #0ab3a5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.branches-grid .branch-card .branch-name {
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Quotes Two-Column Layout */
#accountQuotesGrid {
    display: block;
}

.quotes-two-column-layout {
    display: flex;
    gap: 24px;
    width: 100%;
    min-height: 450px;
}

.quotes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    min-width: 0;
}

.quotes-column .column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.quotes-column.pending-column .column-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.quotes-column.accepted-column .column-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quotes-column .column-header i {
    font-size: 1.25rem;
}

.quotes-column .column-header h4 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    white-space: nowrap;
}

.quotes-column .column-header .column-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.quotes-column .column-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quotes-column .empty-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.quotes-column .empty-column i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.quotes-column .empty-column p {
    margin: 0;
    font-size: 0.95rem;
}

/* Cards inside columns */
.quotes-column .order-card {
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quotes-column .order-card:hover {
    border-color: #0dd4c5;
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.15);
}

.quotes-column .order-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.quotes-column .order-card .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quotes-column .order-card .card-title i {
    color: #0dd4c5;
    font-size: 1rem;
}

.quotes-column .order-card .card-title h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.quotes-column .order-card .card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.quotes-column .order-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quotes-column .order-card .card-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quotes-column .order-card .card-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 500;
}

.quotes-column .order-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.quotes-column .order-card .items-count {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quotes-column .order-card .items-count i {
    color: #0dd4c5;
}

.quotes-column .order-card .view-btn {
    font-size: 0.8rem;
    color: #0dd4c5;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    padding: 0;
}

.quotes-column .order-card .view-btn:hover {
    color: #0ab3a5;
}

/* Improved card footer for multiple buttons */
.quotes-column .order-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.quotes-column .order-card .card-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.quotes-column .order-card .card-footer .view-btn {
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.quotes-column .order-card .card-footer .view-btn:hover {
    background: #e5e7eb;
}

/* Ensure columns fill equal width */
.quotes-two-column-layout .quotes-column {
    flex: 1 1 50%;
    min-width: 0;
    max-width: 50%;
}

/* Override grid display when two-column layout is inside */
.account-content-grid:has(.quotes-two-column-layout) {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .account-modal .account-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .account-tabs-container {
        overflow-x: auto;
        padding: 0 16px;
    }

    .account-tab-btn {
        padding: 12px 14px;
        white-space: nowrap;
    }

    .account-tab-btn span:not(.account-badge) {
        display: none;
    }

    .account-modal-body {
        padding: 16px;
    }

    .account-content-grid {
        grid-template-columns: 1fr;
    }

    .quotes-two-column-layout {
        flex-direction: column;
        gap: 16px;
    }

    .quotes-two-column-layout .quotes-column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .quotes-column .column-content {
        max-height: 350px;
    }

    .tab-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .quote-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-modal .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Modal Styles */
.payment-modal-content {
    width: 95vw;
    max-width: 1200px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
}

.payment-iframe-container {
    flex: 1;
    position: relative;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.payment-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.payment-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f9fafb;
    color: #6b7280;
    z-index: 1;
}

.payment-loading i {
    font-size: 2rem;
    color: #0dd4c5;
}

.payment-loading.hidden {
    display: none;
}

@media (max-width: 768px) {
    .payment-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }

    .payment-iframe-container {
        border-radius: 0;
    }
}

/* ==========================================
   QUOTE & INVOICE DETAIL MODALS
   ========================================== */
.modal-large {
    max-width: 700px;
    width: 95%;
}

/* Detail Modal Header - for quote/invoice detail modals */
.modal-large .modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.08), rgba(10, 179, 165, 0.04));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-large .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-large .modal-header h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Modal body for detail modals */
.modal-large .modal-body {
    padding: 1.5rem;
}

/* Quote/Invoice Detail Header */
.detail-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.detail-header-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-header-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.detail-header-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Items Table in Detail Modal */
.detail-items-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.detail-items-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-items-title i {
    font-size: 0.85rem;
}

.detail-items-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-items-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.detail-items-table th:last-child,
.detail-items-table td:last-child {
    text-align: right;
}

.detail-items-table td {
    padding: 0.875rem 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.detail-items-table tr:last-child td {
    border-bottom: none;
}

.detail-items-table .product-name {
    font-weight: 500;
    color: var(--gray-900);
}

.detail-items-table .sku {
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* Detail Modal Actions */
.detail-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.detail-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-actions .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.detail-actions .btn-secondary:hover {
    background: var(--gray-200);
}

.detail-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.detail-actions .btn-primary:hover {
    background: var(--primary-dark);
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ========================================== */

/* Tablet Breakpoint */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation */
    .top-nav {
        padding: 0.75rem 1rem;
    }

    .nav-left .brand {
        font-size: 1.25rem;
    }

    .nav-left .brand img {
        height: 35px;
    }

    .nav-links {
        display: none; /* Hide nav links on mobile, keep only buttons */
    }

    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .nav-btn span {
        display: none; /* Hide text on very small screens */
    }

    .nav-btn i {
        font-size: 1.2rem;
        margin: 0; /* Remove any margin when text is hidden */
    }

    .logout-btn {
        padding: 0.5rem;
        width: auto;
        min-width: 40px;
    }

    .cart-badge {
        top: -4px;
        right: -4px;
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        min-width: 16px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 4rem 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Products Section */
    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-bar-container {
        width: 100%;
    }

    .products-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-tags-container {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .products-grid.list-view {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-actions button {
        width: 100%;
    }

    /* Filters Sidebar */
    .filters-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 85%;
        max-width: 300px;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .filters-sidebar.mobile-open {
        left: 0;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-cards {
        gap: 1rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }

    .modal-large {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
        margin: 0;
    }

    .modal-header {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }

    /* Account Modal */
    .account-modal-header {
        padding: 1rem 50px 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .account-header-left {
        gap: 0.75rem;
    }

    .account-header-left i {
        font-size: 1.5rem;
    }

    .account-header-left h2 {
        font-size: 1.25rem;
    }

    .account-welcome-mini {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .account-info-section-modal {
        padding: 1rem;
    }

    .info-card-modal {
        padding: 1rem;
    }

    .info-body-modal {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .account-tabs-container {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .account-tab-btn {
        flex: 1 1 45%;
        min-width: 120px;
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .account-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    /* Order Cards */
    .order-card {
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-title h3 {
        font-size: 1rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .view-btn {
        width: 100%;
        justify-content: center;
    }

    /* Detail Modals */
    .detail-header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .detail-items-table {
        font-size: 0.85rem;
    }

    .detail-items-table th,
    .detail-items-table td {
        padding: 0.5rem 0.25rem;
    }

    .detail-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cart */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .cart-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    /* Product Detail Modal */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions button {
        width: 100%;
    }

    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-section {
        padding: 1.5rem;
    }

    /* Form inputs */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Payment/PDF Viewer Modal */
    .payment-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .payment-iframe-container {
        height: calc(100vh - 80px);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Toast notifications */
    .toast {
        width: 90%;
        left: 5%;
        right: 5%;
        transform: translateX(0);
    }

    /* Pagination */
    .pagination {
        gap: 0.25rem;
    }

    .page-btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    /* Loading overlay */
    .loading-overlay {
        padding: 2rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .modal-content {
        margin: 0.5rem;
    }

    .account-tab-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .detail-items-table {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    /* Team grid responsive - stack on mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Medium screens: 3 columns */
@media (min-width: 992px) and (max-width: 1279px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Large desktop: 5 columns */
@media (min-width: 1280px) {
    .team-section .container {
        max-width: 1800px;
        width: 96%;
    }

    .team-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 100%;
        width: 100%;
    }
}

/* ==========================================
   CONTACT FORM MODAL STYLES
   ========================================== */

/* Contact Form Modal */
.contact-form-modal {
    max-width: 650px;
    border-radius: var(--radius-xl);
}

.contact-form-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    color: var(--white);
    margin: -1.5rem -1.5rem 1.5rem;
}

.contact-form-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.contact-form-icon i {
    font-size: 2rem;
}

.contact-form-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.contact-form-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form {
    padding: 0 1.5rem 1.5rem;
}

.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.1);
}

/* Login Modal Guest Section */
.login-guest-section {
    margin-top: 1.5rem;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.login-divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guest-info {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.guest-info p {
    margin: 0 0 0.75rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.guest-info p:first-child {
    color: var(--gray-800);
    font-size: 1rem;
}

.btn-guest-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 0.5rem;
}

.btn-guest-contact:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.3);
}

/* Footer Contact Link */
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 0.25rem 0;
}

.footer-contact-link:hover {
    color: var(--primary-color);
}

.footer-contact-link i {
    font-size: 0.9rem;
}

/* Contact Section CTA */
.contact-form-cta {
    margin-top: 3rem;
    padding: 0 1rem;
}

.contact-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    flex-wrap: wrap;
    text-align: center;
}

.contact-cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-cta-icon i {
    font-size: 1.5rem;
}

.contact-cta-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.contact-cta-text h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-cta-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.btn-contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-contact-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Contact CTA */
@media (max-width: 768px) {
    .contact-cta-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        text-align: center;
    }

    .contact-cta-text {
        text-align: center;
    }

    .contact-cta-text h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================
   ACCOUNT SWITCHER STYLES
   ========================================== */

.account-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.account-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(12px);
    max-width: 240px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-nav.scrolled .account-switcher-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(13, 212, 197, 0.3);
}

.account-switcher-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.top-nav.scrolled .account-switcher-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #089386 100%);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(13, 212, 197, 0.4);
}

.account-switcher-btn i:first-child {
    font-size: 1rem;
}

.top-nav:not(.scrolled) .account-switcher-btn i:first-child {
    color: var(--white);
}

.top-nav.scrolled .account-switcher-btn i:first-child {
    color: var(--white);
}

.account-switcher-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.account-switcher-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    opacity: 0.8;
}

.top-nav.scrolled .account-switcher-arrow {
    color: var(--white);
    opacity: 0.9;
}

.account-switcher-dropdown.open + .account-switcher-btn .account-switcher-arrow,
.account-switcher:has(.account-switcher-dropdown.open) .account-switcher-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.account-switcher-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    max-width: 350px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
    overflow: hidden;
}

.account-switcher-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-switcher-header {
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-count {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* Account Search */
.account-search-wrapper {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
}

.account-search-wrapper i {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.account-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: var(--gray-800);
    background: transparent;
}

.account-search-input::placeholder {
    color: var(--gray-400);
}

.account-switcher-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Account Item */
.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--gray-100);
}

.account-item:last-child {
    border-bottom: none;
}

.account-item:hover {
    background: var(--gray-50);
}

.account-item.selected {
    background: rgba(13, 212, 197, 0.08);
    border-left: 3px solid var(--primary-color);
}

.account-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.account-item-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-item-parent {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.account-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Account Badges */
.account-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.account-badge.badge-direct {
    background: rgba(13, 212, 197, 0.15);
    color: var(--primary-dark);
}

.account-badge.badge-child {
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

.account-badge.badge-parent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.35);
}

.account-badge-icon {
    font-size: 0.68rem;
}

/* Parent row in the dropdown — subtle accent border */
.account-item.is-parent-account {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

.account-item.is-parent-account.selected {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 212, 197, 0.08) 60%);
}

.account-name-icon {
    color: #d97706;
    font-size: 0.8em;
    margin-right: 5px;
    vertical-align: middle;
}

/* Parent accent on the navbar switcher pill */
.account-switcher-btn.is-parent-account-btn {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.05));
}

.account-switcher-btn.is-parent-account-btn > i.fa-sitemap {
    color: #d97706;
}

.account-discount {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}

.account-free-shipping {
    font-size: 0.7rem;
    font-weight: 600;
    color: #0d9488;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.account-free-shipping i {
    font-size: 0.6rem;
}

.account-item-meta i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Account Hover Info - Inline Expanded with delay */
.account-hover-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: var(--gray-100);
    padding: 0 1rem;
    margin-top: 0;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease;
    transition-delay: 0s; /* No delay when collapsing */
}

.account-item:hover .account-hover-info {
    max-height: 150px;
    opacity: 1;
    padding: 0.6rem 1rem 0.75rem;
    margin-top: 0.5rem;
    transition-delay: 0.4s; /* 400ms delay before expanding */
}

/* Account item base styles */
.account-item {
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.hover-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.72rem;
    margin-bottom: 0.3rem;
    line-height: 1.35;
    color: var(--gray-600);
}

.hover-info-row:last-child {
    margin-bottom: 0;
}

.hover-info-row:first-child {
    display: none; /* Hide name since it's already shown above */
}

.hover-info-row i {
    color: var(--gray-500);
    font-size: 0.65rem;
    margin-top: 2px;
    width: 12px;
    flex-shrink: 0;
}

.hover-info-row strong {
    color: var(--gray-700);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .account-switcher-btn {
        padding: 0.4rem 0.75rem;
    }

    .account-switcher-name {
        max-width: 80px;
        font-size: 0.8rem;
    }

    .account-switcher-dropdown {
        min-width: 260px;
        right: -50px;
    }

    /* Hide hover tooltip on mobile */
    .account-hover-info {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .account-switcher-btn span {
        display: none;
    }

    .account-switcher-btn {
        padding: 0.5rem;
    }

    .account-switcher-dropdown {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        min-width: auto;
        max-width: none;
    }
}

/* ==========================================
   CURRENT ACCOUNT DETAILS SECTION
   ========================================== */

.current-account-details {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d8c 100%);
    color: white;
    border-bottom: 1px solid var(--gray-200);
}

.current-account-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.current-account-header i {
    font-size: 0.8rem;
}

.current-account-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.current-account-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.account-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.95;
}

.account-detail-row i {
    width: 14px;
    text-align: center;
    margin-top: 2px;
    opacity: 0.8;
}

.account-detail-row strong {
    font-weight: 600;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-indicator.status-pending {
    background: #fbbf24;
}

.status-indicator.status-ready {
    background: #22c55e;
    animation: none;
}

.status-indicator.status-error {
    background: #ef4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================
   QUOTE CONFIRMATION MODAL STYLES
   ========================================== */

.quote-confirm-modal {
    max-width: 500px;
}

.quote-confirm-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.quote-confirm-warning i {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 2px;
}

.quote-confirm-warning p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quote-confirm-account-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d8c 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: white;
    margin-bottom: 1.5rem;
}

.quote-confirm-account-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.quote-confirm-account-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-confirm-account-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-confirm-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.quote-confirm-detail i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
    margin-top: 2px;
}

.quote-confirm-detail span {
    opacity: 0.9;
}

.quote-confirm-detail strong {
    margin-left: auto;
    text-align: right;
}

.quote-confirm-items-summary {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.quote-confirm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.quote-confirm-summary-row:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.quote-confirm-summary-row span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.quote-confirm-summary-row strong {
    color: var(--gray-800);
    font-size: 1rem;
}

.quote-confirm-actions {
    display: flex;
    gap: 1rem;
}

.quote-confirm-actions button {
    flex: 1;
}

/* ==========================================
   UNIFIED QUOTE CONFIRMATION MODAL STYLES
   ========================================== */

/* Ensure quote confirm modal appears above other modals */
#quoteConfirmModal {
    z-index: 10001;
}

#quoteConfirmModal .modal-backdrop {
    z-index: -1;
}

.quote-confirm-modal-unified {
    max-width: 680px;
    width: 95%;
    overscroll-behavior: contain;
}

.quote-confirm-modal-unified .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Two-column grid for Account and Shipping */
.quote-confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .quote-confirm-grid {
        grid-template-columns: 1fr;
    }
}

.quote-confirm-card {
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.quote-confirm-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Account Card - Teal gradient */
.quote-confirm-modal-unified .quote-confirm-account-card {
    background: linear-gradient(135deg, #0dd4c5 0%, #0a9a90 100%);
    color: white;
    margin-bottom: 0;
}

.quote-confirm-modal-unified .quote-confirm-account-card .quote-confirm-card-header {
    opacity: 0.9;
}

.quote-confirm-modal-unified .quote-confirm-account-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-confirm-modal-unified .quote-confirm-account-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.quote-confirm-modal-unified .quote-confirm-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.quote-confirm-modal-unified .quote-confirm-detail i {
    width: 14px;
    text-align: center;
    opacity: 0.8;
    margin-top: 2px;
}

.quote-confirm-modal-unified .quote-confirm-detail span {
    opacity: 0.85;
}

.quote-confirm-modal-unified .quote-confirm-detail strong {
    margin-left: auto;
    text-align: right;
}

/* Shipping Card - Light gray */
.quote-confirm-shipping-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.quote-confirm-shipping-card .quote-confirm-card-header {
    color: var(--gray-500);
}

.quote-confirm-shipping-card .quote-confirm-card-header i {
    color: var(--primary-color);
}

.quote-confirm-shipping-content {
    font-size: 0.85rem;
    line-height: 1.5;
}

.quote-confirm-address-lines {
    color: var(--gray-700);
}

.quote-confirm-address-lines div {
    margin-bottom: 0.15rem;
}

.quote-confirm-no-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error-color);
    font-size: 0.85rem;
}

.quote-confirm-no-address i {
    color: var(--error-color);
}

/* Order Items Section */
.quote-confirm-items-section {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.quote-confirm-items-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.quote-confirm-items-header i {
    color: var(--gray-400);
}

.quote-confirm-items-table-wrapper {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
}

.quote-confirm-items-table {
    width: 100%;
}

.quote-confirm-items-table-header {
    display: flex;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
    position: sticky;
    top: 0;
}

.quote-confirm-items-table-row {
    display: flex;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.quote-confirm-items-table-row:last-child {
    border-bottom: none;
}

.item-col-product {
    flex: 1;
    min-width: 0;
}

.item-col-qty {
    width: 45px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.item-col-price {
    width: 70px;
    text-align: right;
}

.item-col-total {
    width: 75px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
}

.item-name {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-sku {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.item-original-price {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-decoration: line-through;
    display: block;
}

.item-sold-price {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Pricing Summary */
.quote-confirm-pricing {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.quote-confirm-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.quote-confirm-pricing-row span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.quote-confirm-pricing-row strong {
    color: var(--gray-800);
    font-size: 0.95rem;
}

.quote-confirm-discount-row span,
.quote-confirm-discount-row strong {
    color: #b45309;
}

/* Shipping Section */
.quote-confirm-shipping-section {
    background: #f0fdfa;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0 12px 0;
}

.quote-confirm-shipping-row span {
    color: #0d9488;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.quote-confirm-shipping-row strong {
    color: #0d9488;
    font-weight: 700;
}

.quote-confirm-shipping-section.free-shipping {
    background: #ecfdf5;
}

.quote-confirm-shipping-section.free-shipping .quote-confirm-shipping-row span,
.quote-confirm-shipping-section.free-shipping .quote-confirm-shipping-row strong {
    color: #059669;
}

.quote-confirm-shipping-breakdown {
    font-size: 12px;
    color: #6b7280;
}

.quote-confirm-total-row {
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
    padding-top: 0.75rem !important;
}

.quote-confirm-total-row span {
    font-weight: 700;
    color: var(--gray-800) !important;
}

.quote-confirm-total-row strong {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Form Section */
.quote-confirm-form-section {
    margin-bottom: 1.25rem;
}

.quote-confirm-form-group {
    margin-bottom: 1rem;
}

.quote-confirm-form-group:last-child {
    margin-bottom: 0;
}

.quote-confirm-form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.quote-confirm-form-group label i {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.optional-label {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.quote-confirm-input,
.quote-confirm-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.quote-confirm-input:focus,
.quote-confirm-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 212, 197, 0.15);
}

.quote-confirm-textarea {
    resize: vertical;
    min-height: 80px;
}

.quote-confirm-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* Action Buttons - Unified */
.quote-confirm-actions-unified {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-quote-cancel {
    flex: 0 1 auto;
    padding: 0.85rem 1.25rem;
    background: white;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-quote-cancel:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-quote-review {
    flex: 1;
    padding: 0.85rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-quote-review:hover {
    background: #0ab3a5;
    transform: translateY(-1px);
}

.btn-quote-accept {
    flex: 1;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-quote-accept:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .quote-confirm-actions-unified {
        flex-direction: column;
    }

    .btn-quote-cancel,
    .btn-quote-review,
    .btn-quote-accept {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ============================================================
   ANALYTICS DASHBOARD STYLES
   ============================================================ */

/* Dashboard Controls */
.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.dashboard-title i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.dashboard-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.dashboard-filters {
    display: flex;
    gap: 0.75rem;
}

.dashboard-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.dashboard-select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.dashboard-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.dashboard-select option {
    background: #1f2937;
    color: white;
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* KPI Cards Row */
.dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.kpi-card {
    background: white;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Pipeline (pending quotes) - Blue/Purple */
.kpi-pipeline::before {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

/* Invoiced - Teal */
.kpi-invoiced::before {
    background: linear-gradient(180deg, #0d9488 0%, #14b8a6 100%);
}

/* Collected (paid) - Green */
.kpi-collected::before {
    background: linear-gradient(180deg, #22c55e 0%, #4ade80 100%);
}

/* Outstanding - Red */
.kpi-outstanding::before {
    background: linear-gradient(180deg, #ef4444 0%, #f87171 100%);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.kpi-pipeline .kpi-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #6366f1;
}

.kpi-invoiced .kpi-icon {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
    color: #0d9488;
}

.kpi-collected .kpi-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(74, 222, 128, 0.15) 100%);
    color: #22c55e;
}

.kpi-outstanding .kpi-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #ef4444;
}

.kpi-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.kpi-trend i {
    font-size: 0.65rem;
}

.kpi-trend-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.kpi-trend-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Top KPI Section - Outside Dashboard Tab */
.account-kpi-section {
    padding: 0.75rem 1.5rem 0.5rem;
    background: white;
}

.top-kpi-row {
    margin-top: 0;
}

.kpi-subvalue {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.kpi-pipeline .kpi-subvalue {
    color: #6366f1;
}

.kpi-invoiced .kpi-subvalue {
    color: #0d9488;
}

.kpi-collected .kpi-subvalue {
    color: #22c55e;
}

.kpi-outstanding .kpi-subvalue {
    color: #ef4444;
}

.kpi-trend-badge {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.kpi-trend-badge.kpi-trend-success {
    color: #22c55e;
}

.kpi-trend-badge.kpi-trend-info {
    color: #3b82f6;
}

.kpi-trend-badge.kpi-trend-danger {
    color: #ef4444;
}

/* Charts Section - Below KPIs (Compact) */
.account-charts-section {
    padding: 0 1.5rem 0.75rem;
    background: white;
}

/* Compact layout: Line chart + single pie chart in one row */
.charts-layout-compact {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.chart-activity-line {
    display: flex;
    flex-direction: column;
}

.chart-pie-single {
    display: flex;
    flex-direction: column;
}

/* Slim chart body for compact view */
.chart-body-slim {
    height: 120px;
    padding: 0.5rem;
}

/* Inline legend for compact charts */
.chart-legend-inline {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
}

.chart-legend-inline .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.chart-legend-inline .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chart-legend-inline .legend-quotes .legend-dot {
    background: #6366f1;
}

.chart-legend-inline .legend-invoices .legend-dot {
    background: #0d9488;
}

/* Legacy chart classes (keep for backwards compatibility) */
.charts-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.chart-monthly {
    display: flex;
    flex-direction: column;
}

.charts-pie-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-pie {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-body-medium {
    height: 260px;
    flex: 1;
}

.chart-body-compact {
    height: 130px;
    padding: 0.75rem;
}

/* Chart Cards */
.dashboard-charts-row {
    display: flex;
    gap: 1rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chart-half {
    flex: 1;
    min-width: 0;
}

.chart-full {
    flex: 1;
    width: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.chart-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h4 i {
    color: var(--primary);
    font-size: 0.85rem;
}

.chart-body {
    padding: 1rem;
    height: 220px;
    position: relative;
}

.chart-body-tall {
    height: 280px;
}

.chart-body canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Chart Legend Toggle */
.chart-legend-toggle {
    display: flex;
    gap: 0.5rem;
}

.legend-btn {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.legend-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.legend-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.chart-select {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    background: white;
    color: var(--text-dark);
}

/* Recent Activity List */
.recent-activity-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Activity Tab specific styles */
#accountActivityTab .recent-activity-list {
    max-height: calc(100vh - 450px);
    min-height: 300px;
}

#accountActivityTab .tab-header-row {
    margin-bottom: 1rem;
}

#accountActivityTab .tab-header-row .chart-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--light-bg);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.quote {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #6366f1;
}

.activity-icon.invoice {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
    color: #0d9488;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.activity-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.activity-status {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
}

.activity-status.paid {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.activity-status.sent {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.activity-status.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.activity-status.invoiced {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}

.activity-status.expired {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.activity-status.draft {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

/* Animation for dashboard cards */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: dashboardFadeIn 0.5s ease forwards;
}

@keyframes dashboardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter Animation */
.kpi-value {
    transition: all 0.3s ease;
}

.kpi-value.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-layout {
        grid-template-columns: 1fr;
    }

    .charts-layout-compact {
        grid-template-columns: 1fr 1fr;
    }

    .charts-pie-stack {
        flex-direction: row;
    }

    .chart-body-medium {
        height: 220px;
    }
}

@media (max-width: 900px) {
    .dashboard-charts-row {
        flex-direction: column;
    }

    .chart-half {
        width: 100%;
    }

    .charts-pie-stack {
        flex-direction: column;
    }

    .charts-layout-compact {
        grid-template-columns: 1fr;
    }

    .chart-body-compact {
        height: 150px;
    }

    .chart-body-slim {
        height: 100px;
    }
}

@media (max-width: 600px) {
    .dashboard-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpi-card {
        padding: 0.75rem;
    }

    .kpi-value {
        font-size: 1.1rem;
    }

    .kpi-label {
        font-size: 0.7rem;
    }

    .kpi-subvalue {
        font-size: 0.65rem;
    }

    .kpi-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .account-charts-section {
        padding: 0 0.75rem 0.5rem;
    }

    .chart-body-medium {
        height: 180px;
    }

    .chart-body-slim {
        height: 90px;
    }

    .chart-header {
        padding: 0.5rem 0.75rem;
    }

    .chart-header h4 {
        font-size: 0.75rem;
    }

    .chart-body-compact {
        height: 140px;
    }
}

/* Dashboard Loading State */
.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.dashboard-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dashboard-loading p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Empty state for charts */
.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.chart-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .contact-grid-two {
        gap: 1.5rem;
    }

    .features-grid {
        gap: 1.5rem 2.5rem;
    }
}

/* Tablets */
@media (max-width: 900px) {
    /* Contact Section */
    .contact-grid-two {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card-large {
        max-width: 100%;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }

    /* Mission Section */
    .mission-image-section {
        min-height: 300px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* ===== NAVIGATION ===== */
    .top-nav {
        padding: 0.5rem 1rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-btn.help-btn span,
    .request-product-btn span {
        display: none;
    }

    .nav-btn.help-btn,
    .request-product-btn {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
    }

    .request-product-btn {
        margin-right: 0.5rem;
    }

    /* ===== HERO SECTION ===== */
    .hero-section {
        min-height: 450px;
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* ===== SECTION TITLES ===== */
    .section-header {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    /* ===== MISSION IMAGE ===== */
    .mission-image-section {
        min-height: 250px;
    }

    .mission-full-image {
        object-position: center;
    }

    /* ===== ABOUT SECTION ===== */
    .about-card-wide {
        padding: 1.5rem;
    }

    .about-float-icons .about-float-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* ===== FEATURES GRID ===== */
    .features-grid {
        padding: 0 1rem;
    }

    .feature-card-new {
        padding: 1.5rem;
    }

    .feature-icon-new {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-card-new h3 {
        font-size: 1.1rem;
    }

    /* ===== CONTACT SECTION ===== */
    .contact-section {
        padding: 3rem 0;
    }

    .contact-card-header {
        padding: 1rem;
    }

    .contact-card-body {
        padding: 1rem;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-card-title h3 {
        font-size: 1.1rem;
    }

    /* Hours Schedule Mobile */
    .hours-schedule {
        gap: 0.25rem;
    }

    .hours-row {
        padding: 0.35rem 0;
    }

    .hours-row .day,
    .hours-row .time {
        font-size: 0.85rem;
    }

    .hours-phone {
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }

    .hours-phone span,
    .hours-phone a {
        font-size: 0.85rem;
    }

    /* Contact Action Block */
    .contact-action-block {
        padding: 1rem;
        margin-top: 1rem;
    }

    .contact-question-text h4 {
        font-size: 0.95rem;
    }

    .contact-question-text p {
        font-size: 0.85rem;
    }

    .btn-email-us {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Location Card */
    .location-address {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-directions {
        width: 100%;
        justify-content: center;
    }

    .map-container {
        height: 250px;
    }

    /* ===== INFO MODALS (Shipping, Returns, Warranty) ===== */
    .info-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .info-modal-content .modal-body {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 1rem;
    }

    .info-modal-header {
        padding: 1.5rem 1rem;
    }

    .info-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .info-modal-header h2 {
        font-size: 1.3rem;
    }

    .info-modal-section {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .info-modal-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .info-modal-section h3 i {
        font-size: 0.85rem;
    }

    .info-modal-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .info-modal-note {
        padding: 0.875rem;
    }

    .info-modal-note p {
        font-size: 0.85rem;
    }

    /* ===== TERMS MODAL ===== */
    .terms-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .terms-modal-content .modal-body {
        max-height: calc(100vh - 60px);
        padding: 1rem;
    }

    .terms-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .terms-intro p {
        font-size: 0.95rem;
    }

    .terms-contact {
        padding: 1rem;
    }

    .terms-contact p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .terms-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    /* ===== CONTACT FORM MODAL ===== */
    .contact-form-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .contact-form-header {
        padding: 1.5rem 1rem 1rem;
        margin: -1rem -1rem 1rem;
        border-radius: 0;
    }

    .contact-form-icon {
        width: 55px;
        height: 55px;
    }

    .contact-form-icon i {
        font-size: 1.5rem;
    }

    .contact-form-header h2 {
        font-size: 1.4rem;
    }

    .contact-form {
        padding: 0 1rem 1rem;
    }

    .contact-form .form-group {
        margin-bottom: 1rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* ===== REQUEST FORM MODAL ===== */
    .request-form-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .request-form-header {
        padding: 1.5rem 1rem 1rem;
        margin: -1rem -1rem 1rem;
        border-radius: 0;
    }

    .request-form-icon {
        width: 55px;
        height: 55px;
    }

    .request-form-icon i {
        font-size: 1.5rem;
    }

    .request-form-header h2 {
        font-size: 1.4rem;
    }

    .request-form-body {
        padding: 0 1rem 1rem;
    }

    /* ===== ACCOUNT MODAL ===== */
    .account-modal-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .account-modal-header {
        padding: 0.75rem 1rem;
        padding-right: 50px;
    }

    .account-header-left h2 {
        font-size: 1.1rem;
    }

    .account-tabs-container {
        padding: 0.5rem;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-tab-btn {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .account-content-grid {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    /* Dashboard KPIs Mobile */
    .dashboard-kpi-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .kpi-card {
        padding: 0.6rem;
    }

    .kpi-value {
        font-size: 1rem;
    }

    .kpi-label {
        font-size: 0.65rem;
    }

    .kpi-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* ===== PRODUCT DETAIL MODAL ===== */
    .product-detail-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-detail-image {
        max-height: 250px;
    }

    .product-detail-info {
        padding: 0 0.5rem;
    }

    .product-detail-title {
        font-size: 1.25rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    /* ===== CART SIDEBAR ===== */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .cart-header {
        padding: 1rem;
    }

    .cart-items {
        padding: 0.75rem;
    }

    .cart-item {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-footer {
        padding: 1rem;
    }

    /* ===== CHECKOUT ===== */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .checkout-section {
        padding: 1rem;
    }

    .checkout-section h3 {
        font-size: 1.1rem;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand img {
        height: 35px;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    /* ===== FILTER SIDEBAR ===== */
    .filters-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 90%;
        max-width: 320px;
        z-index: 1001;
        transition: left 0.3s ease;
        border-radius: 0;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    }

    .filters-sidebar.mobile-open {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .filter-overlay.active {
        display: block;
    }

    /* Mobile Filter Toggle Button */
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--white);
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        width: 100%;
    }

    /* ===== LOGIN MODAL ===== */
    .login-modal-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .login-form {
        padding: 1.5rem 1rem;
    }

    .login-form input {
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* ===== TOAST NOTIFICATIONS ===== */
    .toast {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        transform: none;
        font-size: 0.9rem;
    }

    /* ===== GENERAL MODAL CLOSE BUTTON ===== */
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* ===== QUOTE CONFIRMATION MODAL ===== */
    .quote-confirm-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .quote-confirm-header {
        padding: 1rem;
    }

    .quote-confirm-body {
        padding: 1rem;
    }

    .quote-confirm-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Navigation */
    .nav-left .brand {
        font-size: 1.1rem;
    }

    .nav-left .brand img {
        height: 30px;
    }

    .nav-btn {
        padding: 0.4rem 0.6rem;
    }

    .cart-badge {
        font-size: 0.6rem;
        min-width: 14px;
        padding: 0.1rem 0.25rem;
    }

    /* Hero */
    .hero-section {
        min-height: 400px;
        padding: 2.5rem 0.75rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Products */
    .products-section {
        padding: 2rem 0;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    /* Contact */
    .contact-card-header {
        padding: 0.875rem;
    }

    .contact-card-body {
        padding: 0.875rem;
    }

    .hours-row .day,
    .hours-row .time {
        font-size: 0.8rem;
    }

    .contact-action-block {
        padding: 0.875rem;
    }

    .contact-question-text h4 {
        font-size: 0.9rem;
    }

    .contact-question-text p {
        font-size: 0.8rem;
    }

    /* Modals */
    .info-modal-header h2 {
        font-size: 1.2rem;
    }

    .info-modal-section h3 {
        font-size: 0.9rem;
    }

    .info-modal-section p {
        font-size: 0.85rem;
    }

    /* Account Modal */
    .account-tab-btn {
        min-width: 90px;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .dashboard-kpi-row {
        gap: 0.4rem;
    }

    .kpi-card {
        padding: 0.5rem;
    }

    .kpi-value {
        font-size: 0.9rem;
    }

    .kpi-label {
        font-size: 0.6rem;
    }

    .kpi-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .modal-content {
        max-height: 100vh;
    }

    .info-modal-content .modal-body,
    .terms-modal-content .modal-body {
        max-height: calc(100vh - 50px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-btn,
    .btn,
    button {
        min-height: 44px;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
    }

    /* Remove hover effects that don't work on touch */
    .product-card:hover {
        transform: none;
    }

    .feature-card-new:hover {
        transform: none;
    }

    /* Ensure links and buttons are easily tappable */
    .footer-links a {
        padding: 0.5rem 0;
        display: inline-block;
    }

    .hours-phone a {
        padding: 0.25rem 0;
    }
}

/* ==========================================
   MOBILE HAMBURGER MENU
   ========================================== */

/* Hamburger Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 161, 154, 0.3);
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1101;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.mobile-menu-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Nav Links */
.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: var(--gray-50);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mobile-nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover i {
    color: var(--primary-color);
}

/* Mobile Menu Actions */
.mobile-menu-actions {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    width: 100%;
}

.mobile-action-btn.help-action {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.mobile-action-btn.help-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 212, 197, 0.4);
}

.mobile-action-btn.account-action {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.mobile-action-btn.account-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-action-btn.login-action {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.mobile-action-btn.login-action:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-action-btn.logout-action {
    background: var(--white);
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.mobile-action-btn.logout-action:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ==========================================
   MOBILE NAVIGATION OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none !important;
    }

    /* Compact nav-right - show only essential items */
    .nav-right {
        gap: 0.35rem;
    }

    /* Hide help button on mobile (available in drawer) */
    .nav-btn.help-btn {
        display: none !important;
    }

    /* Hide account details button text */
    .nav-btn.account-btn span {
        display: none;
    }

    .nav-btn.account-btn {
        padding: 0.5rem;
        min-width: 40px;
    }

    /* Compact account switcher */
    .account-switcher-btn {
        padding: 0.4rem 0.6rem;
        gap: 0.3rem;
        font-size: 0.8rem;
        max-width: 130px;
    }

    .account-switcher-name {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-switcher-btn .fa-building {
        font-size: 0.9rem;
    }

    .account-switcher-arrow {
        font-size: 0.65rem;
    }

    /* Compact cart button */
    .nav-btn.cart-btn span {
        display: none;
    }

    .nav-btn.cart-btn {
        padding: 0.5rem;
        min-width: 40px;
    }

    /* Hide logout on mobile (available in drawer) */
    .nav-btn.logout-btn {
        display: none !important;
    }

    /* Hide login button text on mobile */
    .nav-btn.login-btn span {
        display: none;
    }

    .nav-btn.login-btn {
        padding: 0.5rem;
        min-width: 40px;
    }

    /* Ensure nav container doesn't overflow */
    .nav-container {
        gap: 0.5rem;
    }

    .nav-left .logo-container {
        gap: 0.5rem;
    }

    .nav-left .logo-container .logo {
        height: 32px;
    }

    .nav-left .logo-container .logo-text {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .nav-left .logo-container .logo-text {
        display: none;
    }

    .account-switcher-btn {
        max-width: 100px;
    }

    .account-switcher-name {
        max-width: 50px;
    }
}

/* ==========================================
   COMPACT MOBILE FILTERS
   ========================================== */

/* Mobile filter overlay */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile filter toggle button - hidden on desktop */
.mobile-filter-toggle {
    display: none;
}

/* Mobile filter header - hidden on desktop */
.mobile-filter-header {
    display: none;
}

@media (max-width: 768px) {
    /* Filter sidebar as slide-out drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 300px;
        height: 100vh;
        z-index: 1050;
        background: var(--white);
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        border-radius: 0;
        overflow: hidden;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    /* Filter section header with close button */
    .filter-section {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    /* Mobile filter header */
    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 1rem;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: var(--white);
        flex-shrink: 0;
    }

    .mobile-filter-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--white);
    }

    .mobile-filter-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: var(--white);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: background 0.2s ease;
    }

    .mobile-filter-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Scrollable filter content with max height */
    .filter-groups-container {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Compact filter groups */
    .filter-group {
        border-bottom: 1px solid var(--gray-200);
        margin: 0;
        border-radius: 0;
    }

    .filter-group-toggle {
        padding: 0.75rem 1rem;
        background: var(--gray-50);
        font-size: 0.85rem;
    }

    .filter-group-toggle i:first-child {
        font-size: 0.8rem;
    }

    .filter-body {
        padding: 0.5rem 1rem 0.75rem;
        max-height: 180px;
        overflow-y: auto;
    }

    /* Compact filter options */
    .filter-option {
        padding: 0.35rem 0;
    }

    .filter-option label {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .filter-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    /* Mobile filter toggle button */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--white);
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        width: 100%;
        margin-bottom: 1rem;
    }

    .mobile-filter-toggle:hover,
    .mobile-filter-toggle:active {
        background: var(--primary-color);
        color: var(--white);
    }

    /* Active filter count badge */
    .filter-count-badge {
        background: var(--primary-color);
        color: var(--white);
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
        border-radius: 10px;
        font-weight: 600;
    }

    .mobile-filter-toggle:hover .filter-count-badge,
    .mobile-filter-toggle:active .filter-count-badge {
        background: var(--white);
        color: var(--primary-color);
    }

    /* Container adjustments for mobile */
    .container-full {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Products layout adjustments */
    .main-container {
        display: block;
    }

    /* Ensure main container is visible even without reveal animation */
    .main-container.reveal {
        opacity: 1;
        transform: none;
    }

    .products-section {
        width: 100%;
        min-height: 200px;
        position: relative;
        z-index: 1;
    }

    /* Results header for mobile */
    .results-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .results-info {
        text-align: center;
        width: 100%;
    }

    .results-info h2 {
        font-size: 1.25rem;
    }

    .search-bar-compact {
        width: 100%;
    }

    .sort-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .sort-controls label {
        display: none;
    }

    /* Hide view toggle on mobile - only grid view allowed */
    .view-toggle {
        display: none;
    }

    .request-product-btn span {
        display: none;
    }

    .request-product-btn {
        padding: 0.5rem;
        min-width: 40px;
    }

    /* Products header compact */
    .products-header {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    .products-header h2 {
        font-size: 1.25rem;
    }

    /* Search bar */
    .search-bar-container {
        width: 100%;
    }

    .search-bar {
        font-size: 0.9rem;
        padding: 0.6rem 1rem 0.6rem 2.5rem;
    }

    /* Products controls row */
    .products-controls {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .products-controls-left {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .products-controls-right {
        width: 100%;
        justify-content: space-between;
    }

    /* View toggle and sort */
    .view-toggle {
        gap: 0.25rem;
    }

    .view-btn {
        padding: 0.5rem;
        min-width: 36px;
    }

    .sort-select {
        font-size: 0.85rem;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }

    /* Filter tags */
    .filter-tags-container {
        padding: 0 0.75rem;
    }

    .filter-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    /* Products grid */
    .products-grid {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    /* Ensure single column on mobile */
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    /* Product cards - more compact */
    .product-card {
        padding: 0.875rem;
    }

    .product-image-container {
        height: 160px;
    }

    .product-info {
        padding: 0.75rem 0 0;
    }

    .product-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-actions {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .product-actions button {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* ==========================================
   ADMIN IMPERSONATION STYLES
   ========================================== */

/* Admin button in navigation */
.nav-btn.admin-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.admin-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.nav-btn.admin-btn i {
    font-size: 1.1rem;
}

/* Mobile admin button */
.mobile-action-btn.admin-action {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
}

.mobile-action-btn.admin-action:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Impersonation Banner */
.impersonation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    z-index: 10001;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.impersonation-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.impersonation-banner-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.impersonation-banner-left i {
    font-size: 1.25rem;
    opacity: 0.9;
}

.impersonate-user-info {
    font-size: 0.95rem;
}

.impersonation-exit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impersonation-exit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Body/Nav adjustments when impersonating */
body.impersonating .top-nav {
    top: 52px;
}

body.impersonating .top-nav.scrolled {
    top: 52px;
}

/* Mobile adjustments for impersonation banner */
@media (max-width: 768px) {
    .impersonation-banner {
        padding: 0.5rem 0.75rem;
    }

    .impersonation-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .impersonation-banner-left {
        flex-direction: column;
        gap: 0.25rem;
    }

    .impersonate-user-info {
        font-size: 0.85rem;
    }

    .impersonation-exit-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    body.impersonating .top-nav {
        top: 80px;
    }

    body.impersonating .top-nav.scrolled {
        top: 80px;
    }
}

/* ==========================================
   ACCOUNT MODAL LOADING OVERLAY
   ========================================== */
.account-modal-loading {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.account-modal-loading.active {
    display: flex;
    animation: accountLoadingFadeIn 220ms ease-out;
}

.account-modal-loading.hiding {
    animation: accountLoadingFadeOut 280ms ease-out forwards;
}

@keyframes accountLoadingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes accountLoadingFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.account-modal-loading-inner {
    text-align: center;
    max-width: 420px;
    padding: 2rem;
}

.account-modal-loading-spinner {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
}

.account-modal-loading-spinner .spinner-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color, #0dd4c5);
    animation: accountLoadingSpin 1.4s linear infinite;
}

.account-modal-loading-spinner .spinner-orbit-2 {
    inset: 8px;
    border: 3px solid transparent;
    border-right-color: var(--primary-dark, #0ab3a5);
    animation-duration: 2s;
    animation-direction: reverse;
}

.account-modal-loading-spinner .spinner-orbit-3 {
    inset: 18px;
    border: 2px solid transparent;
    border-bottom-color: rgba(13, 212, 197, 0.5);
    animation-duration: 2.6s;
}

.account-modal-loading-spinner .spinner-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-color, #0dd4c5);
    animation: accountLoadingPulse 1.8s ease-in-out infinite;
}

@keyframes accountLoadingSpin {
    to { transform: rotate(360deg); }
}

@keyframes accountLoadingPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.account-modal-loading-inner h3 {
    font-size: 18px;
    color: var(--gray-900, #111827);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.account-modal-loading-inner p {
    font-size: 13px;
    color: var(--gray-600, #4B5563);
    margin: 0 0 1.25rem 0;
    min-height: 1.2em;
}

.account-modal-loading-progress {
    margin-top: 0.5rem;
}

.account-modal-loading-bar {
    height: 6px;
    background: var(--gray-200, #E5E7EB);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.account-modal-loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #0dd4c5), var(--primary-dark, #0ab3a5));
    width: 0%;
    transition: width 300ms ease-out;
    border-radius: 999px;
}

.account-modal-loading-pct {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-dark, #0ab3a5);
    letter-spacing: 0.04em;
}

/* ==========================================
   CHART EMPTY STATES (Invoice Status, Monthly Activity)
   ========================================== */
.chart-empty-state {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
    text-align: center;
    animation: chartEmptyFadeIn 400ms ease-out;
}

@keyframes chartEmptyFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.chart-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.15), rgba(10, 179, 165, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color, #0dd4c5);
    margin-bottom: 4px;
}

.chart-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1F2937);
}

.chart-empty-sub {
    font-size: 12px;
    color: var(--gray-500, #6B7280);
    max-width: 260px;
    line-height: 1.45;
}

/* ==========================================
   PARENT ACCOUNT AGGREGATED VIEW
   Enhancements to the Account Details modal when selectedAccount
   has children. All elements are `display: none` by default and
   toggled on by the renderers.
   ========================================== */

.parent-mode-strip {
    margin: 1rem 1.5rem;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(13, 212, 197, 0.12), rgba(10, 179, 165, 0.08));
    border: 1px solid rgba(13, 212, 197, 0.3);
    border-radius: var(--radius-lg, 10px);
    position: relative;
    overflow: hidden;
}

.parent-mode-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: parentStripShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes parentStripShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.parent-mode-strip-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.parent-mode-strip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-color, #0dd4c5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.parent-mode-strip-text {
    flex: 1;
    min-width: 0;
}

.parent-mode-strip-title {
    font-size: 15px;
    color: var(--gray-900, #111827);
    line-height: 1.3;
}

.parent-mode-strip-sub {
    font-size: 12px;
    color: var(--gray-600, #4B5563);
    margin-top: 2px;
}

.parent-mode-refresh-btn {
    background: transparent;
    border: 1px solid var(--gray-300, #D1D5DB);
    color: var(--gray-700, #374151);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.parent-mode-refresh-btn:hover {
    background: var(--gray-100, #F3F4F6);
    border-color: var(--primary-color, #0dd4c5);
    color: var(--primary-color, #0dd4c5);
    transform: rotate(60deg);
}

/* Progress bar */
.parent-mode-progress {
    margin: 0 1.5rem 1rem;
}

.parent-progress-inner {
    padding: 10px 14px;
    background: var(--gray-50, #F9FAFB);
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: 8px;
}

.parent-progress-text {
    font-size: 12px;
    color: var(--gray-600, #4B5563);
    margin-bottom: 6px;
}

.parent-progress-bar {
    height: 6px;
    background: var(--gray-200, #E5E7EB);
    border-radius: 999px;
    overflow: hidden;
}

.parent-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #0dd4c5), var(--primary-dark, #0ab3a5));
    transition: width 250ms ease-out;
}

/* Errors warning */
.parent-mode-errors {
    margin: 0 1.5rem 1rem;
}

.parent-errors-inner {
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #78350F;
}

.parent-errors-inner > i {
    color: #D97706;
    font-size: 16px;
    margin-top: 2px;
}

.parent-errors-names {
    display: block;
    color: var(--gray-700, #374151);
    margin-top: 2px;
}

/* Breakdown table */
.parent-mode-breakdown {
    margin: 0 1.5rem 1.5rem;
}

.breakdown-card {
    background: #fff;
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: var(--radius-lg, 10px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
}

.breakdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100, #F3F4F6);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(to right, rgba(13, 212, 197, 0.03), transparent 60%);
}

.breakdown-header h4 {
    margin: 0;
    font-size: 14px;
    color: var(--gray-900, #111827);
    font-weight: 600;
}

.breakdown-header h4 i {
    color: var(--primary-color, #0dd4c5);
    margin-right: 6px;
}

.breakdown-count-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-dark, #0ab3a5);
    background: rgba(13, 212, 197, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.breakdown-table-wrapper {
    max-height: 320px;
    overflow-y: auto;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.breakdown-table thead th {
    position: sticky;
    top: 0;
    background: var(--gray-50, #F9FAFB);
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600, #4B5563);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
    z-index: 1;
}

.breakdown-th-account {
    text-align: left;
}

.breakdown-th-num {
    text-align: right;
}

.breakdown-table tbody tr {
    border-bottom: 1px solid var(--gray-100, #F3F4F6);
    position: relative;
}

/* Totals footer */
.breakdown-totals-row {
    background: var(--gray-50, #F9FAFB) !important;
    border-top: 2px solid var(--gray-200, #E5E7EB);
    font-weight: 600;
    cursor: default !important;
    animation: none !important;
    transform: none !important;
}

.breakdown-totals-row:hover {
    background: var(--gray-50, #F9FAFB) !important;
    transform: none !important;
    box-shadow: none !important;
}

.breakdown-totals-row td {
    color: var(--gray-900, #111827) !important;
    padding: 12px 12px !important;
}

.breakdown-row-parent {
    background: rgba(13, 212, 197, 0.04);
}

/* Staggered row fade-in */
.breakdown-table tbody tr {
    animation: breakdownRowFadeIn 380ms ease-out both;
}

@keyframes breakdownRowFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Proportional bars under numeric cells */
.breakdown-num-main {
    line-height: 1.2;
}

.breakdown-bar {
    height: 3px;
    background: var(--gray-100, #F3F4F6);
    border-radius: 999px;
    margin-top: 4px;
    overflow: hidden;
    min-width: 50px;
    margin-left: auto;
    max-width: 120px;
}

.breakdown-bar > div {
    height: 100%;
    border-radius: 999px;
    transition: width 500ms ease-out;
}

.breakdown-bar-invoiced > div {
    background: var(--primary-color, #0dd4c5);
}

.breakdown-bar-pipeline > div {
    background: #a78bfa;
}

.breakdown-table td {
    padding: 10px 12px;
    color: var(--gray-800, #1F2937);
    vertical-align: middle;
}

.breakdown-account-cell {
    min-width: 180px;
}

.breakdown-account-name {
    font-weight: 500;
    color: var(--gray-900, #111827);
    margin-right: 8px;
}

.breakdown-role-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 4px;
    vertical-align: middle;
}

.breakdown-role-parent {
    background: var(--primary-color, #0dd4c5);
    color: #fff;
}

.breakdown-role-child {
    background: var(--gray-100, #F3F4F6);
    color: var(--gray-700, #374151);
}

.breakdown-role-error {
    background: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
}

.breakdown-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.breakdown-collected { color: #047857; }
.breakdown-outstanding { color: #B91C1C; }

.breakdown-empty {
    text-align: center;
    color: var(--gray-500, #6B7280);
    padding: 20px !important;
}

/* Filter chips strip */
.parent-filter-chips-container {
    margin: 0 0 12px 0;
}

.parent-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.parent-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--gray-300, #D1D5DB);
    border-radius: 999px;
    font-size: 12px;
    color: var(--gray-700, #374151);
    cursor: pointer;
    transition: all 120ms ease;
    font-family: inherit;
}

.parent-chip:hover {
    border-color: var(--primary-color, #0dd4c5);
    color: var(--primary-dark, #0ab3a5);
}

.parent-chip-active {
    background: var(--primary-color, #0dd4c5);
    border-color: var(--primary-color, #0dd4c5);
    color: #fff;
}

.parent-chip-active:hover {
    color: #fff;
    background: var(--primary-dark, #0ab3a5);
    border-color: var(--primary-dark, #0ab3a5);
}

.parent-chip-label {
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parent-chip-count {
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
}

.parent-chip-active .parent-chip-count {
    background: rgba(255, 255, 255, 0.25);
}

.parent-chip-overflow select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300, #D1D5DB);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    color: var(--gray-700, #374151);
    cursor: pointer;
    font-family: inherit;
}

/* Account chip on quote/invoice cards */
.card-account-row {
    padding: 6px 14px 0 14px;
}

.source-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: rgba(13, 212, 197, 0.12);
    color: var(--primary-dark, #0ab3a5);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-account-chip i {
    font-size: 10px;
}

/* Load more button */
.parent-load-more-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 0 4px 0;
    flex-wrap: wrap;
}

.parent-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--primary-color, #0dd4c5);
    color: var(--primary-dark, #0ab3a5);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 120ms ease;
    font-family: inherit;
}

.parent-load-more-btn:hover {
    background: var(--primary-color, #0dd4c5);
    color: #fff;
}

.parent-load-more-showing {
    font-size: 12px;
    color: var(--gray-500, #6B7280);
}

/* Responsive */
@media (max-width: 768px) {
    .breakdown-table thead th,
    .breakdown-table td {
        padding: 8px 8px;
        font-size: 11px;
    }
    .breakdown-account-cell {
        min-width: 120px;
    }
    .parent-mode-strip-inner {
        gap: 10px;
    }
    .parent-mode-strip-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .parent-chip {
        font-size: 11px;
        padding: 5px 10px;
    }
}