:root {
    --primary: #E5B80B;
    --secondary: #003366;
    --dark: #001F3F;
    --light: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --success: #2ecc71;
    --danger: #E5B80B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* Matches navbar height */
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    padding: 0.5rem 2rem;
    display: flex;
    height: 80px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.brand-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    text-align: center;
}

.tagline {
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    opacity: 0.8;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
}

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

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.cart-icon-wrapper.has-items {
    color: var(--primary);
}

.cart-icon-wrapper.has-items .cart-badge {
    background: var(--white);
    color: var(--primary);
}

/* HAMBURGER MENU STYLES */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
}

@media (max-width: 768px) {
    .nav-actions {
        gap: 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--dark);
        flex-direction: column;
        padding: 2rem 1.5rem;
        transition: 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 950;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid #333;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        display: block;
    }

    .nav-links {
        padding-bottom: 100px; /* Ensure bottom links are accessible */
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .mobile-overlay.show {
        display: block;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

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

    .tagline {
        font-size: 0.5rem;
    }

    /* Ensure logo doesn't break layout on very small screens */
    .logo-img {
        width: 45px; height: 45px;
    }
}

/* Sections */
.content-section {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

.content-section.active {
    display: block;
}

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

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

/* Marketplace & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-img {
    width: 100%;
    height: 200px;
    background: #ddd;
    object-fit: cover;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.qty-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

/* Hero Carousel */
#home-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    z-index: 10;
    padding: 20px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    font-weight: 900;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Video Showcase */
.video-showcase {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.video-showcase h2 {
    margin-bottom: 0.5rem;
}

.video-showcase iframe {
    height: auto;
    width: 100%;
    aspect-ratio: 640 / 360;
}

.daily-activities-showcase {
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid #edf1f5;
}

.section-kicker {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.section-heading-public {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-heading-public p {
    color: #64748b;
    margin-top: 0.25rem;
}

.section-heading-public .btn {
    width: auto;
    white-space: nowrap;
}

.featured-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.featured-activity-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.featured-activity-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #001F3F;
}

.featured-activity-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-activity-body h3 {
    color: var(--secondary);
    margin: 0.35rem 0;
}

.featured-activity-body p {
    color: #536070;
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.3s;
}

.video-container:hover .video-thumbnail {
    opacity: 0.7;
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(229, 184, 11, 0.3);
    transition: 0.3s;
    z-index: 5;
}

.video-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 20px rgba(229, 184, 11, 0.3);
}

.play-button svg {
    width: 35px;
    height: 35px;
    fill: white;
    margin-left: 5px;
}

/* Lock Overlay */
.locked-content {
    position: relative;
    min-height: 400px;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
}

/* Layout */
.dashboard {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
}

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

.btn-outline {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 100%;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    width: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-active {
    background: #e6f9ed;
    color: var(--success);
}

.status-expired {
    background: #fdeaea;
    color: var(--danger);
}

.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exercise-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.exercise-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: none;
}

.exercise-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.exercise-desc {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Cart panel */
.cart-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: 0.4s;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.cart-panel.open {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

/* Subscription styles */
.subs-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.sub-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.sub-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin: 5px 0;
}

.sub-duration {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section input, 
.footer-section textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer-section input:hover, 
.footer-section textarea:hover {
    border-color: var(--primary);
}

.footer-section input:focus, 
.footer-section textarea:focus {
    border-color: var(--primary);
}

.footer-section button {
    width: auto;
    align-self: flex-start;
    padding: 10px 25px;
    border: 1px solid transparent;
}

.footer-section button:hover {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 1000px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        width: 100%;
        max-width: 400px; /* Prevent it from being too wide on tablets */
        right: -100%;
    }

    .content-section {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Adjust grids for tablet/mobile */
    .exercise-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .video-showcase {
        padding: 1rem;
    }

    .section-heading-public {
        flex-direction: column;
    }

    .section-heading-public .btn {
        width: 100%;
    }
    
    .dashboard {
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section button {
        align-self: center;
        width: 100%;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.blog-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .lock-overlay {
        justify-content: flex-start;
        padding-top: 4rem;
    }
    
    /* Better mobile grid for blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.article-modal.show {
    display: block;
    opacity: 1;
}

.article-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 85vh; /* Ensure it fits on screen */
    overflow-y: auto; /* Scrollable content */
    border-radius: 12px;
    position: relative;
    animation: slideDown 0.4s;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.article-header-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Blog Tabs */
.blog-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-tabs .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-tabs .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.blog-tabs .btn-primary {
    background: linear-gradient(135deg, #E5B80B, #F9D71C);
    border: none;
    color: #001F3F;
    box-shadow: 0 4px 10px rgba(229, 184, 11, 0.3);
}

.blog-tabs .btn-outline {
    background: transparent;
    border: 2px solid #e1e1e1;
    color: #666;
}

/* Chat Interface */
.chat-interface {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 70vh; /* Responsive height */
    min-height: 400px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
}

/* Chat Header Responsive */
.chat-header-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
    align-items: center;
}

.chat-header {
    background: var(--dark);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.icon-btn {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    font-size: 0.8rem;
    color: white;
    width: auto;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 85%; /* More space on mobile */
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    position: relative;
    line-height: 1.4;
}

.message-other {
    align-self: flex-start;
    background: white;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-own {
    align-self: flex-end;
    background: #FFF3CD; /* Light Gold */
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-sender {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
}

.message-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 5px;
}

.message-time {
    font-size: 0.65rem;
    color: #999;
    margin-right: 8px;
}

.message-share-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    padding: 0;
    display: flex;
    align-items: center;
    color: #666;
}

.message-share-btn:hover {
    opacity: 1;
    color: var(--primary);
}

.message-share-btn.liked {
    color: var(--danger);
    opacity: 1;
}

.like-count {
    font-size: 0.7rem;
    margin-left: 3px;
    font-weight: bold;
}

.chat-input-wrapper {
    padding: 0.5rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    position: relative;
    align-items: center;
    margin-bottom: 0;
}

#chatInput {
    flex-grow: 1;
    padding: 8px 12px !important;
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    outline: none;
    resize: none;
    overflow: hidden;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    min-height: 36px !important;
}

#chatInput:focus {
    border-color: var(--primary);
}

/* Chat Media Styles */
.chat-media-img, .chat-media-video {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
    display: block;
}

.chat-file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    margin-top: 5px;
    font-weight: 500;
}

/* Reply Styles */
.reply-indicator {
    background: #f9f9f9;
    padding: 10px 15px;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
}

.reply-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reply-sender {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.8rem;
}

.reply-text {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-reply {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
}

.message-reply-preview {
    background: rgba(0,0,0,0.05);
    border-left: 3px solid var(--primary);
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Chat Dark Mode */
.chat-interface.chat-dark-mode {
    background: var(--dark);
    border-color: #333;
}

.chat-interface.chat-dark-mode .chat-messages {
    background: #0f0f0f;
}

.chat-interface.chat-dark-mode .message-other {
    background: var(--secondary);
    color: #e0e0e0;
    box-shadow: none;
}

.chat-interface.chat-dark-mode .message-own {
    background: #056162;
    color: #e0e0e0;
    box-shadow: none;
}

.chat-interface.chat-dark-mode .chat-input-wrapper {
    background: #1a1a1a;
    border-top-color: #333;
}

.chat-interface.chat-dark-mode #chatInput {
    background: var(--secondary);
    color: white;
    border-color: #444;
}

.chat-interface.chat-dark-mode .message-time {
    color: #aaa;
}

.chat-interface.chat-dark-mode .reply-indicator {
    background: var(--secondary);
    border-top-color: #444;
}

.chat-interface.chat-dark-mode .reply-text {
    color: #aaa;
}

.chat-interface.chat-dark-mode .message-reply-preview {
    background: rgba(255,255,255,0.1);
}

.chat-interface.chat-dark-mode .chat-file-link {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
}

.chat-interface.chat-dark-mode .message-share-btn {
    color: #aaa;
}

/* Extra Small Devices */
@media (max-width: 480px) {
    #home-hero {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .product-grid, .exercise-grid {
        grid-template-columns: 1fr; /* Full width cards */
    }
    
    .cart-panel {
        max-width: none;
        width: 100%;
    }

    /* Chat Mobile Adjustments */
    .chat-header {
        padding: 0.5rem;
    }
    .chat-header-title {
        font-size: 0.75rem; /* Reduced font size for mobile */
        max-width: 110px;
    }
    .btn-text {
        display: none; /* Hide text labels on mobile */
    }
    .icon-btn {
        padding: 6px; /* Reduce button size */
    }
    .chat-header-actions {
        gap: 4px;
    }
}

/* Share Modal Options */
.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

/* Message Share Icons */
.share-icons-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

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

.share-icon-btn svg {
    width: 24px;
    height: 24px;
}

.share-icon-btn.whatsapp { background: #25D366; }
.share-icon-btn.facebook { background: #3b5998; }
.share-icon-btn.twitter { background: #1DA1F2; }
.share-icon-btn.instagram { background: #E1306C; }

/* Search Bar Utility */
.search-bar-styled {
    padding: 12px 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #e1e1e1;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    outline: none;
}

/* Chat Elements */
#emojiPicker {
    display: none;
    position: absolute;
    bottom: 55px;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 280px;
    z-index: 20;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
}

#scrollToBottomBtn {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#typingIndicator {
    display: none;
    padding: 5px 15px;
    font-size: 0.75rem;
    color: #888;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.chat-action-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 36px !important;
    cursor: pointer;
}
.chat-action-btn svg {
    width: 18px;
    height: 18px;
}

/* Typing Animation */
.typing-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #888;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 1px;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* PWA Install Banner */
#pwa-install-container {
    background: linear-gradient(135deg, #2d3436, #636e72);
    padding: 15px 25px;
    border-radius: 15px;
    margin: 20px auto !important;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    animation: fadeInDown 0.5s ease-out;
}

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

/* Mobile Responsive Overrides */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .blog-tabs {
        flex-direction: column;
        width: 100%;
    }
    .blog-tabs .btn {
        width: 100%;
        border-radius: 12px;
    }
    #pwa-install-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    #pwa-install-container .btn {
        width: 100% !important;
    }
    .chat-action-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }
    .chat-action-btn svg {
        width: 16px;
        height: 16px;
    }
    #chatInput {
        min-height: 32px !important;
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    .chat-input-wrapper {
        gap: 5px !important;
    }
}

