:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --primary: #0f172a;
    /* Deep Royal Blue */
    --accent: #0ea5e9;
    /* Soft Teal/Sky */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-blur: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.8)),
        url('images/background_clean.png') no-repeat center center/cover;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.text-gradient {
    color: var(--accent);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.center {
    text-align: center;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.narrow {
    max-width: 800px;
}

.section-padding {
    padding: 8rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.align-center {
    align-items: center;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* Slightly reduced padding to balance larger logo */
    background: rgba(255, 255, 255, 0.9);
    /* More opaque */
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero {
    min-height: 90vh;
    min-height: 100dvh;
    /* Modern mobile fix */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 180px;
    /* Increased to prevents header overlap */
}

.logo img {
    height: 80px;
    /* Increased from 40px */
    width: auto;
}

.logo .dot {
    color: var(--accent);
}

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

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

.nav-links a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Buttons */
/* Header specific button adjustment */
.nav-links .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    box-shadow: none;
    color: white !important;
    /* Cleaner look in header */
}

.nav-links .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    /* Gradient for better pop */
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape looks more modern/friendly */
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    /* Reverse gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    margin-left: 1rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: var(--primary);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 165, 233, 0.3);
}

.icon-box {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    background: rgba(14, 165, 233, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* --- Phase 4: Secondary Pages --- */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95));
    /* Lighter bg for header */
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 4rem 0;
    min-height: 50vh;
}

.legal-text h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.legal-text p {
    margin-bottom: 1rem;
}

.legal-text ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.job-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-tags span {
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* 3D Tilt Specifics */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1500px);
}

.tilt-content {
    transform: translateZ(10px);
}

/* About Section */
.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list i {
    color: var(--accent);
}

.glass-panel {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.about-visual.glass-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: #fcfcfc;
}

.stat-box .counter {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-box .label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact Form */
.glass-form-container {
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}



.block {
    width: 100%;
}

/* --- Phase 6: Products Section --- */
.product-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    background: white;
}

.product-image {
    text-align: center;
    background: #f1f5f9;
    padding: 3rem;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-logo-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover .product-logo-img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2);
}

.product-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.product-content .tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .product-image {
        padding: 2rem;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 3rem;
    background: #ffffff;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.copyright {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo img {
        height: 60px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
        width: 100%;
    }

    .footer-links .col {
        min-width: 140px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2.5rem;
        /* Reduced from 3rem */
    }

    h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Layout */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--glass-border);
        gap: 1.5rem;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links .btn-primary {
        text-align: center;
        width: 100%;
        color: white !important;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 2rem;
        /* Reduce gap */
    }

    .hero {
        text-align: center;
        justify-content: center;
        padding-top: 140px;
    }

    .hero-content {
        margin: 0 auto;
    }

    /* Cards & Spacing */
    .glass-card,
    .pricing-card-new,
    .product-card {
        padding: 1.5rem;
        /* Reduce padding on mobile */
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .product-image {
        padding: 2rem;
        margin-bottom: 0;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        /* Full width tabs on mobile */
        text-align: center;
    }

    .pricing-header h3 {
        font-size: 1.5rem;
    }

    .price-tag {
        font-size: 1.8rem;
    }
}

/* Tier Switcher */
.tier-switcher {
    display: flex;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.tier-option {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tier-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Plan Selector */
.tier-switcher {
    display: flex;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.tier-option {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tier-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Plan Selector */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.plan-option:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.plan-option.selected {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.plan-option .plan-name {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.plan-option .plan-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.save-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: rotate(10deg);
}

.auth-link {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* --- Phase 7: Subscription Page --- */
.pricing-card {
    background: #f8fafc;
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: 'Recommended';
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.price-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.price-header .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.price-header .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price-header .period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.feature-list.small li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.subscription-form {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.secure-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Glassmorphism Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.modal-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* --- Pricing Page Styles --- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card-new {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.pricing-card-new.featured {
    border: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.9);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.target-audience {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.variable-cost {
    font-size: 0.85rem;
    color: #ef4444;
    /* Red hint for extra cost */
    font-weight: 500;
    margin-top: 0.5rem;
}

.pricing-card-new .feature-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card-new .btn-secondary,
.pricing-card-new .btn-primary {
    margin-top: auto;
}

/* --- Chatbot Widget --- */
.chat-widget-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}

.chat-widget-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-widget-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.6);
}

.whatsapp-btn {
    position: fixed;
    bottom: 7rem;
    right: 2.2rem;
    width: 50px;
    height: 50px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s 0.5s forwards;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.chat-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), #1e293b);
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--font-body);
}

.chat-header .close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-header .close-btn:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: messagePop 0.3s ease-out;
}

@keyframes messagePop {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: #f1f5f9;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    background: white;
}

.chat-input-area input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.8rem !important;
    align-self: flex-start;
    background: white !important;
    border: 1px solid #e2e8f0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .chat-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(100%);
    }

    .chat-widget-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}


/* --- Chat Chips (Horizontal Slider) --- */
.chat-chips {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding: 10px 15px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin-top: 0 !important;
    /* scrollbar-width: thin; */
}

/* 
.chat-chips::-webkit-scrollbar {
    display: none !important;
} */

.chat-chips::-webkit-scrollbar {
    height: 4px;
}

.chat-chips::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.chat-chip {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-main) !important;
    border-radius: 20px !important;
    /* Rounded pills */
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.chat-chip:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    background: white !important;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-decline:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.2rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}