/* ============================================
   VIDEO HERO SECTION
   ============================================ */

.video-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Show video once loaded */
.video-hero__video.loaded {
    opacity: 1;
}

/* Poster/fallback background while video loads */
.video-hero__poster {
    position: absolute;
    inset: 0;
    background: url('../images/homepage-image.png') center/cover no-repeat, linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    z-index: 0;
    transition: opacity 0.5s ease;
}

.video-hero__placeholder {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.video-hero__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, #0a0a0a 70%);
    pointer-events: none;
}

/* Light mode hero - keep it similar to dark mode but with subtle adjustments */
/* Use a soft dark vignette instead of white for better image visibility */
[data-theme="light"] .video-hero__vignette {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(250, 250, 250, 0.65) 75%);
}

[data-theme="light"] .video-hero__poster {
    background: url('../images/homepage-image.png') center/cover no-repeat, linear-gradient(135deg, #f5f5f7 0%, #e8e8eb 50%, #f5f5f7 100%);
}

[data-theme="light"] .video-hero__placeholder {
    background: var(--gradient-hero);
}

/* Add a subtle overlay to darken the image slightly for better text contrast */
[data-theme="light"] .video-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .video-hero__content {
    z-index: 2;
}

/* Hero buttons in light mode - keep white/light styling since we have dark overlay */
[data-theme="light"] .video-hero__btn--primary {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .video-hero__btn--primary:hover {
    background: #ffffff;
    opacity: 0.95;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .video-hero__btn--secondary {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .video-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .video-hero__scroll {
    color: rgba(255, 255, 255, 0.5);
}

/* Hero text in light mode - keep white text since we have the dark overlay */
[data-theme="light"] .video-hero__title {
    color: #ffffff;
}

[data-theme="light"] .video-hero__title::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.4) 80%, transparent);
}

[data-theme="light"] .video-hero__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.video-hero__blur-mask {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    opacity: 0.4;
}

.video-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -60px; /* Lift content up for better visual balance */
}

.video-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
    padding-bottom: 0;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.video-hero__title > span {
    display: block;
    white-space: nowrap;
}

.video-hero__title .highlight {
    display: inline;
    color: rgba(255, 255, 255, 0.5);
}

/* No underline for editorial style */
.video-hero__title::after {
    display: none;
}

.video-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 16px;
    line-height: 1.6;
    text-align: center;
    letter-spacing: 0.02em;
}

.video-hero__tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 48px;
    text-align: center;
    letter-spacing: 0.03em;
}

.video-hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.video-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.video-hero__btn--primary {
    background: #ffffff;
    color: #0a0a0a;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.video-hero__btn--primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.video-hero__btn--secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* VA-HERO - Platform Section */
.va-hero {
    padding: 100px 0 140px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Elegant ambient lighting for platform section */
.va-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 70% 30%, rgba(80, 100, 160, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(60, 80, 140, 0.03) 0%, transparent 45%),
        radial-gradient(ellipse 100% 40% at 50% 100%, rgba(40, 60, 120, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

[data-theme="light"] .va-hero::before {
    background:
        radial-gradient(ellipse 70% 50% at 70% 30%, rgba(180, 200, 240, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(160, 180, 220, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 100% 40% at 50% 100%, rgba(140, 160, 200, 0.04) 0%, transparent 40%);
}

.va-hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.va-hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7a94;
    margin-bottom: 24px;
}

.va-hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.va-hero-text h1 span {
    display: block;
}

.va-hero-text h1 span:first-child {
    color: #ffffff;
}

.va-hero-text h1 span:last-child {
    color: #5a6a82;
}

.va-hero-subtitle {
    font-size: 17px;
    color: #8a96a8;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 440px;
    opacity: 0.85;
}

/* App Preview - Option C: Minimalist Elegance */
.va-app-preview {
    perspective: 2000px;
    max-width: 120%; /* Enlarge by 20% for better dashboard visibility */
    width: 120%;
    margin: 0 auto;
}

.va-app-window {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(4deg);
    transition: transform 0.6s var(--ease-out);
    box-shadow:
        0 50px 100px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.03) inset;
}

.va-app-window:hover {
    transform: rotateY(-3deg) rotateX(2deg);
}

.va-app-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.va-app-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.va-app-dot:nth-child(1) { background: #ff5f56; }
.va-app-dot:nth-child(2) { background: #ffbd2e; }
.va-app-dot:nth-child(3) { background: #27ca40; }

/* Enhanced interactive click prompt - draws attention to interactivity */
.click-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
    color: #ffffff;
    padding: 10px 20px;
    background: rgba(100, 150, 255, 0.12);
    border-radius: 100px;
    border: 1.5px solid rgba(100, 150, 255, 0.4);
    animation: attractiveGlow 2s ease-in-out infinite;
    box-shadow:
        0 0 15px rgba(100, 150, 255, 0.2),
        0 0 30px rgba(100, 150, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.click-prompt:hover {
    background: rgba(100, 150, 255, 0.18);
    border-color: rgba(100, 150, 255, 0.6);
    box-shadow:
        0 0 20px rgba(100, 150, 255, 0.3),
        0 0 40px rgba(100, 150, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes attractiveGlow {
    0%, 100% {
        background: rgba(100, 150, 255, 0.12);
        box-shadow:
            0 0 15px rgba(100, 150, 255, 0.2),
            0 0 30px rgba(100, 150, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(100, 150, 255, 0.4);
    }
    50% {
        background: rgba(100, 150, 255, 0.18);
        box-shadow:
            0 0 25px rgba(100, 150, 255, 0.35),
            0 0 50px rgba(100, 150, 255, 0.2),
            0 0 80px rgba(100, 150, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: rgba(100, 150, 255, 0.6);
    }
}

.click-prompt svg {
    animation: pulseArrow 1.8s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes pulseArrow {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.9;
    }
    50% {
        transform: translate(4px, 4px);
        opacity: 1;
    }
}

.va-app-content {
    padding: 24px;
}

.va-app-tabs {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: #0a0a0a;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* Tab text variants - desktop shows full text, mobile shows short */
.tab-text-desktop {
    display: inline;
}
.tab-text-mobile {
    display: none;
}

.va-app-tab {
    flex: 1;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.va-app-tab.active {
    background: #1a1a1a;
    color: var(--text-primary);
}

.va-app-tab:hover:not(.active) {
    color: var(--text-secondary);
}

.va-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Minimalist Elegant Cards */
.va-app-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.va-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.va-app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    background: #181818;
}

.va-app-card:hover::before {
    opacity: 1;
}

.va-app-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #1a1a1a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.va-app-card:hover .va-app-card-icon {
    transform: scale(1.1);
    background: #222;
}

.va-app-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.va-app-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* About/Why Hero Sections */
.about-hero,
.why-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 40px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Elegant ambient glow for hero sections */
.about-hero::before,
.why-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(100, 120, 180, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(80, 100, 160, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(80, 100, 160, 0.04) 0%, transparent 45%);
    pointer-events: none;
}

[data-theme="light"] .about-hero::before,
[data-theme="light"] .why-hero::before {
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(180, 200, 240, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(160, 180, 220, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(160, 180, 220, 0.06) 0%, transparent 45%);
}

.about-hero__content,
.why-hero__content {
    text-align: center;
    max-width: 800px;
}

.about-hero__content h1,
.why-hero__content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.why-hero__content h1 span {
    display: block;
}

.about-hero__content p,
.why-hero__content p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   LIGHT MODE - Dashboard Demo
   ============================================ */

[data-theme="light"] .va-app-window {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

[data-theme="light"] .va-app-titlebar {
    background: #f8f8f8;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .click-prompt {
    color: #0a5dd8;
    background: rgba(10, 93, 216, 0.08);
    border-color: rgba(10, 93, 216, 0.3);
    box-shadow:
        0 0 15px rgba(10, 93, 216, 0.15),
        0 0 30px rgba(10, 93, 216, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: attractiveGlowLight 2s ease-in-out infinite;
}

[data-theme="light"] .click-prompt:hover {
    background: rgba(10, 93, 216, 0.12);
    border-color: rgba(10, 93, 216, 0.5);
    box-shadow:
        0 0 20px rgba(10, 93, 216, 0.25),
        0 0 40px rgba(10, 93, 216, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@keyframes attractiveGlowLight {
    0%, 100% {
        background: rgba(10, 93, 216, 0.08);
        box-shadow:
            0 0 15px rgba(10, 93, 216, 0.15),
            0 0 30px rgba(10, 93, 216, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        border-color: rgba(10, 93, 216, 0.3);
    }
    50% {
        background: rgba(10, 93, 216, 0.12);
        box-shadow:
            0 0 25px rgba(10, 93, 216, 0.28),
            0 0 50px rgba(10, 93, 216, 0.15),
            0 0 80px rgba(10, 93, 216, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border-color: rgba(10, 93, 216, 0.5);
    }
}

[data-theme="light"] .va-app-content {
    background: #ffffff;
}

[data-theme="light"] .va-app-tabs {
    background: #f0f0f0;
}

[data-theme="light"] .va-app-tab.active {
    background: #ffffff;
}

[data-theme="light"] .va-app-card {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .va-app-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.3), transparent);
}

[data-theme="light"] .va-app-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

[data-theme="light"] .va-app-card-icon {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .va-app-card:hover .va-app-card-icon {
    background: #e8e8e8;
}

@media (max-width: 1024px) {
    .va-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Center the hero text on tablet/mobile */
    .va-hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .va-hero-text h1 {
        text-align: center;
    }

    .va-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .va-hero .container {
        padding: 0 24px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .va-app-preview {
        display: block;
        perspective: none;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .va-app-window {
        transform: none !important;
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        width: 100%;
        max-width: 100%;
    }

    .va-app-window:hover {
        transform: none !important;
    }

    /* Simplified click prompt on tablet */
    .click-prompt {
        padding: 6px 12px;
        font-size: 10px;
        gap: 6px;
    }

    .click-prompt svg {
        width: 12px;
        height: 12px;
    }

    /* Adjust tab content height for tablet - keep fixed */
    .tab-content-wrapper {
        height: 360px;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .video-hero__content {
        margin-top: -40px;
        padding: 0 24px;
    }

    .video-hero__title {
        font-size: clamp(26px, 8vw, 38px);
        letter-spacing: -0.01em;
        margin-bottom: 24px;
    }

    .video-hero__title > span {
        white-space: normal;
    }

    .video-hero__subtitle {
        font-size: 14px;
        max-width: 300px;
        margin-bottom: 12px;
    }

    .video-hero__tagline {
        font-size: 12px;
        margin-bottom: 36px;
    }

    .video-hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .video-hero__btn {
        width: 100%;
        justify-content: center;
    }

    /* ============================================
       MOBILE DASHBOARD - COMPLETE REWRITE
       ============================================ */

    .va-hero {
        padding: 60px 0 80px;
        overflow-x: hidden;
    }

    .va-hero-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .va-hero-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .va-hero-label {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .va-hero-text h1 {
        font-size: clamp(28px, 8vw, 40px);
        text-align: center;
        width: 100%;
        word-wrap: break-word;
    }

    .va-hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
        max-width: 340px;
        text-align: center;
        margin: 0 auto 24px;
        padding: 0;
    }

    .va-app-preview {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .va-app-window {
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .va-app-titlebar {
        padding: 10px 14px;
    }

    .va-app-dot {
        width: 10px;
        height: 10px;
    }

    /* Mobile click prompt - compact inline version */
    .click-prompt {
        padding: 4px 10px;
        font-size: 9px;
        gap: 5px;
        border-radius: 12px;
    }

    .click-prompt svg {
        width: 11px;
        height: 11px;
    }

    .va-app-content {
        padding: 10px;
        overflow-x: hidden;
    }

    /* Mobile Tabs - Scrollable horizontal layout */
    .va-app-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 4px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .va-app-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Hide only My Products tab on mobile */
    .va-app-tab[data-tab="products"] {
        display: none;
    }

    /* Tab text - show mobile version (short), hide desktop version (long) */
    .tab-text-desktop {
        display: none;
    }
    .tab-text-mobile {
        display: inline;
    }

    .va-app-tab {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 10px;
        white-space: nowrap;
        border-radius: 8px;
        transition: all 0.2s ease;
        cursor: pointer;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .va-app-tab.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .va-app-tab:active {
        transform: scale(0.98);
    }

    /* Mobile Tab Content Wrapper - Flexible height */
    .tab-content-wrapper {
        height: auto;
        min-height: 320px;
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
    }

    /* ==================== MOBILE OVERVIEW TAB ==================== */
    #tab-overview {
        height: 100%;
        gap: 10px;
        padding: 0 !important;
    }

    /* Mobile Stat Cards - 2x2 Grid */
    .overview-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        margin-bottom: 10px;
        flex-shrink: 0;
        padding: 0 2px;
    }

    /* Mobile Stat Card - Horizontal layout: icon | value + label */
    .stat-card {
        padding: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-height: auto;
        border-radius: 10px;
        background: #151515;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Icon on left side */
    .stat-card-top {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* Hide badge on mobile for cleaner look */
    .stat-card .stat-badge {
        display: none;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Value and label on right side */
    .stat-value {
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 2px;
        color: var(--text-primary);
    }

    .stat-label {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        opacity: 0.6;
        white-space: nowrap;
    }

    /* Mobile Orders List */
    .orders-list {
        border-radius: 10px;
        flex: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        background: #151515;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .orders-header {
        padding: 12px 14px;
        border-radius: 10px 10px 0 0;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .orders-title {
        font-size: 12px;
        gap: 8px;
        font-weight: 600;
    }

    .orders-title-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .orders-count {
        font-size: 10px;
        opacity: 0.6;
    }

    /* Mobile Order Row - Flex layout for better control */
    .order-row {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        grid-template-columns: unset !important;
    }

    .order-row:last-child {
        border-bottom: none;
    }

    .order-garments {
        flex-shrink: 0;
        width: 36px;
        display: flex;
    }

    .order-garment {
        width: 36px;
        height: 36px;
        margin-left: 0 !important;
        border-radius: 6px;
        border: 2px solid #151515;
        flex-shrink: 0;
    }

    /* Only show first garment image on mobile */
    .order-garment:not(:first-child) {
        display: none !important;
    }

    .order-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .order-id {
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .order-details {
        font-size: 9px;
        opacity: 0.5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Show progress bar inline with status */
    .order-progress {
        display: flex !important;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .order-progress .progress-bar {
        width: 50px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }

    .order-progress .progress-fill {
        height: 100%;
        border-radius: 2px;
    }

    .order-progress .progress-text {
        font-size: 9px;
        color: var(--text-secondary);
        white-space: nowrap;
    }

    /* Hide status badge on mobile - progress text shows status */
    .order-status {
        display: none !important;
    }

    /* ==================== MOBILE PRODUCTS TAB ==================== */
    .products-header {
        padding: 10px 12px;
        border-radius: 10px 10px 0 0;
    }

    .products-title {
        font-size: 10px;
        gap: 6px;
    }

    .products-title-icon {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .products-count {
        font-size: 8px;
    }

    .products-grid-compact {
        border-radius: 0 0 10px 10px;
    }

    .product-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }

    .product-row-img {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .product-row-info {
        flex: 1;
        min-width: 0;
    }

    .product-row-name {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .product-row-details {
        font-size: 9px;
    }

    .product-row-stats {
        display: none;
    }

    .product-row-status {
        padding: 5px 10px;
        font-size: 9px;
        flex-shrink: 0;
    }

    /* ==================== MOBILE PRODUCTION TAB ==================== */
    #tab-production {
        justify-content: flex-start;
        gap: 8px;
    }

    .production-flow {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .production-flow::before {
        display: none;
    }

    .production-stage {
        padding: 8px 4px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .stage-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin: 0 auto 4px;
        border-radius: 8px;
    }

    .stage-icon svg {
        width: 14px;
        height: 14px;
    }

    .stage-name {
        font-size: 8px;
        margin-bottom: 2px;
        font-weight: 500;
        opacity: 0.7;
    }

    .stage-count {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .stage-label {
        font-size: 7px;
        opacity: 0.5;
    }

    .production-items {
        margin-top: 0;
        padding: 8px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .production-item {
        padding: 10px;
        gap: 10px;
        border-radius: 8px;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }

    .production-item:last-child {
        margin-bottom: 0;
    }

    /* Show only first 3 production items on mobile */
    .production-item:nth-child(n+4) {
        display: none;
    }

    .production-item-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .production-item-info {
        flex: 1;
        min-width: 0;
    }

    .production-item-name {
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .production-item-id {
        font-size: 9px;
        opacity: 0.5;
    }

    .production-item-progress {
        display: none;
    }

    .production-item-status {
        padding: 5px 8px;
        font-size: 8px;
        border-radius: 5px;
        flex-shrink: 0;
    }

    .item-progress-bar {
        height: 4px;
        border-radius: 2px;
    }

    /* ==================== MOBILE CALENDAR TAB ==================== */
    #tab-calendar {
        justify-content: flex-start;
        height: 100%;
        gap: 8px;
    }

    .calendar-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        height: 100%;
    }

    .calendar-grid {
        padding: 10px;
        border-radius: 10px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.03);
    }

    .calendar-header {
        margin-bottom: 10px;
    }

    .calendar-month {
        font-size: 13px;
        font-weight: 600;
    }

    .calendar-nav-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-radius: 6px;
    }

    .calendar-weekdays {
        gap: 2px;
        margin-bottom: 4px;
    }

    .calendar-weekday {
        font-size: 8px;
        padding: 4px 2px;
        opacity: 0.5;
    }

    .calendar-days {
        gap: 2px;
    }

    .calendar-day {
        font-size: 10px;
        border-radius: 4px;
        font-weight: 500;
        padding: 4px 2px;
    }

    .calendar-day.has-event::after {
        bottom: 2px;
        width: 3px;
        height: 3px;
    }

    .calendar-events {
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        flex: 1;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        display: flex;
        flex-direction: column;
    }

    .events-title {
        font-size: 12px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .events-title svg {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .event-item {
        padding: 10px;
        margin-bottom: 6px;
        border-radius: 8px;
        border-left-width: 3px;
    }

    .event-item:last-child {
        margin-bottom: 0;
    }

    /* Show only first 2 events on mobile */
    .event-item:nth-child(n+3) {
        display: none;
    }

    .event-date {
        font-size: 9px;
        margin-bottom: 2px;
        opacity: 0.6;
    }

    .event-name {
        font-size: 11px;
        margin-bottom: 2px;
        font-weight: 600;
    }

    .event-desc {
        font-size: 9px;
        opacity: 0.6;
    }

    /* ==================== MOBILE MESSAGES TAB ==================== */
    #tab-messages {
        justify-content: flex-start;
        height: 100%;
        gap: 8px;
    }

    .messages-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        height: 100%;
    }

    .messages-list {
        border-radius: 10px;
        max-height: none;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        flex-shrink: 0;
    }

    .messages-list-header {
        padding: 10px 12px;
        font-size: 11px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .message-thread {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .message-thread:last-child {
        border-bottom: none;
    }

    /* Show only first 2 message threads on mobile */
    .message-thread:nth-child(n+3) {
        display: none;
    }

    .message-thread-header {
        margin-bottom: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .message-sender {
        font-size: 11px;
        font-weight: 600;
    }

    .message-time {
        font-size: 9px;
        opacity: 0.5;
    }

    .message-preview {
        font-size: 10px;
        opacity: 0.6;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .message-unread {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #3b82f6;
    }

    .messages-chat {
        border-radius: 10px;
        min-height: 0;
        background: rgba(255, 255, 255, 0.03);
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    .chat-header {
        padding: 10px 12px;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-shrink: 0;
    }

    .chat-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
        border-radius: 8px;
    }

    .chat-name {
        font-size: 12px;
        font-weight: 600;
    }

    .chat-status {
        font-size: 9px;
        opacity: 0.5;
    }

    .chat-messages {
        padding: 10px;
        min-height: 80px;
        flex: 1;
        overflow-y: auto;
    }

    .chat-bubble {
        padding: 8px 12px;
        font-size: 10px;
        max-width: 85%;
        margin-bottom: 6px;
        border-radius: 10px;
        line-height: 1.4;
    }

    .chat-bubble.sent {
        background: rgba(59, 130, 246, 0.2);
        margin-left: auto;
        border-bottom-right-radius: 4px;
    }

    .chat-bubble.received {
        background: rgba(255, 255, 255, 0.06);
        border-bottom-left-radius: 4px;
    }

    /* Show only first 2 chat bubbles on mobile */
    .chat-bubble:nth-child(n+3) {
        display: none;
    }

    .chat-input {
        padding: 8px 10px;
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        flex-shrink: 0;
    }

    .chat-input input {
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        flex: 1;
    }

    .chat-send {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
        background: rgba(59, 130, 246, 0.3);
        flex-shrink: 0;
    }

    /* ==================== MOBILE IDEAS TAB ==================== */
    #tab-ideas {
        justify-content: flex-start;
        padding: 8px !important;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Vertical stack for columns on mobile - 1 per row */
    .ideas-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .ideas-column {
        width: 100% !important;
        min-width: unset !important;
        flex: none !important;
        padding: 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ideas-column-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .ideas-column-title {
        font-size: 11px;
        font-weight: 600;
    }

    .ideas-count {
        font-size: 9px;
        padding: 2px 6px;
    }

    .idea-card {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        margin-bottom: 6px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
    }

    .idea-card:last-child {
        margin-bottom: 0;
    }

    .idea-priority {
        min-height: 24px;
        width: 3px;
        flex-shrink: 0;
    }

    .idea-content {
        flex: 1;
        min-width: 0;
    }

    .idea-title {
        font-size: 11px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }

    .idea-desc {
        font-size: 9px;
        opacity: 0.6;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .idea-tag {
        font-size: 8px;
        padding: 3px 6px;
        flex-shrink: 0;
    }

    .idea-progress {
        height: 4px;
        margin-top: 6px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.1);
    }

    .idea-progress-bar {
        height: 100%;
        border-radius: 2px;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    }

    .idea-done {
        width: 20px;
        height: 20px;
        font-size: 11px;
        flex-shrink: 0;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (< 375px)
   ============================================ */
@media (max-width: 375px) {
    .va-app-content {
        padding: 8px;
    }

    .tab-content-wrapper {
        min-height: 300px;
        max-height: 380px;
    }

    /* Overview - smaller stats */
    .stat-card {
        padding: 10px 8px;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 8px;
    }

    /* Production - more compact */
    .production-stage {
        padding: 6px 2px;
    }

    .stage-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .stage-name {
        font-size: 7px;
    }

    .stage-count {
        font-size: 14px;
    }

    /* Messages - more compact */
    .message-sender {
        font-size: 10px;
    }

    .chat-bubble {
        padding: 6px 10px;
        font-size: 9px;
    }

    /* Calendar - more compact */
    .calendar-day {
        font-size: 9px;
        padding: 3px 1px;
    }

    .event-item {
        padding: 8px;
    }

    .event-name {
        font-size: 10px;
    }
}

/* ============================================
   DASHBOARD TAB CONTENT STYLES
   ============================================ */

/* Tab Content Container - Fixed height for consistency across all tabs */
.tab-content-wrapper {
    height: 380px;
    overflow: hidden;
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    height: 100%;
}
.tab-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==================== OVERVIEW TAB ==================== */
#tab-overview {
    gap: 0;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.stat-card {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card.production::before { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.stat-card.shipped::before { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.stat-card.completed::before { background: linear-gradient(90deg, #10b981, #00d4ff); }
.stat-card.samples::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.stat-icon.production { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.stat-icon.shipped { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.stat-icon.completed { background: linear-gradient(135deg, #10b981, #00d4ff); }
.stat-icon.samples { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.stat-badge {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.stat-badge.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-badge.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.stat-badge.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.stat-badge.orange { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.stat-value { font-size: 20px; font-weight: 700; line-height: 1; margin-bottom: 2px; }
.stat-label { font-size: 9px; color: #4a4a4a; text-transform: uppercase; letter-spacing: 0.03em; }

/* Orders List */
.orders-list {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.orders-title {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-title-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00d4ff, #3b82f6);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.orders-count { font-size: 9px; color: #4a4a4a; }

.order-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 80px;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.order-row:last-child { border-bottom: none; }
.order-row:hover { background: rgba(255, 255, 255, 0.02); }

.order-garments { display: flex; position: relative; }

.order-garment {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 2px solid #151515;
    overflow: hidden;
    margin-left: -10px;
}

.order-garment:first-child { margin-left: 0; }
.order-garment img { width: 100%; height: 100%; object-fit: contain; }

.order-info { min-width: 0; }
.order-id { font-size: 12px; font-weight: 600; font-family: 'SF Mono', 'Consolas', monospace; margin-bottom: 4px; }
.order-details { font-size: 10px; color: #6a6a6a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.order-progress { width: 100px; }
.progress-bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.progress-fill { height: 100%; border-radius: 3px; }

.progress-fill.sewing { background: linear-gradient(90deg, #3b82f6, #8b5cf6); width: 65%; }
.progress-fill.cutting { background: linear-gradient(90deg, #f59e0b, #ef4444); width: 35%; }
.progress-fill.shipped { background: linear-gradient(90deg, #10b981, #00d4ff); width: 100%; }
.progress-fill.qc { background: linear-gradient(90deg, #8b5cf6, #a855f7); width: 90%; }

.progress-text { font-size: 9px; color: #5a5a5a; }

.order-status { padding: 8px 14px; border-radius: 8px; font-size: 11px; font-weight: 600; text-align: center; }
.order-status.sewing { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.order-status.cutting { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.order-status.shipped { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.order-status.qc { background: rgba(139, 92, 246, 0.15); color: #a855f7; }

/* ==================== MY PRODUCTS TAB ==================== */
#tab-products {
    gap: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    flex-shrink: 0;
}

.products-title {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-title-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.products-count { font-size: 9px; color: #4a4a4a; }

.products-grid-compact {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
}

.product-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 90px;
    gap: 12px;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-row:last-child { border-bottom: none; }
.product-row:hover { background: rgba(255, 255, 255, 0.02); }

.product-row-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row-img img { width: 100%; height: 100%; object-fit: contain; }

.product-row-info { min-width: 0; }
.product-row-name { font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.product-row-details { font-size: 9px; color: #4a4a4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-row-stats { text-align: right; }
.product-stat { font-size: 10px; color: #a0a0a0; }

.product-row-status {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 500;
    text-align: center;
}

.product-row-status.active { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.product-row-status.production { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.product-row-status.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* Product Colors Section - Pantone Style */
.product-colors-section {
    margin-top: 8px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    flex-shrink: 0;
}

.colors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.colors-title {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.colors-season {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-radius: 4px;
}

.color-swatches {
    display: flex;
    gap: 6px;
}

.color-swatch {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: translateY(-2px);
}

.swatch-fill {
    width: 100%;
    height: 32px;
    border-radius: 6px;
    background: var(--swatch-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.swatch-name {
    font-size: 7px;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* ==================== PRODUCTION TAB ==================== */
#tab-production {
    justify-content: flex-start;
    gap: 0;
}

.production-flow {
    display: flex;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.production-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #a855f7, #10b981);
    z-index: 0;
    transform: translateY(-50%);
}

.production-stage {
    flex: 1;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.production-stage:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.production-stage.active { border-color: #00d4ff; }

.stage-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
}

.stage-icon.cutting { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.stage-icon.sewing { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.stage-icon.qc { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.stage-icon.packing { background: linear-gradient(135deg, #a855f7, #ec4899); }
.stage-icon.shipped { background: linear-gradient(135deg, #10b981, #00d4ff); }

.stage-name { font-size: 10px; font-weight: 600; margin-bottom: 4px; }
.stage-count { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.stage-label { font-size: 8px; color: #4a4a4a; }

.production-items {
    margin-top: 0;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.production-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #0d0d0d;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.production-item:last-child { margin-bottom: 0; }
.production-item:hover { background: #111111; }

.production-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
    flex-shrink: 0;
}

.production-item-img img { width: 100%; height: 100%; object-fit: contain; }

.production-item-info { flex: 1; min-width: 0; }
.production-item-name { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.production-item-id { font-size: 10px; color: #5a5a5a; }

.production-item-progress { width: 100px; }

.production-item-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.production-item-status.sewing { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.production-item-status.cutting { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.production-item-status.qc { background: rgba(139, 92, 246, 0.15); color: #a855f7; }
.production-item-status.packing { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.production-item-status.shipped { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.item-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.item-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.5s ease;
}

/* ==================== CALENDAR TAB ==================== */
#tab-calendar {
    gap: 0;
}

.calendar-container {
    display: flex;
    gap: 10px;
    flex: 1;
    height: 100%;
}

.calendar-grid {
    flex: 1;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-month {
    font-size: 14px;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 4px;
}

.calendar-nav-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0a0a0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.calendar-weekday {
    font-size: 9px;
    color: #4a4a4a;
    text-align: center;
    padding: 4px 2px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover { background: rgba(255,255,255,0.05); }
.calendar-day.today { background: rgba(0, 212, 255, 0.15); color: #00d4ff; font-weight: 600; }
.calendar-day.other-month { color: #4a4a4a; opacity: 0.4; }

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.calendar-day.has-event.delivery::after { background: #10b981; }
.calendar-day.has-event.sample::after { background: #8b5cf6; }
.calendar-day.has-event.deadline::after { background: #ef4444; }

.calendar-events {
    width: 180px;
    flex-shrink: 0;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.events-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-item {
    padding: 10px;
    background: #0d0d0d;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-item:hover { transform: translateX(3px); }
.event-item:last-child { margin-bottom: 0; }

.event-item.delivery { border-color: #10b981; }
.event-item.sample { border-color: #8b5cf6; }
.event-item.deadline { border-color: #ef4444; }

.event-date { font-size: 9px; color: #4a4a4a; margin-bottom: 2px; }
.event-name { font-size: 10px; font-weight: 600; margin-bottom: 2px; }
.event-desc { font-size: 9px; color: #4a4a4a; }

/* ==================== MESSAGES TAB ==================== */
#tab-messages {
    justify-content: stretch; /* Fill height */
}

.messages-container {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px;
    flex: 1;
    height: 100%;
}

.messages-list {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.messages-list-header {
    padding: 8px 10px;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 600;
}

.message-thread {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-thread:hover { background: rgba(255,255,255,0.02); }
.message-thread.active { background: rgba(0, 212, 255, 0.08); border-left: 2px solid #00d4ff; }

.message-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.message-sender { font-size: 9px; font-weight: 600; }
.message-time { font-size: 7px; color: #4a4a4a; }
.message-preview { font-size: 8px; color: #4a4a4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.message-unread {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4ff;
    display: inline-block;
    margin-left: 4px;
}

.messages-chat {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 8px 12px;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.chat-name { font-size: 10px; font-weight: 600; }
.chat-status { font-size: 8px; color: #10b981; }

.chat-messages {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.chat-bubble {
    max-width: 80%;
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 9px;
    line-height: 1.3;
}

.chat-bubble.received {
    background: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.chat-bubble.sent {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-input {
    padding: 8px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 6px;
}

.chat-input input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 9px;
    color: var(--text-primary);
    outline: none;
}

.chat-send {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ==================== IDEAS & TASKS TAB ==================== */
#tab-ideas {
    justify-content: stretch;
}

.ideas-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
}

.ideas-column {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.ideas-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ideas-column-title {
    font-size: 11px;
    font-weight: 600;
}

.ideas-count {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    color: #a0a0a0;
}

.idea-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.idea-card:last-child { margin-bottom: 0; }
.idea-card:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateX(2px); }

.idea-card.active { border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.05); }
.idea-card.completed { opacity: 0.7; }

.idea-priority {
    width: 4px;
    height: 100%;
    min-height: 30px;
    border-radius: 2px;
    flex-shrink: 0;
}

.idea-priority.high { background: linear-gradient(180deg, #ef4444, #f59e0b); }
.idea-priority.medium { background: linear-gradient(180deg, #f59e0b, #eab308); }
.idea-priority.low { background: linear-gradient(180deg, #3b82f6, #8b5cf6); }

.idea-content { flex: 1; min-width: 0; }
.idea-title { font-size: 10px; font-weight: 600; margin-bottom: 2px; }
.idea-desc { font-size: 8px; color: #4a4a4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.idea-tag {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    flex-shrink: 0;
}

.idea-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.idea-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.idea-done {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

/* ============================================
   LIGHT MODE - Dashboard Tab Styles
   ============================================ */

[data-theme="light"] .stat-card,
[data-theme="light"] .orders-list,
[data-theme="light"] .products-header,
[data-theme="light"] .products-grid-compact,
[data-theme="light"] .product-colors-section,
[data-theme="light"] .production-stage,
[data-theme="light"] .production-items,
[data-theme="light"] .calendar-grid,
[data-theme="light"] .calendar-events,
[data-theme="light"] .messages-list,
[data-theme="light"] .messages-chat,
[data-theme="light"] .ideas-column {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card:hover,
[data-theme="light"] .product-row:hover,
[data-theme="light"] .production-stage:hover,
[data-theme="light"] .idea-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .orders-header,
[data-theme="light"] .products-header,
[data-theme="light"] .messages-list-header,
[data-theme="light"] .chat-header,
[data-theme="light"] .order-row,
[data-theme="light"] .product-row,
[data-theme="light"] .production-item,
[data-theme="light"] .event-item,
[data-theme="light"] .idea-card {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .order-garment,
[data-theme="light"] .product-row-img,
[data-theme="light"] .production-item-img {
    background: #e8e8e8;
}

[data-theme="light"] .stat-label,
[data-theme="light"] .orders-count,
[data-theme="light"] .products-count,
[data-theme="light"] .order-details,
[data-theme="light"] .product-row-details,
[data-theme="light"] .progress-text,
[data-theme="light"] .stage-label,
[data-theme="light"] .production-item-id,
[data-theme="light"] .calendar-weekday,
[data-theme="light"] .calendar-subtitle,
[data-theme="light"] .event-date,
[data-theme="light"] .event-desc,
[data-theme="light"] .message-time,
[data-theme="light"] .message-preview,
[data-theme="light"] .idea-desc,
[data-theme="light"] .ideas-count {
    color: #666666;
}

[data-theme="light"] .calendar-day.other-month {
    color: #999999;
}

[data-theme="light"] .chat-input input,
[data-theme="light"] .calendar-nav-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

[data-theme="light"] .chat-bubble.received {
    background: #e8e8e8;
    color: #1a1a1a;
}

[data-theme="light"] .progress-bar,
[data-theme="light"] .item-progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .swatch-name {
    color: #666666;
}

[data-theme="light"] .swatch-fill {
    border-color: rgba(0, 0, 0, 0.1);
}
