/* --- CORE VARIABLES --- */
:root {
    --white: #ffffff;
    --off-white: #f8f9fc;
    --black: #111827;
    --text-gray: #4b5563;
    --border: #e5e7eb;
    --burst-pink: #ff0055;
    --burst-purple: #8a2be2;
    --burst-gradient-text: linear-gradient(90deg, #ff3c00, #ff0055, #8a2be2);
    --gradient-premium: linear-gradient(135deg, #ff3c00 0%, #ff0055 50%, #8a2be2 100%);
    --shadow-premium: 0 12px 30px -10px rgba(255, 0, 85, 0.45), 0 4px 15px -5px rgba(138, 43, 226, 0.3);
    --shadow-hover: 0 20px 40px -12px rgba(255, 0, 85, 0.55), 0 8px 20px -5px rgba(138, 43, 226, 0.4);
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
}

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

body {
    background-color: var(--white);
    color: var(--black);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- LAYOUT --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.section { padding: 100px 0; }
.bg-light { background-color: var(--off-white); }
.text-center { text-align: center; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 800; color: var(--black); line-height: 1.1; text-transform: uppercase; }
h1 { font-size: clamp(2.8rem, 8vw, 4.8rem); margin-bottom: 30px; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; letter-spacing: -0.01em; }
.gradient-text {
    background: var(--burst-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- NAVIGATION --- */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--black); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 25px; height: 25px; background: var(--gradient-premium); border-radius: 50%; box-shadow: 0 4px 10px rgba(255, 0, 85, 0.3); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--black); font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.nav-links a:hover { color: var(--burst-pink); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-weight: 800; font-size: 0.95rem; color: var(--black); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.nav-phone:hover { color: var(--burst-pink); }

.cart-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    transition: 0.2s;
}
.cart-wrapper:hover { background-color: var(--off-white); }
.cart-badge {
    position: absolute; top: 0; right: 0;
    background: var(--burst-pink); color: white; font-size: 0.7rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; border: 2px solid white;
}

/* --- SIDEBARS --- */
.cart-sidebar {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100vh;
    background: white; z-index: 2000; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-footer { padding: 24px; border-top: 1px solid var(--border); background: var(--off-white); }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-gray); font-weight: 600; }
.cart-summary-row.total { font-size: 1.1rem; font-weight: 800; color: var(--black); border-top: 1px solid var(--border); padding-top: 15px; margin-top: 10px; }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.cart-item h4 { font-size: 0.9rem; margin-bottom: 4px; text-transform: none; }
.cart-item p { font-size: 0.85rem; color: var(--text-gray); margin: 0; }
.cart-item-remove { color: #ef4444; cursor: pointer; background: none; border: none; font-size: 0.8rem; font-weight: 700; }

/* --- UPSELL MODAL --- */
.upsell-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2100;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.upsell-overlay.active { opacity: 1; pointer-events: auto; }
.upsell-modal {
    background: white; width: 90%; max-width: 900px; max-height: 90vh;
    border-radius: 20px; overflow-y: auto; padding: 30px;
    position: relative; transform: translateY(20px); transition: 0.3s;
    color: var(--black);
}
.upsell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin: 20px 0; }
.upsell-item { border: 1px solid var(--border); border-radius: 12px; padding: 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.upsell-icon { font-size: 1.5rem; color: var(--burst-pink); margin-bottom: 10px; display: block; }

/* --- HERO & ROBOT --- */
.hero { padding: 180px 0 100px; position: relative; }
.hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; max-width: 700px; position: relative; z-index: 10; }

.robot-container {
    flex-shrink: 0; width: 350px; height: 350px; position: relative; z-index: 1;
}
.bot-head {
    width: 120px; height: 120px; background: white; border: 4px solid var(--black);
    border-radius: 30px; position: absolute; left: 50%; transform: translateX(-50%);
    box-shadow: 10px 10px 0 var(--burst-pink); display: flex; justify-content: center; align-items: center;
    z-index: 2; transition: transform 0.1s ease-out;
}
.bot-eye { width: 24px; height: 24px; background: var(--black); border-radius: 50%; margin: 0 10px; position: relative; }
.bot-eye::after { content: ''; position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; background: white; border-radius: 50%; }
.bot-body {
    width: 140px; height: 100px; background: var(--burst-purple); border: 4px solid var(--black);
    border-radius: 30px; position: absolute; top: 110px; left: 50%; transform: translateX(-50%);
    animation: hoverBot 4s infinite ease-in-out; z-index: 1;
}
@keyframes hoverBot { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-15px); } }

/* --- PROCESS & ADDONS --- */
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 80px; }
.process-card { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 40px 30px 30px; position: relative; box-shadow: var(--shadow); transition: 0.3s; height: 100%; display: flex; flex-direction: column; text-align: center; }
.process-card:hover { transform: translateY(-10px); border-color: var(--burst-pink); box-shadow: var(--shadow-hover); }
.process-number { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; background: var(--gradient-premium); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 10px 20px rgba(255, 0, 85, 0.2); border: 4px solid white; }
.process-title { font-size: 1.2rem; margin-bottom: 12px; margin-top: 10px; color: var(--black); }

.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 50px; }
.addon-card { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); transition: 0.3s; display: flex; flex-direction: column; height: 100%; }
.addon-card:hover { border-color: var(--burst-pink); }
.icon-box { width: 50px; height: 50px; background: var(--off-white); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; color: var(--burst-pink); }

/* Toggle UI */
.payment-toggle { display: flex; background: #f3f4f6; border-radius: 10px; padding: 4px; margin-bottom: 15px; border: 1px solid var(--border); }
.toggle-btn { flex: 1; border: none; background: transparent; padding: 6px; font-size: 0.75rem; font-weight: 700; border-radius: 8px; cursor: pointer; color: var(--text-gray); transition: 0.2s; }
.toggle-btn.active { background: white; color: var(--black); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* --- PRICING --- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.plan-card { background: white; border: 2px solid var(--border); border-radius: 30px; padding: 30px; text-align: center; transition: 0.3s; }
.plan-card:hover { border-color: var(--burst-pink); transform: translateY(-5px); }
.plan-card.popular { border-color: var(--burst-purple); background: #fdfaff; position: relative; }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--burst-purple); color: white; padding: 4px 15px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.price { font-size: 2.5rem; font-weight: 800; margin: 20px 0; }
.features-list { list-style: none; text-align: left; margin-bottom: 25px; font-size: 0.85rem; }
.features-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }

/* --- PREMIUM BUTTONS --- */
.btn {
    padding: 14px 28px; border-radius: 50px; font-weight: 800; cursor: pointer;
    display: inline-flex; align-items: center; text-decoration: none; border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-primary { background: var(--black); color: white; }
.btn-gradient { 
    background: var(--gradient-premium); color: white; 
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-gradient:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--black); }
.btn-outline:hover { border-color: var(--burst-pink); color: var(--burst-pink); transform: translateY(-3px); }

/* Add-on UI specifics */
.addon-price-display { font-weight: 800; color: var(--burst-pink); font-size: 1.25rem; margin-bottom: 5px; }
.addon-price-display span { font-size: 0.85rem; color: var(--text-gray); font-weight: 600; }
.addon-info { font-size: 0.85rem; color: var(--text-gray); flex-grow: 1; margin-bottom: 15px; }

/* --- CHAT & COOKIE --- */
.chat-trigger { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; border-radius: 50%; background: var(--gradient-premium); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; z-index: 10000; box-shadow: 0 10px 30px rgba(255, 0, 85, 0.3); transition: 0.3s; }
.chat-window { position: fixed; bottom: 110px; right: 30px; width: 380px; height: 500px; background: white; border-radius: 24px; z-index: 10000; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.15); display: none; flex-direction: column; transform: translateY(20px); transition: 0.3s; border: 1px solid var(--border); }
.chat-window.active { display: flex; transform: translateY(0); }
.chat-header { background: var(--gradient-premium); padding: 25px; color: white; display: flex; align-items: center; gap: 15px; }
.chat-body { flex: 1; padding: 20px; background: #f9fafb; overflow-y: auto; display: flex; flex-direction: column; }
.chat-msg { margin-bottom: 15px; max-width: 85%; padding: 12px 16px; font-size: 0.9rem; border-radius: 18px; line-height: 1.4; }
.chat-msg.bot { background: white; color: var(--black); border-bottom-left-radius: 2px; border: 1px solid var(--border); }
.chat-msg.user { background: var(--gradient-premium); color: white; border-bottom-right-radius: 2px; align-self: flex-end; margin-left: auto; }

.cookie-banner { position: fixed; bottom: 30px; left: 30px; max-width: 500px; background: #111827; border: 1px solid rgba(255, 255, 255, 0.1); border-left: 5px solid #ff0055; border-radius: 16px; padding: 24px; z-index: 11000; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); display: none; flex-direction: column; gap: 20px; }
.cookie-text { color: #ffffff; font-size: 0.9rem; line-height: 1.6; }
.cookie-text a { color: #ff0055; text-decoration: underline; font-weight: 700; }
.cookie-btns { display: flex; gap: 12px; }
.btn-cookie-decline { background: transparent !important; color: #ffffff !important; border: 2px solid rgba(255, 255, 255, 0.3) !important; padding: 10px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-cookie-accept { background: var(--gradient-premium) !important; color: #ffffff !important; border: none !important; padding: 10px 25px; border-radius: 50px; font-size: 0.85rem; font-weight: 800; cursor: pointer; transition: 0.3s; }

/* --- ICON & MOBILE FIXES --- */

/* 1. Prevent "Black Triangles" by forcing no fill on SVG paths */
.check-icon, .addon-svg, .nav-phone svg, .nav-actions svg, .cart-wrapper svg {
    fill: none !important;
}

.check-icon *, .addon-svg *, .nav-phone svg *, .nav-actions svg *, .cart-wrapper svg * {
    fill: none !important;
}

/* 2. Specific styles for Check Icons */
.check-icon {
    width: 16px;
    height: 16px;
    stroke: var(--burst-pink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 8px;
}

/* 3. Specific styles for Add-on Icons */
.addon-svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 4. Fix Navbar Icons */
.nav-phone svg, .nav-actions svg, .cart-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Ensure Logo Icon (likely filled) isn't cleared */
.logo-icon svg * {
    fill: inherit !important;
    stroke: none !important;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1100px) {
    .pricing-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-flex { flex-direction: column; text-align: center; }
    .robot-container { order: -1; margin-bottom: 40px; }
    .nav-phone { display: none; } 
    /* Force hiding the header phone and Get Started button on mobile to prevent clutter */
    .nav-actions .btn { display: none !important; }
}

/* --- MOBILE MENU STYLES --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #111827;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        padding: 40px;
    }
    .nav-links.active {
        transform: translateX(0);
        display: flex !important; /* Override external CSS hiding */
    }
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 800;
    }
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    /* Style for the close button inside menu */
    .mobile-close {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
    }
}

/* --- MOBILE SPECIFIC FIXES (Bottom Elements) --- */
/* Force Display Class for JS toggle */
.cookie-banner.show-banner {
    display: flex !important;
}

@media (max-width: 650px) {
    .pricing-grid, .process-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }

    /* Add padding to bottom of footer so chat/cookie banner don't cover text */
    footer {
        padding-bottom: 150px !important;
    }

    .cookie-banner {
        position: fixed !important; /* CRITICAL: Force Fixed */
        bottom: 20px !important; /* Floating effect */
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        max-width: none !important;
        
        /* PREMIUM STYLING UPDATE - INCREASED OPACITY FOR READABILITY */
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-left: 5px solid #ff0055 !important;
        background: #111827 !important; /* Solid dark background for max readability */
        box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important; /* Deeper Shadow */
        
        padding: 24px !important;
        /* Add safe area padding for iPhone */
        margin-bottom: env(safe-area-inset-bottom) !important;
        z-index: 2147483647 !important; /* Maximum Z-Index */
    }
    
    .cookie-btns {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px !important;
    }
    .cookie-btns button {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 12px !important; /* Larger touch area */
    }

    /* CRITICAL: Fix Chat Trigger on Mobile - Premium Look */
    .chat-trigger {
        position: fixed !important;
        bottom: 260px !important; /* Moved HIGHER to avoid cookie banner overlap */
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        background: linear-gradient(135deg, #ff3c00 0%, #ff0055 50%, #8a2be2 100%) !important;
        box-shadow: 0 8px 25px rgba(255, 0, 85, 0.4) !important; /* Glow */
        z-index: 2147483646 !important;
        display: flex !important;
        transition: bottom 0.3s ease !important;
    }
    
    .chat-trigger svg {
        width: 26px;
        height: 26px;
    }
}