﻿/* ZepÃ²l 2.5 Professional Healing Design System */
/* --- AURA ANIMATIONS ACTIVE --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* HEALING PALETTE (Nature Harmony) */
    --primary: #2d5a27;
    /* Forest Green */
    --primary-dark: #1e3d1a;
    --primary-light: #4c8c4a;
    --primary-gradient: linear-gradient(135deg, #2d5a27 0%, #4c8c4a 100%);
    --accent: #d4a373;
    /* Earthy Sand/Gold */
    --gold-gradient: linear-gradient(45deg, #d4a373, #faedcd);
    --bg-app: #fefae0;
    /* Soft Nature White */
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #283618;
    /* Dark Olive */
    --text-muted: #606c38;
    /* Olive Muted */
    --danger: #bc4749;

    --shadow-premium: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 8px 24px rgba(255, 179, 71, 0.2);
    --radius-main: 18px;
    --radius-pill: 50px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.view {
    display: none !important;
}

div.view.active,
.view.active {
    display: block !important;
}

/* Strict utility overrides */
.hidden {
    display: none !important;
}

.mobile-flex {
    display: none;
}

@media (max-width: 768px) {
    .mobile-flex {
        display: flex !important;
    }
}


body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(45, 90, 39, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 90, 39, 0.4);
}


/* App Container (Layout) */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: hidden;
    position: relative;
    /* background: rgba(255, 255, 255, 0.6); REMOVED for Aurora visibility */
    /* backdrop-filter: blur(20px); REMOVED */
    background: transparent;
    box-shadow: none;
}

/* Sidebar - Removed for Unified Design */
.sidebar {
    display: none !important;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    transition: var(--transition);
    min-height: 100vh;
    padding-bottom: 40px;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0;
}

/* Ensure container takes full width but doesn't force height */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

body.auth-locked .main-content {
    margin-left: 0;
    max-width: 100%;
}

body.auth-locked .chatbot-bubble {
    display: none !important;
}

.top-bar {
    background: rgba(255, 255, 255, 0.7);
    /* Translucent background */
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    /* Reduced padding for compact look */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    /* Make it stick to the top */
    top: 0;
    z-index: 1100;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

.top-bar-container {
    width: 92%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 120px;
    height: auto;
}

.sos-ticker-container {
    margin-right: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

#sos-ticker-text {
    transition: opacity 0.5s;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Auth Buttons Refinement */
#register-btn {
    padding: 10px 24px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

#register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
}

/* Premium Shine Animation */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: none;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    20% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        width: 95%;
        gap: 8px;
    }

    .nav-logo {
        width: 80px;
    }

    .header-actions {
        gap: 6px;
    }

    .quote-ticker,
    .sos-ticker-container {
        display: none !important;
    }

    #register-btn,
    #auth-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

.sos-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(229, 62, 62, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0);
    }
}

/* --- PREMIUM AUTH MODAL --- */
#auth-modal .modal-content,
#register-modal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 45px;
    max-width: 480px;
    width: 95%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(45, 90, 39, 0.05);
    position: relative;
    overflow: hidden;
}

#auth-modal h2,
#register-modal h2 {
    color: var(--primary);
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -0.5px;
}

#login-form input,
#register-form input,
/* --- PRESTIGE GOLD & EMOJI AUTH --- */
#auth-modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #fffbf2 100%);
    border: 2px solid #f6e05e;
    /* Gold border */
    box-shadow: 0 40px 100px rgba(184, 134, 11, 0.15), 0 15px 30px rgba(0, 0, 0, 0.05);
}

#auth-modal h2 {
    background: linear-gradient(to right, #b8860b, #d4af37, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: -0.5px;
}

.emoji-header {
    font-size: 50px;
    display: block;
    margin-bottom: 5px;
    text-align: center;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#login-form {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

#login-form .input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#login-form .input-wrapper i {
    position: absolute;
    right: 18px;
    /* Moved from left to right */
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 18px;
    cursor: pointer;
    /* Ensure it looks clickable */
    z-index: 10;
    /* Ensure above input */
}

#login-form input {
    width: 100%;
    padding: 16px 50px 16px 20px !important;
    /* Adjusted padding: Right has space for icon, Left is normal */
    border: 2px solid #fdf2d0 !important;
    background: #fffdf5 !important;
    border-radius: 16px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#register-form input,
#register-form select {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 2px solid #edf2f7;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fdfdfd;
    box-sizing: border-box;
}

#login-form input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.1) !important;
}

#register-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(45, 90, 39, 0.08);
}

#login-form .btn-primary {
    background: linear-gradient(45deg, #b8860b 0%, #d4af37 50%, #b8860b 100%) !important;
    background-size: 200% auto !important;
    animation: shine-gold 5s linear infinite !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3);
}

#register-form .btn-primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
}

#login-form .btn-primary,
#register-form .btn-primary {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes shine-gold {
    to {
        background-position: 200% center;
    }
}

.btn-close-modal {
    background: none;
    border: none;
    color: #a0aec0;
    display: block;
    margin: 20px auto 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.view {
    display: none !important;
}

.view.active {
    display: block !important;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

/* --- RESPONSIVE GRID UTILITIES --- */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .responsive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .responsive-grid-2,
    .responsive-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* --- DASHBOARD GRID --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

.view-header {
    margin-bottom: 10px;
    text-align: center;
}

.view-header h2 {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    color: var(--primary-dark);
    margin-bottom: 5px;
    /* Reduced from 10px */
}

.view-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Supportive Welcome Banner Styling */
.supportive-welcome-banner {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(79, 172, 254, 0.2) !important;
    animation: fadeInSlide 0.8s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-icon {
    animation: heartBeat 2.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

.premium-hero {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-image: radial-gradient(at 100% 0%, rgba(255, 179, 71, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(30, 77, 43, 0.05) 0px, transparent 50%);
}

/* Motivation Banner */
.motivation-banner {
    background: rgba(45, 90, 39, 0.08);
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid rgba(45, 90, 39, 0.1);
    max-width: 400px;
    animation: slideInDown 0.5s ease;
    margin-right: 15px;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.motivation-banner i {
    font-size: 12px;
    opacity: 0.6;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: var(--shadow-gold);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-text h2 span {
    color: var(--primary);
    position: relative;
}

.hero-text h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0.2;
    z-index: 1;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h2 {
    font-size: 48px;
    /* Larger desktop font */
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 32px;
        /* Responsive mobile font */
    }
}

/* Updated Feature Card for Premium Glass Look */
.feature-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.25));
    display: block;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.05);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}


.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Cards */
.quick-access {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Professional Card Styles */
.card,
.glass-card,
.post-card,
.support-group-container {
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque for better readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px -4px rgba(102, 126, 234, 0.15),
        0 8px 16px -4px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Feature cards with gradient icon backgrounds */
.features-grid .card {
    position: relative;
    overflow: hidden;
}

.features-grid .card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.features-grid .card:hover::before {
    opacity: 1;
}

.icon-bg {
    transition: transform 0.3s ease;
}

.features-grid .card:hover .icon-bg {
    transform: scale(1.2) rotate(5deg);
}


/* Base Button Styles */
.btn-primary,
.btn-secondary,
.btn-danger,
.sos-btn,
#register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.btn-primary,
#register-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

#register-btn {
    background: var(--gold-gradient);
    color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
#register-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 77, 43, 0.2);
    filter: brightness(1.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: .6s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid rgba(60, 110, 113, 0.2);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.sos-btn {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* --- EMERGENCY & WHATSAPP STYLES --- */
.emergency-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.emergency-btn:not(.whatsapp) {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emergency-btn.whatsapp {
    background: #25D366;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.emergency-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.emergency-btn i {
    font-size: 1.8rem;
    /* Increased size */
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-block;
}

/* WhatsApp Invite Card */
.whatsapp-invite-card {
    padding: 25px;
    text-align: center;
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    margin: 15px;
    /* Added margin around the card */
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.1);
}

.whatsapp-invite-card p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #166534;
    font-weight: 600;
    line-height: 1.5;
}

.whatsapp-large-btn {
    background: #25D366;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-large-btn:hover {
    transform: scale(1.05);
    background: #20bd5a;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-close-modal {
    margin-top: 10px;
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #718096;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}

.btn-close-modal:hover {
    background: #f7fafc;
    color: var(--text-main);
}

/* --- PREMIUM FOOTER 3.0 --- */
.premium-footer {
    background: var(--primary);
    color: white;
    padding: 30px 5% 20px;
    margin-top: 0;
    position: relative;
    border-radius: 30px 30px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.footer-badges span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.footer-nav h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    text-decoration: none;
}

.footer-nav ul li a:hover {
    color: var(--accent);
}

.sos-link {
    display: block;
    background: var(--danger);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}


/* --- NAVIGATION & SIDEBAR --- */

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--primary);
}

.badge {
    display: inline-block;
    background: #e6fffa;
    color: #2c7a7b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    border: 1px solid #b2f5ea;
}

.footer-bottom {
    border-top: 1px solid #edf2f7;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9em;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.social-icons a {
    color: #a0aec0;
    margin-left: 15px;
    font-size: 16px;
}

.support-group-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    overflow: hidden;
}

.sg-header {
    background: var(--primary);
    color: white;
    padding: 20px;
}

.sg-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f7fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sg-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 15px;
}

.sg-message.system {
    align-self: center;
    background: #e2e8f0;
    color: #4a5568;
    font-size: 13px;
    font-style: italic;
}

.sg-message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.sg-message.other {
    align-self: flex-start;
    background: white;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 2px;
}

.sg-input-area {
    padding: 20px;
    background: white;
    border-top: 2px solid #e2e8f0;
    /* More prominent separation */
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.sg-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
}

.card:hover,
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e0;
}

.access-card i {
    font-size: 32px;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.access-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.access-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

/* Feed & Posts */
.post-card.highlight {
    border-left: 4px solid #ffd700;
    background: linear-gradient(to right, #fffaf0, #fff);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-author {
    font-weight: 600;
    color: #4a5568;
}

.post-date {
    font-size: 12px;
    color: #a0aec0;
}

.post-content {
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #667eea;
}

/* Improved Cards (Glass) */
/* Improved Cards (Deep Glass) */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    /* Much more opaque */
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Deeper shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(90, 100, 120, 0.12);
}

.card-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    color: rgba(102, 126, 234, 0.1);
    transform: rotate(15deg);
}

/* Dashboard Specifics */
.chat-model-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0 30px;
    padding: 0 10px;
}

.chat-model-item {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    opacity: 0.8;
}

.chat-model-item.left {
    justify-content: flex-start;
}

.chat-model-item.right {
    justify-content: flex-end;
}

.chat-avatar {
    width: 30px;
    height: 30px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.chat-bubble-model {
    background: white;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 0;
    font-size: 14px;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 80%;
}

.chat-model-item.right .chat-bubble-model {
    background: var(--primary-light);
    color: white;
    border-radius: 18px 18px 0 18px;
}

.chat-cta {
    text-align: center;
    margin-top: 15px;
}

.dashboard-header {
    margin-bottom: 15px;
}

.dashboard-header h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 5px;
}

.score-display {
    font-size: 56px;
    font-weight: 800;
    color: #667eea;
}

.score-total {
    font-size: 24px;
    color: #a0aec0;
    font-weight: 600;
}

.stat-note {
    font-size: 14px;
    color: #718096;
    margin: 5px 0 0 0;
}

.streak-card .streak-count {
    font-size: 36px;
    font-weight: 700;
    color: #ed8936;
    /* Orange for fire */
    margin: 10px 0;
}

.simple-chart {
    height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 10px;
    /* Removed border bottom for cleaner look */
}


.chart-bar {
    flex: 1;
    background: var(--primary-gradient);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    position: relative;
    min-height: 4px;
}

.chart-bar:hover::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Wellness Breathing - Premium Organic Pulsing */
.exercise-card {
    padding: 30px;
}

.breathing-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 0 30px rgba(60, 110, 113, 0.3);
    z-index: 2;
    transition: transform 4s cubic-bezier(0.445, 0.05, 0.55, 0.95), background 4s ease;
}

.breathing-circle::before,
.breathing-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    z-index: -1;
    transition: transform 4s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.breathing-circle::after {
    opacity: 0.15;
    transition-duration: 4.5s;
}

.breathing-circle.inhale {
    transform: scale(1.3);
    background: var(--secondary-gradient);
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.4);
}

.breathing-circle.inhale::before {
    transform: scale(1.2);
}

.breathing-circle.inhale::after {
    transform: scale(1.4);
}

.breathing-circle.exhale {
    transform: scale(1);
}

.breathing-circle.exhale::before,
.breathing-circle.exhale::after {
    transform: scale(1);
}

/* Zen Memory - Refined Glass Look */
.memory-board {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-front {
    background: var(--primary-gradient) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
}

.memory-card:hover .card-inner {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Wellness Hub */
.wellness-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.wellness-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.wellness-btn.active,
.wellness-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Bubble Game */
.game-container {
    text-align: center;
    padding: 20px;
}

#bubble-canvas {
    background: linear-gradient(to bottom, #e0f7fa, #ffffff);
    border-radius: 12px;
    cursor: crosshair;
    margin: 20px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 450px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 2px solid rgba(60, 110, 113, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.memory-card {
    height: 90px;
    width: 100%;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-front {
    background: linear-gradient(135deg, #3c6e71 0%, #284b63 100%);
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-back {
    background-color: #f0f4f8;
    color: #3c6e71;
    transform: rotateY(180deg);
    font-size: 38px;
    border: 2px solid #3c6e71;
}

.memory-card.matched .card-inner {
    opacity: 0.5;
    cursor: default;
    transform: rotateY(180deg) scale(0.95);
}

/* Vibe Catcher - Dynamic Healing Background */
.vibe-game-area {
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
    background: linear-gradient(-45deg, #3c6e71, #284b63, #3c6e71, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#vibe-score {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
}

.vibe-item {
    position: absolute;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.vibe-item:hover {
    transform: scale(1.4);
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(450px) rotate(360deg);
        opacity: 0;
    }
}

/* Gratitude Jar */
.gratitude-container {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cloud Clearer Game */
.cloud-game-area {
    width: 100%;
    height: 300px;
    background: #87CEEB;
    /* Sky Blue */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 0;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px;'><text y='24'>â˜€ï¸</text></svg>"), auto;
}

.sun-behind {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    z-index: 1;
    text-shadow: 0 0 30px #FFD700;
}

.cloud-item {
    position: absolute;
    font-size: 60px;
    color: #4A4A4A;
    cursor: pointer;
    z-index: 2;
    transition: all 0.4s ease;
    user-select: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.cloud-item.cleared {
    opacity: 0;
    transform: scale(1.5) translateX(100px);
    pointer-events: none;
}

/* Redesigned Gratitude Jar */
.jar-wrapper {
    position: relative;
    padding: 20px;
    perspective: 1000px;
}

.jar-body {
    width: 200px;
    height: 260px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px 40px 80px 80px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column-reverse;
}

.jar-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.1));
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 0;
    left: 0;
}

.jar-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.7;
}


.gratitude-note {
    position: absolute;
    padding: 10px 15px;
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #5d4037;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    animation: noteFloat 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-width: 150px;
    word-wrap: break-word;
    border-left: 3px solid var(--primary);
}

@keyframes noteFloat {
    from {
        transform: translateY(-300px) rotate(-10deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translateY(0) rotate(var(--rotation, 0deg)) scale(1);
        opacity: 1;
    }
}

/* Modals Premium 3.0 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 44, 26, 0.75);
    backdrop-filter: blur(20px);
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal:not(.hidden) {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    margin: 0 auto !important;
    position: relative;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    border-radius: 28px;
    background: white;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

/* Ensure auth modal content is also centered */
#auth-modal .modal-content,
#register-modal .modal-content {
    margin: 0 auto !important;
    text-align: center;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Member Dashboard Styles */
.welcome-banner {
    background-color: #2d5a27 !important;
    /* Force Solid Green */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-radius: var(--radius-main);
    padding: 25px;
    color: white !important;
    /* Force White Text */
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 25px;
    /* Increased from 20px for breathing room */
}

.daily-inspiration-hero {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 20px;
}

.daily-inspiration-hero i {
    opacity: 0.6;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.daily-inspiration-hero span {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
}

.welcome-actions-side {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

.greeting-header {
    margin: 0;
    font-size: 1.3rem;
    color: white !important;
}

.greeting-sub {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.small-btn {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
}

.dashboard-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column !important;
        /* Standard column */
        text-align: center !important;
        gap: 5px !important;
        /* Reduced from 20px */
        padding: 5px 15px 10px 15px !important;
        /* Very tight padding */
    }

    /* REORDERING: Greeting First, Quote Second, Buttons Last */
    /* Accessing the Greeting Div (since it has no specific class on the container div) */
    .welcome-banner>div:nth-child(2) {
        order: -1;
        width: 100%;
    }

    .daily-inspiration-hero {
        order: 0;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        /* Separators */
        padding-right: 0 !important;
        padding-top: 15px;
        padding-bottom: 15px !important;
        width: 100%;
    }

    .action-buttons-group {
        order: 1;
        width: 100%;
    }

    .welcome-actions-side {
        width: 100%;
        text-align: center !important;
        align-items: center !important;
    }

    .action-buttons-group {
        width: 100%;
    }

    .action-buttons-group button {
        width: 100%;
        justify-content: center;
    }
}

.modal-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-main);
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

.glass-panel,
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* SHARE PAGE STYLES */
.share-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
}

.share-subtitle {
    color: #718096;
    margin-bottom: 30px;
}

.share-form {
    text-align: left;
}

/* Emoji Picker Enhancements */
.emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 280px;
    z-index: 1000;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    font-size: 22px;
    max-height: 200px;
    overflow-y: auto;
    cursor: pointer;
}

.emoji-grid span:hover,
.emoji-grid div:hover {
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
}

/* Custom Identity Select */
.identity-options {
    display: flex;
    gap: 15px;
}

.identity-option {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.identity-option.selected {
    border-color: #667eea;
    background: #ebf4ff;
    color: #5a67d8;
}

.identity-option i {
    font-size: 20px;
}

/* Custom Mood Select */
.mood-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.mood-opt {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    min-width: 60px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.mood-opt:hover {
    transform: translateY(-3px);
}

.mood-opt.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* --- PREMIUM INPUTS 3.0 --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    border: 2px solid rgba(30, 77, 43, 0.05);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    margin-bottom: 15px;
}

textarea {
    border-radius: var(--radius-main);
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1), var(--shadow-premium);
    transform: translateY(-2px);
}

.safety-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fff4;
    color: #38a169;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 25px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}


/* Danger/SOS Modal */
.danger-modal .modal-content {
    border: 2px solid var(--danger);
    background: #fff5f5;
}

.emergency-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.emergency-btn {
    display: block;
    background: #e53e3e;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.2s;
}

.emergency-btn.whatsapp {
    background: #25D366;
}

.emergency-btn:hover {
    transform: scale(1.02);
}

/* Utilities */
.hidden {
    display: none !important;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
}

.chatbot-bubble {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Left side for bot */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    animation: chatbot-pulse 2s ease-in-out infinite;
}

@keyframes chatbot-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.7);
    }
}

.chatbot-bubble:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* Responsive Overhaul */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .hamburger-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary);
    }

    .quote-ticker {
        display: none;
    }

    .hero-section {
        flex-direction: column-reverse;
        padding: 40px 20px;
        text-align: center;
    }

    .features-grid,
    .dashboard-grid,
    .resources-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .chart-card {
        grid-column: span 1 !important;
    }

    .header-actions {
        gap: 5px;
    }

    .header-actions .btn-secondary i {
        margin-right: 0;
    }

    .header-actions .btn-secondary span {
        display: none;
        /* Hide button text if any */
    }

    /* Move chatbot bubble up to avoid mobile nav overlap */
    .chatbot-bubble {
        bottom: 90px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .header-actions button:not(.sos-btn):not(#auth-btn):not(#register-btn) {
        display: none;
        /* Hide non-critical buttons in mobile top bar, but keep register-btn visible */
    }

    header.top-bar {
        padding: 0 15px;
    }

    .container {
        padding: 20px 15px;
    }

    .brand-logo img {
        width: 80px;
    }

    .modal-content {
        padding: 25px 20px !important;
    }
}


/* Community UI Fixes */
.community-alert-box {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 20px;
    border-radius: var(--radius-main);
    margin-bottom: 30px;
    color: #c53030;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.posts-feed {
    margin-bottom: 15px;
}

.post-card {
    margin-bottom: 8px;
    /* Even more compact */
    padding: 12px 15px;
}

.post-content {
    margin-bottom: 10px;
}

.post-comments-preview {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mini-comment {
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.mini-comment strong {
    color: var(--primary);
}

.more-comments-link {
    font-size: 12px;
    color: var(--primary-light);
    cursor: pointer;
    margin-top: 5px;
    font-weight: 500;
}

.more-comments-link:hover {
    text-decoration: underline;
}


/* Community Actions Spacing */
.community-actions {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .community-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}

/* Modernized Resource Library */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.res-img {
    height: 160px;
    display: grid;
    place-items: center;
    font-size: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.res-img::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 30px;
    background: white;
    border-radius: 50%;
}

.res-img.category-article {
    background: linear-gradient(135deg, #3c6e71 0%, #284b63 100%);
}

.res-img.category-exercise {
    background: linear-gradient(135deg, #60993e 0%, #344e41 100%);
}

.res-img.category-video {
    background: linear-gradient(135deg, #e63946 0%, #a82a33 100%);
}

.res-img.category-app {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.res-img.category-community {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
}

.res-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.res-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--primary-dark);
}

.res-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.res-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.res-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.res-content .btn-secondary {
    width: 100%;
    margin-top: auto;
}

/* Success Stories */
.story-card {
    border-top: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.story-card p {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
}

.story-author {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9em;
}

/* Community Safety */
.community-alert-box {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Enhancements */
.mood-score-btn {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.mood-score-btn:hover {
    transform: scale(1.3);
}

/* Chatbot Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: slideUp 0.3s ease;
    background: white;
}

.chat-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    cursor: pointer;
    font-size: 20px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}

.msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
}

.msg.bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.msg.user {
    background: #667eea;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-options {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.chat-options button {
    background: white;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

/* SETTINGS PAGE STYLES */
.settings-container {
    max-width: 600px;
    margin: 0 auto;
}

.setting-section {
    margin-bottom: 20px;
    align-items: flex-start;
    /* Override center align of glass-card */
}

.setting-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #4a5568;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
    width: 100%;
}

.lang-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-info i {
    font-size: 24px;
    color: #667eea;
}

.setting-info h4 {
    margin: 0;
    font-size: 16px;
}

.setting-info p {
    margin: 0;
    font-size: 14px;
    color: #a0aec0;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #667eea;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Register Form Styles (Matches Auth) */
#register-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    transition: all 0.3s ease;
}

#register-form input:focus,
#login-form input:focus {
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    background: white;
    outline: none;
}

#register-form button,
#login-form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 10px;
    background: var(--primary-gradient);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s;
}

#register-form button:hover,
#login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

#auth-modal h2,
#register-modal h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FOOTER STYLES */
.site-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #a0aec0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    display: block;
    color: #cbd5e0;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #718096;
}

/* Sidebar extensions */
.sidebar-user {
    margin-top: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

.user-info-complete {
    overflow: hidden;
}

.nav-email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn-mini {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.logout-btn-mini:hover {
    color: var(--danger);
}

/* Profiles & Drafts */
.draft-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--secondary);
    transition: transform 0.2s;
}

.draft-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Community Spacing Fix */
.community-actions {
    margin-bottom: 40px !important;
}

/* Bot Customization */
.chatbot-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PREMIUM ENHANCEMENTS & ANIMATIONS --- */

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view.active {
    animation: viewFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card:not(.draft-card) {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.card:not(.draft-card):hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(60, 110, 113, 0.15) !important;
    border-color: var(--primary) !important;
}

/* Glassmorphism Refinement */
.glass-panel,
.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Hover pulse for primary buttons */
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(60, 110, 113, 0.4);
    transform: scale(1.02);
}

/* --- PREMIUM DESIGN OVERHAUL --- */
/* Conflict removed: floatAura body::before was duplicate */

.blurred {
    filter: blur(10px) grayscale(40%);
    pointer-events: none;
    opacity: 0.6;
}

/* Sidebar item hover */
.nav-links li {
    transition: all 0.2s ease;
}

.nav-links li:hover {
    background: rgba(60, 110, 113, 0.05) !important;
    padding-left: 25px !important;
}

.nav-links li.active {
    background: rgba(60, 110, 113, 0.1) !important;
    border-left: 4px solid var(--primary) !important;
    font-weight: 600;
}

.chatbot-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header h4::before {
    content: "🕊️ ";
}

/* --- ZEPÒL PREMIUM DESIGN SYSTEM --- */
:root {
    --primary: #4a7c59 !important;
    /* Forest Green - Growth */
    --primary-dark: #3a5a40 !important;
    /* Deep Slate */
    --accent: #ffd275 !important;
    /* Warm Gold - Hope */
    --bg-warm: #fdfaf5 !important;
    /* Soft Cream */
    --secondary: #6b9ac4 !important;
    /* Calm Blue */
}

/* Floating Auras - Warmer Colors */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    animation: floatingBubbles 25s infinite alternate ease-in-out;
    pointer-events: none;
}

body::before {
    background: radial-gradient(circle, rgba(74, 124, 89, 0.3) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

body::after {
    background: radial-gradient(circle, rgba(255, 210, 117, 0.2) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -12s;
}

@keyframes floatingBubbles {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(120px, 60px) scale(1.15);
    }

    66% {
        transform: translate(-40px, 120px) scale(0.9);
    }

    100% {
        transform: translate(60px, -40px) scale(1.08);
    }
}

/* Enhanced Glassmorphism */
.glass-panel,
.card.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05) !important;
}

/* Hero Section Professional Polish */
/* Hero Section Professional Polish */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05) 0%, rgba(255, 210, 117, 0.05) 100%);
    border-radius: 30px;
    padding: 60px !important;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.hero-image img {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.12));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Locked Feed Utility */
.blurred {
    filter: blur(8px) grayscale(40%);
    pointer-events: none;
    opacity: 0.6;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CENTERING UTILITIES --- */
.centered-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 80px 20px !important;
    min-height: 300px;
    width: 100%;
    box-sizing: border-box;
}

.hero-buttons-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar Logo Hover */
.logo h2 {
    transition: all 0.4s ease;
}

.logo:hover h2 {
    transform: scale(1.05);
    color: var(--primary-dark);
    text-shadow: 0 0 15px rgba(74, 124, 89, 0.2);
}

/* Soft Feed Entrance */
.post-card {
    opacity: 0;
    transform: translateY(20px);
    animation: postEntrance 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* --- CHAT SUGGESTIONS --- */
.chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

.chat-suggestions::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.suggestion-chip {
    background: rgba(74, 124, 89, 0.1);
    color: var(--primary);
    border: 1px solid rgba(74, 124, 89, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 124, 89, 0.2);
}

/* --- PREMIUM ANIMATIONS --- */
.card,
.glass-panel {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view.active>* {
    animation: slideUpFade 0.6s ease-out forwards;
}

/* --- MOBILE RESPONSIVE ENHANCEMENTS --- */
.mobile-nav-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    backdrop-filter: blur(10px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* --- HELP GALLERY --- */
.help-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.help-card {
    text-align: center;
    padding: 20px !important;
}

.help-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* --- MOBILE SAFE AREAS & IOS OPTIMIZATION --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-nav-footer {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .main-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .main-content {
        margin-left: 0 !important;
        padding-bottom: 80px !important;
    }

    .mobile-nav-footer {
        display: flex;
    }

    .top-bar {
        padding: 10px 15px;
    }

    .hamburger-menu {
        display: block !important;
    }

    .hero-section {
        flex-direction: column;
        padding: 30px 20px !important;
    }

    .features-grid,
    .quick-access,
    .resources-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    @keyframes pulse-mobile {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }
    }
}

/* Locked Feed Utility */
.blurred {
    filter: blur(8px) grayscale(40%);
    pointer-events: none;
    opacity: 0.6;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Logo Hover */
.logo h2 {
    transition: all 0.4s ease;
}

.logo:hover h2 {
    transform: scale(1.05);
    color: var(--primary-dark);
    text-shadow: 0 0 15px rgba(74, 124, 89, 0.2);
}

/* Soft Feed Entrance */
.post-card {
    opacity: 0;
    transform: translateY(20px);
    animation: postEntrance 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* --- CHAT SUGGESTIONS --- */
.chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

.chat-suggestions::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.suggestion-chip {
    background: rgba(74, 124, 89, 0.1);
    color: var(--primary);
    border: 1px solid rgba(74, 124, 89, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.suggestion-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 124, 89, 0.2);
}

/* --- PREMIUM ANIMATIONS --- */
.card,
.glass-panel {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view.active>* {
    animation: slideUpFade 0.6s ease-out forwards;
}

/* --- MOBILE RESPONSIVE ENHANCEMENTS --- */
.mobile-nav-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    backdrop-filter: blur(10px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* --- HELP GALLERY --- */
.help-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.help-card {
    text-align: center;
    padding: 20px !important;
}

.help-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* --- MOBILE SAFE AREAS & IOS OPTIMIZATION --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-nav-footer {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .main-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .main-content {
        margin-left: 0 !important;
        padding-bottom: 80px !important;
    }

    .mobile-nav-footer {
        display: flex;
    }

    .top-bar {
        padding: 10px 15px;
    }

    .hamburger-menu {
        display: block !important;
    }

    .hero-section {
        flex-direction: column;
        padding: 30px 20px !important;
    }

    .features-grid,
    .quick-access,
    .resources-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* Touch Targets Optimization */
    button,
    .card,
    .mobile-nav-item,
    .nav-links li {
        min-height: 44px;
    }
}

/* --- PREMIUM 3.0 FINAL POLISH --- */
.centered-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 350px;
    padding: 30px 20px;
    background: radial-gradient(circle at center, rgba(30, 77, 43, 0.08) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero-overlay-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-logo-large {
    width: 120px;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.hero-logo-large:hover {
    transform: scale(1.05);
}

.centered-hero h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    /* Responsive font size */
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.gold-text {
    color: var(--primary);
    font-weight: 800;
}

.centered-hero p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.hero-buttons-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Auth Lock System */
.auth-lock-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 600px;
    border: 2px dashed var(--primary-light);
    animation: fadeIn 0.8s ease;
}

.auth-lock-panel i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.6;
}

.auth-lock-panel h3 {
    margin-bottom: 15px;
}

/* Hidden/Visible classes per Auth State */
.auth-only-content.hidden,
.auth-only-hidden.hidden,
.auth-only-visible.hidden {
    display: none !important;
}

/* Chat Examples Style */
.support-examples-section {
    padding: 40px 0;
}

.examples-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.chat-example-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 14px;
    position: relative;
}

.chat-bubble.user {
    background: #eef2f7;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.friend {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 5px 15px rgba(30, 77, 43, 0.2);
}

/* Footer Minimalist */
.compact-footer {
    padding: 20px 0 100px 0;
    /* Space for mobile nav */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
}

.footer-content-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.sos-minimal {
    padding: 8px 16px;
    background: rgba(239, 83, 80, 0.1);
    color: var(--danger);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.sos-minimal:hover {
    background: var(--danger);
    color: white;
}

.social-mini a {
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-mini a:hover {
    color: var(--primary);
}

/* Shine Effect for Register Button */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: 0.7s;
}

.btn-shine:hover::after {
    left: 150%;
}

/* Member Dashboard Styles */
.member-dashboard {
    padding: 20px 0;
    animation: fadeIn 0.8s ease;
}

.welcome-banner {
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 77, 43, 0.05) 0%, rgba(255, 179, 71, 0.05) 100%);
    border: 1px solid rgba(30, 77, 43, 0.1);
}

.welcome-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.daily-inspiration {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
    color: var(--primary);
    border: 1px solid rgba(30, 77, 43, 0.05);
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.status-card {
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.status-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(45, 90, 39, 0.1);
    border-color: var(--primary-light);
}

.status-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--bg-app);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-card h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Back Button Styles */
.back-btn {
    background: white;
    color: var(--primary);
    border: 1px solid #edf2f7;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-left: 15px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f7fafc;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-btn i {
    font-size: 12px;
}

/* Community Layout Fix */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px;
    /* Safety space */
    position: relative;
    z-index: 1;
}

.post-card {
    position: relative;
    z-index: 2;
    margin-bottom: 0 !important;
    display: block !important;
    min-height: 100px;
    background: white !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Professional Footer */
.professional-footer {
    background: #ffffff;
    padding: 60px 0 100px 0;
    border-top: 1px solid #edf2f7;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.col-brand .footer-logo {
    width: 100px;
    margin-bottom: 20px;
}

.col-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
}

/* Auth State Toggles */
.hidden {
    display: none !important;
}

/* Spacing Adjustments */
.posts-feed {
    margin-bottom: 5px;
    /* Extra tight space */
}

.view-all {
    margin-top: 5px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-bar {
        padding: 10px 15px;
    }

    .header-actions {
        gap: 5px;
    }

    .motivation-banner {
        display: none;
        /* Auto-hide on mobile to save space */
    }

    .hero-section {
        padding: 20px 15px;
        min-height: auto;
        margin-top: 0;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 20px;
        display: block !important;
        /* Force show */
        margin-bottom: 10px;
    }

    .hero-buttons-centered {
        display: block !important;
        width: 100%;
        margin-top: 20px;
    }

    .status-cards {
        display: none !important;
        /* User requested to hide dashboard on mobile */
    }

    .main-content {
        padding: 5px 0;
        margin-left: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .container {
        padding: 0 10px;
    }
}

/* Strict utility overrides */
.hidden {
    display: none !important;
}

.mobile-nav-footer.hidden {
    display: none !important;


    /* Enhanced Mobile Readability */
    p,
    .post-content,
    .msg-text-preview {
        font-size: 16px !important;
        line-height: 1.6;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 15px;
        margin: 0 10px 15px 10px;
    }

    .social-links {
        justify-content: center;
    }

    .main-content {
        padding: 10px 0;
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Fix Bottom Nav Overlap - Compact */
    .mobile-nav-footer {
        height: 60px;
    }

    body {
        padding-bottom: 70px;
        /* Reduced from 80px */
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.5rem;

    }

    .status-card {
        padding: 20px 15px;
    }
}

/* --- NEW DASHBOARD STYLES --- */

/* Sanctuary Header */
.sanctuary-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 253, 244, 0.9));
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.greeting-text {
    font-size: 28px;
    color: var(--text-main);
    margin: 0;
}

.highlight-name {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.daily-affirmation {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 5px;
    font-size: 16px;
}

.quick-mood-selector {
    text-align: right;
}

.mood-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.mood-emojis button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.7;
    margin-left: 5px;
}

.mood-emojis button:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Dashboard Grid Layout */
.dashboard-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.widget-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.widget-icon {
    font-size: 32px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.widget-card:hover .widget-icon {
    transform: scale(1.1);
}

.widget-content h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
}

.widget-content p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Specific Widget Styles - Rich & Filled */
.breathe-widget {
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    border-bottom: 4px solid #00acc1;
}

.breathe-widget .widget-icon {
    color: #00838f;
    background: rgba(0, 172, 193, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.gratitude-widget {
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
    border-bottom: 4px solid #fbc02d;
}

.gratitude-widget .widget-icon {
    color: #f9a825;
    background: rgba(251, 192, 45, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.journal-widget {
    background: linear-gradient(135deg, #f8bbd0 0%, #ffffff 100%);
    border-bottom: 4px solid #ec407a;
}

.journal-widget .widget-icon {
    color: #c2185b;
    background: rgba(236, 64, 122, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.community-widget {
    background: linear-gradient(135deg, #c8e6c9 0%, #ffffff 100%);
    border-bottom: 4px solid #43a047;
}

.community-widget .widget-icon {
    color: #2e7d32;
    background: rgba(67, 160, 71, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dashboard-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sanctuary-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .quick-mood-selector {
        text-align: center;
    }

    .dashboard-grid-layout {
        grid-template-columns: 1fr;
    }

    .widget-card {
        flex-direction: row;
        height: auto;
        padding: 15px;
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
    }

    .widget-icon {
        margin-bottom: 0;
        font-size: 24px;
    }
}

/* Animation Classes */
.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }

    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }

    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Mini Breathing Circle */
.breathing-circle {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe-anim 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes breathe-anim {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0.5;
    }
}

/* --- Centered Hero Buttons (Added for Responsiveness) --- */
.hero-buttons-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons-centered {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons-centered button {
        width: 100%;
        margin-left: 0 !important;
        /* Override inline margin if present */
        display: flex;
        justify-content: center;
        padding: 15px;
    }

    /* --- Modal Centering Fix (Critical) --- */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        /* Dimmed background */
        backdrop-filter: blur(5px);
        z-index: 2000;
        /* Changed from flex to block to allow scrolling */
        display: block !important;
        overflow-y: auto !important;
        /* Enable vertical scrolling */
        overflow-x: auto !important;
        /* Enable horizontal scrolling if needed */
        padding: 20px 0;
        /* Add top/bottom padding so content isn't flush */
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }

    .modal.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: block !important;
    }

    /* Ensure modal content flows naturally */
    .modal-content {
        margin: 30px auto !important;
        /* Center horizontally with margin, space from top */
        /* Remove max-height constraint to let it grow and scroll with the page */
        max-height: none !important;
        overflow-y: visible !important;
        position: relative;
        /* Ensure it doesn't touch edges on mobile */
        width: 90%;
        max-width: 500px;
    }

    @media (max-width: 768px) {
        .modal-content {
            width: 90% !important;
            margin: 0 auto !important;
            /* Center horizontally if flex fails */
            padding: 25px !important;
        }
    }
}


/* Override Gold Text for readability (Zepòl Highlight) */
.gold-text {
    color: #c2410c;
    /* Deep burnt orange/rust for high contrast */
    font-weight: 900;
    font-size: 1.1em;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    background: linear-gradient(120deg, #ea580c, #c2410c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Professional Footer Social Icons (Static - Minimalist) */
.social-icon-static {
    padding: 0 10px;
    /* Spacing instead of fixed width */
    color: rgba(255, 255, 255, 0.8);
    /* Softer white */
    font-size: 20px;
    /* Slightly larger icon */
    transition: all 0.3s ease;
    cursor: default;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
}

.social-icon-static:hover {
    color: white;
    /* Brighten on hover */
    transform: translateY(-2px);
    background: transparent;
}

/* New Simple Footer Icon Class - Nuclear Option */
.simple-footer-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- MEMBER DASHBOARD STYLES --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    background: white;
    /* Clean white header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dash-logo {
    height: 35px;
}

/* Sidebar */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 5000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.dashboard-sidebar.active {
    transform: translateX(0);
}

#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4999;
    backdrop-filter: blur(3px);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar-nav button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    color: var(--text-main);
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.dash-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.welcome-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}/* Chat Input Area Styling */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 0 0 15px 15px;
}

.chat-action-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.chat-action-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
    transform: scale(1.1);
}

.chat-action-btn.active {
    background: #fee2e2;
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

#bot-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#bot-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}


/* Mood Buttons Styling */
.mood-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mood-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.mood-btn:active {
    transform: scale(0.95);
}
