﻿/* --- Root Variables & Base Theme --- */
:root {
    --bg: #060a12;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --surface: rgba(31, 41, 55, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);

    /* Minimal Ridge Units */
    --u: calc(100vw / 1600);
    --rule: rgba(255, 255, 255, 0.055);
}
@media (min-width: 1900px) { :root { --u: calc(1900px / 1600); } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-padding-top: 108px;
    background-color: #060a12;
}
section[id], div[id="ui-mockup"] { scroll-margin-top: 108px; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/* ── Minimal Ridge 3D Ambient Background Layer ── */
.hero-bg-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    background:
      radial-gradient(85% 65% at 50% 100%, rgba(0, 229, 255, 0.08) 0%, rgba(14, 165, 233, 0.02) 45%, transparent 75%),
      radial-gradient(70% 60% at 85% 15%, rgba(139, 92, 246, 0.05) 0%, transparent 68%),
      radial-gradient(60% 50% at 15% 25%, rgba(34, 197, 94, 0.04) 0%, transparent 70%),
      #060a12;
}
.hero-bg-shell::after {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(75% 45% at 50% 105%, rgba(0, 229, 255, 0.16) 0%, rgba(16, 185, 129, 0.08) 38%, rgba(6, 10, 18, 0.0) 70%),
      linear-gradient(180deg, rgba(6, 10, 18, 0) 60%, rgba(0, 229, 255, 0.04) 85%, rgba(0, 229, 255, 0.09) 100%);
    pointer-events: none; z-index: 1;
}



.stage {
    position: absolute; left: 50%; top: 50%;
    margin-left: calc(-800 * var(--u));
    margin-top: calc(-440 * var(--u));
    width: calc(1600 * var(--u));
    height: calc(880 * var(--u));
    pointer-events: none;
    z-index: 1;
}

#scene {
    position: absolute; inset: 0; z-index: 2;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(.22,.61,.36,1);
}
body.is-ready #scene, .is-ready #scene {
    opacity: 1;
}

.bg-glow {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 50% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 65%),
        radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    z-index: -1; 
    filter: blur(60px);
    pointer-events: none;
    animation: meshGlow 22s ease-in-out infinite alternate;
}
@keyframes meshGlow {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(2deg); }
    100% { transform: scale(1) rotate(-2deg); }
}

#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

/* Navigation Bar Styles (Desktop default - 100% original) */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
    z-index: 10001;
}
.nav-logo svg {
    display: block;
    flex-shrink: 0;
    position: relative;
    top: 2px;
}
.nav-logo span {
    line-height: 1;
}
.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.90rem;
    letter-spacing: 0.3px;
    padding: 6px 10px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: #60a5fa;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10001;
}
.btn-nav-buy {
    padding: 10px 24px !important;
    font-size: 1rem !important;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}
.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: #f3f4f6;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.decoding-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.75);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            padding: 16px;
            box-sizing: border-box;
        }
        .modal-card {
            background-color: #333333;
            width: 600px;
            max-width: 100%;
            border: 1px solid #555;
            border-radius: 4px;
            font-family: 'Segoe UI', Tahoma, sans-serif;
            color: #cccccc;
            box-shadow: 0 15px 35px rgba(0,0,0,0.8);
            overflow: hidden;
            text-align: left;
            font-size: 13px;
            box-sizing: border-box;
        }

        .logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(to right, #fff, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .lang-toggle { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #a1a1aa; padding: 6px 14px; border-radius: 20px; text-decoration: none; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: all 0.2s ease; }
        .lang-toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255,255,255,0.3); }
        .lang-toggle.en-active { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.05); }

        .hero { text-align: center; padding: 100px 0 60px; animation: fadeInDown 1s ease-out; }
        .hero-badge {
            display: inline-flex; align-items: center; justify-content: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 0 20px rgba(192, 132, 252, 0.05), 0 0 20px rgba(96, 165, 250, 0.15);
            color: #e2e8f0;
            padding: 8px 24px;
            border-radius: 100px;
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 28px;
            backdrop-filter: blur(10px);
            letter-spacing: 0.5px;
        }
        .hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -2px; }
        .hero h1 span { background: linear-gradient(135deg, #60a5fa, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 40px; }

        .cta-group { display: flex; gap: 16px; justify-content: center; }
        .btn-primary { 
            position: relative; 
            background: 
                linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%) 200% 0 / 200% 100% no-repeat,
                linear-gradient(135deg, #2563eb, #7c3aed); 
            color: #fff; padding: 16px 32px; border-radius: 100px; text-decoration: none; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; 
            box-shadow: 0 0 12px rgba(139, 92, 246, 0.3); z-index: 1; display: inline-block;
            animation: shineBtn 6s infinite;
        }
        @keyframes shineBtn {
            0%, 80% { background-position: 200% 0, 0 0; }
            100% { background-position: -200% 0, 0 0; }
        }
        .btn-primary::before {
            content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; z-index: -1;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6); background-size: 300%;
            border-radius: 104px; opacity: 0.6; animation: glowingBtn 3s linear infinite; filter: blur(6px);
        }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5); }
        @keyframes glowingBtn { 0% { background-position: 300% 0; } 100% { background-position: 0% 0; } }
        .btn-secondary { background: var(--surface); color: #fff; padding: 16px 32px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 1.1rem; border: 1px solid var(--surface-border); transition: all 0.2s; }
        .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

        .metrics { display: flex; justify-content: center; gap: 80px; padding: 60px 0; border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); margin: 60px 0; }
        .metric-item { text-align: center; }
        .metric-number { font-size: 3rem; font-weight: 800; background: linear-gradient(to right, #fff, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
        .metric-label { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

        .features { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
        .section-header { text-align: center; margin-bottom: 60px; }
        .section-header h1,
        .section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
        
        .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .feature-card { 
            background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.05); border-top-color: rgba(255, 255, 255, 0.2); border-left-color: rgba(255, 255, 255, 0.15); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            padding: 40px 32px; border-radius: 24px; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; align-items: center; text-align: center; 
        }
        .feature-card:hover { transform: translateY(-5px); border-color: rgba(96, 165, 250, 0.4); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), 0 15px 40px rgba(0, 0, 0, 0.4); }
        .feature-icon { width: 56px; height: 56px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
        .feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
        .feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

        /* UI Mockup Styles */
        .moho-window {
            width: 760px;
            background: rgba(43, 43, 43, 0.65);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            font-family: 'Segoe UI', Tahoma, sans-serif;
            color: #cccccc;
            margin: 40px auto 80px;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px rgba(96, 165, 250, 0.1);
            overflow: hidden;
            text-align: left;
            font-size: 13px;
            user-select: none;
        }

        .moho-titlebar { background: rgba(255, 255, 255, 0.85); color: #000; padding: 5px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
        .moho-content { padding: 20px; }
        .moho-quick-access { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
        .moho-btn { background-color: #1c1c1c; border: 1px solid #111; color: #ccc; padding: 5px 12px; border-radius: 2px; cursor: pointer; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05); }
        .moho-btn:hover { background-color: #3a3a3a; }
        
        .moho-divider { height: 2px; background-color: #1a1a1a; border-bottom: 1px solid #3d3d3d; margin: 20px 0; }
        .moho-panels { display: flex; }
        .moho-col-left { flex: 1; padding-right: 40px; border-right: 2px solid #1a1a1a; position: relative; }
        .moho-col-left::after { content: ''; position: absolute; top: 0; right: -2px; width: 1px; height: 100%; background-color: #3d3d3d; }
        .moho-col-right { flex: 1; padding-left: 40px; }
        .moho-section-title { text-align: center; font-size: 11px; letter-spacing: 1px; color: #999; margin-bottom: 25px; }

        .moho-dropdown {
            width: 100%; background-color: #1c1c1c; border: 1px solid #111; color: #ccc; padding: 5px 8px; margin-bottom: 18px; border-radius: 2px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; position: relative;
        }
        .moho-dropdown span.text { flex: 1; text-align: center; }
        .moho-select-real { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

        .dpad-container { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
        .dpad-row { display: flex; gap: 6px; }
        .dpad-btn { width: 30px; height: 30px; background-color: #1c1c1c; border: 1px solid #111; display: flex; justify-content: center; align-items: center; border-radius: 2px; cursor: pointer; transition: 0.1s; user-select: none; }
        .dpad-btn:hover { background-color: #333; }
        .dpad-btn.active { background-color: #4cc2c2; color: #000; border-color: #4cc2c2; }

        .moho-checkboxes { display: flex; justify-content: space-between; margin-top: 25px; padding: 0 10px; }
        .moho-check { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
        .moho-check input { accent-color: #4cc2c2; }

        .timing-grid { display: grid; grid-template-columns: 80px 1fr 60px; gap: 15px 10px; align-items: center; }
        .timing-input { background-color: #222; border: 1px solid #111; color: #4cc2c2; padding: 4px 6px; border-radius: 2px; width: 100%; box-sizing: border-box; font-size: 12px; outline: none; font-family: inherit; }
        .timing-input:focus { border-color: #4cc2c2; }
        .timing-input.gray { color: #888; }
        .timing-input::-webkit-outer-spin-button, .timing-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .timing-input[type=number] { -moz-appearance: textfield; }
        .moho-slider { -webkit-appearance: none; width: 100%; height: 4px; background: #181818; outline: none; border-radius: 2px; }
        .moho-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #333; border: 2px solid #111; cursor: pointer; }

        /* Custom Moho Dropdown */
        .moho-custom-menu {
            position: absolute; top: calc(100% + 2px); left: 0; width: 100%;
            background-color: #1e1e1e; border: 1px solid #111; box-shadow: 2px 5px 15px rgba(0,0,0,0.5);
            z-index: 1000; max-height: 400px; overflow-y: auto; padding-bottom: 15px;
            display: none; flex-direction: column; border-radius: 3px;
        }
        .moho-custom-menu.show { display: flex; }
        .moho-custom-menu::-webkit-scrollbar { width: 8px; }
        .moho-custom-menu::-webkit-scrollbar-track { background: #141414; }
        .moho-custom-menu::-webkit-scrollbar-thumb { background: #4cc2c2; border-radius: 4px; }
        .moho-custom-menu::-webkit-scrollbar-thumb:hover { background: #60a5fa; }
        
        .moho-menu-optgroup {
            display: flex; align-items: center; color: #888; font-size: 11px; padding: 12px 10px 4px;
        }
        .moho-menu-optgroup::before, .moho-menu-optgroup::after {
            content: ''; flex: 1; border-bottom: 1px solid #444; margin: 0 5px;
        }
        .moho-menu-option {
            padding: 6px 10px 6px 25px; color: #ccc; font-size: 13px; cursor: pointer; position: relative;
        }
        .moho-menu-option:hover { background-color: #2a2a2a; color: #fff; }
        .moho-menu-option.selected { background-color: #0d6efd; color: #fff; }
        .moho-menu-option.selected::before {
            content: '✔'; position: absolute; left: 8px;
        }
        @keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
    
        .sticky-nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            background: rgba(3, 7, 18, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 16px 0; transition: all 0.3s ease;
        }
        .fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
        .fade-in.visible { opacity: 1; transform: translateY(0); }
        .preset-item {
            background: rgba(255, 255, 255, 0.03);
            padding: 18px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
            cursor: default;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .preset-item:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(96, 165, 250, 0.4);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        .preset-title {
            font-weight: 700;
            color: #f3f4f6;
            font-size: 1.05rem;
        }
        .preset-desc {
            color: #9ca3af;
            font-size: 0.9rem;
            line-height: 1.5;
        }
    
        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: #030712; border-left: 1px solid rgba(255,255,255,0.05); }
        ::-webkit-scrollbar-thumb { background: rgba(96, 165, 250, 0.3); border-radius: 10px; border: 2px solid #030712; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(96, 165, 250, 0.6); }

        /* Mobile Responsive */
        @media (max-width: 868px) {
            .navbar { padding: 12px 16px !important; }
            .nav-logo { font-size: 1.25rem !important; }
            .hero-title { font-size: 2.2rem !important; }
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                left: auto;
                transform: none;
                width: 260px;
                height: 100vh;
                background: rgba(8, 14, 28, 0.96);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                flex-direction: column;
                justify-content: center;
                gap: 30px;
                border-left: 1px solid rgba(255, 255, 255, 0.1);
                box-shadow: -10px 0 30px rgba(0,0,0,0.6);
                transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 10000;
                padding: 40px 20px;
            }
            .nav-links.active, .nav-links.open { right: 0; }
            .nav-links a { font-size: 1.1rem; font-weight: 600; }
            .nav-toggle { display: flex; }
            .btn-nav-buy { padding: 8px 18px !important; font-size: 0.88rem !important; }

            .hero { padding: 40px 16px !important; }
            .decoding-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
            
            .metrics { flex-direction: column; gap: 30px !important; margin: 40px 0 !important; padding: 40px 0 !important; }
            .feature-grid { grid-template-columns: 1fr !important; }
            
            .moho-window {
                width: 100% !important;
                max-width: 100% !important;
                margin: 30px auto !important;
                box-sizing: border-box;
            }
            .moho-content { padding: 14px !important; }
            .moho-panels { flex-direction: column; }
            .moho-col-left { padding-right: 0 !important; padding-bottom: 20px; border-right: none !important; border-bottom: 2px solid #1a1a1a; }
            .moho-col-left::after { display: none; }
            .moho-col-right { padding-left: 0 !important; padding-top: 20px; }

            .catalog-grid { grid-template-columns: 1fr !important; }

            .moho-quick-access { gap: 8px !important; }
            .moho-btn { padding: 5px 9px !important; font-size: 12px !important; }
            .dpad-container { transform: scale(0.92); }
            .timing-grid { grid-template-columns: 65px 1fr 45px !important; gap: 10px 6px !important; }
            .timing-input { font-size: 11px !important; padding: 4px 4px !important; }
        }

        /* Mobile nhỏ (under 480px) */
        @media (max-width: 480px) {
            .container { padding: 0 16px !important; }
            .nav-container { padding: 0 16px !important; }
            .moho-content { padding: 10px !important; }
            .moho-titlebar { font-size: 11px !important; padding: 4px 8px !important; }
            .moho-section-title { font-size: 10px !important; margin-bottom: 16px !important; }
            .moho-dropdown { padding: 4px 6px !important; margin-bottom: 12px !important; font-size: 12px !important; }
            .moho-quick-access { flex-wrap: wrap; }
            .moho-quick-access span { width: 100%; margin-bottom: 4px; }
            .moho-btn { flex: 1 1 auto; justify-content: center; padding: 6px 6px !important; font-size: 11px !important; }
            .dpad-container { transform: scale(0.85); margin-bottom: 8px !important; }
            .dpad-btn { width: 26px; height: 26px; }
            .timing-grid { grid-template-columns: 52px 1fr 38px !important; gap: 8px 4px !important; }
            .timing-input { font-size: 10px !important; }
            .moho-checkboxes { flex-direction: column; gap: 8px; padding: 0 !important; }
            .modal-card-body { flex-direction: column !important; text-align: center !important; }
            .modal-card-body > div:first-child { margin: 0 auto 10px !important; }
        }
/* Enhancements */
.preset-item { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.preset-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2); }
.feature-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary { transition: all 0.3s ease; }

/* Phase 2 Enhancements */
::selection {
    background: rgba(96, 165, 250, 0.3);
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.animated-gradient-text {
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6, #60a5fa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowGradient 6s ease infinite;
}

@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-mockup {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* =====================
   FOOTER — Premium
   ===================== */
.site-footer {
    margin-top: 30px;
    padding: 0 0 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

/* Gradient glow divider */
.footer-glow-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.6) 30%,
        rgba(139, 92, 246, 0.7) 55%,
        rgba(59, 130, 246, 0.4) 75%,
        transparent 100%
    );
    margin-bottom: 16px;
    position: relative;
}
.footer-glow-divider::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 20%;
    right: 20%;
    height: 8px;
    background: linear-gradient(90deg,
        transparent,
        rgba(96, 165, 250, 0.25) 35%,
        rgba(192, 132, 252, 0.25) 65%,
        transparent
    );
    filter: blur(6px);
}

.footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}


/* "Contact Support" label */
.footer-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Pills row */
.footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pill — icon-only collapsed, expand on click */
.footer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: fit-content;
    max-width: 28px;   /* collapsed = vòng tròn 28px */
    height: 28px;
    padding: 0;
    border-radius: 50px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.3s ease,
                background 0.3s ease, transform 0.2s ease,
                box-shadow 0.3s ease,
                max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon wrapper: cố định 28×28px, icon luôn căn tâm tuyệt đối */
.footer-pill .pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;   /* không bao giờ co lại */
    height: 28px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Text inside pill — hidden by default */
.footer-pill .pill-text {
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    padding-right: 0;
    transition: max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease 0.1s,
                padding-right 0.38s ease;
}

/* Expanded state */
.footer-pill.expanded {
    max-width: 260px;
    color: #e2e8f0;
}
.footer-pill.expanded .pill-icon {
    opacity: 1;
}
.footer-pill.expanded .pill-text {
    max-width: 220px;
    opacity: 1;
    padding-right: 14px;  /* right padding chỉ khi mở */
}

/* Hover on collapsed */
.footer-pill:not(.expanded):hover {
    transform: translateY(-2px);
}
.footer-pill:not(.expanded):hover .pill-icon {
    opacity: 1;
}



/* Copyright */
.footer-copy {
    font-size: 0.8rem;
    opacity: 0.45;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
    .footer-links {
        gap: 10px;
    }
    .footer-pill.expanded {
        max-width: 280px;
    }
}



/* #8 — Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, rgba(139,92,246,0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
    will-change: left, top;
}

/* #13 — Mouse Parallax BG overlay */
.bg-parallax-overlay {
    position: fixed;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background:
        radial-gradient(circle at 40% 40%, rgba(96,165,250,0.07) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(139,92,246,0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    filter: blur(40px);
}

/* #6 — Typing Cursor */
.typing-cursor {
    display: inline-block;
    color: #60a5fa;
    font-weight: 100;
    animation: blinkCursor 0.75s step-end infinite;
    margin-left: 2px;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* #7 — Moho Window Glow Breath */
@keyframes glowBreath {
    0%, 100% { box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 12px rgba(96,165,250,0.06); }
    50% { box-shadow: 0 42px 80px rgba(0,0,0,0.65), 0 0 50px rgba(96,165,250,0.22), 0 0 90px rgba(139,92,246,0.1); }
}
.moho-window.floating-mockup {
    animation: float 6s ease-in-out infinite, glowBreath 6s ease-in-out infinite !important;
}

/* #5 — Buy Button Urgency Pulse */
@keyframes urgencyPulse {
    0%, 100% { opacity: 0.55; filter: blur(6px); }
    50% { opacity: 0.95; filter: blur(9px); }
}
.btn-primary::before {
    animation: glowingBtn 3s linear infinite, urgencyPulse 2.8s ease-in-out infinite !important;
}

/* #4 — Preset Category Color Accents */
.preset-group[data-category="physics"] .preset-item { border-left: 2px solid rgba(96,165,250,0.2); }
.preset-group[data-category="physics"] .preset-item:hover { border-color: rgba(96,165,250,0.6) !important; box-shadow: 0 14px 32px rgba(96,165,250,0.16) !important; }
.preset-group[data-category="fx"] .preset-item { border-left: 2px solid rgba(192,132,252,0.2); }
.preset-group[data-category="fx"] .preset-item:hover { border-color: rgba(192,132,252,0.6) !important; box-shadow: 0 14px 32px rgba(192,132,252,0.16) !important; }
.preset-group[data-category="basic"] .preset-item { border-left: 2px solid rgba(74,222,128,0.2); }
.preset-group[data-category="basic"] .preset-item:hover { border-color: rgba(74,222,128,0.6) !important; box-shadow: 0 14px 32px rgba(74,222,128,0.16) !important; }
.preset-group[data-category="loop"] .preset-item { border-left: 2px solid rgba(244,114,182,0.2); }
.preset-group[data-category="loop"] .preset-item:hover { border-color: rgba(244,114,182,0.6) !important; box-shadow: 0 14px 32px rgba(244,114,182,0.16) !important; }
.preset-group[data-category="text"] .preset-item { border-left: 2px solid rgba(251,191,36,0.2); }
.preset-group[data-category="text"] .preset-item:hover { border-color: rgba(251,191,36,0.6) !important; box-shadow: 0 14px 32px rgba(251,191,36,0.16) !important; }
.preset-group { transition: opacity 0.3s ease; }
.preset-group.hidden { display: none !important; }

/* #11 — Tab Filter System */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.catalog-tab {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #9ca3af;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.catalog-tab:hover { background: rgba(255,255,255,0.07); color: #e5e7eb; border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.catalog-tab.active { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.18)); border-color: rgba(96,165,250,0.5); color: #60a5fa; box-shadow: 0 0 20px rgba(96,165,250,0.15); }
.catalog-tab[data-filter="physics"].active { border-color: rgba(96,165,250,0.5); color: #60a5fa; background: rgba(96,165,250,0.1); }
.catalog-tab[data-filter="fx"].active { border-color: rgba(192,132,252,0.5); color: #c084fc; background: rgba(192,132,252,0.1); }
.catalog-tab[data-filter="basic"].active { border-color: rgba(74,222,128,0.5); color: #4ade80; background: rgba(74,222,128,0.1); }
.catalog-tab[data-filter="loop"].active { border-color: rgba(244,114,182,0.5); color: #f472b6; background: rgba(244,114,182,0.1); }
.catalog-tab[data-filter="text"].active { border-color: rgba(251,191,36,0.5); color: #fbbf24; background: rgba(251,191,36,0.1); }

/* #9 — Feature Card Icon Glow */
.feature-card .feature-icon { transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.feature-card:nth-child(1):hover .feature-icon { background: rgba(96,165,250,0.14); border-color: rgba(96,165,250,0.45); box-shadow: 0 0 28px rgba(96,165,250,0.35); }
.feature-card:nth-child(2):hover .feature-icon { background: rgba(192,132,252,0.14); border-color: rgba(192,132,252,0.45); box-shadow: 0 0 28px rgba(192,132,252,0.35); }
.feature-card:nth-child(3):hover .feature-icon { background: rgba(251,191,36,0.14); border-color: rgba(251,191,36,0.45); box-shadow: 0 0 28px rgba(251,191,36,0.35); }

/* #12 — Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: rgba(8,15,30,0.97);
    border: 1px solid rgba(76,194,194,0.5);
    color: #4cc2c2;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 24px rgba(76,194,194,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    animation: toastIn 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.toast.toast-out { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px) scale(0.88); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(80px) scale(0.88); }
}
.toast-icon {
    width: 22px; height: 22px;
    background: rgba(76,194,194,0.18);
    border: 1px solid rgba(76,194,194,0.4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* #14 — Pricing Card */
.pricing-section {
    text-align: center;
    padding: 20px 24px 80px;
    max-width: 700px;
    margin: 0 auto;
}
.pricing-card {
    position: relative;
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(96,165,250,0.22);
    border-radius: 28px;
    padding: 52px 52px 44px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 80px rgba(59,130,246,0.06);
    text-align: left;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96,165,250,0.8), rgba(192,132,252,0.7), transparent);
}
.pricing-card::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(139,92,246,0.09) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}
.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(139,92,246,0.12));
    border: 1px solid rgba(96,165,250,0.3);
    color: #93c5fd;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(96,165,250,0); }
    50% { box-shadow: 0 0 18px rgba(96,165,250,0.25); }
}
.pricing-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 50%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pricing-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 34px;
}
.pricing-features {
    list-style: none;
    padding: 0; margin: 0 0 40px;
    display: flex; flex-direction: column; gap: 14px;
}
.pricing-features li {
    display: flex; align-items: center; gap: 13px;
    font-size: 0.95rem; color: #d1d5db;
}
.pricing-check {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(139,92,246,0.18));
    border: 1px solid rgba(96,165,250,0.35);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.7rem; color: #60a5fa; font-weight: 800; flex-shrink: 0;
}
.pricing-cta { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.pricing-note { text-align: center; color: #6b7280; font-size: 0.8rem; margin-top: 16px; }

@media (max-width: 600px) {
    .pricing-card { padding: 32px 24px 28px; }
    .catalog-tabs { gap: 7px; }
    .catalog-tab { padding: 7px 14px; font-size: 0.78rem; }
    #toast-container { bottom: 14px; right: 14px; }
}

/* ==============================================
   ✦ EXPERIENCE UPGRADE PACK — A through I
   ============================================== */

/* A — Animated Noise Grain Texture */
.noise-overlay {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 9995;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: grainShift 0.5s steps(1) infinite;
}
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-4%, -5%); }
    40%  { transform: translate(-8%, 3%); }
    60%  { transform: translate(5%, -8%); }
    80%  { transform: translate(-5%, 7%); }
    100% { transform: translate(0, 0); }
}

/* B — Page Load Entrance */
body { animation: pageEntrance 0.55s ease both; }
@keyframes pageEntrance {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* C — Back to Top Button */
#backToTop {
    position: fixed;
    right: 28px; bottom: 28px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(10, 18, 38, 0.92);
    border: 1px solid rgba(96, 165, 250, 0.32);
    color: #60a5fa;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9990;
    display: grid; place-items: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 14px rgba(96,165,250,0.1);
    opacity: 0;
    transform: translateY(14px) scale(0.8);
    transition: opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background 0.25s ease;
    pointer-events: none;
    font-family: sans-serif; line-height: 1;
}
#backToTop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
#backToTop:hover {
    background: rgba(59, 130, 246, 0.18);
    box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 22px rgba(96,165,250,0.28);
    transform: translateY(-3px) scale(1.08) !important;
}

/* F — Mobile Nav Backdrop */
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: none;
}
.nav-backdrop.active, .nav-backdrop.open {
    opacity: 1;
    pointer-events: all;
    display: block;
}

/* G — YouTube Lazy Thumbnail */
.yt-lazy { cursor: pointer; }
.yt-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.55s ease, filter 0.4s ease;
    filter: brightness(0.8);
}
.yt-lazy:hover .yt-thumb {
    transform: scale(1.026);
    filter: brightness(0.6);
}
.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 74px; height: 74px;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: grid; place-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.55);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
    pointer-events: none;
}
.yt-lazy:hover .yt-play-btn {
    transform: translate(-50%, -50%) scale(1.18);
    background: rgba(255,255,255,0.24);
}
.yt-label {
    position: absolute;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.72);
    color: #e2e8f0;
    font-size: 0.82rem; font-weight: 600;
    padding: 5px 18px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* E — Preset Stagger Filter Animation */
@keyframes staggerFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.preset-group.filter-animate .preset-item {
    animation: staggerFadeIn 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: var(--stagger-delay, 0s);
}

/* I — Floating Buy FAB */
#buyFab {
    position: fixed;
    left: 28px; bottom: 28px;
    z-index: 9990;
    opacity: 0;
    transform: translateY(18px) scale(0.88);
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
#buyFab.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
#buyFab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(124,58,237,0.3);
}
#buyFab-link::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 300%;
    border-radius: 104px;
    opacity: 0.45;
    animation: glowingBtn 3s linear infinite;
    filter: blur(6px);
    z-index: -1;
}
#buyFab-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 28px rgba(124,58,237,0.45);
}

@media (max-width: 480px) {
    #backToTop { right: 16px; bottom: 16px; }
    #buyFab { left: 16px; bottom: 16px; }
    #buyFab-link { font-size: 0.82rem; padding: 10px 16px; }
}

/* Video Demo Section Styles - Centered Balanced Ultra Wide Layout */
.video-preview {
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 80px 24px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    left: auto;
    right: auto;
    scroll-margin-top: 64px;
}

.video-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
}

/* Video Filter Tabs */
.video-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 36px;
    flex-wrap: wrap;
}

.vfilter-btn {
    padding: 9px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.75);
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.vfilter-btn:hover {
    border-color: rgba(96, 165, 250, 0.5);
    color: #ffffff;
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.vfilter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45);
}

.video-card-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #090d16;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (max-width: 1024px) {
    .video-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.video-card-box:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(96, 165, 250, 0.3);
}

/* Video Card Badge */
.video-card-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    left: auto;
    z-index: 4;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 11px;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.video-card-badge.vbadge-magic {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: #ffffff;
}

.video-card-badge.vbadge-motion {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #ffffff;
}

.video-card-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-box.yt-facade {
    cursor: pointer;
}

.yt-facade-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.video-card-box.yt-facade:hover .yt-facade-thumb {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.yt-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    z-index: 2;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.7));
    pointer-events: none;
}

.video-card-box.yt-facade:hover .yt-facade-play {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 6px 20px rgba(239, 68, 68, 0.6));
}

.yt-facade-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 13px 145px 16px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ==============================================
   ✦ CUSTOM SCRIPT ORDER SECTION STYLES
   ============================================== */
.custom-script-section {
    margin: 60px auto 100px;
    max-width: 1000px;
    padding: 0 20px;
    position: relative;
}

.custom-script-card-simple {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.custom-script-card-simple:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(96, 165, 250, 0.2);
}

.custom-script-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.custom-contact-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    color: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.contact-btn.discord {
    background: linear-gradient(135deg, #5865F2, #7289da);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}

.contact-btn.tg {
    background: linear-gradient(135deg, #0088cc, #00a2ed);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
}

.contact-btn.fb {
    background: linear-gradient(135deg, #1877f2, #3b82f6);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
}

.contact-btn.email {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    transform: translateY(-3px);
    opacity: 0.95;
}

.contact-btn.discord:hover {
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.55);
}

.contact-btn.tg:hover {
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.5);
}

.contact-btn.fb:hover {
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
}

.contact-btn.email:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .custom-script-card-simple {
        padding: 32px 20px;
    }
    .custom-contact-btns {
        flex-direction: column;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ==============================================
   ✦ ABOUT ME (Minimal Circle Layout)
   ============================================== */
.about-minimal-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 24px;
}

.about-circle-frame {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #dddddd;
    border: 3px solid rgba(96, 165, 250, 0.45);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(96, 165, 250, 0.22);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-circle-frame:hover {
    transform: scale(1.02);
    border-color: rgba(147, 197, 253, 0.85);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.35), 0 0 45px rgba(168, 85, 247, 0.25);
}

.about-circle-frame .about-rive-canvas,
.about-circle-frame #riveCanvas {
    position: absolute !important;
    width: 520px !important;
    height: 293px !important;
    max-width: none !important;
    margin: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -46%) !important;
    display: block !important;
    pointer-events: none !important;
}

.about-text-content {
    flex: 1;
    max-width: 620px;
}

.about-text-content h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.about-text-content .about-subtitle {
    font-size: 1.02rem;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.about-text-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #cbd5e1;
    margin: 0 0 16px 0;
}

.about-text-content p strong {
    color: #ffffff;
    font-weight: 600;
}

.about-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.about-spec-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-1px);
}

.about-spec-tag .spec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 8px #60a5fa;
}

.about-social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.about-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.about-social-btn:hover {
    background: rgba(96, 165, 250, 0.18);
    border-color: rgba(96, 165, 250, 0.5);
    color: #60a5fa;
    transform: translateY(-2px);
}

@media (max-width: 868px) {
    .about-minimal-wrap {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding: 10px 16px;
    }
    .about-circle-frame {
        width: 250px;
        height: 250px;
    }
    .about-circle-frame .about-rive-canvas,
    .about-circle-frame #riveCanvas {
        width: 410px !important;
        height: 231px !important;
        transform: translate(-50%, -46%) !important;
        pointer-events: none !important;
    }
    .about-social-pills {
        justify-content: center;
    }
}

/* ==============================================
   ✦ FAQ SECTION STYLES
   ============================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.faq-item:hover {
    border-color: rgba(96, 165, 250, 0.35);
}

.faq-item.active {
    border-color: rgba(192, 132, 252, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(192, 132, 252, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: #f3f4f6;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.25s ease;
}

.faq-question:hover {
    color: #60a5fa;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #c084fc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    padding: 0 24px 22px 24px;
}

/* ==============================================
   ✦ DUAL SERVICE CARDS & PROCESS STYLES
   ============================================== */
.service-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.service-card-item {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 24px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.service-card-item:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.15);
}

.service-card-item.highlight {
    border-color: rgba(192, 132, 252, 0.35);
}

.service-card-item.highlight:hover {
    border-color: rgba(192, 132, 252, 0.6);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(192, 132, 252, 0.2);
}

.service-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.service-tag.blue {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

.service-tag.purple {
    background: rgba(192, 132, 252, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #c084fc;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 10px;
}

.service-card-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.service-checklist .check-icon {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Discord Copy Button */
.btn-copy-discord {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 100px;
    padding: 8px 18px;
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-copy-discord:hover {
    border-color: rgba(88, 101, 242, 0.6);
    background: rgba(88, 101, 242, 0.15);
    transform: translateY(-2px);
}

.btn-copy-discord .copy-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* 4-Step Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.process-step {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    position: relative;
    transition: border-color 0.3s ease;
}

.process-step:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.step-num {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .service-grid-two {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   ✦ CATALOG SEARCH & FILTER CONTROLS
   ============================================== */
.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
}

.catalog-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.catalog-search-input {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-search-input::placeholder {
    color: #94a3b8;
}

.catalog-search-input:focus {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.25), 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* ── Minimal Ridge Hero Stage & Floating Badges ── */
.hero-stage {
    position: relative;
    padding-top: 130px;
    padding-bottom: 60px;
    text-align: center;
    isolation: isolate;
}
.hero-headline-wrap {
    max-width: 900px;
    margin: 0 auto 32px;
}
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
}
.hero-display-title {
    font-size: clamp(2.5rem, 5.5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 20px;
}
.hero-display-title .gradient-span {
    background: linear-gradient(135deg, #60a5fa 10%, #c084fc 60%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lede-desc {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 740px;
    margin: 0 auto 36px;
    line-height: 1.65;
    font-weight: 300;
}

/* ── Floating Stats Cards (Minimal Ridge Paper Card Aesthetic) ── */
.floating-stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.stat-card-paper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-radius: 16px;
    background: #f2f3ef;
    color: #1e221b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-card-paper:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}
.stat-card-val {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Lexend', sans-serif;
    color: #0d1117;
}
.stat-card-meta {
    text-align: left;
}
.stat-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #555b4e;
    margin-bottom: 2px;
}
.stat-card-sub {
    font-size: 12px;
    color: #7c8375;
    font-weight: 400;
}

/* ── Liquid Glass CTA Buttons ── */
.hero-cta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.btn-liquid-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.3s var(--ease);
}
.btn-liquid-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-liquid-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(16px);
    transition: all 0.3s var(--ease);
}
.btn-liquid-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ── Mobile Responsive Overrides for Dock & Hero ── */
@media (max-width: 992px) {
    .dock-items-group {
        display: none;
    }
    .dock-items-group.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: rgba(14, 18, 26, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
        z-index: 10000;
        gap: 6px;
    }
    .dock-items-group.mobile-open .dock-item {
        width: 100%;
        height: 44px;
        justify-content: flex-start;
        padding: 0 18px;
        font-size: 13px;
        border-radius: 12px;
    }
    .dock-toggle {
        display: inline-flex;
    }
    .ghost-watermark {
        top: 80px;
    }
    .hero-stage {
        padding-top: 100px;
    }
    .floating-stats-row {
        gap: 12px;
    }
    .stat-card-paper {
        padding: 12px 18px;
    }
}

/* ==========================================================================
   Motion Graph Studio - Integrated Styles
   ========================================================================== */

:root {
  --bg-zinc-950: #09090b;
  --bg-zinc-900: #121215;
  --bg-zinc-800: #1f1f23;
  
  --border-zinc: #222226;
  --border-active: #e4e4e7;
  
  --grdt-from: #8b5cf6;
  --grdt-via: #06b6d4;
  --grdt-to: #10b981;
  
  --text-dim: #52525b;

  --font-mono: 'JetBrains Mono', monospace;
}

/* Balanced Centered Container */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Header Centered Layout */
.app-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  width: 100%;
}

.wizard-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4f4f5;
  margin-top: 0.5rem;
}

/* Category Navigation Pills */
.nav-category-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-zinc-950);
  border: 1px solid var(--border-zinc);
  padding: 5px;
  border-radius: 9999px;
  margin-top: 0.75rem;
}

.cat-pill {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.cat-pill.active {
  background: var(--bg-zinc-900);
  color: #ffffff;
  border: 1px solid var(--grdt-via);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

/* 3-Column Studio Grid */
.studio-3col-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .studio-3col-grid {
    grid-template-columns: 1fr;
  }
}

.col-card {
  background: var(--bg-zinc-950);
  border: 1px solid var(--border-zinc);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: 520px;
  position: relative;
  z-index: 10;
  overflow: visible !important;
}

.col-editor {
  z-index: 50 !important;
  overflow: visible !important;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* COLUMN 1: Presets & Variant Pills */
.presets-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.variant-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.variant-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  width: 100%;
}

.var-btn, .preset-pill-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0.85rem;
  background: var(--bg-zinc-950);
  border: 1px solid #1f1f23;
  color: #52525b;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
}

.var-btn span, .preset-pill-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.var-btn:hover, .preset-pill-btn:hover {
  border-color: #3f3f46;
  color: #a1a1aa;
}

.var-btn.active, .preset-pill-btn.active {
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
  background: var(--bg-zinc-950) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.divider-line {
  border: none;
  border-top: 1px solid #1f1f23;
  margin: 0.3rem 0;
}

.preset-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  width: 100%;
  max-height: none;
}

.preset-mini-svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  overflow: visible;
  stroke: #52525b;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all 0.2s ease;
}

.var-btn.active .preset-mini-svg, .preset-pill-btn.active .preset-mini-svg {
  stroke: url(#btnGradientGlow) !important;
  stroke-width: 10;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.6));
}

.search-mini input {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc);
  border-radius: 8px;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  width: 110px;
}

/* COLUMN 2: Editor Canvas (Unclipped Floating Handles) */
.editor-canvas-box {
  background: var(--bg-zinc-950);
  border: 1px solid var(--border-zinc);
  border-radius: 14px;
  padding: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 380px;
  margin: 0 auto;
  overflow: visible !important;
  z-index: 50;
}

#graphSvg {
  width: 100%;
  height: 100%;
  user-select: none;
  overflow: visible !important;
  position: relative;
  z-index: 100;
  pointer-events: none;
}

.handle-node {
  cursor: grab;
  pointer-events: all !important;
}

.handle-node:active {
  cursor: grabbing;
}

.handle-node circle {
  transition: r 0.15s ease;
}

.handle-node:hover circle:first-child {
  r: 22;
  fill: rgba(6, 182, 212, 0.35);
}

.editor-controls-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sliders & Num Box Row */
.slider-field-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.field-label {
  width: 32px;
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.slider-track {
  flex: 1;
  accent-color: var(--grdt-from);
  height: 5px;
  background: var(--bg-zinc-900);
  border-radius: 4px;
  margin: 0;
  cursor: pointer;
}

.num-box {
  width: 54px;
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
  text-align: center;
  -moz-appearance: textfield;
}

.num-box::-webkit-outer-spin-button,
.num-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.num-box:focus {
  border-color: var(--grdt-from);
  outline: none;
}


/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-zinc-800);
  border-radius: 18px;
  transition: 0.2s;
}
.slider.round:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}
input:checked + .slider { background-color: var(--grdt-to); }
input:checked + .slider:before { transform: translateX(14px); }

/* COLUMN 3: Preview Stage */
.preview-stage-grid {
  height: 380px;
  background: var(--bg-zinc-950);
  border: 1px solid var(--border-zinc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  perspective: 300px;
  width: 100%;

  background-image: 
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Main Purple Animation Square Block */
.purple-anim-block {
  width: 85px;
  height: 85px;
  background: var(--grdt-from);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  position: absolute;
  z-index: 10;
}

/* Linear Outline Comparison Block */
.linear-outline-block {
  width: 85px;
  height: 85px;
  border: 2px stroke var(--grdt-to);
  border-radius: 18px;
  position: absolute;
  z-index: 5;
  opacity: 0.4;
  display: none;
}

.preview-controls-footer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.playback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-circular {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-circular.active, .btn-circular:hover {
  border-color: var(--grdt-via);
  color: #fff;
}

.duration-row {
  margin-top: 0.2rem;
}

.duration-row .field-label {
  width: auto;
  min-width: 58px;
  white-space: nowrap;
}


/* 5 Motion Mode Icon Buttons */
.motion-modes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.mode-icon-btn {
  height: 36px;
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc);
  border-radius: 8px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-icon-btn.active, .mode-icon-btn:hover {
  border-color: var(--grdt-from);
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
}


/* Bottom Code Export Bar */
.code-export-bar {
  background: var(--bg-zinc-950);
  border: 1px solid var(--border-zinc);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.code-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.code-format-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.code-format-tabs::-webkit-scrollbar {
  display: none;
}

.code-tab {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.73rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.code-tab.active {
  background: var(--grdt-from);
  color: #fff;
  border-color: var(--grdt-from);
}

.btn-copy-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--grdt-from);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.btn-copy-main:hover {
  background: var(--grdt-from);
}

.code-text-display {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc);
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a78bfa;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-text-display pre {
  margin: 0;
  padding: 0;
  white-space: pre;
  overflow: visible;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.code-text-display code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

/* ==========================================================================
   About Me / Creator Profile Section with Interactive Rive Character
   ========================================================================== */
.about-me-section {
  max-width: 1200px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 80px 24px 40px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

@media (max-width: 868px) {
  .about-me-section {
    min-height: auto;
    padding: 100px 16px 40px;
  }
}

.about-me-card {
  background: rgba(14, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.about-me-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.about-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: fit-content;
}

.about-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-bio {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.about-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.about-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.about-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.about-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f3f4f6;
}

.about-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.about-character-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden !important;
  background: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Legacy riveCanvas removed */


/* ====================================================================== *
 * Shop Section
 * ====================================================================== */
.store-divider-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-width: 660px;
    margin: 0 auto 24px;
    box-sizing: border-box;
    transition: max-width 0.3s ease;
}

.shop-section:has(.cols-2) .store-divider-header { max-width: 660px; }
.shop-section:has(.cols-3) .store-divider-header { max-width: 980px; }
.shop-section:has(.cols-4) .store-divider-header { max-width: 1180px; }
.store-divider-header.services-divider-header { max-width: 1060px; margin: 0 auto 18px; }

.store-divider-line {
    flex: 1;
    height: 1px;
    position: relative;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.35);
}

.store-divider-line:first-child {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 25%, 
        rgba(147, 51, 234, 0.65) 70%, 
        rgba(96, 165, 250, 0.95) 100%
    );
}

.store-divider-line:last-child {
    background: linear-gradient(90deg, 
        rgba(96, 165, 250, 0.95) 0%, 
        rgba(147, 51, 234, 0.65) 30%, 
        rgba(59, 130, 246, 0.3) 75%, 
        transparent 100%
    );
}
.store-divider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}
.store-divider-badge:hover {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.2);
}
.store-divider-icon {
    display: block;
    flex-shrink: 0;
    color: #60a5fa;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6));
}
.store-divider-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f1f5f9;
    margin: 0;
    line-height: 1;
}

.shop-section {
    max-width: 1200px;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 24px 20px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

@media (max-width: 868px) {
    .shop-section {
        min-height: auto;
        padding: 50px 16px;
    }
}

@media (max-width: 868px) {
    .shop-section {
        min-height: auto;
        padding: 40px 16px 60px;
    }
}

.shop-tabs {
    display: none !important;
}

.shop-tab {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.shop-tab:hover { border-color: rgba(96, 165, 250, 0.5); color: #fff; }

.shop-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35));
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.2);
}

.shop-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1160px;
    transition: all 0.3s ease;
}

.shop-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 1160px;
    gap: 22px !important;
}

.shop-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 1160px;
    gap: 18px !important;
}

.shop-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1180px;
    gap: 14px !important;
}

/* Kích thước ô hiển thị (Card Sizes có thể chỉnh từ Admin) */
.shop-grid.size-sm { max-width: 760px !important; }
.shop-grid.size-md { max-width: 960px !important; }
.shop-grid.size-lg { max-width: 1160px !important; }

/* Tùy biến độ thoáng và nổi bật cho ô thẻ dạng 2 cột */
.shop-grid.cols-2 .shop-card-body {
    padding: 13px 18px 8px;
}
.shop-grid.cols-2 .shop-card-title {
    font-size: 1.15rem;
    margin: 3px 0 6px;
}
.shop-grid.cols-2 .shop-card-desc {
    font-size: 0.86rem;
    line-height: 1.45;
}
.shop-grid.cols-2 .shop-card-footer {
    padding: 10px 18px 12px;
}
.shop-grid.cols-2 .shop-price {
    font-size: 1.25rem;
}
.shop-grid.cols-2 .shop-buy-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
}

@media (max-width: 1120px) {
    .shop-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 960px;
    }
}

@media (max-width: 868px) {
    .shop-grid,
    .shop-grid.cols-2,
    .shop-grid.cols-3,
    .shop-grid.cols-4 {
        grid-template-columns: 1fr;
        max-width: 520px !important;
    }
}

@media (max-width: 600px) {
    .shop-grid,
    .shop-grid.cols-2,
    .shop-grid.cols-3,
    .shop-grid.cols-4 {
        grid-template-columns: 1fr;
        max-width: 100% !important;
    }
}

.shop-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-width: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: shopCardIn 0.35s ease both;
}

.shop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(192, 132, 252, 0.5);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 22px rgba(192, 132, 252, 0.15);
}

@keyframes shopCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.shop-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.25), transparent 60%),
                radial-gradient(circle at 80% 90%, rgba(139, 92, 246, 0.25), transparent 60%),
                rgba(2, 6, 23, 0.6);
    border-bottom: 1px solid var(--surface-border);
    cursor: pointer;
}

.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #0b1120;
    transition: transform 0.35s ease;
}

.shop-card-media iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    background: #000;
}

.shop-card-media.shop-card-media-video {
    cursor: default;
    background: #000;
}

.shop-card:hover .shop-card-media img {
    transform: scale(1.03);
}

.shop-card-icon { font-size: 1.8rem; filter: drop-shadow(0 3px 10px rgba(96, 165, 250, 0.35)); }

.shop-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 100px;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    box-shadow: 0 3px 8px rgba(244, 63, 94, 0.35);
}

.shop-card-body { padding: 9px 12px 4px; flex: 1; }
.shop-card.no-media .shop-card-body { padding: 9px 12px 4px; }
.shop-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}
.shop-card.no-media .shop-badge {
    position: static;
    margin: 0;
}

.shop-card-cat {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #60a5fa;
}

.shop-card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 2px 0 3px;
    line-height: 1.25;
}

.shop-card-desc {
    color: #cbd5e1;
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ẩn bullet features dài trên thẻ grid để ô sản phẩm gọn gàng, không bị dài */
.shop-card-features { display: none !important; }

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 12px 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.shop-price {
    font-family: 'Lexend', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.shop-price.free { color: #10b981; }
.shop-price.tbd { font-size: 0.8rem; color: #cbd5e1; }
.shop-price-old {
    position: relative;
    display: inline-block;
    font-family: 'Lexend', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
}
.shop-price-old::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.2px;
    background: #94a3b8;
    transform: translateY(-50%) rotate(-18deg);
    pointer-events: none;
}

.shop-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.shop-detail-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.shop-detail-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.shop-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    border-radius: 100px;
}

.shop-empty { width: 100%; text-align: center; color: var(--text-muted); padding: 40px 0; }

@media (max-width: 480px) {
    .shop-section { margin-top: 70px; }
    .shop-card-footer { flex-direction: column; align-items: stretch; }
    .shop-buy-btn { width: 100%; }
}

/* ==========================================================================
   Home Video Demo Showcase Gallery Section
   ========================================================================== */
.video-demo-section {
    position: relative;
    z-index: 5;
    margin: 80px auto 110px;
    width: 95%;
    max-width: 1720px;
    padding: 0 24px;
}

.video-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.video-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.35);
}

.video-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(139, 92, 246, 0.85));
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.video-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

@media (max-width: 990px) {
    .video-demo-section {
        width: 100%;
        padding: 0 16px;
    }
    .video-demo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.video-demo-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-demo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 132, 252, 0.7);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(192, 132, 252, 0.28);
}


.video-demo-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090d16;
    overflow: hidden;
    border-bottom: none;
}

.video-demo-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-demo-info {
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-demo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.video-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}

.video-badge.blue {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.video-badge.purple {
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #c084fc;
}

.video-duration {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.video-demo-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 8px;
    line-height: 1.4;
}

.video-demo-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}

.video-demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.video-action-btn {
    padding: 7px 16px !important;
    font-size: 0.82rem !important;
    border-radius: 999px !important;
}

.video-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    transition: all 0.2s ease;
}

.video-yt-link:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Shop Checkout Modal (Refined & Luxury SaaS Style) ── */
.ck-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ck-backdrop.open { opacity: 1; visibility: visible; }

.ck-dialog {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px 28px 24px;
    border-radius: 24px;
    background: linear-gradient(175deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85), 0 0 45px -10px rgba(56, 189, 248, 0.12);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ck-backdrop.open .ck-dialog { transform: none; }

/* Clean Top Header: Independent Close Button */
.ck-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.ck-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}
.ck-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.ck-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    margin: 0 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ck-product-info {
    flex: 1;
    min-width: 0;
}
.ck-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 3px;
}
.ck-product-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #f8fafc;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ck-product-price {
    flex-shrink: 0;
    text-align: right;
}
.ck-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.ck-price-sub {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ck-price-old {
    position: relative;
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
}
.ck-price-old::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.5px;
    background: #94a3b8;
    transform: translateY(-50%) rotate(-18deg);
    pointer-events: none;
}
.ck-discount-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1px 6px;
    border-radius: 6px;
    line-height: 1.2;
}
.ck-price-main {
    font-family: 'Lexend', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.ck-coupon-wrap { margin: 0 0 16px; }
.ck-coupon-row { display: flex; gap: 8px; }
.ck-coupon-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 0.88rem;
}
.ck-btn-apply {
    padding: 0 20px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ck-btn-apply:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(192, 132, 252, 0.25));
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}
.ck-coupon-msg { font-size: 0.82rem; margin-top: 6px; }

.ck-field-group { margin-bottom: 6px; }
.ck-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 7px;
}
.ck-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.95rem;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.ck-input:focus {
    border-color: #38bdf8;
    background: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.ck-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin: 6px 0 0;
    line-height: 1.4;
    text-align: left;
}

.ck-paypal { margin-top: 18px; min-height: 50px; }
.ck-loading { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 14px 0; }

.ck-text-btn {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}
.ck-text-btn:hover {
    color: #94a3b8;
    text-decoration: underline;
}

.ck-status { margin-top: 14px; font-size: 0.88rem; text-align: center; border-radius: 10px; }
.ck-status:empty { display: none; }
.ck-status.info, .ck-status.error, .ck-status.success { padding: 10px 12px; }
.ck-status.info { background: rgba(59, 130, 246, 0.12); color: #bfdbfe; }
.ck-status.error { background: rgba(244, 63, 94, 0.12); color: #fecdd3; }
.ck-status.success { background: rgba(16, 185, 129, 0.12); color: #a7f3d0; }
.ck-link { color: #6ee7b7; font-weight: 700; }

.ck-dialog [data-view="success"] { text-align: center; }
.ck-success-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 12px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}
.ck-success-title { font-family: 'Lexend', sans-serif; font-size: 1.35rem; color: #f8fafc; margin-bottom: 6px; }
.ck-success-text { color: #cbd5e1; font-size: 0.95rem; }
.ck-order-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.ck-order-box code { color: #f8fafc; font-size: 0.95rem; }
.ck-copy { background: none; border: none; cursor: pointer; font-size: 1rem; }
.ck-download {
    display: flex;
    width: 100%;
    margin-top: 16px;
    padding: 13px;
    justify-content: center;
    text-decoration: none;
    border: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}



/* ── Product Details Modal (Quick View) ── */
.pdm-dialog {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px 30px 28px;
    border-radius: 26px;
    background: linear-gradient(175deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.85), 0 0 50px -10px rgba(56, 189, 248, 0.15);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdm-backdrop.open .pdm-dialog { transform: none; }

.pdm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.pdm-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdm-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 100px;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}
.pdm-cat {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 10px;
    border-radius: 8px;
}

.pdm-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* Left column: Banner & Meta */
.pdm-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pdm-media-box {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.2), transparent 60%),
                radial-gradient(circle at 80% 90%, rgba(139, 92, 246, 0.2), transparent 60%),
                rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.pdm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdm-fallback-icon {
    font-size: 4rem;
    filter: drop-shadow(0 6px 18px rgba(96, 165, 250, 0.4));
}

.pdm-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pdm-meta-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.pdm-meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.pdm-meta-val {
    display: block;
    font-size: 0.88rem;
    color: #f1f5f9;
    font-weight: 500;
    line-height: 1.4;
}

/* Right column: Details & Action */
.pdm-right {
    display: flex;
    flex-direction: column;
}
.pdm-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}
.pdm-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.pdm-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pdm-price-current {
    font-family: 'Lexend', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #38bdf8;
}
.pdm-price-old {
    position: relative;
    display: inline-block;
    font-size: 1.05rem;
    color: #64748b;
    text-decoration: none;
}
.pdm-price-old::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 1.5px;
    background: #64748b;
    transform: translateY(-50%) rotate(-18deg);
    pointer-events: none;
}
.pdm-delivery-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
}

.pdm-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}
.pdm-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}
.pdm-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pdm-features-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.5;
}
.pdm-features-list .check-icon {
    color: #10b981;
    font-weight: 800;
    font-size: 0.9rem;
}

.pdm-long-desc {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

.pdm-action-row {
    margin-top: 8px;
    margin-bottom: 8px;
}
.pdm-checkout-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
}
.pdm-guarantee {
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 8px;
}

.pdm-showcase-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    margin-top: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px dashed rgba(96, 165, 250, 0.35);
    border-radius: 12px;
    color: #93c5fd;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pdm-showcase-link:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-1px);
}

/* Card hover zoom overlay */
.shop-card-media {
    cursor: pointer;
    position: relative;
}
.shop-card-zoom {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
    pointer-events: none;
}
.shop-card:hover .shop-card-zoom {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .pdm-dialog { padding: 20px 18px; max-width: 95%; }
    .pdm-body { grid-template-columns: 1fr; gap: 20px; }
    .pdm-title { font-size: 1.4rem; }
}

/* ==========================================================================
   Multi-Tab View Architecture & Motion Presets Sub-Navigation
   ========================================================================== */
.page-view {
    width: 100%;
    animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Motion Presets Sticky Sub-Nav */
.mp-subnav-bar {
    position: sticky;
    top: 76px;
    z-index: 990;
    margin: 16px auto 36px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(96, 165, 250, 0.12);
    max-width: 960px;
    transition: all 0.25s ease;
}

.mp-subnav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-subnav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mp-subnav-back:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    color: #fff;
    transform: translateX(-2px);
}

.mp-subnav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-subnav-links::-webkit-scrollbar {
    display: none;
}

.mp-subnav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mp-subnav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mp-subnav-link.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.mp-subnav-buy {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    border-radius: 9999px !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* Motion Presets Bottom Showcase CTA */
.mp-bottom-cta {
    margin: 80px auto 40px;
    max-width: 960px;
    padding: 0 20px;
}

.mp-bottom-cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(96, 165, 250, 0.15);
}

.mp-bottom-cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 200px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.mp-bottom-cta-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 16px 0 12px;
    background: linear-gradient(135deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mp-bottom-cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.mp-bottom-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mp-cta-buy-btn {
    padding: 13px 30px !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

.mp-cta-store-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mp-cta-store-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(96, 165, 250, 0.4);
    color: #fff;
}

/* Featured Card in Shop Grid */
.shop-card.shop-card-featured {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.5), 0 0 28px rgba(96, 165, 250, 0.12);
}

.shop-card.shop-card-featured:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.6), 0 0 36px rgba(96, 165, 250, 0.22);
}

.shop-detail-btn.shop-detail-highlight {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    font-weight: 600;
}

.shop-detail-btn.shop-detail-highlight:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: #60a5fa;
    color: #fff;
}

/* ==========================================================================
   Large Product Showcase Modal (Motion Presets Pro & Full Script Info)
   ========================================================================== */
.mp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 8, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
}

.mp-modal-backdrop.open {
    display: flex;
    opacity: 1;
}

.mp-modal-dialog {
    position: relative;
    width: 96%;
    max-width: 1560px;
    height: 94vh;
    max-height: 94vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.99) 100%);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(96, 165, 250, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-modal-backdrop.open .mp-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Sticky Top Header */
.mp-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    flex-shrink: 0;
}

.mp-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-modal-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #f8fafc;
    margin: 0;
}

.mp-modal-price {
    font-family: 'Lexend', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #60a5fa;
}

.mp-modal-nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-modal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.mp-modal-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mp-modal-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-modal-buy-btn {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    border-radius: 999px !important;
    white-space: nowrap;
}

.mp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mp-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

/* Modal Scrollable Body */
.mp-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 36px 60px;
    scroll-behavior: smooth;
}

/* Ensure all elements inside mp-modal-body are always 100% visible and bounded */
.mp-modal-body .fade-in {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.mp-modal-body .video-preview {
    width: 100% !important;
    max-width: 1100px !important;
    left: auto !important;
    right: auto !important;
    margin: 40px auto 60px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mp-modal-body .video-grid-container {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .mp-modal-body .video-grid-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 900px) {
    .mp-modal-nav-links { display: none; }
    .mp-modal-dialog { height: 98vh; max-height: 98vh; border-radius: 16px; }
    .mp-modal-header { padding: 12px 16px; }
    .mp-modal-body { padding: 20px 16px 40px; }
    .mp-modal-title { font-size: 1rem; }
    .mp-modal-price { font-size: 1rem; }
}

@media (max-width: 768px) {
    .mp-subnav-bar {
        top: 60px;
        border-radius: 16px;
        padding: 8px 10px;
        margin: 12px auto;
    }
    .mp-subnav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .mp-subnav-links {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    .mp-subnav-back {
        order: 1;
        font-size: 0.78rem;
        padding: 5px 10px;
    }
    .mp-subnav-buy {
        order: 3;
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }
    .mp-bottom-cta-card {
        padding: 36px 18px;
    }
    .mp-bottom-cta-card h2 {
        font-size: 1.6rem;
    }
}


/* Toast Notification for Motion Graph Copy */
#toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999999;
    background: rgba(8, 15, 30, 0.97);
    border: 1px solid rgba(76, 194, 194, 0.5);
    color: #4cc2c2;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}
#toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   Comprehensive Cross-Device Responsive Enhancements (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet Optimization (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 24px; }
    .shop-grid.cols-2 { gap: 18px; max-width: 920px; }
    .shop-grid.cols-3 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
    .video-grid-container { gap: 24px; max-width: 900px; }
    .studio-3col-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Smartphone Optimization (max-width: 768px) */
@media (max-width: 768px) {
    /* Prevent any accidental horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Navbar backdrop */
    .nav-backdrop.active,
    .nav-backdrop.open {
        opacity: 1 !important;
        pointer-events: all !important;
        display: block !important;
    }

    /* Video section */
    .video-preview {
        padding: 50px 16px !important;
        margin: 40px auto !important;
    }
    .video-preview h2 {
        font-size: 2rem !important;
    }
    .video-grid-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }
    .video-card-box {
        border-radius: 18px !important;
    }

    /* Motion Graph */
    #motion-graph {
        margin: 40px auto !important;
        padding: 0 12px !important;
    }
    .wizard-title {
        font-size: 1.8rem !important;
    }
    .nav-category-pills {
        flex-wrap: wrap !important;
        justify-content: center !important;
        border-radius: 20px !important;
        padding: 6px !important;
        gap: 5px !important;
    }
    .cat-pill {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }
    .editor-canvas-box {
        max-height: 320px !important;
    }

    /* Studio Easing & Code Box Mobile Optimization */
    .preview-stage-grid {
        height: 290px !important;
    }
    .purple-anim-block, .linear-outline-block {
        width: 68px !important;
        height: 68px !important;
        border-radius: 14px !important;
    }
    .code-export-bar {
        padding: 0.85rem !important;
    }
    .code-bar-header {
        gap: 0.5rem !important;
    }
    .btn-copy-main {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.74rem !important;
        font-weight: 600 !important;
    }
    .code-text-display {
        font-size: 0.75rem !important;
        padding: 0.55rem 0.75rem !important;
    }

    /* Shop Grid */
    .shop-section {
        padding: 60px 14px !important;
    }
    .shop-title {
        font-size: 1.85rem !important;
    }
    .shop-grid,
    .shop-grid.cols-2,
    .shop-grid.cols-3,
    .shop-grid.cols-4 {
        grid-template-columns: 1fr !important;
        max-width: 540px !important;
        gap: 18px !important;
        margin: 0 auto !important;
    }

    /* Modals */
    .ck-dialog {
        padding: 20px 18px !important;
        max-width: 95% !important;
        border-radius: 20px !important;
    }
    .pdm-dialog {
        padding: 20px 16px !important;
        max-width: 95% !important;
        border-radius: 20px !important;
    }
    .pdm-body {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Small Smartphone Optimization (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.95rem !important;
        letter-spacing: -0.5px !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    .hero-cta-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .hero-cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .shop-card-title {
        font-size: 1.05rem !important;
    }
    .shop-price {
        font-size: 1.15rem !important;
    }
    .shop-buy-btn {
        padding: 7px 14px !important;
        font-size: 0.82rem !important;
    }
    .ck-dialog {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    .pdm-title {
        font-size: 1.25rem !important;
    }
    .mp-modal-dialog {
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    .mp-modal-header {
        padding: 10px 12px !important;
    }
    .mp-modal-body {
        padding: 16px 10px 40px !important;
    }
}
