:root {
    /* Global Variables */
    --global-primary: #059669;
    --global-text-main: #0F172A;
    --global-text-secondary: #475569;
    --global-border: #E5E7EB;
    --global-light-bg: #F8FAFC;
    
    /* Footer Specific Variables */
    --footer-bg: #FFFFFF;
    --footer-bg-start: #F0F8FA; /* Very light blue/gray tint for gradient start */
    --footer-bg-end: #FDFDFE; /* Very light white/gray for gradient end */
    --footer-primary: var(--global-primary);
    --footer-gradient-start: #6EE7B7;
    --footer-gradient-end: #059669;
    --footer-cta-bg: var(--global-light-bg);
}

/* -------------------------------------------------------------------
 * HEADER (Minimalist Nav)
 * ------------------------------------------------------------------- */
.main-header {
    background: #ffffff;
    border-bottom: none; 
    padding: 20px 0;
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
.header-wrapper {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: nowrap;
}
.nav-brand { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--global-text-main); 
    display: flex; 
    align-items: center; 
    padding: 0; 
}
.nav-brand img { 
    height: 24px; 
    margin-right: 6px; 
}
.nav-brand .logo-text {
    font-weight: 600;
}

.nav-menu { display: none; }
@media (min-width: 992px) {
    .nav-menu {
        display: flex;
        align-items: center;
        margin: 0 auto;
        gap: 35px;
        padding-left: 50px;
        padding-right: 50px;
    }
}

.nav-link { 
    color: var(--global-text-secondary); 
    font-size: 0.9rem; 
    font-weight: 500;
    position: relative;
    padding: 5px 0; 
    opacity: 0.9;
}
.nav-link:hover, .nav-link.active {
    color: var(--global-text-main);
    opacity: 1;
}

.header-actions {
    display: flex; 
    align-items: center; 
    gap: 15px;
    flex-shrink: 0; 
}

.btn-login-minimal {
    padding: 8px 18px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--global-text-main);
    border: 1px solid var(--global-border);
    border-radius: 8px;
    background: transparent;
}
.btn-login-minimal:hover {
    background: var(--global-light-bg); 
    border-color: #F0F4F8;
}

.btn-dashboard-pill {
    display: inline-flex !important; 
    align-items: center;
    justify-content: center;
    width: auto !important;
    position: static !important;
    
    background: #008959; 
    border-color: #008959;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 50px; 
    box-shadow: 0 4px 10px rgba(0, 137, 89, 0.3);
    line-height: 1; 
}
.btn-dashboard-pill:hover {
    background: #007047;
    border-color: #007047;
}

/* -------------------------------------------------------------------
 * FOOTER (NEW PREMIUM LIGHT THEME)
 * ------------------------------------------------------------------- */
.footer-premium-section {
    padding-top: 50px; 
    padding-bottom: 20px;
    /* Apply soft top-to-bottom gradient */
    background: linear-gradient(to bottom, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%); 
    border-top: 1px solid var(--global-border);
}

/* --- CTA Bar --- */
.footer-cta-bar {
    background: var(--footer-cta-bg);
    border: 1px solid var(--global-border);
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--global-text-main);
    margin: 0;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--global-text-secondary);
    margin: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-gradient {
    background: linear-gradient(90deg, var(--footer-gradient-start) 0%, var(--footer-primary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary-gradient i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}
.btn-primary-gradient:hover i {
    transform: translateX(3px);
}

/* --- Main Grid --- */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--global-text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo-icon {
    color: var(--footer-primary);
    margin-right: 8px;
    font-size: 1.8rem;
}

.branding-text {
    font-size: 0.95rem;
    color: var(--global-text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: var(--global-text-secondary);
    font-size: 1.1rem;
    transition: color 0.2s;
}
.social-links a:hover {
    color: var(--footer-primary);
}

/* Navigation Columns */
.col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--global-text-main);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--global-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--footer-primary);
}

.badge-new {
    background: #FEF3C7; 
    color: #F59E0B;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 5px;
}

/* --- Bottom Bar --- */
.footer-bottom-bar {
    border-top: 1px solid var(--global-border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--global-text-secondary);
}

.locale-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* -------------------------------------------------------------------
 * RESPONSIVE ADJUSTMENTS
 * ------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Header adjustments */
    .nav-menu { display: none !important; }
    
    /* Footer adjustments */
    .footer-cta-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-branding {
        grid-column: span 2;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-branding {
        grid-column: span 1;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
    }
}