/* CSS Variables */
:root {
    --primary-color: #0066CC;
    --primary-dark: #004999;
    --primary-light: #E8F4FD;
    --secondary-color: #00D4FF;
    --dark-bg: #0A1628;
    --dark-secondary: #1A2A44;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-tagline {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-300);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.badge-icon {
    font-size: 16px;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-logos span {
    font-size: 14px;
    color: var(--gray-400);
}

.trust-logos .logos {
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0.6;
}

.trust-logos img {
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Lead Form */
.hero-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.lead-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lead-form > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.lead-form .btn {
    margin-top: 8px;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    bottom: -50px;
    left: -50px;
}

/* Audience Selector */
.audience-selector {
    padding: 80px 0;
    background: var(--gray-50);
}

.selector-box {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.selector-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.selector-box > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.selector-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.selector-option {
    position: relative;
    cursor: pointer;
}

.selector-option input {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: block;
    padding: 24px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.selector-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.option-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-desc {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.selector-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Method / Features Section */
.method {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--gray-50);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Trader Showcase */
.trader-showcase {
    padding: 0 0 100px;
}

.trader-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.trader-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.trader-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #22C55E;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Testimonial Section */
.testimonial {
    padding: 100px 0;
    background: var(--gray-50);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.testimonial-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.testimonial-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.testimonial-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.testimonial-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.testimonial-content > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-content blockquote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-primary);
    padding-left: 24px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    margin-bottom: 32px;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Strategies Section */
.strategies {
    padding: 100px 0;
}

.strategies .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strategies .section-header .btn {
    margin-top: 16px;
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.strategy-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.strategy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.strategy-image {
    height: 200px;
    overflow: hidden;
}

.strategy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.strategy-card:hover .strategy-image img {
    transform: scale(1.05);
}

.strategy-content {
    padding: 24px;
}

.strategy-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.strategy-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.strategy-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.strategy-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.strategy-link:hover {
    text-decoration: underline;
}

/* Book Section */
.book-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.book-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: center;
}

.book-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.book-image:hover {
    transform: rotate(0deg);
}

.book-image img {
    width: 100%;
}

.book-content {
    color: var(--white);
}

.book-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.book-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.book-content > p {
    font-size: 16px;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 28px;
}

.book-features {
    margin-bottom: 32px;
}

.book-features li {
    font-size: 15px;
    color: var(--gray-200);
    padding: 8px 0;
}

.book-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-note {
    font-size: 14px;
    color: var(--gray-400);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-box {
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-box .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 80px 0 40px;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand > p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-bottom .disclaimer {
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #22C55E;
    color: var(--white);
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-form-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strategies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonial-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .book-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-form-wrapper {
        padding: 28px;
    }
    
    .selector-options {
        grid-template-columns: 1fr;
    }
    
    .selector-ctas {
        flex-direction: column;
    }
    
    .selector-ctas .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .trader-image img {
        height: 300px;
    }
    
    .testimonial-content h2 {
        font-size: 28px;
    }
    
    .book-content h2 {
        font-size: 28px;
    }
    
    .cta-box h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trust-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .selector-box {
        padding: 28px 20px;
    }
    
    .book-cta {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation States */
.form-group.error input,
.form-group.error select {
    border-color: #EF4444;
}

.form-group .error-message {
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
}

.form-group.success input,
.form-group.success select {
    border-color: #22C55E;
}

/* Email Link */
.email-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.email-link:hover {
    color: var(--primary-dark);
}

/* Contact Email in Footer */
.contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gray-400);
}

.contact-email a {
    color: var(--secondary-color);
    font-size: 14px;
}

.contact-email a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
    transition: var(--transition);
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.5);
}

.chat-icon-close {
    display: none;
}

.chat-widget.active .chat-icon-open {
    display: none;
}

.chat-widget.active .chat-icon-close {
    display: block;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.3s ease;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-widget.active .chat-box {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

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

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
}

.chat-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.chat-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

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

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: var(--gray-100);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-message.user .message-time {
    text-align: right;
}

.chat-quick-replies {
    padding: 0 20px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-reply {
    padding: 8px 14px;
    font-size: 13px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.quick-reply:hover {
    background: var(--primary-color);
    color: var(--white);
}

.chat-input-form {
    display: flex;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    gap: 12px;
}

.chat-input-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.chat-input-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input-form button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.chat-input-form button:hover {
    transform: scale(1.05);
}

/* Chat typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Chat Experience Options */
.chat-experience-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

.experience-option {
    padding: 12px 16px;
    font-size: 14px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
}

.experience-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* Chat responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .chat-box {
        width: calc(100vw - 32px);
        right: 0;
        bottom: 76px;
        max-height: 70vh;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
    }
}
