/* ===== IMPORTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --background: hsl(210, 25%, 6%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(210, 20%, 10%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(174, 62%, 56%);
    --primary-foreground: hsl(210, 25%, 6%);
    --secondary: hsl(210, 15%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(210, 15%, 20%);
    --muted-foreground: hsl(210, 10%, 60%);
    --border: hsl(210, 15%, 20%);
    
    /* Spacing */
    --radius: 0.75rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

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

.glass {
    background: rgba(17, 24, 32, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-gradient-dark {
    background: linear-gradient(180deg, var(--background) 0%, hsl(210, 20%, 10%) 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: rgba(26, 33, 42, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    margin: 0 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.marquee-text.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    top: 15px;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    background: rgba(13, 17, 23, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

@media (min-width: 768px) {
    .nav-container {
        padding: 2rem;
    }
}

.navbar.scrolled .nav-container {
    padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .navbar.scrolled .nav-container {
        padding: 0.75rem 2rem;
    }
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .nav-logo img {
        height: 56px;
    }
}

.navbar.scrolled .nav-logo img {
    height: 40px;
}

@media (min-width: 768px) {
    .navbar.scrolled .nav-logo img {
        height: 44px;
    }
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 9999px;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 75%;
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .nav-cta {
        display: flex;
    }
}

.nav-cta:hover {
    background: hsl(174, 62%, 50%);
    box-shadow: 0 10px 30px rgba(76, 206, 196, 0.25);
    transform: translateY(-2px);
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--foreground);
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 0 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
}

@media (max-width: 1023px) {
    .mobile-menu {
        display: block;
    }
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    padding: 1rem;
}

.mobile-menu > div {
    background: rgba(17, 24, 32, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
}

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--muted-foreground);
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--background), rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.3));
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0;
    margin-left: 5%;
    padding: 8rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 8rem 3rem 4rem;
    }
}

.hero-content > * {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-title .text-primary {
    font-weight: 500;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--foreground);
    color: var(--background);
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hero-btn svg {
    transition: var(--transition);
}

.hero-btn:hover svg {
    transform: translateX(4px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-title.left {
    text-align: left;
    margin-left: 0;
}

.section-desc {
    color: var(--muted-foreground);
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT SECTION ===== */
.features-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(76, 206, 196, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 206, 196, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    color: var(--primary);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ===== WHY US SECTION ===== */
.why-us-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .why-us-content {
        grid-template-columns: 1fr 1fr;
    }
}

.reasons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reason-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.reason-card:hover {
    border-color: rgba(76, 206, 196, 0.3);
}

.reason-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 206, 196, 0.1);
    border-radius: 12px;
}

.reason-icon svg {
    color: var(--primary);
}

.reason-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.reason-desc {
    color: var(--muted-foreground);
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 288px;
    height: 500px;
    background: var(--card);
    border-radius: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--secondary);
    border-radius: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(76, 206, 196, 0.1);
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.wa-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.wa-status {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.wa-messages {
    flex: 1;
    padding: 1rem;
}

.wa-message {
    background: rgba(76, 206, 196, 0.2);
    border-radius: 1rem;
    border-top-left-radius: 0;
    padding: 1rem;
    max-width: 80%;
}

.wa-message p {
    font-size: 0.875rem;
}

.wa-footer {
    padding: 1rem;
}

.wa-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--muted);
    border-radius: 9999px;
}

.wa-input svg {
    color: var(--primary);
}

.wa-input span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.phone-glow {
    position: absolute;
    inset: -1rem;
    background: rgba(76, 206, 196, 0.1);
    border-radius: 4rem;
    filter: blur(48px);
    z-index: -1;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(76, 206, 196, 0.3);
    background: rgba(17, 24, 32, 0.6);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 206, 196, 0.1);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(76, 206, 196, 0.2);
}

.service-icon svg {
    color: var(--primary);
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact-channels {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .contact-channels {
        grid-template-columns: repeat(3, 1fr);
    }
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.channel-card:hover {
    background: rgba(76, 206, 196, 0.1);
}

.channel-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.channel-icon.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.channel-icon.facebook {
    background: #1877f2;
}

.channel-icon.whatsapp {
    background: #25d366;
}

.channel-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.channel-value {
    font-weight: 500;
    transition: var(--transition);
}

.channel-card:hover .channel-value {
    color: var(--primary);
}

.contact-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

.contact-person {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 2.5rem;
}

.person-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 206, 196, 0.2);
    border-radius: 50%;
}

.person-icon svg {
    color: var(--primary);
}

.person-name {
    font-weight: 600;
}

.person-phone {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.person-phone:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 2rem;
    border-radius: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 206, 196, 0.2);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.submit-btn:hover {
    background: hsl(174, 62%, 50%);
    box-shadow: 0 8px 25px rgba(76, 206, 196, 0.3);
}

.submit-btn.whatsapp-btn {
    background: #25d366;
    color: white;
}

.submit-btn.whatsapp-btn:hover {
    background: #20bd5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0;
    background: var(--card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-tagline,
.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.chat-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), hsl(185, 70%, 45%));
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(76, 206, 196, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(76, 206, 196, 0.5);
}

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

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

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

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.chat-widget.active .chat-badge,
.chat-badge.hidden {
    display: none;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-widget.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), hsl(185, 70%, 45%));
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.chat-avatar img {
    width: 100%;
    height: auto;
}

.chat-header h4 {
    color: var(--primary-foreground);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-foreground);
    font-size: 0.8rem;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chat-close {
    color: var(--primary-foreground);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chat-body {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: var(--background);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 3px;
}

/* Message styles */
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease;
}

.chat-message.incoming {
    background: var(--secondary);
    color: var(--foreground);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-message.outgoing {
    background: var(--primary);
    color: var(--primary-foreground);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-message .time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

.chat-message.incoming .time {
    text-align: left;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--secondary);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 70px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--muted-foreground);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.quick-reply {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* WhatsApp Connect Button */
.wa-connect-wrapper {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.wa-connect-text {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-bottom: 12px;
}

.wa-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25d366;
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.wa-connect-btn:hover {
    background: #20bd5a;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.chat-footer {
    padding: 16px 20px;
    background: var(--card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    border-radius: 25px;
    padding: 6px 6px 6px 20px;
}

.chat-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--foreground);
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
}

.chat-input-wrapper input::placeholder {
    color: var(--muted-foreground);
}

.chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send:hover {
    background: hsl(174, 62%, 50%);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 70px;
        max-height: calc(100vh - 120px);
    }
    
    .chat-body {
        height: 300px;
    }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 9999;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content svg {
    color: #22c55e;
    flex-shrink: 0;
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.toast-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(76, 206, 196, 0.3);
    color: var(--foreground);
}
