/* ============================================================
   Mother's Home Care - Master Stylesheet
   Theme: Warm Care Brand (sage green + warm cream + rose)
   Typography: Nunito Sans (Latin) + Noto Sans Malayalam (ML)
   ============================================================ */

:root {
    /* Palette */
    --c-bg:           #f5f6f5;   /* warm cream page bg */
    --c-bg-alt:       #edefee;   /* subtle section bg */
    --c-card:         #ffffff;   /* white surface */
    --c-card-soft:    #f9fbf9;
    --c-primary:     #406f58;   /* deep sage green */
    --c-primary-dark: #2b5a47;
    --c-primary-light: #5a8e74;
    --c-accent:       #2b8759;   /* sage accent */
    --c-accent-2:     #a85038;   /* warm rose accent for contrast */

    --c-text:         #1b1d1c;
    --c-text-muted:   #767d80;
    --c-text-light:   #a0a8a3;
    --c-border:       #d4ddda;
    --c-border-soft:  #e8edeb;

    --c-success:      #3c8554;
    --c-warning:      #c48b3c;
    --c-error:        #b04545;
    --c-info:         #486684;

    /* Typography */
    --font-sans:  'Nunito Sans', 'Noto Sans Malayalam', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', 'Noto Sans Malayalam', Georgia, serif;
    --font-mono:  'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(27, 29, 28, 0.06), 0 1px 2px rgba(27, 29, 28, 0.04);
    --shadow-md: 0 4px 12px rgba(27, 29, 28, 0.08), 0 2px 4px rgba(27, 29, 28, 0.04);
    --shadow-lg: 0 12px 32px rgba(27, 29, 28, 0.10), 0 4px 8px rgba(27, 29, 28, 0.05);
}

/* ====== Reset & base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
[lang="ml"] body, body[lang="ml"] { font-family: 'Noto Sans Malayalam', var(--font-sans); }

h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; color: var(--c-primary-dark); margin: 0 0 var(--s-3); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 var(--s-3); }
a  { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.5em; }

/* ====== Layout helpers ====== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-7) 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--s-6); }
.section-title { font-size: 2.25rem; font-weight: 900; }
.section-subtitle { color: var(--c-text-muted); font-size: 1.1rem; margin-top: var(--s-2); }
.section-header-inline { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.section-title-h2 { font-size: 1.4rem; }

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--c-card);
    color: var(--c-text);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-primary); color: white; }
.btn-primary:hover { background: var(--c-primary-dark); color: white; }
.btn-light { background: white; color: var(--c-primary); border-color: var(--c-primary); }
.btn-light:hover { background: var(--c-bg); color: var(--c-primary-dark); }
.btn-outline-light { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-md { padding: 10px 22px; font-size: 1rem; }

/* ====== Public layout ====== */
.public-body { background: var(--c-bg); }
.public-shell { min-height: 100vh; display: flex; flex-direction: column; }

.public-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-3) var(--s-5);
    background: white;
    border-bottom: 1px solid var(--c-border-soft);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap;
    gap: var(--s-2);
}
.public-brand {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--c-primary-dark);
    flex-shrink: 0;
}
.public-brand:hover { text-decoration: none; }
.public-brand-icon { flex-shrink: 0; }
.public-brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.public-nav {
    display: flex;
    gap: var(--s-5);
}
.public-nav a {
    color: var(--c-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}
.public-nav a:hover { text-decoration: none; border-bottom-color: var(--c-accent); }
.public-topbar-right { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.public-menu-toggle { display: none; background: none; border: 0; color: var(--c-primary); cursor: pointer; padding: 6px; flex-shrink: 0; }
.public-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 98; }

/* Mobile public nav dropdown */
@media (max-width: 768px) {
    .public-nav {
        display: none;
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 8px 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        z-index: 99;
        max-height: calc(100vh - 52px);
        overflow-y: auto;
    }
    .public-nav.is-open { display: flex; }
    .public-nav.is-open a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--c-border-soft);
        font-size: 1rem;
    }
    .public-nav.is-open a:hover { background: var(--c-bg-alt); border-bottom-color: var(--c-border-soft); }
    .public-nav-overlay.is-active { display: block; }
    .public-menu-toggle { display: inline-flex; }
    .public-topbar-right .lang-switcher { display: none; }
    .public-signin-btn { display: none; }
    .public-brand-text { font-size: 1rem; max-width: 180px; }
    .public-topbar { padding: var(--s-2) var(--s-3); }
}
@media (max-width: 480px) {
    .public-brand-text { display: none; }
    .public-topbar { padding: var(--s-2); }
}

.public-main { flex: 1; }

/* ====== Hero ====== */
.hero {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: white;
    padding: var(--s-8) var(--s-5);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -50px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(168, 80, 56, 0.15);
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-content { max-width: 720px; padding-bottom: var(--s-7); }
.hero-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    margin-bottom: var(--s-4);
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--s-4);
    color: white;
}
.hero-subtitle { font-size: 1.2rem; line-height: 1.5; opacity: 0.92; margin-bottom: var(--s-5); }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-serif); font-size: 2.25rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

/* ====== Services ====== */
.services-section { padding: var(--s-8) 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.service-card {
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-6) var(--s-5);
    text-align: center;
    transition: all 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary-light); }
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-4);
}
.service-icon-care { background: rgba(64, 111, 88, 0.12); color: var(--c-primary); }
.service-icon-wash { background: rgba(75, 137, 178, 0.12); color: #4b89b2; }
.service-icon-food { background: rgba(168, 80, 56, 0.12); color: var(--c-accent-2); }
.service-card h3 { margin-bottom: var(--s-2); }
.service-card p { color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: var(--s-4); }
.service-link { font-weight: 600; font-size: 0.9rem; }

/* ====== About ====== */
.about-section { background: var(--c-bg-alt); padding: var(--s-8) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
.about-text p { margin-bottom: var(--s-3); line-height: 1.7; color: var(--c-text); }
.about-features { display: flex; flex-direction: column; gap: var(--s-4); }
.about-feature { display: flex; gap: var(--s-4); padding: var(--s-4); background: white; border-radius: var(--r-md); border: 1px solid var(--c-border-soft); }
.af-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-feature h4 { margin: 0 0 var(--s-1); font-size: 1.05rem; }
.about-feature p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); }

/* ====== Locations ====== */
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.location-card {
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: flex;
    gap: var(--s-4);
    align-items: flex-start;
}
.location-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-bg-alt);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.location-card h3 { margin: 0 0 var(--s-1); }
.location-card p { margin: 0; color: var(--c-text-muted); }
.location-phone { font-weight: 600; color: var(--c-primary); margin-top: var(--s-1) !important; }

/* ====== CTA section ====== */
.cta-section { padding: var(--s-8) 0; }
.cta-card {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    border-radius: var(--r-xl);
    padding: var(--s-8) var(--s-7);
    text-align: center;
    color: white;
}
.cta-card h2 { color: white; font-size: 2rem; margin-bottom: var(--s-3); }
.cta-card p { font-size: 1.1rem; opacity: 0.92; margin-bottom: var(--s-5); }
.cta-buttons { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; }

/* ====== Footer ====== */
.public-footer { background: var(--c-primary-dark); color: white; padding: var(--s-7) 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-5); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: var(--s-6); }
.footer-brand { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; margin-bottom: var(--s-3); }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--s-2); font-size: 0.92rem; opacity: 0.85; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: white; }
.footer-office { margin-bottom: var(--s-3); font-size: 0.9rem; opacity: 0.85; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: var(--s-4) var(--s-5); text-align: center; font-size: 0.85rem; opacity: 0.7; margin-top: var(--s-6); }

/* ====== Auth layout ====== */
.auth-body { background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-bg-alt) 100%); min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: white; padding: var(--s-7); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-left::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.auth-left-inner { position: relative; z-index: 2; }
.auth-logo { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; color: white; margin-bottom: var(--s-7); }
.auth-logo:hover { text-decoration: none; }
.auth-tagline { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; line-height: 1.2; margin-bottom: var(--s-3); }
.auth-subtagline { font-size: 1.05rem; opacity: 0.92; margin-bottom: var(--s-7); }
.auth-features { display: flex; flex-direction: column; gap: var(--s-3); }
.auth-feature { display: flex; align-items: center; gap: var(--s-2); font-size: 1rem; opacity: 0.95; }
.auth-left-footer { position: relative; z-index: 2; font-size: 0.85rem; opacity: 0.7; }

.auth-right { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s-7); }
.auth-card { width: 100%; max-width: 420px; background: white; border-radius: var(--r-xl); padding: var(--s-7); box-shadow: var(--shadow-lg); }
.auth-card-header { margin-bottom: var(--s-5); }
.auth-card-title { font-size: 1.75rem; margin: 0 0 var(--s-2); }
.auth-card-subtitle { color: var(--c-text-muted); font-size: 0.95rem; margin: 0; }
.auth-lang-switch { margin-top: var(--s-5); font-size: 0.9rem; color: var(--c-text-muted); }
.auth-lang-switch a { color: var(--c-primary); }
.auth-footnote { margin-top: var(--s-5); text-align: center; font-size: 0.85rem; color: var(--c-text-muted); }
.demo-creds { background: var(--c-bg); padding: var(--s-3); border-radius: var(--r-md); text-align: left; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5; margin-top: var(--s-2); }

/* ====== Forms ====== */
.form-group { margin-bottom: var(--s-4); }
.form-label { display: block; margin-bottom: var(--s-2); font-size: 0.9rem; font-weight: 600; color: var(--c-text); }
.form-input {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--c-text);
    background: white;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(43, 135, 89, 0.15); }
.form-input-otp { text-align: center; letter-spacing: 0.5em; font-size: 1.2rem; font-family: var(--font-mono); }
.input-with-action { position: relative; }
.input-with-action .form-input { padding-right: 44px; }
.input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--r-sm);
}
.input-action:hover { color: var(--c-primary); background: var(--c-bg); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); flex-wrap: wrap; gap: var(--s-2); }
.form-hint { font-size: 0.85rem; color: var(--c-text-muted); margin: 0 0 var(--s-4); }
.checkbox { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; font-size: 0.9rem; }
.checkbox input { accent-color: var(--c-primary); }
.link { color: var(--c-accent); font-size: 0.9rem; font-weight: 500; }

/* ====== Dashboard layout ====== */
.dashboard-body { background: var(--c-bg); }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--s-5);
    background: white;
    border-bottom: 1px solid var(--c-border-soft);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
}
.topbar-left { display: flex; align-items: center; gap: var(--s-3); }
.brand { display: flex; align-items: center; gap: var(--s-2); color: var(--c-primary-dark); }
.brand:hover { text-decoration: none; }
.brand-logo { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }
.brand-tagline { font-size: 0.7rem; color: var(--c-text-muted); }
.sidebar-toggle { display: none; background: none; border: 0; color: var(--c-primary); padding: 6px; cursor: pointer; border-radius: var(--r-sm); }
.sidebar-toggle:hover { background: var(--c-bg); }
.topbar-right { display: flex; align-items: center; gap: var(--s-3); }
.lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; }
.lang-switcher-light a, .lang-switcher a { color: var(--c-text-muted); padding: 4px 6px; border-radius: 4px; }
.lang-switcher-light a.active, .lang-switcher a.active { color: white; background: var(--c-primary); font-weight: 600; }
.lang-sep { color: var(--c-text-light); }
.notif-bell { position: relative; padding: 6px; color: var(--c-text-muted); border-radius: var(--r-md); }
.notif-bell:hover { background: var(--c-bg); color: var(--c-primary); }
.notif-badge { position: absolute; top: 2px; right: 2px; background: var(--c-error); color: white; font-size: 0.7rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-menu a { display: flex; align-items: center; gap: var(--s-2); color: var(--c-text); padding: 4px 8px; border-radius: var(--r-md); }
.user-menu a:hover { text-decoration: none; background: var(--c-bg); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--c-primary); color: white; }
.user-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.user-name { font-size: 0.9rem; font-weight: 500; }

.app-body { display: flex; flex: 1; }
.sidebar { width: 240px; background: white; border-right: 1px solid var(--c-border-soft); padding: var(--s-4) 0; flex-shrink: 0; transition: transform 0.2s; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--s-3); }
.nav-item { display: flex; align-items: center; gap: var(--s-3); padding: 10px 12px; color: var(--c-text); border-radius: var(--r-md); font-size: 0.92rem; font-weight: 500; transition: all 0.15s; }
.nav-item:hover { background: var(--c-bg); color: var(--c-primary); text-decoration: none; }
.nav-item.active { background: var(--c-primary); color: white; }
.nav-item-danger { color: var(--c-error); margin-top: var(--s-4); border-top: 1px solid var(--c-border-soft); padding-top: var(--s-4); }
.nav-item-danger:hover { background: rgba(176, 69, 69, 0.08); }
.sidebar-footer { padding: var(--s-4) var(--s-5); margin-top: auto; }
.version { font-size: 0.75rem; color: var(--c-text-light); margin: 0; }

.main { flex: 1; padding: var(--s-5); min-width: 0; }
.page-header { margin-bottom: var(--s-5); }
.page-title { font-size: 1.6rem; margin: 0; }

/* ====== KPI Cards ====== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-5); }
.kpi-card {
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: flex;
    align-items: center;
    gap: var(--s-4);
    box-shadow: var(--shadow-sm);
}
.kpi-icon { width: 56px; height: 56px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-icon-primary { background: rgba(64, 111, 88, 0.12); color: var(--c-primary); }
.kpi-icon-success { background: rgba(60, 133, 84, 0.12); color: var(--c-success); }
.kpi-icon-info { background: rgba(72, 102, 132, 0.12); color: var(--c-info); }
.kpi-icon-warning { background: rgba(196, 139, 60, 0.12); color: var(--c-warning); }
.kpi-icon-error { background: rgba(176, 69, 69, 0.12); color: var(--c-error); }
.kpi-body { display: flex; flex-direction: column; }
.kpi-value { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 900; line-height: 1; color: var(--c-text); }
.kpi-label { font-size: 0.82rem; color: var(--c-text-muted); margin-top: 4px; }

/* ====== Data Card / Table ====== */
.dashboard-section { margin-bottom: var(--s-6); }
.data-card { background: white; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table thead { background: var(--c-bg-alt); }
.data-table th { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--c-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--c-border-soft); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border-soft); color: var(--c-text); }
.data-table tbody tr:hover { background: var(--c-bg-alt); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.td-mono { font-family: var(--font-mono); font-size: 0.85rem; }
.empty-state { padding: var(--s-7); text-align: center; color: var(--c-text-muted); font-style: italic; margin: 0; }

/* ====== Info card ====== */
.info-card { display: flex; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); border-left: 4px solid var(--c-info); background: white; box-shadow: var(--shadow-sm); }
.info-card-info { border-left-color: var(--c-info); }
.info-card-info .info-icon { color: var(--c-info); flex-shrink: 0; }
.info-card p { margin: 0; line-height: 1.6; }

/* ====== Badges ====== */
.badge { display: inline-block; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; border-radius: var(--r-pill); background: var(--c-bg-alt); color: var(--c-text); }
.badge-muted { background: var(--c-bg-alt); color: var(--c-text-muted); }

/* ====== Flash messages ====== */
.flash-container { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.flash { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; border-radius: var(--r-md); border: 1px solid transparent; animation: flashIn 0.3s ease-out; }
.flash-success { background: rgba(60, 133, 84, 0.08); border-color: rgba(60, 133, 84, 0.25); color: var(--c-success); }
.flash-error { background: rgba(176, 69, 69, 0.08); border-color: rgba(176, 69, 69, 0.25); color: var(--c-error); }
.flash-info { background: rgba(72, 102, 132, 0.08); border-color: rgba(72, 102, 132, 0.25); color: var(--c-info); }
.flash-warning { background: rgba(196, 139, 60, 0.08); border-color: rgba(196, 139, 60, 0.25); color: var(--c-warning); }
.flash-icon { display: inline-flex; }
.flash-msg { flex: 1; font-size: 0.92rem; }
.flash-close { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; font-size: 1.25rem; line-height: 1; opacity: 0.7; }
.flash-close:hover { opacity: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: var(--s-5); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: var(--s-5); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-card { padding: var(--s-5); }
    .sidebar { position: fixed; top: 64px; bottom: 0; left: 0; transform: translateX(-100%); z-index: 90; box-shadow: var(--shadow-md); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; top: 64px; background: rgba(0,0,0,0.3); z-index: 89; }
    .sidebar-overlay.is-active { display: block; }
    .main { padding: var(--s-4); }
    .kpi-grid { grid-template-columns: 1fr; }
    .hero { padding: var(--s-7) var(--s-4); }
    .container { padding: 0 var(--s-4); }
    .cta-card { padding: var(--s-6) var(--s-4); }
    .user-name { display: none; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
    .auth-tagline { font-size: 1.75rem; }
    .data-table { font-size: 0.85rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
}

/* ============================================================
   Phase 2 — Admin panel styles
   ============================================================ */

/* Quick-link cards on admin dashboard */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--s-5) var(--s-3);
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--c-text);
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}
.quick-link-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary-light);
}
.ql-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-alt);
}
.ql-icon-users    { background: rgba(64,111,88,0.12); color: var(--c-primary); }
.ql-icon-zones    { background: rgba(72,102,132,0.12); color: var(--c-info); }
.ql-icon-areas    { background: rgba(168,80,56,0.12); color: var(--c-accent-2); }
.ql-icon-routes   { background: rgba(60,133,84,0.12); color: var(--c-success); }
.ql-icon-pp       { background: rgba(196,139,60,0.12); color: var(--c-warning); }
.ql-icon-roles    { background: rgba(64,111,88,0.12); color: var(--c-primary); }
.ql-icon-audit    { background: rgba(72,102,132,0.12); color: var(--c-info); }
.ql-icon-broadcast{ background: rgba(168,80,56,0.12); color: var(--c-accent-2); }
.ql-icon-settings { background: rgba(100,100,100,0.12); color: var(--c-text-muted); }
.ql-label { font-weight: 600; font-size: 0.92rem; text-align: center; }
.ql-count { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 900; color: var(--c-primary); line-height: 1; }

/* Sidebar nav sections */
.nav-section { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--c-border-soft); }
.nav-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.nav-section-label {
    display: block;
    padding: 4px 12px 6px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-text-light);
    font-weight: 700;
}

/* Action badges by audit action type */
.badge-action { font-size: 0.7rem; padding: 2px 8px; border-radius: var(--r-pill); font-weight: 700; }
.badge-create       { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-update       { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-delete       { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-login        { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-logout       { background: rgba(100,100,100,0.15); color: var(--c-text-muted); }
.badge-login_failed { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-read         { background: var(--c-bg-alt); color: var(--c-text-muted); }

/* Generic success/danger badges */
.badge-success { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-danger  { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-info    { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-warning { background: rgba(196,139,60,0.15); color: var(--c-warning); }

/* Table cell helpers */
.td-actions { white-space: nowrap; }
.td-actions form { display: inline; }
.td-actions .btn { margin-left: 4px; padding: 4px 10px; font-size: 0.78rem; }
.btn-danger { background: var(--c-error); color: white; border-color: var(--c-error); }
.btn-danger:hover { background: #8f3a3a; color: white; }
.small { font-size: 0.78rem; }

/* Form card (reusable) */
.form-card {
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: 28px;
    max-width: 720px;
    box-shadow: var(--shadow-sm);
}
.form-row-spaced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}
.form-row-spaced .form-group { margin-bottom: var(--s-4); }
@media (max-width: 600px) {
    .form-row-spaced { grid-template-columns: 1fr; }
}

/* Filter form */
.filter-form { padding: 0; }
.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s-3);
    margin-bottom: var(--s-3);
}
.filter-row .form-group { margin-bottom: 0; }
.filter-row .form-input { padding: 8px 12px; font-size: 0.9rem; }

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: var(--s-4);
    border-top: 1px solid var(--c-border-soft);
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    color: var(--c-text);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
}
.pagination-link:hover { background: var(--c-bg-alt); text-decoration: none; }
.pagination-link.active { background: var(--c-primary); color: white; border-color: var(--c-primary); }

/* Settings grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--s-4);
}
.settings-card {
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    box-shadow: var(--shadow-sm);
}
.settings-card h3 { margin: 0 0 var(--s-3); font-size: 1.1rem; }
.settings-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.settings-table th { text-align: left; padding: 6px 0; color: var(--c-text-muted); font-weight: 500; border-bottom: 1px solid var(--c-border-soft); width: 40%; vertical-align: top; }
.settings-table td { padding: 6px 0; border-bottom: 1px solid var(--c-border-soft); }
.settings-table tr:last-child th, .settings-table tr:last-child td { border-bottom: 0; }

/* ============================================================
   Phase 2.1 — DataTable: search bar, sortable headers, pagination
   ============================================================ */

/* Table toolbar (search + filter row) */
.table-toolbar {
    background: white;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.toolbar-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(160px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.toolbar-search { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .toolbar-form {
        grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(160px, 1fr)) auto;
    }
    .toolbar-search { grid-column: auto; }
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 12px;
    color: var(--c-text-muted);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    font-size: 0.92rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    font-family: var(--font-sans);
    color: var(--c-text);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(43, 135, 89, 0.12);
}
.toolbar-filter, .toolbar-perpage {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.filter-label {
    font-size: 0.72rem;
    color: var(--c-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-select {
    padding: 7px 10px;
    font-size: 0.88rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: white;
    color: var(--c-text);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: border-color 0.15s;
}
.filter-select:focus {
    outline: none;
    border-color: var(--c-accent);
}
.toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}
.toolbar-actions .btn {
    white-space: nowrap;
}
@media (max-width: 768px) {
    .toolbar-form {
        grid-template-columns: 1fr;
    }
    .toolbar-search { grid-column: auto; }
    .toolbar-actions {
        justify-content: stretch;
    }
    .toolbar-actions .btn { flex: 1; }
}

/* Table meta (showing X-Y of Z records) */
.table-meta {
    padding: 0 4px 12px;
    font-size: 0.85rem;
    color: var(--c-text-muted);
}
.table-meta .meta-text strong { color: var(--c-text); }

/* Sortable column headers */
.data-table th a.th-sortable {
    color: var(--c-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: color 0.15s;
}
.data-table th a.th-sortable:hover {
    color: var(--c-accent);
    text-decoration: none;
}
.data-table th a.th-sortable.th-sorted {
    color: var(--c-primary);
    font-weight: 700;
}

/* Pagination (already defined earlier; ensure consistency) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid var(--c-border-soft);
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: var(--c-text-muted);
}

/* ============================================================
   Phase 3 — Clients Panel styles
   ============================================================ */
.contract-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.contract-card { display: block; background: white; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: 16px; text-decoration: none; color: var(--c-text); transition: all 0.15s; box-shadow: var(--shadow-sm); }
.contract-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contract-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.contract-code { font-family: var(--font-mono); font-weight: 700; color: var(--c-primary); }
.contract-card-body { display: flex; flex-direction: column; gap: 12px; }
.contract-hm-info { display: flex; align-items: center; gap: 12px; }
.hm-avatar { display: inline-flex; align-items: center; justify-content: center; background: var(--c-primary); color: white; border-radius: 50%; font-weight: 700; flex-shrink: 0; }
.hm-avatar.sm { width: 28px; height: 28px; font-size: 0.75rem; display: inline-flex; vertical-align: middle; margin-right: 4px; }
.hm-avatar.lg { width: 48px; height: 48px; font-size: 1.2rem; }
.hm-avatar.xl { width: 64px; height: 64px; font-size: 1.5rem; }
.contract-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.88rem; }
.meta-label { display: block; color: var(--c-text-muted); font-size: 0.75rem; margin-bottom: 2px; }
.meta-value { font-weight: 600; }
.badge-new, .badge-analyzing { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-matches_found { background: rgba(196,139,60,0.15); color: var(--c-warning); }
.badge-temp_confirmed { background: rgba(168,80,56,0.15); color: var(--c-accent-2); }
.badge-advance_paid { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-contract_fixed { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-no_match { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-cancelled { background: rgba(100,100,100,0.15); color: var(--c-text-muted); }
.badge-active { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-suspended { background: rgba(196,139,60,0.15); color: var(--c-warning); }
.badge-completed { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-terminated { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-replaced { background: rgba(168,80,56,0.15); color: var(--c-accent-2); }
.badge-pending { background: rgba(196,139,60,0.15); color: var(--c-warning); }
.badge-paid { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-overdue { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-disputed { background: rgba(168,80,56,0.15); color: var(--c-accent-2); }
.badge-lg { font-size: 0.9rem; padding: 6px 16px; }
.badge-present { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-absent { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-leave { background: rgba(196,139,60,0.15); color: var(--c-warning); }
.badge-weekly_off, .badge-holiday { background: rgba(100,100,100,0.15); color: var(--c-text-muted); }
.badge-scheduled { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-en_route { background: rgba(196,139,60,0.15); color: var(--c-warning); }
.badge-arrived { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-working { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-substituted { background: rgba(168,80,56,0.15); color: var(--c-accent-2); }
.status-banner { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r-lg); margin-bottom: 20px; background: white; border: 1px solid var(--c-border-soft); border-left: 4px solid var(--c-info); }
.status-banner-matches_found, .status-banner-temp_confirmed { border-left-color: var(--c-warning); }
.status-banner-advance_paid, .status-banner-contract_fixed { border-left-color: var(--c-success); }
.status-banner-no_match, .status-banner-cancelled { border-left-color: var(--c-error); }
.status-banner-icon { flex-shrink: 0; color: var(--c-info); }
.status-banner-matches_found .status-banner-icon, .status-banner-temp_confirmed .status-banner-icon { color: var(--c-warning); }
.status-banner-advance_paid .status-banner-icon, .status-banner-contract_fixed .status-banner-icon { color: var(--c-success); }
.status-banner-no_match .status-banner-icon, .status-banner-cancelled .status-banner-icon { color: var(--c-error); }
.status-banner-content h3 { margin: 0 0 4px; font-size: 1.1rem; }
.status-banner-content p { margin: 0; color: var(--c-text-muted); font-size: 0.9rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.detail-card { background: white; border: 1px solid var(--c-border-soft); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); }
.detail-card h3 { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-text-muted); }
.detail-card p { margin: 0; font-size: 0.95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 10px; font-size: 0.8rem; background: var(--c-bg-alt); color: var(--c-text); border-radius: var(--r-pill); font-weight: 500; }
.tag-skill { background: rgba(64,111,88,0.1); color: var(--c-primary); }
.wizard-section { padding: 20px 0; border-bottom: 1px solid var(--c-border-soft); }
.wizard-section:last-of-type { border-bottom: 0; }
.wizard-step-title { margin: 0 0 4px; font-size: 1.1rem; color: var(--c-primary-dark); }
.wizard-step-desc { margin: 0 0 12px; color: var(--c-text-muted); font-size: 0.88rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.checkbox-grid-7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 600px) { .checkbox-grid-7 { grid-template-columns: repeat(4, 1fr); } }
.checkbox-card { display: flex; align-items: center; justify-content: center; padding: 12px 8px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; transition: all 0.15s; text-align: center; background: white; }
.checkbox-card:hover { border-color: var(--c-accent); background: var(--c-bg-alt); }
.checkbox-card input { display: none; }
.checkbox-card input:checked + .checkbox-card-label { color: var(--c-primary); font-weight: 700; }
.checkbox-card:has(input:checked) { border-color: var(--c-primary); background: rgba(64,111,88,0.08); }
.checkbox-card-label { font-size: 0.88rem; font-weight: 500; }
.checkbox-card-day .checkbox-card-label { font-weight: 700; font-size: 0.9rem; }
.checkbox-vertical { display: flex; flex-direction: column; gap: 8px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.radio-card { display: flex; align-items: center; padding: 12px 16px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; transition: all 0.15s; background: white; }
.radio-card:hover { border-color: var(--c-accent); }
.radio-card input { display: none; margin-right: 8px; }
.radio-card:has(input:checked) { border-color: var(--c-primary); background: rgba(64,111,88,0.08); }
.radio-card-content { display: flex; flex-direction: column; gap: 2px; }
.radio-card-label { font-weight: 700; color: var(--c-primary-dark); }
.radio-card-desc { font-size: 0.82rem; color: var(--c-text-muted); }
.hm-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hm-card { background: white; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.hm-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hm-card-body { display: flex; flex-direction: column; gap: 8px; }
.hm-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; }
.hm-meta span { color: var(--c-text-muted); }
.advance-card { background: linear-gradient(135deg, rgba(64,111,88,0.05), rgba(43,135,89,0.08)); border: 1px solid var(--c-primary-light); border-radius: var(--r-lg); padding: 24px; text-align: center; }
.advance-card h3 { margin: 0 0 8px; }
.advance-amount { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; color: var(--c-primary); margin: 12px 0; }
.contract-detail-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: white; border-radius: var(--r-lg); border: 1px solid var(--c-border-soft); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.contract-detail-hm { display: flex; align-items: center; gap: 16px; }
.contract-detail-hm h3 { margin: 0; }
.kpi-grid-small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.kpi-grid-small .kpi-card { padding: 12px 16px; }
.kpi-grid-small .kpi-icon { width: 40px; height: 40px; }
.kpi-grid-small .kpi-value { font-size: 1.25rem; }
.kpi-grid-small .kpi-label { font-size: 0.75rem; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-warning { background: var(--c-warning); color: white; border-color: var(--c-warning); }
.btn-warning:hover { background: #a87436; color: white; }
.btn-success { background: var(--c-success); color: white; border-color: var(--c-success); }
.btn-success:hover { background: #2d6b42; color: white; }
.text-danger { color: var(--c-error); font-weight: 600; }
.star-rating { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.dashboard-section h3 { margin: 0 0 12px; font-size: 1.15rem; }

/* info-card variants for success/error feedback */
.info-card-success { border-left-color: var(--c-success); }
.info-card-success .info-icon { color: var(--c-success); }
.info-card-error { border-left-color: var(--c-error); }
.info-card-error .info-icon { color: var(--c-error); }

/* Application status badges (Phase 9) */
.badge-submitted     { background: rgba(72,102,132,0.15); color: var(--c-info); }
.badge-under_review  { background: rgba(196,139,60,0.15); color: var(--c-warning); }
.badge-approved      { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-rejected      { background: rgba(176,69,69,0.15); color: var(--c-error); }
.badge-converted     { background: rgba(60,133,84,0.20); color: var(--c-success); font-weight: 700; }

/* Invitation status badges (Phase 10) */
.badge-accepted      { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-expired       { background: rgba(100,100,100,0.15); color: var(--c-text-muted); }
.badge-superseded    { background: rgba(100,100,100,0.20); color: var(--c-text-muted); font-style: italic; }
.badge-exact         { background: rgba(60,133,84,0.15); color: var(--c-success); }
.badge-approximate   { background: rgba(196,139,60,0.15); color: var(--c-warning); }



/* ============================================================
   Phase 4 — Home Maker Panel styles
   ============================================================ */
.payslip-card { background: white; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); max-width: 720px; }
.payslip-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--c-primary); }
.payslip-header h3 { margin: 0; color: var(--c-primary-dark); }
.payslip-section { margin-bottom: 24px; }
.payslip-section h4 { margin: 0 0 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-text-muted); }
.payslip-net { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(64,111,88,0.08); border-radius: var(--r-md); margin-top: 16px; }
.payslip-net span { font-size: 1.2rem; font-weight: 700; color: var(--c-primary-dark); }
.payslip-net-amount { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 900; color: var(--c-primary); }


/* ============================================================
   Phase 9 — PWA + Notifications + Support Widget + Geo-Tracking
   ============================================================ */

/* Notifications list */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item { display: flex; gap: 12px; background: white; border: 1px solid var(--c-border-soft); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); transition: border-color 0.15s; }
.notif-item.notif-unread { border-left: 4px solid var(--c-accent); background: rgba(43,135,89,0.03); }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon-info { background: rgba(72,102,132,0.12); color: var(--c-info); }
.notif-icon-success { background: rgba(60,133,84,0.12); color: var(--c-success); }
.notif-icon-warning { background: rgba(196,139,60,0.12); color: var(--c-warning); }
.notif-icon-critical { background: rgba(176,69,69,0.12); color: var(--c-error); }
.notif-icon-system { background: rgba(100,100,100,0.12); color: var(--c-text-muted); }
.notif-body { flex: 1; min-width: 0; }
.notif-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notif-header strong { flex: 1; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; }
.notif-time { color: var(--c-text-muted); font-size: 0.8rem; white-space: nowrap; }
.notif-msg { margin: 0 0 8px; font-size: 0.92rem; color: var(--c-text); }

/* Support widget (floating chat) */
.support-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9000; }
.support-fab { width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary); color: white; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform 0.2s; }
.support-fab:hover { transform: scale(1.1); }
.support-panel { position: absolute; bottom: 70px; right: 0; width: 340px; background: white; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--c-border-soft); flex-direction: column; overflow: hidden; }
.support-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--c-primary); color: white; }
.support-panel-header strong { font-size: 1rem; }
.support-close { background: none; border: 0; color: white; font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1; }
.support-panel-body { padding: 16px; }
@media (max-width: 480px) { .support-panel { width: calc(100vw - 40px); } }

/* Geo map placeholder */
#map { margin-bottom: 20px; }

/* ============================================================
   LANDING PAGE V2 — Rich, Professional, Mobile-Friendly
   ============================================================ */

/* ===== Hero V2 ===== */
.hero-v2 { position: relative; overflow: hidden; padding: 0; min-height: 600px; display: flex; align-items: center; }
.hero-v2-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #2b5a47 0%, #406f58 40%, #5a8e74 100%);
    z-index: 0;
}
.hero-v2-bg::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(168,80,56,0.12) 0%, transparent 50%);
}
.hero-v2-inner {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 60px 24px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
    width: 100%;
}
.hero-v2-content { color: white; }
.hero-v2-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
    color: #c8e6d5; margin-bottom: 24px;
}
.hero-v2-title {
    font-family: var(--font-serif); font-size: 3rem; font-weight: 900;
    line-height: 1.15; color: white; margin: 0 0 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-v2-subtitle {
    font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,0.9);
    margin: 0 0 32px; max-width: 520px;
}
.hero-v2-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-v2-btn-primary {
    background: white; color: var(--c-primary-dark); border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-v2-btn-primary:hover { background: #f0fdf4; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.2); }
.hero-v2-btn-secondary {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3); color: white;
}
.hero-v2-btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }
.hero-v2-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-v2-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }
.hero-v2-trust-item svg { color: #8fdba8; }

/* Hero image with floating card */
.hero-v2-image { position: relative; }
.hero-v2-image-frame {
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.15);
}
.hero-v2-image-frame img { width: 100%; height: auto; display: block; }
.hero-v2-floating-card {
    position: absolute; bottom: -20px; left: -20px;
    background: white; border-radius: 16px; padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.hero-v2-fc-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(64,111,88,0.1); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-v2-floating-card strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--c-primary-dark); line-height: 1; }
.hero-v2-floating-card span { font-size: 0.8rem; color: var(--c-text-muted); }

/* ===== Stats Bar ===== */
.stats-bar { background: white; padding: 32px 0; border-bottom: 1px solid var(--c-border-soft); }
.stats-bar-grid { display: flex; align-items: center; justify-content: space-around; gap: 16px; }
.stats-bar-item { text-align: center; }
.stats-bar-num { display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 900; color: var(--c-primary); line-height: 1; }
.stats-bar-label { font-size: 0.85rem; color: var(--c-text-muted); font-weight: 500; }
.stats-bar-divider { width: 1px; height: 48px; background: var(--c-border-soft); }

/* ===== Section Headers (centered) ===== */
.section-header-center { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-accent);
    background: rgba(43,135,89,0.08); padding: 6px 14px; border-radius: 100px;
    margin-bottom: 12px;
}
.section-title-center { font-size: 2.25rem; font-weight: 800; color: var(--c-primary-dark); margin: 0 0 12px; }
.section-subtitle-center { font-size: 1.05rem; color: var(--c-text-muted); line-height: 1.6; margin: 0; }
.section-title-left { font-size: 2rem; font-weight: 800; color: var(--c-primary-dark); margin: 8px 0 16px; }

/* ===== Services V2 ===== */
.services-v2 { padding: 80px 0; background: var(--c-bg); }
.services-v2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-v2-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--c-border-soft);
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-v2-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-v2-image { height: 200px; overflow: hidden; }
.service-v2-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.service-v2-card:hover .service-v2-image img { transform: scale(1.05); }
.service-v2-body { padding: 24px; }
.service-v2-body h3 { font-size: 1.2rem; margin: 0 0 8px; color: var(--c-primary-dark); }
.service-v2-body p { font-size: 0.92rem; color: var(--c-text-muted); line-height: 1.55; margin: 0; }
.service-v2-card-cta {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: none;
}
.service-v2-card-cta h3 { color: white; }
.service-v2-card-cta p { color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.service-v2-card-cta .btn { background: white; color: var(--c-primary-dark); }

/* ===== How It Works ===== */
.how-it-works { padding: 80px 0; background: white; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.how-steps::before {
    content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-border) 0, var(--c-border) 8px, transparent 8px, transparent 16px);
    z-index: 0;
}
.how-step { text-align: center; position: relative; z-index: 1; }
.how-step-num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    background: var(--c-primary); color: white;
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(64,111,88,0.3);
    border: 4px solid white;
}
.how-step-icon { color: var(--c-accent); margin-bottom: 12px; }
.how-step h4 { font-size: 1.1rem; margin: 0 0 8px; color: var(--c-primary-dark); }
.how-step p { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.5; margin: 0; }

/* ===== Why Us ===== */
.why-us { padding: 80px 0; background: var(--c-bg-alt); }
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-us-image { position: relative; }
.why-us-image-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.why-us-image-frame img { width: 100%; height: auto; display: block; }
.why-us-badge {
    position: absolute; top: -16px; right: -16px;
    background: white; border-radius: 16px; padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.why-us-badge svg { color: var(--c-success); flex-shrink: 0; }
.why-us-badge strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--c-primary-dark); line-height: 1; }
.why-us-badge span { font-size: 0.8rem; color: var(--c-text-muted); }
.why-us-lead { font-size: 1.05rem; line-height: 1.7; color: var(--c-text); margin: 0 0 24px; }
.why-us-features { display: flex; flex-direction: column; gap: 20px; }
.why-us-feature { display: flex; gap: 16px; }
.why-us-f-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: rgba(64,111,88,0.1); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
}
.why-us-feature h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--c-primary-dark); }
.why-us-feature p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.5; }

/* ===== Locations V2 ===== */
.locations-v2 { padding: 80px 0; background: white; }
.locations-v2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.location-v2-card {
    background: var(--c-bg-alt); border-radius: 16px; padding: 28px;
    border: 1px solid var(--c-border-soft); transition: transform 0.2s, box-shadow 0.2s;
}
.location-v2-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.location-v2-icon {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
    background: rgba(64,111,88,0.1); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
}
.location-v2-card h3 { font-size: 1.3rem; margin: 0 0 8px; color: var(--c-primary-dark); }
.location-v2-card p { font-size: 0.92rem; color: var(--c-text-muted); margin: 0 0 8px; line-height: 1.5; }
.location-v2-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-primary); font-size: 0.95rem; }

/* ===== CTA V2 ===== */
.cta-v2 { padding: 80px 0; background: var(--c-bg); }
.cta-v2-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-light) 100%);
    border-radius: 24px; padding: 60px 48px; text-align: center;
    box-shadow: 0 20px 60px rgba(43,90,71,0.2);
}
.cta-v2-pattern {
    position: absolute; inset: 0; opacity: 0.08;
    background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
                      radial-gradient(circle at 80% 50%, white 1px, transparent 1px);
    background-size: 30px 30px;
}
.cta-v2-content { position: relative; z-index: 1; }
.cta-v2-content h2 { color: white; font-size: 2.25rem; margin: 0 0 12px; }
.cta-v2-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin: 0 0 32px; }
.cta-v2-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-v2-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .hero-v2-content { max-width: 600px; margin: 0 auto; }
    .hero-v2-subtitle { margin-left: auto; margin-right: auto; }
    .hero-v2-cta, .hero-v2-trust { justify-content: center; }
    .hero-v2-image { max-width: 500px; margin: 0 auto; }
    .why-us-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-v2-grid { grid-template-columns: repeat(2, 1fr); }
    .how-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .how-steps::before { display: none; }
}
@media (max-width: 768px) {
    .hero-v2 { min-height: auto; padding: 40px 0; }
    .hero-v2-inner { padding: 40px 20px; }
    .hero-v2-title { font-size: 2rem; }
    .hero-v2-subtitle { font-size: 1rem; }
    .hero-v2-cta { flex-direction: column; }
    .hero-v2-cta .btn { width: 100%; }
    .hero-v2-trust { gap: 12px; justify-content: center; }
    .hero-v2-trust-item { font-size: 0.8rem; }
    .hero-v2-floating-card { bottom: -12px; left: 50%; transform: translateX(-50%); padding: 12px 16px; }
    .hero-v2-floating-card strong { font-size: 1.2rem; }
    .stats-bar-num { font-size: 1.8rem; }
    .stats-bar-label { font-size: 0.75rem; }
    .stats-bar-divider { display: none; }
    .stats-bar-grid { flex-wrap: wrap; gap: 20px; }
    .section-title-center, .cta-v2-content h2 { font-size: 1.6rem; }
    .section-subtitle-center { font-size: 0.95rem; }
    .services-v2-grid { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: 1fr; gap: 32px; }
    .locations-v2-grid { grid-template-columns: 1fr; }
    .cta-v2-card { padding: 40px 24px; }
    .cta-v2-content h2 { font-size: 1.5rem; }
    .cta-v2-buttons { flex-direction: column; }
    .cta-v2-buttons .btn { width: 100%; }
    .why-us-badge { top: -8px; right: 8px; padding: 12px 16px; }
    .why-us-badge strong { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .hero-v2-title { font-size: 1.6rem; }
    .hero-v2-kicker { font-size: 0.75rem; padding: 6px 12px; }
    .hero-v2-trust { flex-direction: column; gap: 8px; }
    .hero-v2-trust-item { justify-content: center; }
}


/* ============================================================
   LANDING PAGE ANIMATIONS — Dramatic & Beautiful
   ============================================================ */

/* ===== Keyframes ===== */
@keyframes heroTextReveal {
    0%   { opacity: 0; transform: translateY(50px) scale(0.95); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes slideInLeft {
    0%   { opacity: 0; transform: translateX(-80px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(80px); }
    100% { opacity: 1; translateX(0); }
}
@keyframes scaleBounce {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes floatYLarge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%      { transform: translateY(-20px) rotate(2deg); }
    66%      { transform: translateY(10px) rotate(-1deg); }
}
@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(64,111,88,0.4); }
    70%  { box-shadow: 0 0 0 20px rgba(64,111,88,0); }
    100% { box-shadow: 0 0 0 0 rgba(64,111,88,0); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes countPop {
    0%   { opacity: 0; transform: scale(0.3) rotate(-10deg); }
    60%  { opacity: 1; transform: scale(1.15) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
    50%      { box-shadow: 0 12px 48px rgba(0,0,0,0.25), 0 0 60px rgba(64,111,88,0.15); }
}
@keyframes drawLine {
    from { stroke-dashoffset: 200; }
    to   { stroke-dashoffset: 0; }
}
@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
@keyframes flipIn {
    0%   { opacity: 0; transform: perspective(800px) rotateX(-80deg); }
    100% { opacity: 1; transform: perspective(800px) rotateX(0deg); }
}
@keyframes slideUpFade {
    0%   { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */
.hero-v2-bg {
    background: linear-gradient(135deg, #1e4d3a 0%, #2b5a47 25%, #406f58 50%, #5a8e74 75%, #406f58 100%);
    background-size: 300% 300%;
    animation: gradientFlow 15s ease infinite;
}
.hero-v2-kicker     { animation: heroTextReveal 0.8s ease-out 0.1s both; }
.hero-v2-title      { animation: heroTextReveal 1s ease-out 0.25s both; }
.hero-v2-subtitle   { animation: heroTextReveal 0.8s ease-out 0.45s both; }
.hero-v2-cta        { animation: slideUpFade 0.7s ease-out 0.6s both; }
.hero-v2-trust      { animation: slideUpFade 0.7s ease-out 0.75s both; }
.hero-v2-image      { animation: slideInRight 1.2s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero-v2-image-frame { animation: glowPulse 4s ease-in-out infinite 1.5s; }
.hero-v2-floating-card { animation: bounceIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 1.2s both, floatY 4s ease-in-out infinite 2s; }
.hero-v2-bg::before { animation: floatYLarge 10s ease-in-out infinite; }

/* Hero particles — more visible */
.hero-v2-particle {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(2px);
    animation: floatYLarge 8s ease-in-out infinite;
}

/* Hero title — gradient text */
.hero-v2-title {
    background: linear-gradient(135deg, #ffffff 0%, #c8e6d5 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTextReveal 1s ease-out 0.25s both, shimmer 4s linear infinite 1.5s;
}

/* Primary button — shimmer sweep + glow */
.hero-v2-btn-primary { position: relative; overflow: hidden; }
.hero-v2-btn-primary::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 80%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-25deg); transition: none;
}
.hero-v2-btn-primary:hover::after { animation: shimmer 0.9s ease-out; }
.hero-v2-btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 36px rgba(0,0,0,0.2), 0 0 24px rgba(255,255,255,0.2);
}

/* Secondary button — border glow */
.hero-v2-btn-secondary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 24px rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

/* ===== STATS BAR ===== */
.stats-bar { background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%); }
.stats-bar-item { opacity: 0; animation: countPop 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }
.stats-bar-item:nth-child(1) { animation-delay: 0.1s; }
.stats-bar-item:nth-child(3) { animation-delay: 0.25s; }
.stats-bar-item:nth-child(5) { animation-delay: 0.4s; }
.stats-bar-item:nth-child(7) { animation-delay: 0.55s; }
.stats-bar-num {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent), var(--c-primary));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ===== SERVICES ===== */
.service-v2-card { opacity: 0; animation: slideUpFade 0.7s ease-out both; }
.service-v2-card:nth-child(1) { animation-delay: 0.05s; }
.service-v2-card:nth-child(2) { animation-delay: 0.15s; }
.service-v2-card:nth-child(3) { animation-delay: 0.25s; }
.service-v2-card:nth-child(4) { animation-delay: 0.35s; }
.service-v2-card:nth-child(5) { animation-delay: 0.45s; }
.service-v2-card:nth-child(6) { animation-delay: 0.55s; }

/* Card hover: dramatic 3D tilt + lift + glow */
.service-v2-card {
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
    will-change: transform;
}
.service-v2-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 64px rgba(43,90,71,0.18), 0 8px 16px rgba(0,0,0,0.06);
}
.service-v2-card:hover .service-v2-image img { transform: scale(1.12); }
.service-v2-image img { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.service-v2-body { transition: transform 0.3s; }
.service-v2-card:hover .service-v2-body { transform: translateY(-2px); }

/* Gradient CTA card */
.service-v2-card-cta {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 33%, var(--c-accent) 66%, var(--c-primary) 100%);
    background-size: 300% 300%;
    transition: background-position 0.6s, transform 0.4s, box-shadow 0.4s;
}
.service-v2-card-cta:hover { background-position: 100% 100%; }
.service-v2-card-cta .btn { animation: pulseRing 2s infinite; }

/* ===== HOW IT WORKS ===== */
.how-step { opacity: 0; animation: slideUpFade 0.7s ease-out both; }
.how-step:nth-child(1) { animation-delay: 0.1s; }
.how-step:nth-child(2) { animation-delay: 0.25s; }
.how-step:nth-child(3) { animation-delay: 0.4s; }
.how-step:nth-child(4) { animation-delay: 0.55s; }

/* Number circle — continuous subtle pulse + dramatic hover */
.how-step-num {
    animation: pulseRing 2.5s infinite;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.how-step:hover .how-step-num {
    transform: scale(1.25) rotate(360deg);
    animation: none;
    box-shadow: 0 8px 32px rgba(64,111,88,0.4);
}
.how-step-icon { transition: transform 0.35s; }
.how-step:hover .how-step-icon { transform: scale(1.2) translateY(-4px); }

/* Dashed connector line — draw animation */
.how-steps::before {
    animation: drawLine 2s ease-out 0.5s both;
}

/* ===== WHY US ===== */
.why-us-image { animation: slideInLeft 1s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.why-us-content { animation: slideInRight 1s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.why-us-feature { opacity: 0; animation: slideUpFade 0.6s ease-out both; }
.why-us-feature:nth-child(1) { animation-delay: 0.5s; }
.why-us-feature:nth-child(2) { animation-delay: 0.65s; }
.why-us-feature:nth-child(3) { animation-delay: 0.8s; }

.why-us-f-icon {
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.4s;
}
.why-us-feature:hover .why-us-f-icon {
    transform: rotate(360deg) scale(1.15);
    background: rgba(43,135,89,0.18);
}
.why-us-image-frame { animation: glowPulse 5s ease-in-out infinite 1s; }
.why-us-badge { animation: bounceIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 1.5s both, floatY 4s ease-in-out infinite 2.5s; }

/* ===== LOCATIONS ===== */
.location-v2-card { opacity: 0; animation: slideUpFade 0.6s ease-out both; }
.location-v2-card:nth-child(1) { animation-delay: 0.1s; }
.location-v2-card:nth-child(2) { animation-delay: 0.2s; }
.location-v2-icon { transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.location-v2-card:hover .location-v2-icon { transform: scale(1.2) rotate(-10deg); }

/* ===== CTA ===== */
.cta-v2-card {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 33%, var(--c-accent) 66%, var(--c-primary-dark) 100%);
    background-size: 300% 300%;
    opacity: 0;
    animation: scaleBounce 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.2s both, gradientFlow 8s ease infinite 1s;
}
.cta-v2-pattern { animation: floatYLarge 7s ease-in-out infinite; }
.cta-v2-buttons .btn { position: relative; overflow: hidden; transition: transform 0.3s; }
.cta-v2-buttons .btn:hover { transform: translateY(-3px) scale(1.05); }
.cta-v2-buttons .btn::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    border-radius: 50%; background: rgba(255,255,255,0.25);
    transform: translate(-50%,-50%); transition: width 0.6s, height 0.6s;
}
.cta-v2-buttons .btn:hover::before { width: 400px; height: 400px; }

/* ===== Section headers ===== */
.section-header-center { opacity: 0; animation: slideUpFade 0.7s ease-out 0.1s both; }

/* ===== Scroll Reveal (JS-triggered) ===== */
.scroll-reveal { opacity: 0; transform: translateY(50px) scale(0.96); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.scroll-reveal.scroll-in { opacity: 1; transform: translateY(0) scale(1); }
.scroll-reveal.scroll-delay-1 { transition-delay: 0.12s; }
.scroll-reveal.scroll-delay-2 { transition-delay: 0.24s; }
.scroll-reveal.scroll-delay-3 { transition-delay: 0.36s; }

/* ===== Global hover effects ===== */
.btn { transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(64,111,88,0.35); transform: translateY(-2px); }
.btn-success:hover { box-shadow: 0 8px 24px rgba(60,133,84,0.35); transform: translateY(-2px); }
.data-card, .detail-card, .kpi-card { transition: transform 0.3s, box-shadow 0.3s; }
.data-card:hover, .detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.badge { transition: transform 0.2s; }
.badge:hover { transform: scale(1.1); }
.public-brand-icon, .brand-logo svg { transition: transform 0.5s ease-out; }
.public-brand:hover .public-brand-icon, .brand:hover .brand-logo svg { transform: rotate(360deg) scale(1.1); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .scroll-reveal { opacity: 1; transform: none; }
}
