:root {
    /* Option C: Growth & Fresh Palette */
    --primary: #228B22; /* Forest Green */
    --primary-dark: #1a6b1a;
    --secondary: #e8f5e9; /* Very Light Green */
    --accent: #d4a017; /* Muted Gold for CTAs */
    --bg-body: #fdfbf7; /* Cream/Off-White */
    --text-main: #1c1c1c;
    --text-muted: #555;
    --white: #ffffff;
    --footer-bg: #f4f4f4;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Header / Nav --- */
header {
    background-color: var(--primary);
    color: var(--white);
}

.top-bar {
    background-color: var(--primary-dark);
    padding: 8px 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
}

.top-links a {
    margin-left: 20px;
    color: rgba(255,255,255,0.9);
}
.top-links a:hover { text-decoration: underline; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-weight: 500;
}

.nav-links li:hover { text-decoration: underline; cursor: pointer; }

.nav-actions { display: flex; gap: 10px; }

.search-btn, .mobile-menu-btn {
    background: none;
    border: 1px solid var(--white);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn { display: none; }

/* --- Sub Nav --- */
.sub-nav {
    background-color: var(--white);
    border-bottom: 1px solid #ddd;
    padding: 10px 5%;
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow-x: auto;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #fdfbf7 100%);
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 400px;
    height: 400px;
    background: rgba(34, 139, 34, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* Login Card */
.login-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 350px;
    flex-shrink: 0;
    z-index: 1;
}

.login-header h2 { margin-bottom: 5px; font-size: 1.2rem; }
.login-header p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

.input-group { margin-bottom: 15px; }
.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

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

.login-links {
    margin-top: 15px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.login-links a { color: var(--primary); }
.enroll-link { font-weight: bold; }

/* Hero Content */
.hero-content {
    max-width: 600px;
    padding-left: 50px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.hero-bonus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}

.btn-outline {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* --- OFFERS SECTION --- */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.offer-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid transparent;
    transition: transform 0.2s;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-top: 5px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.offer-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: var(--secondary);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.offer-card h3 { margin-bottom: 15px; font-size: 1.2rem; }
.offer-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.link-text { color: var(--primary); font-weight: bold; font-size: 0.9rem; }

/* --- FEATURE SECTIONS --- */
.feature-section {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-content { flex: 1; }
.feature-visual { flex: 1; display: flex; justify-content: center; }

.feature-content h2 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 20px; }
.feature-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 25px; }

.app-promo { background-color: var(--white); }

.feature-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-main);
}
.feature-list i { color: var(--primary); margin-right: 10px; }

.app-badges { margin-top: 30px; display: flex; gap: 15px; }
.btn-store {
    background: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-mockup {
    width: 280px;
    height: 500px;
    background: #333;
    border-radius: 35px;
    border: 10px solid #111;
    position: relative;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}
.phone-screen {
    background: var(--primary);
    height: 100%;
    width: 100%;
    position: relative;
    color: white;
}
.screen-header { padding: 30px 20px; font-weight: bold; font-size: 1.2rem; }
.screen-balance { padding: 0 20px; font-size: 2.5rem; font-weight: bold; }
.screen-chart {
    background: white;
    height: 300px;
    width: 100%;
    position: absolute;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    opacity: 0.9;
}

.business-promo { 
    background-color: var(--secondary); 
    flex-direction: row-reverse;
}
.tag-accent {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.business-icon { font-size: 12rem; color: rgba(34, 139, 34, 0.1); }
.btn-primary-outline {
    padding: 12px 30px;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
.btn-primary-outline:hover { background: var(--primary-dark); color: white; }

/* --- TRUST BAR --- */
.trust-bar {
    background: #0d2b0d;
    color: white;
    padding: 40px 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 350px;
}
.trust-item i { font-size: 2rem; color: var(--accent); margin-top: 5px; }
.trust-item h4 { font-size: 1.1rem; margin-bottom: 5px; }
.trust-item p { font-size: 0.9rem; opacity: 0.8; }

/* --- DASHBOARD (Secure) --- */
#secure-dashboard {
    display: none;
    min-height: 80vh;
    background-color: #f4f4f4;
}

.dash-nav {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.dash-links {
    display: flex;
    gap: 30px;
    font-weight: 600;
    color: var(--primary);
}
.dash-links span { cursor: pointer; padding-bottom: 5px; white-space: nowrap; }
.dash-links span:hover { border-bottom: 2px solid var(--primary); }

#logout-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.dash-container {
    padding: 40px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-banner { margin-bottom: 30px; }
.welcome-banner h2 { color: var(--primary-dark); }

.account-group {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.group-header {
    background-color: var(--secondary);
    padding: 15px 25px;
    font-weight: bold;
    color: var(--primary-dark);
    border-bottom: 1px solid #e0e0e0;
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
    transition: background 0.1s;
    cursor: pointer;
}
.account-row:hover { background-color: #fcfcfc; }
.account-row:last-child { border-bottom: none; }

.acc-info h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 3px; }
.acc-info span { font-size: 0.85rem; color: var(--text-muted); }

.acc-balance { text-align: right; }
.balance-amount { font-size: 1.3rem; font-weight: bold; color: var(--text-main); }
.available { font-size: 0.8rem; color: var(--text-muted); }

/* Upsell */
.upsell-container {
    background: linear-gradient(to right, #1a3c1a, #228B22);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.upsell-text h3 { font-size: 1.5rem; margin-bottom: 10px; }
.upsell-text p { opacity: 0.9; margin-bottom: 0; max-width: 450px; }

.btn-gold {
    background-color: var(--accent);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.1s;
}
.btn-gold:hover { transform: scale(1.05); }

/* --- FOOTER --- */
footer {
    background-color: var(--footer-bg);
    padding: 60px 5% 30px 5%;
    color: var(--text-muted);
    margin-top: auto;
    border-top: 1px solid #ddd;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }

.social-icons { display: flex; gap: 15px; font-size: 1.2rem; }
.social-icons i { cursor: pointer; transition: color 0.2s; }
.social-icons i:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 900px) {
    /* Existing mobile styles */
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 30px; }
    .hero-content { padding-left: 0; margin-bottom: 40px; }
    .hero-content h1 { font-size: 2.5rem; }
    .login-card { width: 100%; max-width: 400px; margin: 0 auto; }
    
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .feature-section { flex-direction: column; text-align: center; padding: 50px 5%; }
    .business-promo { flex-direction: column; }
    
    .upsell-container { flex-direction: column; text-align: center; gap: 20px; }
    
    /* NEW: Stack trust bar items */
    .trust-bar { flex-direction: column; align-items: flex-start; }

    /* NEW: Fix Dashboard Nav */
    .dash-nav {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .dash-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    #logout-btn {
        align-self: center;
    }

    /* NEW: Fix Account Rows */
    .account-row {
        flex-direction: column;
        align-items: flex-start; /* Aligns text to the left */
        gap: 10px;
    }
    .acc-balance {
        text-align: left; /* Ensures amounts aren't hugging the right edge */
    }
}