 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

      

        /* LOCKED STATE */
        body.locked {
            overflow: hidden;
        }
        body.locked .asset-wrapper {
            filter: blur(8px);
            pointer-events: none;
            transition: filter 0.3s ease;
        }

        /* ========== PREMIUM HEADER ========== */
        .premium-header {
             background: linear-gradient(135deg, #5FA8D3 0%, #4A90C2 50%, #3B7CA6 100%);
            backdrop-filter: blur(10px);
            padding: 0.8rem 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .header-container {
            max-width: 1600px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #1E4E79, #2F6FA3, #4A90C2);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
        }

        .logo-icon i {
            font-size: 24px;
            color: white;
        }

        .logo-text h1 {
            font-size: 1.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #ffffff, #4A90C2, #2F6FA3);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.5px;
        }

        .logo-text p {
            font-size: 0.7rem;
            color: #94a3b8;
            letter-spacing: 0.5px;
        }

        .header-stats {
            display: flex;
            gap: 25px;
        }

        .header-stat {
            text-align: center;
        }

        .header-stat .stat-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: white;
        }

        .header-stat .stat-label {
            font-size: 0.7rem;
            color: #94a3b8;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 16px;
            border-radius: 50px;
            backdrop-filter: blur(10px);
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #1E4E79, #4A90C2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-avatar i {
            font-size: 16px;
            color: white;
        }

        .user-email {
            font-size: 0.8rem;
            color: #e2e8f0;
            font-weight: 500;
        }

        /* ========== MODERN LEAD GATE MODAL ========== */
        /* ========== PREMIUM LEAD GATE MODAL - LIGHT THEME ========== */
#leadGate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

.lead-box {
    width: 90%;
    max-width: 460px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
    animation: slideUp 0.5s ease;
    backdrop-filter: blur(0px);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.lead-box .lead-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E4E79 0%, #2F6FA3 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 15px 30px -10px rgba(30, 78, 121, 0.4);
}

.lead-box .lead-icon i {
    font-size: 38px;
    color: white;
}

.lead-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #1E4E79);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.lead-box p {
    color: #64748b;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lead-box input {
    width: 100%;
    padding: 14px 20px;
    margin: 10px 0;
    border-radius: 60px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
    background: #ffffff;
    font-weight: 500;
}

.lead-box input:focus {
    border-color: #1E4E79;
    box-shadow: 0 0 0 3px rgba(30, 78, 121, 0.15);
}

.lead-box button {
    width: 100%;
    background: linear-gradient(135deg, #1E4E79 0%, #2F6FA3 100%);
    border: none;
    padding: 14px;
    border-radius: 60px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lead-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(30, 78, 121, 0.5);
}

.lead-box button:active {
    transform: translateY(0);
}

#leadError {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 14px;
    font-weight: 500;
}

/* Decorative elements */
.lead-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at 30% 20%, rgba(30, 78, 121, 0.08), transparent 70%);
    border-radius: 2.5rem;
    z-index: -1;
    pointer-events: none;
}

        /* ========== MAIN WRAPPER ========== */
        .asset-wrapper {
            display: flex;
            height: calc(100vh - 70px);
            overflow: hidden;
            padding: 20px;
            gap: 20px;
        }

        /* LEFT SIDEBAR */
        .asset-left {
            width: 22%;
            background: linear-gradient(180deg, #0F2A44 0%, #1E4E79 100%);
            padding: 20px 12px;
            height: 100%;
            overflow-y: auto;
            scrollbar-width: thin;
            border-radius: 28px;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
        }
        .sidebar-title {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 10px 15px 10px;
            margin-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .sidebar-title i {
            font-size: 20px;
            color: #4A90C2;
        }
        .sidebar-title span {
            font-size: 0.9rem;
            font-weight: 600;
            color: white;
            letter-spacing: 0.5px;
        }
        .asset-left ul {
            list-style: none;
        }
        .asset-left li {
            margin-bottom: 15px;
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
            background: rgba(30, 41, 59, 0.6);
            backdrop-filter: blur(4px);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .asset-left li:hover {
            transform: translateY(-3px) scale(1.02);
            background: linear-gradient(135deg, #2d3a5e, #1e293b);
            box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.4);
        }
        .asset-left li.active {
            background: linear-gradient(135deg, #1E4E79, #2F6FA3);
            box-shadow: 0 8px 20px rgba(30, 78, 121, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.3);
            
        }
        .asset-left img {
            width: 100%;
            height: 110px;
            object-fit: cover;
            transition: transform 0.3s;
        }
        .asset-left li:hover img {
            transform: scale(1.03);
        }
        .asset-left span {
            display: block;
            padding: 10px 8px;
            color: #f1f5f9;
            font-weight: 600;
            font-size: 0.75rem;
            text-align: center;
        }

        /* CENTER AREA */
        .asset-center {
            width: 56%;
            display: flex;
            flex-direction: column;
            background: white;
            border-radius: 28px;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
            height: 100%;
            overflow: hidden;
        }
        .pdf-header {
            background: linear-gradient(135deg, #ffffff, #f8fafc);
            padding: 18px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #eef2ff;
            flex-wrap: wrap;
            gap: 12px;
        }
        #pdf-title {
            font-weight: 800;
            font-size: 1rem;
            background: linear-gradient(135deg, #1e293b, #1E4E79);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .btn-download {
            background: linear-gradient(135deg, #1E4E79, #1E4E79);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-download:hover {
            transform: scale(0.96);
            box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
        }
        #the-canvas {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            background: #f8fafc;
        }
        canvas {
            width: 100% !important;
            max-width: 800px;
            height: auto !important;
            border-radius: 16px;
            box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12);
            background: white;
        }

        /* RIGHT SIDEBAR */
        .asset-right {
            width: 22%;
            display: flex;
            flex-direction: column;
            gap: 16px;
            height: 100%;
        }

        /* CHAT BOX */
        .chat-box {
            flex: 0 0 45%;
            min-height: 280px;
            display: flex;
            flex-direction: column;
            background: white;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
        }
        .chat-header {
            padding: 16px;
            font-weight: 700;
            background: linear-gradient(135deg, #f8fafc, #ffffff);
            border-bottom: 1px solid #eef2ff;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1e293b;
        }
        .chat-header i {
            font-size: 22px;
            color: #1E4E79;
        }
        .chat-messages {
            flex: 1;
            padding: 12px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-height: 0;
            background: #fefefe;
        }
        .user-msg {
            background: linear-gradient(135deg, #1E4E79, #1E4E79);
            color: white;
            padding: 10px 14px;
            border-radius: 20px;
            border-bottom-right-radius: 6px;
            max-width: 85%;
            align-self: flex-end;
            font-size: 0.8rem;
        }
        .bot-msg {
            background: #f1f5f9;
            padding: 10px 14px;
            border-radius: 20px;
            border-bottom-left-radius: 6px;
            max-width: 85%;
            align-self: flex-start;
            font-size: 0.8rem;
            color: #1e293b;
        }
        .chat-input {
            display: flex;
            border-top: 1px solid #eef2ff;
            background: white;
            padding: 12px;
            gap: 8px;
        }
        .chat-input input {
            flex: 1;
            padding: 12px 16px;
            border: none;
            border-radius: 40px;
            background: #f1f5f9;
            font-size: 0.8rem;
            outline: none;
        }
        .chat-input button {
            background: linear-gradient(135deg, #1E4E79, #1E4E79);
            border-radius: 40px;
            padding: 8px 18px;
            margin: 0;
        }

        /* QUESTION FORM */
        .question-box {
            width: 100%;
            background: white;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        #question-form {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        .modal-header {
            background: linear-gradient(135deg, #1E4E79, #1E4E79, #2F6FA3);
            color: white;
            padding: 14px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modal-header h5 {
            font-size: 0.85rem;
            font-weight: 700;
        }
        .modal-header span {
            cursor: pointer;
            background: rgba(255,255,255,0.2);
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: 0.2s;
        }
        .modal-header span:hover {
            background: rgba(255,255,255,0.35);
            transform: scale(1.05);
        }
        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            min-height: 0;
        }
        .pop-quest {
            font-weight: 700;
            margin-top: 12px;
            margin-bottom: 8px;
            font-size: 12px;
            color: #1e293b;
        }
        .pop-ans {
            list-style: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        .pop-ans li {
            background: #f1f5f9;
            padding: 8px 14px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.25s ease;
            border: 1px solid transparent;
            font-size: 11px;
        }
        .pop-ans li:hover {
            background: #ede9fe;
            border-color: #1E4E79;
        }
        .pop-ans li.active {
            background: linear-gradient(135deg, #ede9fe, #f3e8ff);
            border-color: #1E4E79;
        }
        .pop-ans input {
            accent-color: #1E4E79;
            cursor: pointer;
        }
        .modal-footer {
            padding: 12px 16px;
            border-top: 1px solid #eef2ff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            background: white;
        }
        #errorMessage {
            font-size: 11px;
            color: #ef4444;
            flex: 1;
        }
        .modal-footer button {
            background: linear-gradient(135deg, #1E4E79, #1E4E79);
            color: white;
            border: none;
            padding: 8px 18px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
        }
        .modal-footer button:hover {
            transform: scale(0.96);
        }

        /* ========== PREMIUM FOOTER ========== */
        .premium-footer {
            background: linear-gradient(135deg, #0F2A44 0%, #1E4E79 100%);
            padding: 1rem 2rem;
            margin-top: auto;
        }

        .footer-container {
            max-width: 1600px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-copyright {
            font-size: 0.75rem;
            color: #94a3b8;
        }

        .footer-links {
            display: flex;
            gap: 20px;
            color: #94a3b8;
        }

        .footer-links a {
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.75rem;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: #4A90C2;
        }

        .footer-social {
            display: flex;
            gap: 15px;
        }

        .footer-social i {
            color: #64748b;
            font-size: 1rem;
            transition: all 0.2s;
            cursor: pointer;
        }

        .footer-social i:hover {
            color: #4A90C2;
            transform: translateY(-2px);
        }

        /* SCROLLBARS */
        ::-webkit-scrollbar {
            width: 5px;
        }
        ::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: #2F6FA3;
            border-radius: 10px;
        }

        /* RESPONSIVE */
        @media screen and (max-width: 1100px) {
            .asset-left span { font-size: 0.65rem; }
            .asset-left img { height: 90px; }
        }
        @media screen and (max-width: 900px) {
            .asset-wrapper {
                flex-direction: column;
                height: auto;
                overflow: visible;
                padding: 15px;
            }
            body { overflow-y: auto; }
            .asset-left {
                width: 100%;
                order: 1;
                max-height: 200px;
                height: auto;
            }
            .asset-left ul {
                display: flex;
                overflow-x: auto;
                gap: 12px;
            }
            .asset-left li {
                min-width: 140px;
                flex-shrink: 0;
            }
            .asset-center {
                width: 100%;
                order: 2;
                height: 55vh;
            }
            .asset-right {
                width: 100%;
                order: 3;
                flex-direction: row;
                flex-wrap: wrap;
                height: auto;
            }
            .chat-box, .question-box {
                flex: 1;
                min-width: 280px;
            }
            .header-container {
                flex-direction: column;
                text-align: center;
            }
            .header-stats {
                justify-content: center;
            }
        }
        @media screen and (max-width: 580px) {
            .asset-left li { min-width: 120px; }
            .chat-box, .question-box { min-width: 100%; }
            .footer-container {
                flex-direction: column;
                text-align: center;
            }
        }