:root {
    --primary: #6B9E5A;
    --primary-dark: #4A7A3A;
    --secondary: #9B7B54; /* Badge brown */
    --bg-light: #EEF1E8;
    --text-dark: #1C2B1A;
    --text-gray: #888888;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 80px; /* Space for bottom nav */
}

.container {
    max-width: 600px; /* Mobile default */
    margin: 0 auto;
    padding: 16px;
    transition: max-width 0.3s;
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px; /* Website width */
    }
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--white); /* Solid background on all screens */
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    margin-right: 12px;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-gray);
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Dashboard Content */
.welcome-section {
    padding: 16px 0;
}

.welcome-section h2 {
    font-size: 26px;
    font-weight: 700;
}

.welcome-section p {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* Material Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: none;
    transition: transform 0.2s;
}

.card-full {
    width: 100%;
    margin-top: 12px;
}

.card-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.card-val {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.card-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Dosha Balance Styles */
.dosha-row {
    margin-top: 12px;
}

.dosha-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.progress-bar {
    height: 8px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
}

.fill-green { background: var(--primary); }
.fill-brown { background: var(--secondary); }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 10px;
    gap: 4px;
    flex: 1;
}

.nav-item.active {
    color: var(--primary);
    background: #F5F7F2;
    height: 100%;
    justify-content: center;
}

/* Desktop Nav (Top Bar) */
.desktop-nav {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 24px;
    margin-left: 40px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    padding: 20px 0; /* Increased hit area */
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary);
}

.desktop-nav a.active {
    border-bottom-color: var(--primary);
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .bottom-nav {
        display: none !important; /* Hide bottom nav on desktop */
    }
    
    body {
        padding-bottom: 0; /* No space needed for bottom nav */
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* More columns on desktop */
    }
    
    .app-header {
        padding: 16px 40px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .auth-container {
        max-width: 450px;
        margin: 60px auto;
    }
}

/* FAB */
.fab-chat {
    position: fixed;
    bottom: 88px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(107, 158, 90, 0.4);
    color: var(--white);
    text-decoration: none;
    z-index: 999;
}

/* Forms */
.auth-container {
    padding-top: 40px;
}

.auth-card {
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    background: #F5F7F2;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-auth {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Landing Page Redesign */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-top: -30px; 
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(245,247,242,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 18px;
    background: var(--white);
    color: var(--primary);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Responsive Landing */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stat-row { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 30px;
        padding: 30px;
    }
    .hero-section { min-height: 70vh; margin-top: -20px; }
}
