@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #111827;
    --accent-gold: #d97706;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

/* Government Banner */
.gov-banner {
    background-color: var(--primary-dark);
    color: #f3f4f6;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-gold);
}

.gov-banner select {
    background: #1f2937;
    color: white;
    border: 1px solid #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Keep Google's helper UI hidden; the portal's upper-right selectors control it. */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget-icon,
.skiptranslate > iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Navbar */
.navbar {
    background: var(--card-bg);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    background: #111827;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.nav-brand h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-brand span {
    font-size: 11px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-brand p {
    font-size: 12px;
    color: var(--text-muted);
}

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

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-primary { background-color: var(--primary-dark); color: white; border: none; }
.btn-primary:hover { background-color: #1f2937; }
.btn-gold { background-color: #fef3c7; color: #92400e; border-color: #fde68a; }
.btn-gold:hover { background-color: #fde68a; }
.btn-dark { background-color: #111827; color: white; }

/* Dashboard Grid Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

/* Public landing experience */
.landing-experience {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 20px 12px;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    overflow: hidden;
    min-height: 410px;
    padding: 54px clamp(24px, 5vw, 72px);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(120deg, #172554 0%, #1d4ed8 52%, #0f766e 100%);
    box-shadow: 0 20px 45px rgba(30, 64, 175, .22);
}

.landing-hero:after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -100px;
    top: -120px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.05), 0 0 0 76px rgba(255,255,255,.04);
}

.landing-copy { position: relative; z-index: 1; max-width: 650px; }
.landing-kicker { color: #fbbf24; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing-kicker i { margin-right: 5px; }
.landing-copy h2 { max-width: 650px; margin: 12px 0 14px; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.landing-copy p { max-width: 580px; color: #dbeafe; font-size: 16px; line-height: 1.7; }
.landing-actions, .landing-trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.landing-actions { margin-top: 26px; }
.landing-primary, .landing-secondary, .landing-cancel { min-height: 42px; padding: 11px 18px; border-radius: 10px; font-weight: 800; cursor: pointer; text-decoration: none; }
.landing-primary { border: 0; color: #172554; background: #fbbf24; box-shadow: 0 8px 18px rgba(15, 23, 42, .18); }
.landing-primary:hover { background: #fcd34d; transform: translateY(-1px); }
.landing-secondary { border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.1); }
.landing-secondary:hover { background: rgba(255,255,255,.2); }
.landing-trust-row { margin-top: 28px; gap: 10px 18px; color: #bfdbfe; font-size: 11px; }
.landing-trust-row i { color: #fbbf24; margin-right: 4px; }

.landing-visual { position: relative; min-height: 290px; }
.landing-photo { position: absolute; right: 3%; top: 18px; z-index: 1; width: 190px; height: 145px; object-fit: cover; border: 6px solid rgba(255,255,255,.82); border-radius: 22px; transform: rotate(5deg); box-shadow: 0 18px 30px rgba(15,23,42,.25); }
.visual-orbit { position: absolute; border: 1px dashed rgba(255,255,255,.35); border-radius: 50%; }
.orbit-one { width: 330px; height: 190px; top: 42px; left: 8%; transform: rotate(-18deg); }
.orbit-two { width: 250px; height: 250px; top: 12px; left: 18%; }
.visual-house, .visual-person { position: absolute; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 16px 28px rgba(15,23,42,.25); }
.visual-house { width: 148px; height: 148px; top: 78px; left: 28%; color: #fff; background: linear-gradient(145deg, #f97316, #ea580c); font-size: 64px; }
.visual-person { width: 72px; height: 72px; color: #172554; font-size: 29px; background: #fde68a; }
.person-worker { top: 36px; right: 13%; background: #bfdbfe; }
.person-family { bottom: 28px; left: 7%; background: #a7f3d0; }
.visual-card { position: absolute; z-index: 2; display: flex; gap: 7px; align-items: center; padding: 10px 13px; border-radius: 12px; color: #172554; background: #fff; box-shadow: 0 10px 22px rgba(15,23,42,.2); font-size: 11px; }
.visual-card i { color: #16a34a; font-size: 16px; }
.visual-card-top { top: 8px; left: 3%; }
.visual-card-bottom { right: 6%; bottom: 10px; flex-direction: column; align-items: flex-start; gap: 0; }
.visual-card-bottom strong { font-size: 21px; }
.visual-card-bottom span { color: #64748b; font-size: 10px; }

.landing-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 48px; }
.landing-stats div { padding: 18px 14px; text-align: center; border: 1px solid #dbeafe; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.landing-stats strong { display: block; color: #1d4ed8; font-size: 25px; }
.landing-stats span { display: block; color: #64748b; font-size: 11px; }
.service-highlights { padding: 4px 0 28px; }
.section-intro { max-width: 650px; margin-bottom: 22px; }
.section-intro h2 { margin: 6px 0; color: #172554; font-size: clamp(24px, 3vw, 36px); }
.section-intro p { color: #64748b; }
.service-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-highlight-card { position: relative; min-height: 218px; padding: 22px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
.service-highlight-card:hover { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(15,23,42,.1); }
.service-highlight-card:after { content: ""; position: absolute; right: -22px; bottom: -42px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.55); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; color: #fff; font-size: 21px; }
.service-highlight-card h3 { margin-bottom: 7px; color: #172554; font-size: 17px; }
.service-highlight-card p { min-height: 54px; color: #64748b; font-size: 12px; }
.service-highlight-card span { color: #1d4ed8; font-size: 11px; font-weight: 800; }
.service-blue { background: linear-gradient(145deg,#eff6ff,#fff); }.service-blue .service-icon { background:#2563eb; }
.service-teal { background: linear-gradient(145deg,#ecfeff,#fff); }.service-teal .service-icon { background:#0f766e; }
.service-orange { background: linear-gradient(145deg,#fff7ed,#fff); }.service-orange .service-icon { background:#ea580c; }
.service-purple { background: linear-gradient(145deg,#faf5ff,#fff); }.service-purple .service-icon { background:#7e22ce; }
.booking-option-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 26px; padding: 24px 28px; border: 1px solid #93c5fd; border-radius: 18px; color: #fff; background: #172554; box-shadow: 0 12px 25px rgba(30,64,175,.16); }
.booking-option-panel h2 { margin: 5px 0; font-size: 22px; }
.booking-option-panel p { color: #bfdbfe; font-size: 13px; }
.booking-option-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.landing-cancel { border: 1px solid #94a3b8; color: #e2e8f0; background: transparent; }
.landing-cancel:hover { background: #1e3a8a; }

.federation-admin-workspace, .federation-worker-card {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: linear-gradient(145deg, #eff6ff, #f0fdfa);
}
.federation-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.federation-section-heading h2, .federation-section-heading h3 { margin: 4px 0 0; color: #172554; }
.federation-admin-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.federation-admin-grid h3 { margin: 0 0 10px; color: #334155; font-size: 14px; }
.federation-application-list { display: grid; gap: 10px; max-height: 480px; overflow-y: auto; }
.federation-application { padding: 13px; border: 1px solid #dbeafe; border-radius: 12px; background: #fff; }
.federation-application strong { color: #172554; }
.federation-application p { margin: 4px 0; color: #64748b; font-size: 12px; }
.federation-certificate-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 7px 10px; border-radius: 7px; color: #1d4ed8; background: #eff6ff; font-size: 11px; font-weight: 800; text-decoration: none; }
.federation-certificate-link:hover { background: #dbeafe; }
.federation-review-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.federation-review-actions button { border: 0; border-radius: 6px; padding: 7px 10px; color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.federation-approve { background: #16a34a; }.federation-reject { background: #dc2626; }.federation-remove { background: #7c3aed; }
.demand-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.demand-bar-row { display: grid; grid-template-columns: 118px 1fr 30px; align-items: center; gap: 7px; font-size: 11px; color: #334155; }
.demand-bar-track { height: 11px; overflow: hidden; border-radius: 999px; background: #dbeafe; }
.demand-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444); }
.federation-demand-map { height: 290px; border: 1px solid #bfdbfe; border-radius: 12px; overflow: hidden; }
.demand-summary, .federation-message { margin: 9px 0 0; color: #64748b; font-size: 12px; }
.federation-demand-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.federation-demand-card { min-width: 0; padding: 20px; border: 1px solid #bfdbfe; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
.federation-demand-card .federation-section-heading { margin-bottom: 16px; }
.federation-demand-card h2 { font-size: 18px; }
.demand-legend { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 11px; white-space: nowrap; }
.demand-legend i { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; }
.federation-analytics-panel { margin-top: 18px; padding: 20px; border: 1px solid #dbe4ef; border-radius: 18px; background: #f8fafc; }
.federation-analytics-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.federation-analytics-heading h2 { margin: 4px 0; color: #172554; }
.federation-analytics-heading p { margin: 0; color: #64748b; font-size: 12px; }
.federation-trend-card { padding: 16px; border: 1px solid #dbe4ef; border-radius: 14px; background: #fff; }
.federation-trend-card h3 { margin: 0; color: #172554; font-size: 15px; }
.federation-trend-chart { min-height: 285px; overflow-x: auto; }
.federation-trend-chart svg { display: block; width: 100%; min-width: 620px; height: 275px; margin-top: 2px; }
.trend-grid-line { stroke: #e2e8f0; stroke-width: 1; }
.trend-axis-label { fill: #64748b; font-size: 10px; }
.trend-line { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.trend-point { cursor: crosshair; stroke: #fff; stroke-width: 2; transition: r .15s ease; }
.trend-point:hover { r: 5; }
.trend-tooltip { position: fixed; z-index: 20; pointer-events: none; padding: 7px 9px; border-radius: 7px; color: #fff; background: #172554; font-size: 11px; box-shadow: 0 6px 14px rgba(15,23,42,.18); }
.trend-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 8px; color: #475569; font-size: 11px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend i { width: 9px; height: 9px; border-radius: 50%; }
.federation-analytics-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; margin-top: 16px; }
.federation-sector-list { display: grid; gap: 9px; max-height: 280px; overflow-y: auto; }
.federation-sector-card { padding: 10px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.federation-sector-card strong { color: #172554; font-size: 12px; }.federation-sector-card p { margin: 3px 0 0; color: #64748b; font-size: 11px; }
.sector-multiplier { float: right; padding: 3px 6px; border: 1px solid #cbd5e1; border-radius: 4px; color: #334155; background: #fff; font-size: 10px; font-weight: 800; }
.federation-audit-table-wrap { overflow-x: auto; max-height: 280px; }
.federation-audit-table { width: 100%; min-width: 690px; border-collapse: collapse; color: #334155; font-size: 10px; }
.federation-audit-table th { padding: 8px 6px; text-align: left; color: #475569; background: #f8fafc; white-space: nowrap; }
.federation-audit-table td { padding: 9px 6px; border-top: 1px solid #edf2f7; white-space: nowrap; }
.audit-payout { color: #15803d; font-weight: 800; }.audit-status { color: #15803d; font-weight: 700; }
#federationApplicationForm { display: grid; grid-template-columns: 1.2fr 1.5fr .7fr auto; gap: 8px; }
#federationApplicationForm input, #federationApplicationForm select { min-height: 38px; padding: 8px 10px; border: 1px solid #bfdbfe; border-radius: 7px; background: #fff; }
.federation-worker-card > p { margin: 0 0 12px; color: #64748b; font-size: 12px; }
.federator-dashboard { max-width: 1400px; margin: 24px auto; padding: 0 20px 30px; }
.federator-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 28px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #172554, #0f766e); box-shadow: 0 14px 30px rgba(15,23,42,.16); }
.federator-header h2 { margin: 5px 0; font-size: 28px; }.federator-header p { color: #bfdbfe; font-size: 13px; }
.federation-total-workers { display: inline-flex; align-items: center; gap: 12px; margin: 16px 0 2px; padding: 15px 22px; border: 1px solid #bbf7d0; border-radius: 14px; background: linear-gradient(135deg, #ecfdf5, #dcfce7); color: #166534; }
.federation-total-workers i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #16a34a; font-size: 17px; }
.federation-total-workers strong { display: block; font-size: 25px; line-height: 1; }.federation-total-workers span { font-size: 11px; }
.federation-worker-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.federation-demand-editor { margin-top: 18px; padding: 20px; border: 1px solid #fde68a; border-radius: 16px; background: linear-gradient(145deg, #fffbeb, #fff7ed); }
.federation-demand-editor h3 { margin: 4px 0; color: #78350f; }.federation-demand-editor p { color: #92400e; font-size: 12px; }
#federationDemandForm { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .7fr auto; gap: 8px; margin-top: 12px; }
#federationDemandForm input, #federationDemandForm select { min-height: 38px; padding: 8px 10px; border: 1px solid #fcd34d; border-radius: 7px; background: #fff; }
.federation-demand-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }.federation-demand-chip { padding: 8px 10px; border-radius: 9px; color: #78350f; background: #fef3c7; font-size: 11px; font-weight: 700; }

.bulk-workforce-desk {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid #1e3a8a;
    border-radius: 12px;
    color: #f8fafc;
    background: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.fair-wage-calculator {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    color: #172554;
    background: linear-gradient(145deg, #f8fafc, #eff6ff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.fair-wage-header, .fair-wage-heading { display: flex; align-items: flex-start; gap: 14px; }
.fair-wage-header { justify-content: space-between; gap: 20px; }
.fair-wage-icon, .fair-wage-card-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: #1e3a8a; }
.fair-wage-icon { width: 48px; height: 48px; font-size: 22px; }
.fair-wage-kicker { color: #0f766e; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fair-wage-heading h2 { margin: 3px 0 5px; font-size: 22px; }
.fair-wage-heading p { margin: 0; color: #64748b; font-size: 12px; }
.fair-wage-customer-pay { align-self: flex-start; padding: 10px 14px; border: 1px solid #fbbf24; border-radius: 10px; color: #92400e; background: #fef3c7; white-space: nowrap; font-size: 13px; }
.fair-wage-slider-row { margin: 22px 0 18px; padding: 15px; border: 1px solid #dbeafe; border-radius: 12px; background: #fff; }
.fair-wage-slider-row label { display: inline-block; color: #334155; font-size: 12px; font-weight: 800; }
.fair-wage-slider-row output { float: right; color: #1d4ed8; font-size: 14px; font-weight: 800; }
.fair-wage-slider-row input { display: block; width: 100%; margin-top: 14px; accent-color: #1d4ed8; cursor: pointer; }
.fair-wage-range { display: flex; justify-content: space-between; margin-top: 5px; color: #94a3b8; font-size: 10px; }
.fair-wage-split-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fair-wage-split-card { padding: 16px; border-radius: 13px; background: #fff; box-shadow: 0 6px 15px rgba(15, 23, 42, .06); }
.fair-wage-card-icon { width: 34px; height: 34px; margin-bottom: 10px; font-size: 14px; }
.fair-wage-card-label { display: block; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.fair-wage-split-card strong { display: block; margin: 4px 0; font-size: 24px; }
.fair-wage-split-card small { color: #64748b; font-size: 11px; }
.worker-split { border: 1px solid #86efac; background: linear-gradient(145deg, #f0fdf4, #fff); }.worker-split .fair-wage-card-icon { background: #15803d; }.worker-split strong { color: #15803d; }
.platform-split { border: 1px solid #93c5fd; background: linear-gradient(145deg, #eff6ff, #fff); }.platform-split .fair-wage-card-icon { background: #2563eb; }.platform-split strong { color: #2563eb; }
.welfare-split { border: 1px solid #fcd34d; background: linear-gradient(145deg, #fffbeb, #fff); }.welfare-split .fair-wage-card-icon { background: #d97706; }.welfare-split strong { color: #b45309; }
.fair-wage-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.fair-wage-comparison-card { padding: 16px; border-radius: 12px; }.fair-wage-comparison-card h3 { margin: 0 0 8px; font-size: 14px; }.fair-wage-comparison-card ul { margin: 0; padding-left: 18px; color: #475569; font-size: 12px; line-height: 1.8; }
.private-comparison { border: 1px solid #fecaca; background: #fff7f7; }.private-comparison h3 { color: #b91c1c; }.cooperative-comparison { border: 1px solid #86efac; background: #f0fdf4; }.cooperative-comparison h3 { color: #166534; }

.bulk-desk-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.bulk-eyebrow {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.bulk-desk-heading h2 {
    margin: 4px 0;
    color: #fff;
    font-size: 21px;
}

.bulk-desk-heading p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 13px;
}

.bulk-pool-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #fbbf24;
    border-radius: 999px;
    color: #fef3c7;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.bulk-contract-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 14px;
}

.bulk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bulk-field label {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.bulk-field input,
.bulk-field select {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #0f172a;
    background: #fff;
    font-size: 13px;
}

.bulk-estimate {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 80px;
    padding: 12px 14px;
    border-left: 3px solid #fbbf24;
    background: #172554;
}

.bulk-estimate span {
    color: #bfdbfe;
    font-size: 12px;
}

.bulk-estimate > strong {
    color: #fef3c7;
    font-size: 12px;
}

.bulk-estimate output {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.bulk-form-actions {
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.bulk-submit-button {
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: #111827;
    background: #fbbf24;
    font-weight: 800;
    cursor: pointer;
}

.bulk-submit-button:hover { background: #f59e0b; }
.bulk-submit-button:disabled { cursor: wait; opacity: 0.65; }
#bulkContractMessage { color: #bfdbfe; font-size: 12px; }

.bulk-cancel-button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    color: #e2e8f0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bulk-cancel-button:hover { background: #1e293b; }

@media (max-width: 900px) {
    .bulk-contract-form { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
    .bulk-estimate, .bulk-form-actions { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .bulk-workforce-desk { padding: 18px; }
    .bulk-desk-heading { flex-direction: column; }
    .bulk-contract-form { grid-template-columns: 1fr; }
    .bulk-estimate, .bulk-form-actions { grid-column: auto; }
    .bulk-form-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 1024px) {
    .dashboard-container { grid-template-columns: 1fr; }
    .service-card-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-hero { grid-template-columns: 1fr; }
    .landing-visual { min-height: 250px; }
}

@media (max-width: 620px) {
    .fair-wage-calculator { padding: 18px; }
    .fair-wage-header, .fair-wage-heading { flex-direction: column; }
    .fair-wage-customer-pay { align-self: stretch; text-align: center; }
    .fair-wage-split-grid, .fair-wage-comparison { grid-template-columns: 1fr; }
    .landing-experience { padding: 16px 12px 8px; }
    .landing-hero { min-height: 0; padding: 34px 22px 26px; border-radius: 20px; }
    .landing-copy h2 { font-size: 35px; }
    .landing-copy p { font-size: 14px; }
    .landing-visual { transform: scale(.82); transform-origin: top center; margin-bottom: -35px; }
    .landing-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 30px; }
    .service-card-grid { grid-template-columns: 1fr; }
    .booking-option-panel { align-items: flex-start; flex-direction: column; padding: 20px; }
    .federation-admin-grid, #federationApplicationForm { grid-template-columns: 1fr; }
    .federation-demand-dashboard { grid-template-columns: 1fr; }
    .federation-analytics-grid { grid-template-columns: 1fr; }
    .federation-analytics-heading { flex-direction: column; }
    .federation-section-heading { align-items: flex-start; flex-direction: column; }
    #federationDemandForm { grid-template-columns: 1fr; }
    .federator-header { flex-direction: column; }
}

.col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges */
.sos-badge { font-size: 11px; background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 12px; font-weight: 500; }
.emergency-sos-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #dc2626;
    border-radius: 4px;
    color: #fff;
    background: #dc2626;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.emergency-sos-trigger:hover { background: #b91c1c; }
.emergency-sos-trigger i { color: #fee2e2; }
.location-badge { font-size: 12px; background: #f1f5f9; padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.status-pill { font-size: 11px; background: #f1f5f9; color: #475569; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.wage-retention-badge { font-size: 11px; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.wage-retention-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 40px);
    margin: 0;
    padding: 10px 16px;
    border-radius: 4px;
    color: #f8d34f;
    background: #123b63;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.wage-retention-banner span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.dashboard-container,
.federator-dashboard,
#adminVerificationPanel { position: relative; }
.landing-experience { position: relative; }

@media (max-width: 620px) {
    .wage-retention-banner {
        top: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 10px;
        font-size: 12px;
    }
}
.wage-retention-banner i { color: #facc15; font-size: 14px; }

/* Trade Pills */
.trade-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.trade-pill {
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.trade-pill:hover, .trade-pill.active {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0369a1;
}

/* Dispatch Row */
.dispatch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

.tip-group { display: flex; gap: 6px; align-items: center; }
.tip-label { font-size: 12px; color: var(--text-muted); }
.tip-btn { padding: 4px 10px; font-size: 12px; border-radius: 4px; border: 1px solid var(--border-color); background: white; cursor: pointer; }
.tip-btn:hover { background: #fef3c7; border-color: var(--accent-gold); }

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 220px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    border: 1px solid #d1d5db;
}

/* Tracker Box */
.tracker-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.tracker-box { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.tracker-box i { font-size: 32px; margin-bottom: 10px; color: #94a3b8; }
.tracker-box h3 { font-size: 15px; color: var(--primary-dark); margin-top: 6px; }
.tracker-box p { font-size: 12px; }

/* Wage Structure */
.wage-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.wage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.stat-box h4 { font-size: 18px; color: var(--primary-dark); }
.stat-box p { font-size: 11px; color: var(--text-muted); }

/* --- Modal Popup Styling --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal, .close-signup-modal, .close-profile-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-content h2 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.siri-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1300;
    font-family: inherit;
}

.siri-fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.siri-fab:hover { background: #1e3a8a; }

.siri-chat-panel {
    width: min(360px, calc(100vw - 40px));
    height: 440px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
    animation: siriChatSlideUp 0.2s ease-out;
}

.siri-chat-panel[hidden] {
    display: none !important;
}

.siri-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    background: #0f172a;
}

.siri-chat-header strong {
    display: block;
    font-size: 16px;
}

.siri-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    color: #bfdbfe;
    font-size: 11px;
}

.siri-online span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.siri-icon-button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.siri-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.siri-message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.siri-message-bot {
    color: #1e293b;
    background: #e2e8f0;
}

.siri-message-user {
    margin-left: auto;
    color: #fff;
    background: #1e3a8a;
}

.siri-chat-form {
    display: flex;
    gap: 8px;
    padding: 11px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.siri-chat-form input {
    min-width: 0;
    flex: 1;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    outline: none;
}

.siri-chat-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px #dbeafe; }

.siri-send-button {
    width: 38px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #1e3a8a;
    cursor: pointer;
}

.siri-send-button:disabled { opacity: 0.55; cursor: wait; }

@keyframes siriChatSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .siri-widget { right: 12px; bottom: 12px; }
    .siri-chat-panel { width: calc(100vw - 24px); height: min(440px, 70vh); }
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

.modal-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.modal-btn:hover {
    background: #1f2937;
}

/* Official portal visual system */
:root {
    --primary-dark: #002147;
    --primary-ink: #112e51;
    --accent-saffron: #ff9933;
    --accent-green: #138808;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --border-color: #d3d9e2;
    --text-main: #222222;
    --text-muted: #5f6b7a;
    --focus-ring: #ff9933;
}

html { scroll-behavior: smooth; }
body { background: var(--bg-color); color: var(--text-main); font-family: Arial, Helvetica, sans-serif; }
body.high-contrast { --bg-color: #000; --card-bg: #000; --text-main: #fff; --text-muted: #fff; --border-color: #fff; --primary-dark: #000; }
body.high-contrast a, body.high-contrast button, body.high-contrast label, body.high-contrast p, body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast span { color: #fff !important; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.utility-bar { background: #0b1f36; color: #fff; font-size: 12px; border-bottom: 1px solid #496177; }
.utility-inner { max-width: 1400px; margin: auto; min-height: 34px; padding: 5px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.skip-link { color: #fff; text-decoration: underline; }
.utility-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.utility-button { background: transparent; color: #fff; border: 1px solid #8ea0b3; border-radius: 3px; padding: 3px 7px; font-size: 11px; cursor: pointer; }
.utility-button:hover, .utility-button[aria-pressed="true"] { background: var(--accent-saffron); color: #111 !important; border-color: var(--accent-saffron); }
.language-control { margin-left: 8px; }
.utility-controls select { background: #fff; color: #222; border: 1px solid #8ea0b3; border-radius: 3px; padding: 3px 5px; font-size: 11px; }
.gov-banner { background: var(--primary-dark); border-bottom: 4px solid var(--accent-saffron); padding: 8px 24px; }
.navbar { background: #fff; border-bottom: 1px solid var(--border-color); box-shadow: none; padding: 16px 24px; }
.brand-icon { background: var(--primary-dark); border-radius: 2px; border-bottom: 4px solid var(--accent-saffron); padding: 6px 10px; text-align: center; line-height: 1.1; font-size: 13px; }
.brand-icon small { font-size: 8px; letter-spacing: 1px; }
.department-name { font-size: 10px !important; color: var(--primary-dark) !important; letter-spacing: 1px; font-weight: 700; margin-bottom: 2px; }
.nav-brand h1 { color: var(--primary-dark); font-size: 22px; }
.nav-brand span { background: transparent; color: var(--primary-dark); border-left: 2px solid var(--accent-saffron); border-radius: 0; }
.nav-brand p { color: var(--text-muted); }
.nav-actions { gap: 7px; }
.btn { border-radius: 4px; border-color: #bcc7d3; box-shadow: none; }
.btn-primary, .btn-dark { background: var(--primary-dark); }
.btn-gold { background: #fff8ef; color: #8a4b00; border-color: var(--accent-saffron); }
.primary-nav { position: sticky; top: 0; z-index: 900; background: var(--primary-ink); border-bottom: 3px solid var(--accent-green); }
.primary-nav-inner { max-width: 1400px; margin: auto; padding: 0 24px; min-height: 44px; display: flex; align-items: center; gap: 2px; }
.nav-link { color: #fff; text-decoration: none; padding: 13px 16px 10px; font-size: 13px; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); border-bottom-color: var(--accent-saffron); }
.nav-spacer { flex: 1; }
.ambulance-sos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0 8px 0 6px;
    padding: 6px 10px;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    color: #fff;
    background: #b91c1c;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.ambulance-sos-badge:hover { background: #991b1b; }
.ambulance-sos-badge i { color: #fecaca; }
.last-updated { color: #d7e1eb; font-size: 11px; }
.wage-retention-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid rgba(250, 204, 21, .45);
    border-radius: 4px;
    color: #f8d34f;
    background: #123b63;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.wage-retention-inline i { color: #facc15; }
.announcement-bar { background: #fff8ef; border-bottom: 1px solid #f0c28a; color: #613500; }
.announcement-inner { max-width: 1400px; margin: auto; padding: 8px 24px; display: flex; gap: 9px; align-items: center; font-size: 12px; }
.announcement-inner i { color: var(--accent-saffron); }
.portal-main { min-height: 52vh; }
.auth-required-panel { max-width: 900px; margin: 28px auto 10px; padding: 22px; border: 1px solid #c8d5e2; border-left: 5px solid var(--accent-saffron); background: #fff; display: flex; align-items: center; gap: 16px; }
.auth-required-panel > i { color: var(--primary-dark); font-size: 28px; }
.auth-required-panel h2 { color: var(--primary-dark); font-size: 18px; margin-bottom: 4px; }
.auth-required-panel p { color: var(--text-muted); font-size: 13px; }
.auth-required-panel .btn { margin-left: auto; white-space: nowrap; }
body.high-contrast .auth-required-panel { background: #000; }
.dashboard-container { max-width: 1400px; margin: 24px auto; gap: 20px; }
.col-left, .col-right { gap: 20px; }
.card { border-radius: 5px; border: 1px solid var(--border-color); box-shadow: none; padding: 18px; }
.card-header { border-bottom: 1px solid #e3e7ed; padding-bottom: 12px; margin-bottom: 14px; }
.card-title { color: var(--primary-dark); letter-spacing: .7px; }
.status-pill { border-radius: 3px; border: 1px solid #b7c2ce; }
.sos-badge { border-radius: 3px; border-left: 3px solid var(--accent-green); }
.trade-pill { border-radius: 4px; background: #fff; border-color: #c6d0dc; }
.trade-pill:hover, .trade-pill.active { background: #eef5fb; border-color: var(--primary-dark); color: var(--primary-dark); box-shadow: inset 0 -3px var(--accent-saffron); }
.tracker-box { padding: 28px 18px; }
.tracker-box i { color: var(--primary-dark); }
.modal-overlay { background: rgba(0, 33, 71, .72); backdrop-filter: none; }
.modal-content { border-radius: 5px; border-top: 5px solid var(--accent-saffron); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.modal-btn { border-radius: 4px; background: var(--primary-dark); }
.modal-btn:hover { background: #174b7a; }
input, select, textarea { border-radius: 4px !important; border-color: #bac5d1 !important; color: var(--text-main); background: #fff; }
.site-footer { background: var(--primary-dark); color: #e5edf5; margin-top: 40px; border-top: 5px solid var(--accent-saffron); }
.footer-grid { max-width: 1400px; margin: auto; padding: 30px 24px 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-bottom: 10px; }
.site-footer h2 { font-size: 19px; }
.site-footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; border-bottom: 2px solid var(--accent-saffron); padding-bottom: 7px; }
.site-footer p, .site-footer a { color: #d6e0ea; font-size: 12px; line-height: 1.7; }
.site-footer a { display: block; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-status { color: #8ee28a; }
.compliance-badges { display: flex; gap: 6px; margin-top: 8px; }
.compliance-badges span { border: 1px solid #8ea0b3; border-radius: 3px; padding: 3px 6px; font-size: 10px; }
.footer-bottom { max-width: 1400px; margin: auto; padding: 12px 24px; border-top: 1px solid #496177; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #c5d1dd; }

@media (max-width: 760px) {
    .utility-inner, .navbar, .primary-nav-inner { padding-left: 14px; padding-right: 14px; }
    .utility-inner, .navbar { align-items: flex-start; flex-direction: column; }
    .nav-actions { width: 100%; flex-wrap: wrap; }
    .nav-actions .btn { flex: 1; justify-content: center; }
    .primary-nav { position: relative; overflow-x: auto; }
    .primary-nav-inner { min-width: 620px; }
    .last-updated { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding: 24px 16px; }
    .footer-bottom { flex-direction: column; padding: 12px 16px; }
    .auth-required-panel { margin: 18px 14px; align-items: flex-start; flex-wrap: wrap; }
    .auth-required-panel .btn { margin-left: 44px; }
}