:root {
    --bg-dark: #0a0f1d;
    --bg-surface: #11192e;
    --bg-surface-elevated: #18233e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #0284c7;
    --accent-cyan: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.35);
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --border-color: #1e293b;
    --border-glow: #0284c7;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #38bdf8;
}

/* TWO-STAGE LANDING ENTRY */
.landing-site-ui[hidden],
.landing-gate[hidden] {
    display: none !important;
}

.landing-gate {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: end center;
    padding: clamp(1.5rem, 5vw, 4rem);
    padding-bottom: max(clamp(1.5rem, 5vw, 4rem), env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(4, 7, 17, 0.05) 35%, rgba(4, 7, 17, 0.82) 100%);
}

.landing-gate__panel {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    max-width: 38rem;
    text-align: center;
}

.landing-gate__eyebrow {
    color: #e2e8f0;
    font-size: clamp(0.72rem, 2vw, 0.88rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 12px #000;
}

.landing-action {
    min-width: min(100%, 18rem);
    border: 2px solid #38bdf8;
    border-radius: 999px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #fff;
    font: 800 clamp(1rem, 3vw, 1.15rem)/1.2 var(--font-sans);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: landing-action-pulse 2s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-action:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 48px rgba(6, 182, 212, 0.78);
}

.landing-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.landing-action:disabled {
    cursor: wait;
    opacity: 0.75;
}

.landing-gate__status {
    min-height: 1.5em;
    color: #e2e8f0;
    font-size: 0.85rem;
    text-shadow: 0 2px 10px #000;
}

.landing-install {
    border: 1px solid rgba(148, 197, 255, 0.55);
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    background: rgba(8, 15, 33, 0.72);
    color: #e2e8f0;
    font: 700 0.92rem/1.2 var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-install:hover {
    border-color: #38bdf8;
    background: rgba(14, 26, 51, 0.9);
}

.landing-install:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.landing-install[hidden] {
    display: none !important;
}

.pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: grid;
    place-items: end center;
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    background: rgba(2, 5, 12, 0.72);
    backdrop-filter: blur(4px);
}

.pwa-sheet[hidden] {
    display: none !important;
}

.pwa-sheet__card {
    width: min(100%, 26rem);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 1.4rem;
    background: #0b1220;
    color: #e2e8f0;
    display: grid;
    gap: 0.85rem;
}

.pwa-sheet__card h2 {
    font-size: 1.1rem;
    color: #fff;
}

.pwa-sheet__card p {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.55;
}

.pwa-sheet__card button {
    justify-self: end;
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@keyframes landing-action-pulse {
    0%, 100% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); }
    50% { box-shadow: 0 0 50px rgba(6, 182, 212, 0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-action,
    .tab-pane,
    .hero-badge,
    .chatbot-pulse {
        animation: none !important;
    }

    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 44px;
    width: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.1;
}

.brand-text span {
    font-size: 0.68rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.btn-nav-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-nav-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* HERO SECTION WITH RESPONSIVE VIDEO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) contrast(1.1);
}

.video-mobile {
    display: none;
}

.video-desktop {
    display: block;
}

@media (max-width: 768px) {
    .video-desktop {
        display: none;
    }
    .video-mobile {
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(10, 15, 29, 0.4) 0%, rgba(10, 15, 29, 0.92) 85%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 1.2rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 999px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(6, 182, 212, 0.25); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-ai-chat {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-ai-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

/* 4 PILLARS FROM VIDEO */
.hero-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .hero-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .hero-pillars {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    background: rgba(17, 25, 46, 0.7);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.pillar-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.pillar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

/* CONTAINER & SECTIONS */
.section {
    padding: 5rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* PRODUCT CATALOG GRID */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--accent-blue);
    border-color: var(--accent-cyan);
    color: #fff;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.product-img-wrap {
    height: 200px;
    background: #0d1424;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.badge-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.25rem 0.75rem;
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.badge-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-stock.in-stock {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent-green);
    color: #34d399;
}

.badge-stock.low-stock {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-gold);
    color: #fbbf24;
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-code {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.product-function {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
}

.product-packaging {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #38bdf8;
}

.product-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.btn-detail {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-order-direct {
    padding: 0.6rem;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

/* FLOATING AI CHATBOT WIDGET */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    border: 2px solid #38bdf8;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.7);
}

.chatbot-toggle img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    border: 2px solid var(--bg-dark);
}

.chat-window {
    position: fixed;
    bottom: 104px;
    right: 24px;
    width: 400px;
    height: 620px;
    max-height: calc(100vh - 120px);
    background: var(--bg-surface);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 95px;
        height: 560px;
    }
}

.chat-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-agent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    object-fit: cover;
}

.chat-agent-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.chat-agent-text p {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-agent-text p::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-product-card {
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 0.5rem;
    display: flex;
    gap: 10px;
    padding: 8px;
}

.chat-product-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.chat-product-details {
    flex-grow: 1;
}

.chat-product-details h5 {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 2px;
}

.chat-product-details p {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.chat-product-details .price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.quick-reply-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.quick-reply-chip {
    padding: 0.35rem 0.75rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 999px;
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply-chip:hover {
    background: var(--accent-cyan);
    color: #0f172a;
}

.chat-footer {
    padding: 0.75rem 1rem;
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-footer input {
    flex-grow: 1;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.chat-footer input:focus {
    border-color: var(--accent-cyan);
}

.chat-send-btn {
    background: var(--accent-cyan);
    color: #0f172a;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    background: #38bdf8;
}

/* MODALS */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* FORMS */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* INVOICE & PRINT STYLES */
.invoice-container {
    max-width: 820px;
    margin: 6rem auto 3rem;
    background: #fff;
    color: #1e293b;
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.invoice-table th, .invoice-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.invoice-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.invoice-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

@media print {
    body * {
        visibility: hidden;
    }
    .invoice-container, .invoice-container * {
        visibility: visible;
    }
    .invoice-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    .invoice-actions, .navbar, .chatbot-toggle {
        display: none !important;
    }
}


/* ========================================================
   TAB FOLDER & GRID APP SYSTEM (NON-SCROLLING EXPERIENCE)
   ======================================================== */
.hero-video-clean {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

.hero-video-clean video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-clean-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(10, 15, 29, 0.75) 0%, transparent 40%);
    cursor: pointer;
}

.btn-enter-website {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #fff;
    border: 2px solid #38bdf8;
    padding: 1.1rem 2.8rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse-enter 2s infinite;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    margin-bottom: 2rem;
}

@keyframes pulse-enter {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); }
    50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(6, 182, 212, 0.9); }
}

.btn-enter-website:hover {
    transform: scale(1.08);
}

.app-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
    display: none;
    flex-direction: column;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(25px);
}

.app-topbar {
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 10;
}

.folder-tabs-nav {
    display: flex;
    gap: 6px;
    background: rgba(17, 25, 46, 0.85);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    max-width: 100%;
}

.folder-tab-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.folder-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.folder-tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.app-content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
    display: block;
}

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

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

.folder-card-tile {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    cursor: pointer;
}

.folder-card-tile:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
