/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #F59E0B;
    --primary-light: #FB923C;
    --primary-dark: #D97706;
    --accent-color: #F43F5E;
    --bg-light: #F3F4F6;
    --bg-peachy: #FEF3C7;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #FB923C 50%, #F43F5E 100%);
    --gradient-cta: linear-gradient(90deg, #F59E0B 0%, #FB923C 50%, #F43F5E 100%);
    --shadow-sm: 0 2px 8px rgba(245, 158, 11, 0.1);
    --shadow-md: 0 4px 16px rgba(245, 158, 11, 0.15);
    --shadow-lg: 0 8px 32px rgba(245, 158, 11, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== PRELOADER ===== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C61 50%, #FF5E7E 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== THREE.JS CANVAS ===== */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-left: 48px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-gray);
    position: relative;
    display: block;
}

.nav-link.auth-required {
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-download-btn i {
    font-size: 28px;
}

.app-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 500;
}

.app-name {
    font-size: 14px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    border: none;
    padding: 8px;
    margin-left: auto;
}

/* ===== AUTHENTICATION MODAL ===== */
.auth-modal-content {
    max-width: 500px;
    width: 90%;
    padding: 48px;
    position: relative;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-container {
    position: relative;
    z-index: 2;
}

.auth-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px 12px 0 0;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.auth-form-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-google {
    width: 100%;
    padding: 16px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.btn-google i {
    font-size: 22px;
    color: #DB4437;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    padding: 0 16px;
}

.auth-form-container .form-group {
    margin-bottom: 24px;
}

.auth-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.auth-form-container input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.auth-form-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.auth-form-container input::placeholder {
    color: var(--text-light);
    font-size: 14px;
}

.auth-form-container .btn-large {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.auth-form-container .btn-large:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

/* ===== USER PROFILE SECTION ===== */
.user-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    margin-right: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 50px;
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.btn-logout:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-menu.mobile-active {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 16px;
}

.nav-menu.mobile-active .nav-link {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline-white {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-outline-white:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-gradient {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-peachy) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 80px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 100px;
    left: 100px;
    animation-delay: 4s;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.card-stat {
    font-size: 13px;
    color: var(--text-light);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== DOMAINS SECTION ===== */
.domains {
    padding: 100px 0;
    background: var(--bg-peachy);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.domain-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.domain-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.domain-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    margin: 0 auto 20px;
}

.domain-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.domain-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.domain-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.domain-stats i {
    color: var(--primary-color);
    margin-right: 6px;
}

/* ===== PRICING SECTION ===== */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid rgba(255, 107, 53, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover,
.pricing-card.featured {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--bg-peachy) 0%, var(--bg-light) 100%);
}

.pricing-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pricing-badge.popular {
    background: var(--gradient-primary);
    color: var(--white);
}

.pricing-price {
    margin-bottom: 32px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-gray);
    vertical-align: top;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 16px;
    color: var(--text-light);
}

.pricing-features {
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features i {
    color: var(--primary-color);
    font-size: 16px;
}

.pricing-features li.disabled {
    color: var(--text-light);
    opacity: 0.5;
}

.pricing-features li.disabled i {
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 100px 0;
    background: var(--gradient-cta);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* ===== REPORT FORM SECTION ===== */
.report-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.report-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.report-form .form-group {
    margin-bottom: 24px;
}

.report-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.report-form input,
.report-form select,
.report-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.report-form textarea {
    resize: vertical;
    min-height: 120px;
}

.report-form button[type="submit"] {
    width: 100%;
    margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== RECORDING MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 32px;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.celebration-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Demo Modal */
.demo-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
}

.demo-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 48px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

.demo-modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
    margin-bottom: 32px;
    border: 3px solid var(--primary-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.demo-features {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    margin-top: 32px;
}

.demo-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-peachy);
    border-radius: 16px;
    flex: 1;
}

.demo-feature i {
    font-size: 32px;
    color: var(--primary-color);
}

.demo-feature span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

#demoModalCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 768px) {
    .demo-modal-content {
        padding: 32px 24px;
    }
    
    .demo-modal-content h2 {
        font-size: 24px;
    }
    
    .video-wrapper {
        border-radius: 16px;
    }
    
    .demo-features {
        flex-direction: column;
        gap: 16px;
    }
}

/* App Selection Modal */
.app-modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
}

.app-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 48px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
    text-align: center;
}

.app-modal-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.app-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.app-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-peachy);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.app-option:hover {
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.app-option-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.app-option-text {
    flex: 1;
    text-align: left;
}

.app-option-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.app-option-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.app-option .fa-arrow-right {
    color: var(--primary-color);
    font-size: 20px;
}

.coming-soon {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 16px;
}

#appModalCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mobile-open-app {
    display: none;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-open-app:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .mobile-open-app {
        display: block;
    }
    
    .app-modal-content {
        padding: 32px 24px;
    }
    
    .app-modal-content h2 {
        font-size: 24px;
    }
    
    .app-option {
        padding: 20px;
    }
    
    .app-option-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

.modal-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(255, 107, 53, 0.3);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 48px 48px 32px;
    background: linear-gradient(135deg, var(--bg-peachy) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.modal-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

.modal-body {
    padding: 40px 48px;
}

/* Gratitude Message Generator */
.gratitude-generator {
    margin-bottom: 32px;
}

.generated-message-box {
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DB 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 28px;
    margin-top: 16px;
}

.message-content {
    position: relative;
    text-align: center;
    padding: 20px;
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 24px;
}

.generated-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 20px 0;
    font-style: italic;
    min-height: 60px;
}

.message-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 107, 53, 0.2);
}

.btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-text:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon-text i {
    transition: transform 0.3s ease;
}

.btn-icon-text:hover i {
    transform: rotate(180deg);
}

.domain-selector {
    margin-bottom: 32px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: var(--primary-color);
}

.domain-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.domain-option {
    padding: 20px;
    background: var(--white);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.domain-option i {
    font-size: 24px;
    color: var(--primary-color);
}

.domain-option:hover,
.domain-option.selected {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.domain-option:hover i,
.domain-option.selected i {
    color: var(--white);
}

.recording-controls {
    background: linear-gradient(135deg, var(--bg-peachy) 0%, var(--bg-light) 100%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
}

.voice-prompt {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
}

.voice-prompt i {
    color: var(--primary-color);
    font-size: 18px;
    opacity: 0.6;
}

.voice-prompt p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-style: italic;
}

.waveform-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 80px;
    margin-bottom: 20px;
}

.waveform-bar {
    width: 6px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transform-origin: center;
    transition: var(--transition);
}

.waveform-container.active .waveform-bar {
    animation: wave 1s ease-in-out infinite;
}

.waveform-container.active .waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-container.active .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-container.active .waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-container.active .waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-container.active .waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-container.active .waveform-bar:nth-child(6) { animation-delay: 0.3s; }
.waveform-container.active .waveform-bar:nth-child(7) { animation-delay: 0.2s; }
.waveform-container.active .waveform-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2.5); }
}

.recording-timer {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.record-btn {
    padding: 20px 40px;
    background: var(--gradient-cta);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.record-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.record-btn.recording {
    background: linear-gradient(90deg, #FF4444 0%, #CC0000 100%);
}

.record-icon {
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.record-btn.recording .record-icon {
    border-radius: 3px;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.message-input {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.modal-footer {
    padding: 24px 48px 40px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    background: linear-gradient(135deg, var(--bg-peachy) 0%, var(--bg-light) 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.modal-footer .btn {
    min-width: 140px;
}

/* ===== SUCCESS TOAST ===== */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 10000;
}

.success-toast i {
    font-size: 20px;
}

.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 10000;
}

.error-toast i {
    font-size: 20px;
}

#messageTitle {
    transition: border-color 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .logo img {
        width: 45px;
        height: 45px;
    }
    
    .app-download-btn {
        padding: 8px 12px;
    }
    
    .app-download-btn i {
        font-size: 24px;
    }
    
    .app-info {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        height: 300px;
        position: relative;
    }
    
    .floating-card {
        padding: 16px;
        border-radius: 16px;
        width: calc(100% - 40px);
        max-width: 280px;
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }
    
    .card-1 {
        top: 20px;
    }
    
    .card-2 {
        top: 110px;
    }
    
    .card-3 {
        top: 200px;
        bottom: auto;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid,
    .domains-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .domain-options {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .recording-timer {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ===== ADVANCED CHAT STYLES (WhatsApp-like) ===== */

/* Enhanced Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #F59E0B 0%, #FB923C 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.chat-user-info {
    flex: 1;
}

.chat-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

.online-status i {
    font-size: 10px;
    color: #4ade80;
}

.chat-actions {
    display: flex;
    gap: 12px;
}

.chat-actions .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced Conversation Items */
.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.conversation-item:hover {
    background: var(--bg-light);
}

.conversation-item.active {
    background: linear-gradient(90deg, #FEF3C7 0%, #FED7AA 100%);
    border-left: 4px solid var(--primary-color);
}

.conversation-item.unread {
    background: #FEF3C7;
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.conversation-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 12px;
    color: var(--text-light);
}

.last-message {
    font-size: 14px;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.unread-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Enhanced Message Bubbles */
.message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
    animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.mine {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.message-bubble {
    max-width: 65%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.message.theirs .message-bubble {
    background: white;
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
}

.message.mine .message-bubble {
    background: linear-gradient(135deg, #F59E0B 0%, #FB923C 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble p {
    margin: 0 0 6px 0;
    font-size: 15px;
    line-height: 1.5;
}

.message-bubble a {
    color: inherit;
    text-decoration: underline;
}

.message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
}

.message-status {
    font-size: 14px;
}

/* Image Messages */
.image-message img {
    max-width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 8px;
}

.image-message img:hover {
    transform: scale(1.02);
}

/* File Messages */
.file-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.message.theirs .file-message {
    background: var(--bg-light);
}

.file-info {
    flex: 1;
}

.file-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.file-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.message.mine .file-info a {
    color: white;
}

/* Voice Messages */
.voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.play-voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message.theirs .play-voice-btn {
    background: var(--primary-color);
}

.play-voice-btn:hover {
    transform: scale(1.1);
}

.voice-wave {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
}

.voice-wave span {
    width: 3px;
    height: 100%;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.6;
    animation: voiceWave 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; height: 40%; }
.voice-wave span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; height: 80%; }
.voice-wave span:nth-child(4) { animation-delay: 0.6s; height: 60%; }
.voice-wave span:nth-child(5) { animation-delay: 0.8s; height: 40%; }

@keyframes voiceWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.voice-duration {
    font-size: 13px;
    opacity: 0.8;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-light);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

@keyframes typingDot {
    0%, 60%, 100% { transform: scale(1); opacity: 0.4; }
    30% { transform: scale(1.3); opacity: 1; }
}

.typing-text {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
}

/* Enhanced Message Input */
.message-input-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 20px;
    background: white;
    border-top: 2px solid var(--gray-200);
    border-radius: 0 0 16px 16px;
}

.message-input-container .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-input-container .btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.message-input-container textarea {
    flex: 1;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    max-height: 150px;
    transition: border 0.3s;
}

.message-input-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.message-input-container .btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #F59E0B 0%, #FB923C 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-input-container .btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Attachment Menu */
.attach-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.attach-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.attach-option:hover {
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.attach-option i {
    font-size: 32px;
    color: var(--primary-color);
}

.attach-option span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Emoji Picker */
.emoji-picker {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    padding: 16px;
    max-width: 500px;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background: var(--bg-light);
    transform: scale(1.2);
}

/* Recording Indicator */
.recording-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px;
}

/* Responsive Chat Styles */
@media (max-width: 768px) {
    .chat-header {
        padding: 16px;
    }

    .chat-actions {
        gap: 8px;
    }

    .chat-actions .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .message-bubble {
        max-width: 80%;
    }

    .attach-menu {
        grid-template-columns: 1fr;
    }

    .emoji-picker {
        grid-template-columns: repeat(8, 1fr);
    }

    .conversation-avatar {
        width: 48px;
        height: 48px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Pulse Animation for Unread */
@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.8; }
}
