/* 
  ServEase - Premium Home Services UI
  Design System Variables 
*/
:root {
    /* Color Palette - Vibrant Eco-Friendly Green */
    --hue: 145;
    --primary: hsl(var(--hue), 70%, 45%);
    --primary-hover: hsl(var(--hue), 80%, 35%);
    --bg-color: hsl(var(--hue), 30%, 98%);
    --surface: hsl(0, 0%, 100%);
    --surface-glass: hsla(0, 0%, 100%, 0.85);
    --text-main: hsl(var(--hue), 40%, 15%);
    --text-muted: hsl(var(--hue), 20%, 45%);
    --border-color: hsl(var(--hue), 30%, 90%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px hsla(var(--hue), 70%, 45%, 0.4);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}

body {

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    background: none;
    transition: all var(--transition-fast);
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 hsla(var(--hue), 70%, 45%, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--hue), 70%, 45%, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    padding-bottom: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.join-pro-btn {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.join-pro-btn:hover {
    color: var(--primary) !important;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.hamburger-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    z-index: 101;
}

.close-mobile-menu {
    display: none;
    /* Hidden by default on desktop */
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: url('assets/images/hero.png') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    /* overlay to ensure text is perfectly readable */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: drift 20s ease-in-out infinite alternate;
}

.blur-blob.top-left {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: hsla(110, 80%, 70%, 0.4);
}

.blur-blob.bottom-right {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: hsla(160, 80%, 70%, 0.4);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), hsl(100, 85%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

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

/* Services Section */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {

    .services-grid>.service-card:nth-child(4),
    .services-grid>.service-card:nth-child(5) {
        grid-column: span 1;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: hsla(var(--hue), 70%, 45%, 0.3);
}

.card-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-icon {
    position: absolute;
    bottom: -24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--surface);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth);
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary);
    color: white;
}

.card-content {
    flex-grow: 1;
    padding: 3rem 1.5rem 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--text-muted);
}

.service-card .btn {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
}

/* Booking Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(1) translateY(0);
    transition: transform var(--transition-smooth);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.hidden .modal-content {
    transform: scale(0.95) translateY(20px);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #f1f1f1;
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(var(--hue), 70%, 45%, 0.15);
}

/* Phone Input Wrapper */
.phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    z-index: 1;
    pointer-events: none;
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.country-code {
    border-right: 1px solid var(--border-color);
    padding-right: 0.5rem;
}

.phone-input {
    padding-left: 5.5rem !important;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Global Mobile Fixes */
@media (max-width: 600px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: var(--radius-md);
        width: 100%;
    }
    
    .modal-header h2 { font-size: 1.5rem; }
    
    .form-row { flex-direction: column; gap: 0; }
    
    .nav-container { padding: 1rem 1.5rem; }
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: hsl(140, 60%, 50%);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-muted);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-smooth);
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        display: flex !important;
    }

    .close-mobile-menu {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.8rem;
        color: var(--text-muted);
        background: var(--bg-color);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-fast);
        border: 1px solid var(--border-color);
        cursor: pointer;
    }

    .close-mobile-menu:hover {
        background: var(--primary);
        color: white;
        transform: rotate(90deg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none !important;
    }

    .nav-menu.active .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .nav-menu.active .nav-links a {
        font-size: 1.25rem;
        color: var(--text-main);
        padding: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active .nav-actions {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .nav-actions button {
        width: 100%;
        visibility: visible !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
        min-height: auto;
    }

    .card-img {
        height: 160px;
    }
}

/* =========================================
   Reviews Page Styles
   ========================================= */

/* Reviews Header */
.reviews-header {
    position: relative;
    padding: 10rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.reviews-title-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.reviews-title-container h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    font-weight: 800;
}

.reviews-title-container h1 span {
    background: linear-gradient(135deg, var(--primary), hsl(100, 85%, 45%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-title-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Reviews Grid */
.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: hsla(var(--hue), 70%, 45%, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), hsl(100, 85%, 45%));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.reviewer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.service-tag {
    font-size: 0.75rem;
    background: hsla(var(--hue), 70%, 45%, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.stars {
    color: #FFB800;
    display: flex;
    gap: 0.2rem;
    font-size: 1.1rem;
}

.review-text {
    flex-grow: 1;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* Review Modal Specifics */
.review-modal-content {
    max-width: 650px;
}

.rating-group {
    text-align: center;
    margin-bottom: 2rem;
}

.rating-group label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    color: var(--border-color);
    cursor: pointer;
}

.star-rating i {
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating i:hover {
    transform: scale(1.1);
}

.star-rating i.active,
.star-rating i.hover {
    color: #FFB800;
}

textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(var(--hue), 70%, 45%, 0.15);
}

/* =========================================
   Chat Widget Styles
   ========================================= */

.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), hsl(100, 85%, 45%));
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-fast);
}

.chat-toggle-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 25px -5px hsla(var(--hue), 70%, 45%, 0.5);
}

.chat-toggle-btn i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-toggle-btn i.hidden {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    pointer-events: none;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), hsl(100, 85%, 45%));
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.chat-header h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 0.4rem;
    box-shadow: 0 0 8px #4ade80;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-color);
}

.chat-message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out forwards;
}

.bot-message {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.2rem;
    align-self: flex-start;
}

.user-message {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.2rem;
    align-self: flex-end;
}

.chat-input-area {
    padding: 1rem;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-input-area input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
}

.chat-input-area input:focus {
    box-shadow: none;
    border: 1px solid var(--primary);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    border-bottom-left-radius: 0.2rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 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 typingBounce {

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

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

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

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

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 4rem);
        height: 400px;
    }
}