:root {
    --primary: #0000FF;
    --primary-dark: #0000CC;
    --accent: #FFFF00;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

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

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.download-section {
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Pre-Footer Info Bar */
.pre-footer-info-bar {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo img {
    height: 70px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.filled-d {
    background-color: var(--primary);
    color: transparent !important;
    display: inline-block;
    width: 0.7em;
    height: 0.76em;
    border-radius: 0.05em 0.4em 0.4em 0.05em;
    margin-right: 0.05em;
    position: relative;
    line-height: 1;
    vertical-align: middle;
    overflow: hidden;
    user-select: none;
}

.footer-text {
    font-size: 1.5rem;
    margin-bottom: 10px;
    justify-content: center;
    color: var(--white);
    display: inline-flex;
}

.footer-text .filled-d {
    width: 0.7em;
    height: 0.76em;
    border-radius: 0.05em 0.4em 0.4em 0.05em;
    background-color: var(--white);
    color: transparent !important;
    margin-right: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

.nav-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient goes from dark on the left (where text is) to almost transparent on the right */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: transform;
    animation: zoomInOut 20s ease-in-out infinite;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* --- Mobile Hero Adjustments --- */
/* --- Mobile Navigation Adjustments --- */
@media (max-width: 768px) {
    .nav {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px; /* Smaller logo on mobile */
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001; /* Above mobile menu */
    }

    .nav-toggle span {
        height: 3px;
        width: 100%;
        background-color: var(--primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none; /* Hidden by default on mobile, handled by JS */
    }

    /* Hero existing adjustments */
    .hero {
        align-items: flex-end; /* Push content to bottom */
        padding-bottom: 60px; /* Space from the bottom edge */
    }

    .hero-content {
        padding: 0 20px;
    }

    /* Reduce font sizes to avoid cutoff */
    .hero h1 {
        font-size: 2.5rem; 
        margin-bottom: 15px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* Darker shadow for visibility against complex images */
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero .btn {
        width: 100%;
        text-align: center;
    }
}

/* Brands Section */
.brands {
    background-color: var(--white);
    padding: 40px 0 10px 0;
    /* Overrides default 80px section padding to reduce height */
}

.brands .section-title {
    margin-bottom: 1.5rem;
    /* Reduced from default 3rem */
}

.brands-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    /* Reduced from 20px */
    margin-top: 10px;
    /* Reduced from 30px */
    white-space: nowrap;
}

/* Gradient fade on the sides for a premium look */
.brands-carousel::before,
.brands-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
    /* Animation is driven by JS requestAnimationFrame – see index.html */
    width: max-content;
    will-change: transform;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50%));
    }
}

.brand-item {
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-item img {
    max-height: 110px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

/* Pause scroll when user hovers the carousel so logos are easy to interact with */
/* (Hover is handled via JS .brand-hovered class for pixel-accurate detection) */

.brand-item.brand-hovered img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Specifically boost FLEX logo size */
.brands-track .brand-item img[alt="FLEX"] {
    max-height: 150px;
}

/* Marmota logo size constraint (smaller) */
.brands-track .brand-item img[alt="Marmota"] {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

/* Yecol logo size constraint (larger) */
.brands-track .brand-item img[alt="Yecol"] {
    max-height: 320px;
}

/* Mash logo size constraint (larger) */
.brands-track .brand-item img[alt="Mash"] {
    max-height: 180px;
}

/* Dormilon logo size constraint (larger) */
.brands-track .brand-item img[alt="Dormilon"] {
    max-height: 160px;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 5;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 1.1rem;
    font-weight: normal;
}

.offer-price {
    color: #EF4444;
    font-size: 1.7rem;
    font-weight: 800;
}

.current-price {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Contact Section */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #DCFCE7;
    color: #166534;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

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

.contact-details a:hover {
    color: var(--primary);
}

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

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-selector {
    cursor: pointer;
    padding: 12px;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-selector:hover {
    background-color: rgba(0, 0, 255, 0.05);
}

.location-selector.active {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.location-selector.active span {
    font-weight: 600;
    color: var(--primary);
}

.location-selector.active i {
    color: var(--primary);
    transform: scale(1.2);
}

.detail-item i {
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.detail-item strong {
    color: var(--primary);
    margin-right: 5px;
}

.map-placeholder {
    height: 400px;
    background-color: #E2E8F0;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--text-light);
    border: 2px dashed var(--text-light);
}

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

.footer-logo img {
    height: 45px;
    margin-bottom: 10px;
}

.footer-copy {
    margin-top: 20px;
    opacity: 0.5;
    font-size: 0.9rem;
}


/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal delays */
.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.3s;
}

.reveal:nth-child(3) {
    transition-delay: 0.5s;
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 5rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.header {
    animation: fadeInDown 0.8s ease;
}

/* Interactive elements */
.nav-links li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Premium Gift Popup Styles */
#gift-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#gift-overlay.active {
    visibility: visible;
    opacity: 1;
}

.premium-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-popup.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup-container {
    display: flex;
    min-height: 500px;
}

.popup-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
    /* Hidden on small mobile */
}


@media (min-width: 768px) {
    .popup-image {
        display: block;
    }
}

.popup-content {
    flex: 1;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.popup-badge {
    background: var(--bg-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 auto 20px;
}

.premium-popup h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 15px;
}

.voucher-value {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.premium-popup p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#popup-form input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#popup-form input:focus {
    border-color: var(--primary);
}

.popup-submit-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.popup-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Privacy Checkbox Styles */
.name-fields {
    display: flex;
    gap: 10px;
}

.name-fields input {
    flex: 1;
}

@media (max-width: 480px) {
    .name-fields {
        flex-direction: column;
    }
}

.privacy-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin: 5px 0 15px;
    padding: 0 5px;
}

.privacy-container input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px;
    cursor: pointer;
}

.privacy-container label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    cursor: pointer;
}

.privacy-container label a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
}

.duplicate-message {
    text-align: center;
    padding: 20px 0;
}

.duplicate-icon {
    width: 60px;
    height: 60px;
    background: #FEF3C7;
    color: #D97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.popup-footer-text {
    font-size: 0.75rem !important;
    margin-top: 30px !important;
    color: #94A3B8 !important;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-light);
    transition: 0.3s;
    z-index: 10;
}

.close-btn:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

/* Contact Refinement */
.contact-details {
    margin-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--slate-900);
}

.detail-item i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.detail-item:hover i {
    transform: scale(1.2);
}

.detail-item span a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item span a:hover {
    color: var(--primary);
}

/* Products Page Refinement */
.products-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline-regional {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f1f5f9;
    color: var(--slate-900);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.btn-download:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.15);
}

.btn-download i {
    font-size: 1.1rem;
}

.filters-container {
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin: 0 auto 50px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.category-nav {
    margin-bottom: 0 !important;
}

.cat-btn {
    border: none !important;
    background: transparent !important;
    color: var(--slate-600) !important;
    font-family: 'Outfit', sans-serif;
}

.cat-btn.active {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* =========================================
   DORMICONFORT WhatsApp Widget Styles
========================================= */

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #1E293B;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-premium-widget:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

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

@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 20px;
        left: 20px;
    }
}

/* =========================================
   DORMICONFORT AI Chatbot Styles
========================================= */

.dormi-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.dormi-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 255, 0.4);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dormi-chat-btn:hover {
    transform: scale(1.1);
}

.dormi-chat-window {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.dormi-chat-window.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.dormi-chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dormi-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.dormi-chat-close:hover {
    opacity: 1;
}

.dormi-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    display: flex;
    max-width: 85%;
}

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

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

.msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-break: break-word;
}

.bot-msg .msg-bubble {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-msg .msg-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 255, 0.1);
}

/* Typing Indicator */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 20px !important;
}

.typing-bubble .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

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

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

@keyframes typing {

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

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

.dormi-chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.dormi-chat-footer input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.dormi-chat-footer input:focus {
    border-color: var(--primary);
}

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

.dormi-chat-footer button:hover {
    background: var(--primary-dark);
}

@media (max-width: 480px) {
    .dormi-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .dormi-chat-window {
        width: 320px;
        height: 450px;
        right: -10px;
        bottom: 70px;
    }
}