/* Base Styles & Native OS Font Stack */
:root {
    --primary-bg: #F6F8F5;
    --secondary-bg: #EFF4EC;
    --card-bg: #ffffff;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --accent-color: #2C5545;
    --accent-hover: #4A7C59;
    --chat-user: #e3f2fd;
    --chat-bot: #f1f8e9;
    --highlight: #E18972;
    --gold: #D4AF37;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px -10px rgba(44, 85, 69, 0.15);
}

/* Scroll Lock Utility */
.no-scroll {
    overflow: hidden !important;
}

html.no-scroll {
    height: 100%;
    overflow: hidden !important;
}

/* =============================================
   LUXURY PREMIUM BACKGROUND SYSTEM
   ============================================= */

/* Global body — soft warm linen with a faint botanical noise texture */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f5eb;
    background-image: linear-gradient(110deg, #f5faf0 0%, #e6efe1 35%, #f0f5eb 50%, #f7fbf4 80%, #f5faf0 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: clip;
}

/* Features section — pure white with emerald accent orb */
#features-section {
    background: transparent;
    position: relative;
}

#features-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(44, 85, 69, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Upcoming Features / Nature Retreats — light premium emerald wash */
.nature-retreats-section {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.nature-retreats-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 60px,
            rgba(212, 175, 55, 0.03) 60px,
            rgba(212, 175, 55, 0.03) 61px);
    pointer-events: none;
}

/* Ayurveda Section — warm saffron-earth luxury */
#home-ayurveda-section {
    background: transparent;
    position: relative;
}

#home-ayurveda-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Toolkit / alt-bg sections — cool slate-green with shimmer */
.alt-bg {
    background: transparent;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(44, 85, 69, 0.2), rgba(212, 175, 55, 0.3), rgba(44, 85, 69, 0.2), transparent);
}

.alt-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(44, 85, 69, 0.15), transparent);
}

/* Moments of Calm / grid section — warm ivory */
section.container:not(#features-section):not(#pricing-section):not(#home-ayurveda-section) {
    background: transparent;
}

/* Testimonials — light pistachio green */
.testimonials-section.alt-bg {
    background: linear-gradient(160deg, #e8f5e0 0%, #d4edcc 50%, #c9e8bf 100%);
    color: #1a2e24;
    position: relative;
    overflow: hidden;
}

.testimonials-section.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(44, 85, 69, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(100, 180, 120, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-section.alt-bg .section-title h2,
.testimonials-section.alt-bg .section-title p {
    color: #1a2e24;
}

.testimonials-section.alt-bg .section-title p {
    color: #2C5545;
}

/* Pricing section — premium deep indigo-green */
#pricing-section {
    background: linear-gradient(175deg, #f5f7f4 0%, #eaf2ec 40%, #ddeae1 100%);
    position: relative;
}

#pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(44, 85, 69, 0.25), rgba(212, 175, 55, 0.3), rgba(44, 85, 69, 0.25), transparent);
}

/* Subtle gold shimmer on section dividers */
section+section {
    position: relative;
}



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

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;

    /* Ensure it stays at top */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* Manage the space on wide screens */
@media (min-width: 1100px) {
    header {
        padding: 0.7rem calc((100% - 1000px) / 2);
    }
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.top-nav a:hover {
    color: var(--accent-color);
}

.auth-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.login-btn {
    color: var(--accent-color);
    border: 1px solid rgba(44, 85, 69, 0.2);
}

.login-btn:hover {
    background-color: rgba(44, 85, 69, 0.05);
    border-color: var(--accent-color);
}

.register-btn {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 85, 69, 0.2);
}

.register-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.sos-nav-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.sos-nav-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.sos-nav-btn .sos-icon {
    font-size: 1.1rem;
}

.hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1470240731273-7821a6eeb6bd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    padding: 0 1rem;
}

.feature-card p {
    padding: 0 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.tool-btn {
    font-family: inherit;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tool-btn-outline {
    font-family: inherit;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tool-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.toolkit-dashboard {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    overflow: hidden;
}

.toolkit-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 1.5rem 0;
}

.widget-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

.widget-icon {
    font-size: 2.5rem;
    background: var(--secondary-bg);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.widget-info {
    flex: 1;
    min-width: 200px;
}

.widget-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.widget-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.widget-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.modern-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    background: #fafafa;
}

.timer-display {
    display: none;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin: 10px 0 20px;
    padding: 20px;
    background: #f0f7f4;
    border-radius: 12px;
    border: 1px solid #d1e5dc;
    animation: slideIn 0.3s ease;
}

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

.grid-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    height: 300px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.grid-item:hover img {
    transform: scale(1.08);
}

.overlay-thought {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
    z-index: 2;
    border-top: 2px solid var(--accent-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    background: #fafdfc;
}

.pricing-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price-box {
    margin: 0.8rem 0 0.3rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
}

.price-box .currency {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
}

.price-box .price {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.price-box .duration {
    color: var(--text-light);
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    margin-left: 2px;
}

.discount-info {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    text-align: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.save-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.first-time-badge,
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.first-time-badge {
    background: var(--highlight);
}

.popular-badge {
    background: var(--accent-color);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
}

.plan-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.tnc-link {
    font-size: 0.75rem;
    color: #666;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #eaeaea;
}

.tnc-link:hover {
    color: var(--accent-color);
    background: #f0f7f4;
    border-color: #d1e8df;
    transform: translateY(-1px);
}

.mobile-auth-link {
    display: none;
}

/* View All Features button on pricing cards */
.pricing-view-all-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    margin-top: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.pricing-view-all-btn:hover {
    color: var(--accent-hover);
    background: rgba(85, 139, 115, 0.04);
}

/* Feature comparison table rows */
.features-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.features-row:nth-child(even) {
    background: rgba(85, 139, 115, 0.02);
}

.features-row td {
    padding: 10px 12px;
    color: var(--text-dark);
    vertical-align: middle;
}

.features-row:hover {
    background: rgba(85, 139, 115, 0.05);
}

/* Trial badge in profile */
.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    margin-left: 8px;
}



.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1) rotate(5deg);
}


.fab-chat {
    background: var(--accent-color);
    color: white;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--card-bg);
    z-index: 2500;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.side-panel.chat-panel-wide {
    right: -600px;
    width: 550px;
}

.side-panel.active {
    right: 0;
}

.panel-header {
    background: var(--accent-color);
    color: white;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.2rem;
}

.close-panel {
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
    line-height: 1;
}

.close-panel:hover {
    color: #ffeaa7;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fdfdfd;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

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

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

.therapist-card {
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    background: #fff;
}

.therapist-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.therapist-info {
    flex: 1;
}

.therapist-info h3 {
    margin-bottom: 8px;
    color: #333;
}

.therapist-info p {
    margin: 5px 0;
}

/* NEW: Premium Formatting for Assessment Output */
.premium-recommendation {
    background: linear-gradient(135deg, #ffffff 0%, #f4f9f9 100%);
    border-left: 4px solid var(--accent-color);
    padding: 18px;
    margin-top: 15px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.premium-title {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.premium-plan {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
}

.chat-options-wrapper {
    padding: 0 20px 15px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-options-wrapper::-webkit-scrollbar {
    display: none;
}

.chat-option-btn {
    flex: 1;
    white-space: nowrap;
    background: white;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.chat-option-btn:hover {
    background: var(--accent-color);
    color: white;
}

.typing-indicator {
    font-size: 0.9rem;
    color: #888;
    padding: 0 20px 10px;
    font-style: italic;
}

.typing-indicator span {
    animation: blink 1.4s infinite both;
}

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

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

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.chat-input {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
    font-family: inherit;
    background: #f9f9f9;
    transition: border 0.3s;
}

.chat-input input:focus {
    border-color: var(--accent-color);
    background: white;
}

.chat-input button {
    font-family: inherit;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    margin-left: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.chat-input button:hover {
    background-color: var(--accent-hover);
}

.chat-input button.mic-btn {
    padding: 12px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(44, 85, 69, 0.2);
}

.chat-input button.mic-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.chat-input button.mic-btn.recording {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

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

.scrollable-modal {
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.auth-form h2 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.auth-form .subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.form-input {
    font-family: inherit;
    width: 100%;
    padding: 14px;
    margin: 8px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(85, 139, 115, 0.1);
}

.form-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.modal-footer a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.modal-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.modern-footer {
    background: linear-gradient(175deg, #0d1a12 0%, #111f16 50%, #0a1510 100%);
    color: #ecf0f1;
    margin-top: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), rgba(44, 139, 115, 0.4), rgba(212, 175, 55, 0.4), transparent);
}

.crisis-banner {
    background: #e74c3c;
    color: white;
    text-align: center;
    padding: 15px 5%;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-col a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #141d26;
    font-size: 0.9rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .pricing-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    .side-panel {
        width: 100%;
        right: -100%;
    }

    .side-panel.chat-panel-wide {
        width: 100%;
    }

    .top-nav {
        justify-content: center;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    header {
        justify-content: space-between;
    }

    .toolkit-widget {
        flex-direction: column;
        text-align: center;
    }

    .widget-actions {
        justify-content: center;
        width: 100%;
    }

    .chat-options-wrapper {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

/* ===== RESPONSIVE FOR DESKTOP & MOBILE ===== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 25px;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.auth-links {
    display: flex;
    gap: 10px;
}

/* Hero */
.hero-banner {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Features */
.features-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Toolkit */
.toolkit-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Therapist Cards */
.therapist-card {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.therapist-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}


/* Chat Panel */
.chat-panel-wide {
    width: 420px;
    max-width: 95vw;
}

.side-panel {
    max-width: 95vw;
}

/* Modal */
.modal-content {
    width: 95%;
    max-width: 700px;
}

.scrollable-modal {
    max-height: 85vh;
    overflow-y: auto;
}

/* Footer */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.global-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* ===== MOBILE ===== */
@media (max-width:768px) {

    header {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 15px;
        gap: 10px;
    }

    .logo {
        font-size: 1.1rem;
        /* slightly smaller text for very small screens */
    }

    .top-nav {
        width: 100%;
        justify-content: center;
    }

    .auth-links {
        justify-content: center;
    }

    .hero-banner {
        min-height: auto;
    }

    .toolkit-widget {
        flex-direction: column;
        text-align: center;
    }

    .therapist-card {
        flex-direction: column;
        text-align: center;
    }

    .book-card {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    /* .modal-content handled cleanly by the unified mobile block at bottom of file */
    /* .chat-panel-wide handled cleanly by the unified mobile block at bottom of file */

    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .pricing-card,
    .feature-card {
        width: 100%;
    }
}

/* Book Cards */
.book-card {
    display: flex !important;
    gap: 15px;
    align-items: flex-start;
}

.book-card img {
    width: 120px;
    height: 180px;
    object-fit: cover;
}

.profile-menu {
    position: relative;
}

.profile-btn {
    background: #558b73;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
}

.profile-header {
    padding: 15px;
    background: #f5f5f5;
}

.profile-header small {
    display: block;
    color: #777;
    margin-top: 5px;
}

.profile-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.profile-dropdown a:hover {
    background: #f0f7f4;
}

.profile-menu {
    position: relative;
}

.profile-btn {
    background: #558b73;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    z-index: 99999;
}

.profile-header {
    padding: 15px;
}

.profile-header small {
    display: block;
    color: #777;
    margin-top: 5px;
}

.profile-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
}

.profile-dropdown a:hover {
    background: #f5f5f5;
}

/* Force 2x2 layout for pricing cards on desktop/tablet */
@media (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 900px;
        margin: 0 auto;
    }
}

/* =============================================================================
   frontend/checkout.css — Premium Checkout & Coupon Styling
   ============================================================================= */

.checkout-modal-content {
    max-width: 500px !important;
    width: 90% !important;
    padding: 2.5rem !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    animation: checkoutSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

@keyframes checkoutSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

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

.checkout-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.checkout-modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.checkout-modal-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 5px 0 0 0;
}

.plan-summary-card {
    background: linear-gradient(135deg, rgba(85, 139, 115, 0.08) 0%, rgba(85, 139, 115, 0.02) 100%);
    border: 1px solid rgba(85, 139, 115, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-summary-info {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.plan-summary-info h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

.plan-summary-info p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.plan-summary-price {
    text-align: right;
    flex-shrink: 0;
}

.plan-summary-price .original {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-light);
    display: block;
    margin-bottom: 2px;
}

.plan-summary-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Coupon Section */
.coupon-section {
    background: #fafcfb;
    border: 1px dashed rgba(85, 139, 115, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.coupon-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Payment Gateway Section */
.payment-gateway-section {
    margin-bottom: 1.5rem;
}

.payment-gateway-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.gateway-options-luxury {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gateway-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid rgba(85, 139, 115, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.gateway-card:hover {
    border-color: rgba(85, 139, 115, 0.4);
    box-shadow: 0 6px 20px rgba(85, 139, 115, 0.08);
    transform: translateY(-2px);
}

.gateway-card.active {
    border-color: var(--accent-color);
    background: linear-gradient(145deg, #ffffff, rgba(85, 139, 115, 0.05));
    box-shadow: 0 8px 25px rgba(85, 139, 115, 0.12);
}

.gateway-logo-container {
    width: 70px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.gateway-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gateway-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gateway-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}


.gateway-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.gateway-check {
    font-size: 1.5rem;
    color: rgba(85, 139, 115, 0);
    transition: color 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.gateway-card.active .gateway-check {
    color: var(--accent-color);
    transform: scale(1);
}

.coupon-input-group button {
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coupon-feedback-message {
    font-size: 0.82rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.coupon-feedback-message.success {
    color: #2e7d32;
}

.coupon-feedback-message.error {
    color: var(--profile-danger);
}

/* Price Breakdown */
.price-breakdown-container {
    padding: 0 5px;
    margin-bottom: 1.8rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.price-row.discount-row {
    color: #2e7d32;
    font-weight: 500;
}

.price-row.total-row {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.checkout-action-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(85, 139, 115, 0.2);
    margin-bottom: 8px;
}

.checkout-modal-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

.checkout-modal-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
}

/* Coupon tags */
.applied-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.applied-coupon-tag button {
    background: transparent;
    border: none;
    color: #2e7d32;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Segmented Available Coupons UI */
.coupons-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.coupon-group-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-top: 10px !important;
    opacity: 0.8;
}

.coupon-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(85, 139, 115, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-card:hover {
    background: rgba(85, 139, 115, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.coupon-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.coupon-card.disabled:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.coupon-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.coupon-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(85, 139, 115, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}

.coupon-card.disabled .coupon-badge {
    color: #888;
    background: rgba(0, 0, 0, 0.08);
}

.coupon-card-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

.coupon-card-action {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-card.disabled .coupon-card-action {
    color: #888;
}

/* Box Breathing Circle Styling */
.breathing-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    gap: 15px;
    transition: all 0.3s ease;
}

.breathing-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 139, 115, 0.2) 0%, var(--accent-color) 100%);
    box-shadow: 0 0 25px rgba(85, 139, 115, 0.4);
    transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
    transform: scale(0.6);
}

.breathing-circle.inhale {
    transform: scale(1.25);
    box-shadow: 0 0 50px rgba(85, 139, 115, 0.85);
}

.breathing-circle.hold-in {
    transform: scale(1.25);
    box-shadow: 0 0 50px rgba(85, 139, 115, 0.85);
}

.breathing-circle.exhale {
    transform: scale(0.6);
    box-shadow: 0 0 25px rgba(85, 139, 115, 0.4);
}

.breathing-circle.hold-out {
    transform: scale(0.6);
    box-shadow: 0 0 25px rgba(85, 139, 115, 0.4);
}

.breathing-instruction {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    min-height: 1.8rem;
    transition: opacity 0.3s ease;
}

/* Testimonials Section Styling */
.testimonials-section {
    padding: 2rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(44, 85, 69, 0.08);
    border: 1px solid rgba(44, 85, 69, 0.15);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(44, 85, 69, 0.15);
    border-color: rgba(44, 85, 69, 0.3);
}

.testimonial-rating {
    color: #ffb300;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.98rem;
    color: #1e293b;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0.5rem;
}

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

.view-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

.view-more-btn:hover {
    text-decoration-color: var(--accent-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d1e5dc;
    color: var(--accent-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2e24;
    margin: 0;
}

.author-role {
    font-size: 0.8rem;
    color: #558b73;
    margin: 2px 0 0 0;
}

/* Nature Retreats Section Styling */
.nature-retreats-section {
    padding: 3rem 0;
    position: relative;
    /* Background set via premium system at top */
}

.nature-retreats-card,
.psychiatrist-sessions-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    padding: 3rem 3.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.nature-retreats-card {
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.psychiatrist-sessions-card {
    background-image: url('/images/psychiatrist_room.png');
}

.premium-features-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
}

.premium-features-grid>div {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

.nature-retreats-overlay,
.psychiatrist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 247, 244, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%);

    z-index: 1;
}

.nature-retreats-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(85, 139, 115, 0.05);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nature-retreats-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(85, 139, 115, 0.12);
    border-color: rgba(85, 139, 115, 0.25);
    background: rgba(255, 255, 255, 0.65);
}

.nature-coming-soon {
    display: inline-block;
    background: #fff3e0;
    color: #ef6c00;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.nature-retreats-content h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.nature-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.nature-desc {
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.nature-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 2.5rem;
}

.nature-highlight-item {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(85, 139, 115, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(85, 139, 115, 0.03);
    transition: all 0.2s ease;
}

.nature-highlight-item:hover {
    background: rgba(85, 139, 115, 0.12);
    transform: translateX(3px);
}

.nature-cta-btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nature-retreats-card {
        padding: 2.5rem 1.5rem;
    }

    .nature-retreats-content {
        padding: 1.8rem;
    }

    .nature-retreats-content h2 {
        font-size: 1.8rem;
    }

    .nature-subtitle {
        font-size: 1.05rem;
    }

    .nature-highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================= */
/* GLOBAL MOBILE RESPONSIVENESS (All Devices)                               */
/* ========================================================================= */

@media (max-width: 1024px) {
    .container {
        padding: 3rem 5%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-width: 768px) {

    /* 1. Base Typography & Body */
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem !important;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    /* 2. Containers & Sections */
    .container,
    section {
        padding: 2rem 1rem !important;
        box-sizing: border-box;
    }

    .footer-container {
        padding: 2rem 1rem !important;
    }

    .global-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* 3. Header & Navigation */
    header {
        padding: 12px 16px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.05rem;
        margin-bottom: 0;
    }

    .logo img {
        width: 28px !important;
        height: 28px !important;
    }

    .top-nav {
        display: none;
    }

    .sos-nav-btn {
        display: none !important;
    }

    .auth-links {
        width: auto;
        justify-content: flex-end;
        gap: 8px !important;
    }

    .auth-links a.login-btn,
    .auth-links a.register-btn {
        display: none !important;
    }

    .mobile-auth-link {
        display: flex !important;
    }

    .profile-trigger-btn span {
        display: none;
    }

    /* 4. Hamburger Menu */
    #hamburger-dropdown-menu {
        right: 50% !important;
        transform: translateX(50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        top: calc(100% + 5px) !important;
    }

    /* 5. Hero Banner */
    .hero-banner {
        height: auto;
        min-height: 45vh;
        padding: 5.5rem 1rem 3rem 1rem !important;
        text-align: center;
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-buttons button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    /* 6. Grids (Features, Services, Pricing, Upcoming) */
    .features-grid,
    .image-grid,
    .pricing-grid,
    .testimonials-grid,
    .upcoming-features-container {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .pricing-switcher {
        flex-wrap: wrap;
        border-radius: 12px !important;
    }

    .pricing-switcher button {
        flex: 1 1 100%;
        border-radius: 8px !important;
    }

    .feature-card,
    .service-card,
    .pricing-card {
        padding: 1.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    /* 7. Side Panels & Chat */
    .side-panel,
    .side-panel.chat-panel-wide {
        width: 100% !important;
        right: -100%;
        max-width: 100vw;
        height: 100dvh !important;
        /* Fixes mobile browser bottom bar overlap */
        padding-bottom: env(safe-area-inset-bottom);
    }

    .side-panel.active,
    .side-panel.chat-panel-wide.active {
        right: 0 !important;
    }

    .chat-messages {
        padding: 15px;
    }

    .message {
        max-width: 90%;
        font-size: 0.95rem;
    }

    .chat-input {
        padding: 12px;
        flex-direction: row;
        align-items: center;
    }

    .chat-input input {
        padding: 12px;
        font-size: 1rem;
        min-width: 0;
    }

    .chat-input button {
        padding: 12px;
        width: auto;
        margin-left: 8px;
    }

    .chat-options-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .chat-option-btn {
        flex: 1 1 calc(50% - 8px);
        font-size: 0.85rem;
        padding: 10px;
    }

    /* 8. Modals */
    .modal[style*="block"],
    .modal[style*="flex"] {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: auto !important;
        padding: 1.75rem 1.25rem;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 16px;
    }

    .modal-content.luxury-review-modal {
        padding: 2.5rem 1.5rem !important;
    }

    .modal-header h2 {
        font-size: 1.5rem !important;
    }

    /* 9. Forms & Inputs */
    input,
    select,
    textarea {
        font-size: 1rem !important;
        /* Prevents iOS zoom */
        padding: 12px;
    }

    .auth-form button {
        padding: 14px;
        font-size: 1.05rem;
    }

    /* 10. Toolkit & Tables */
    .toolkit-widget {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .widget-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .widget-actions select,
    .widget-actions button {
        flex: 1;
        text-align: center;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 11. Custom Tweaks */
    .therapist-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .therapist-card img {
        margin: 0 auto 1rem;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .fab {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .chat-input {
        padding: 10px;
        flex-direction: row;
        /* Keep it horizontal */
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        /* iOS safe area */
        width: 100%;
        box-sizing: border-box;
    }

    .chat-input button {
        width: auto;
        padding: 10px 16px;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .emergency-banner-text {
        font-size: 0.9rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }
}

/* ========================================================================= */
/* UPCOMING FEATURES STYLING (Psychiatrist Sessions, etc)                   */
/* ========================================================================= */

.upcoming-features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.upcoming-feature-card {
    flex: 1;
    min-width: 280px;
    background: var(--card-bg);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.upcoming-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.upcoming-badge {
    display: inline-block;
    background: #fff3e0;
    color: #ef6c00;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.upcoming-feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upcoming-feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.upcoming-feature-card .feature-list {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.upcoming-feature-card .feature-list li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid #f9f9f9;
}

.upcoming-feature-card .feature-list li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

.btn-disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {

    .nature-retreats-card,
    .psychiatrist-sessions-card {
        padding: 2.5rem 1.5rem;
    }

    .nature-retreats-content {
        padding: 1.8rem;
    }

    .nature-retreats-content h2 {
        font-size: 1.8rem;
    }

    .nature-subtitle {
        font-size: 1.05rem;
    }

    .nature-highlights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .premium-features-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .premium-features-grid>div {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* Button Disabled State */
button:disabled,
.tool-btn:disabled,
.tool-btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#fp-btn-resend:disabled {
    border-color: #ccc !important;
    color: #999 !important;
    background-color: transparent !important;
}

/* Crisis Support (SOS) Feature Styles */
.crisis-modal-content {
    max-width: 850px;
    padding: 30px;
    border-radius: 20px;
    background-color: var(--card-bg);
}

.crisis-card {
    transition: all 0.3s ease;
}

.crisis-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.crisis-hero-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sos-text {
        display: none;
    }

    .sos-nav-btn {
        padding: 8px;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        justify-content: center;
    }

    .crisis-modal-content {
        padding: 15px;
        margin: 10px auto;
        width: 95%;
    }

    .crisis-header-gradient {
        padding: 15px !important;
    }

    .crisis-resource-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .crisis-modal-content {
        width: 90%;
        margin: 5% auto;
    }
}

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS (max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {

    /* Base text & layout */
    html,
    body {
        overflow-x: hidden;
        width: 100vw;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .container {
        padding: 2.5rem 20px;
    }

    /* Modals */
    .modal-content,
    .auth-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 2% auto;
        padding: 15px;
        /* Removed !important so zero-padding modals work, and reduced to 15px to utilize space */
    }

    .modal-image-panel {
        display: none !important;
        /* Hide auth images on mobile */
    }

    .modal-form-panel {
        padding: 20px !important;
        width: 100% !important;
    }

    .auth-modal-content {
        display: block !important;
        /* Stack instead of flex side-by-side */
    }

    /* Navigation */
    .top-nav {
        display: none;
        /* Hide top nav links, use hamburger */
    }

    .auth-links a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    header {
        padding: 0.8rem 5%;
    }

    /* Hero Section */
    .hero-content {
        padding-top: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons button {
        width: 100%;
    }

    /* Ayurveda Section Hero */
    .ayurveda-hero {
        flex-direction: column;
    }

    .ayurveda-hero-text {
        padding-right: 0 !important;
        text-align: center;
    }

    .ayurveda-hero-visual {
        margin-top: 2rem;
    }

    .dosha-circle {
        width: 80px !important;
        height: 80px !important;
        font-size: 0.9rem !important;
    }

    /* Grids */
    .features-grid,
    .pricing-grid,
    .how-it-works-grid,
    .testimonial-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .pricing-card {
        padding: 20px 15px !important;
    }

    .hero-banner {
        padding: 2rem 5% !important;
    }

    .logo img {
        height: 24px !important;
        width: 24px !important;
    }

    .auth-links a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Mobile responsive for About Us section */
@media (max-width: 768px) {
    #about-section>div {
        padding: 20px !important;
    }

    #about-section div[style*="padding: 30px"] {
        padding: 20px !important;
        gap: 15px !important;
    }

    #about-section i.fa-solid {
        font-size: 2rem !important;
    }
}

/* Utilities for responsive modal padding */
.responsive-modal-body {
    padding: 40px;
    padding-bottom: 50px;
}

.responsive-modal-header {
    padding: 40px 40px 30px;
}

@media (max-width: 768px) {
    .responsive-modal-body {
        padding: 20px !important;
        padding-bottom: 30px !important;
    }

    .responsive-modal-header {
        padding: 25px 20px 20px !important;
    }
}