/* OnlineConvers Premium Stylesheet — Dark Theme (All Pages) */

:root {
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Dark Theme Colors */
    --bg-app: #071228;
    --bg-card: rgba(255, 255, 255, 0.07);
    --bg-card-hover: rgba(255, 255, 255, 0.11);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-focus: #38bdf8;
    --primary-color: #38bdf8;
    --primary-hover: #7dd3fc;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.10);
    --text-primary: #f8fbff;
    --text-secondary: rgba(248, 251, 255, 0.72);
    --text-muted: rgba(248, 251, 255, 0.42);

    /* Allocation Category Colors */
    --color-net: #34d399;
    --color-fed: #60a5fa;
    --color-fica: #a78bfa;
    --color-state: #f472b6;
    --color-pretax: #fbbf24;
    --color-posttax: #f87171;
    --color-gross: #818cf8;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #059669 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 28px rgba(56, 189, 248, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-all: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE STYLES
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 32%),
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 18%),
        linear-gradient(180deg, #0d1f3f 0%, #071228 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Homepage keeps same background but with the glass container */
body.homepage .app-container {
    background: rgba(7, 18, 44, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    box-shadow: 0 32px 90px rgba(3, 15, 42, 0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 32px;
}

body.homepage .app-header {
    border-bottom: none;
    margin-bottom: 32px;
}

body.homepage .home-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
}

body.homepage .section-separator {
    margin: 40px auto;
    opacity: 0.35;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input[type="button"],
input[type="submit"],
.btn,
.btn-card,
.cta-card-btn,
.cta-btn-primary,
.btn-download,
.btn-download-resource,
.btn-pricing,
.btn-pricing-secondary,
.btn-pricing-primary,
.cta-btn-white,
.search-clear-btn,
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 12px 20px;
    min-height: 44px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.22), -6px -6px 18px rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
    backdrop-filter: blur(8px);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover,
.btn-download:hover,
.btn-download-resource:hover,
.btn-pricing-secondary:hover,
.cta-btn-white:hover,
.search-clear-btn:hover,
.tab-btn:hover {
    transform: translateY(-1px);
    box-shadow: 12px 14px 26px rgba(0, 0, 0, 0.24), -8px -8px 20px rgba(255, 255, 255, 0.06);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
.btn:active,
.btn-download:active,
.btn-download-resource:active,
.btn-pricing-secondary:active,
.cta-btn-white:active,
.search-clear-btn:active,
.tab-btn:active {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.18), inset -3px -3px 10px rgba(255, 255, 255, 0.08);
}

/* ── solid-blue buttons: clean hover / active ── */
.btn-card:hover,
.cta-card-btn:hover,
.cta-btn-primary:hover,
.btn-pricing-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-card:active,
.cta-card-btn:active,
.cta-btn-primary:active,
.btn-pricing-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.30);
}

*:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.28);
    outline-offset: 2px;
}

/* ============================================================
   APP CONTAINER
   ============================================================ */
.app-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ============================================================
   HEADER — clean white bar (reference: online-convers-staging)
   ============================================================ */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 24px;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
}

/* Sub-page header — same style (no extra overrides needed) */
body:not(.homepage) .app-header {
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    color: #111827;
    background: #f3f4f6;
}

.nav-link.active {
    color: #2563eb;
    font-weight: 600;
    background: #eff6ff;
}

/* remove the old sliding underline */
.nav-link::after { display: none; }

/* ============================================================
   HEADER SEARCH PILL
   ============================================================ */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: 9999px;
    padding: 0 14px;
    height: 36px;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: text;
}

.header-search-form:focus-within {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.header-search-icon {
    color: #9ca3af;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.header-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    font-family: var(--font-sans);
    color: #374151;
    width: 168px;
    padding: 0;
}

.header-search-input::placeholder {
    color: #9ca3af;
}

/* ── Header is ALWAYS dark (dark topbar pattern) ── */
.app-header {
    background: #0d1526 !important;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.nav-link.active {
    color: #7dd3fc !important;
    background: rgba(125, 211, 252, 0.10) !important;
    font-weight: 600 !important;
}

.nav-link::after { display: none !important; }

.header-search-form {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.header-search-form:focus-within {
    background: rgba(255, 255, 255, 0.11) !important;
    border-color: #7dd3fc !important;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.13) !important;
}

.header-search-icon { color: rgba(255, 255, 255, 0.35) !important; }

.header-search-input {
    color: rgba(255, 255, 255, 0.85) !important;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.30) !important;
}

/* hamburger lines in always-dark header */
.hamburger-line { background: rgba(255,255,255,0.85) !important; }
.hamburger-btn { background: rgba(255,255,255,0.07) !important; border-color: rgba(255,255,255,0.14) !important; }

/* ============================================================
   FOOTER — always dark (matches dark header)
   ============================================================ */
.app-footer {
    margin-top: 64px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 52px 24px 36px;
    background: #0d1526;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(248, 251, 255, 0.48);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-bottom: 20px;
}

.footer-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(248, 251, 255, 0.55);
    text-decoration: none;
    position: relative;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #7dd3fc;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #7dd3fc;
    transition: width 0.2s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ============================================================
   LOGO / BRAND
   ============================================================ */
.logo-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    color: #2563eb;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
}

.brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: #111827;
    white-space: nowrap;
}

/* "Convers" — keep a subtle blue accent */
.brand-text h1 span {
    color: #2563eb;
    background: none;
    -webkit-text-fill-color: #2563eb;
    background-clip: unset;
    -webkit-background-clip: unset;
}

.brand-text p {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* dark theme brand overrides */
html[data-theme="dark"] .brand-text h1 { color: #f1f5f9; }
html[data-theme="dark"] .brand-text h1 span { color: #7dd3fc; -webkit-text-fill-color: #7dd3fc; }
html[data-theme="dark"] .logo-icon { color: #7dd3fc; }

/* ============================================================
   GRID LAYOUT (CALCULATOR PAGES)
   ============================================================ */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
    flex-grow: 1;
}

/* ============================================================
   CARDS (CALCULATOR PANELS)
   ============================================================ */
.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: rgba(56, 189, 248, 0.22);
}

/* Panel Headers */
.panel-header {
    margin-bottom: 28px;
}

.panel-header h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================================================
   INPUTS & FORMS
   ============================================================ */
.input-group {
    margin-bottom: 24px;
}

.group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-container {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-all);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.margin-top-xs {
    margin-top: 8px;
}

.input-wrapper {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Styled Inputs */
input[type="number"],
select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-all);
    width: 100%;
}

input[type="number"]::placeholder {
    color: var(--text-muted);
}

input[type="number"]:focus,
select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: rgba(255, 255, 255, 0.11);
}

select option {
    background: #0d1f3f;
    color: var(--text-primary);
}

/* Input Prefix Decorator ($) */
.input-prefix-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-container .prefix {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    pointer-events: none;
}

.input-prefix-container input {
    padding-left: 32px !important;
}

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Styled Sliders */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-header label {
    margin-bottom: 0;
}

.slider-header span {
    font-size: 14px;
    font-weight: 700;
    color: var(--border-focus);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border-focus);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
    transition: var(--transition-all);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.info-box-read-only {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    font-size: 15px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    min-height: 48px;
    user-select: none;
}

/* Accordion */
.accordion-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    overflow: hidden;
    transition: var(--transition-all);
}

.accordion-title {
    padding: 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
    color: var(--text-primary);
}

.accordion-title::-webkit-details-marker {
    display: none;
}

.accordion-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.accordion-card[open] .accordion-arrow svg {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0px;
    animation: slideDown 0.25s ease-out;
    color: var(--text-secondary);
}

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

/* ============================================================
   OUTPUT / RESULTS SECTION
   ============================================================ */
.output-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Net Pay Card */
.net-pay-card {
    background: rgba(52, 211, 153, 0.07);
    color: var(--text-primary);
    border: 1px solid rgba(52, 211, 153, 0.22);
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.08);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 32px;
}

.net-pay-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

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

.net-pay-header h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.toggle-display {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: var(--radius-sm);
}

.btn-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-all);
}

.btn-toggle.active {
    background: var(--color-net);
    color: #ffffff;
}

.net-pay-amount-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.net-pay-amount-wrapper .currency {
    font-size: 32px;
    font-weight: 500;
    color: var(--color-net);
    line-height: 1.1;
    margin-top: 6px;
}

.net-pay-amount-wrapper .amount {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.net-pay-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

.net-pay-sub strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================================
   INCOME ALLOCATION / DONUT CHART
   ============================================================ */
.visuals-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.visuals-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.chart-wrapper {
    position: relative;
    max-width: 170px;
    margin: 0 auto;
}

#donut-chart {
    transform: rotate(-90deg);
}

.donut-bg {
    stroke: rgba(255, 255, 255, 0.08);
}

.donut-segment {
    fill: none;
    stroke-linecap: round;
}

.chart-inner-label {
    fill: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: 100px 100px;
    letter-spacing: 1.5px;
}

.chart-inner-percent {
    fill: var(--text-primary);
    font-size: 20px;
    font-weight: 800;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: 100px 100px;
}

.legend-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.legend-label-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.legend-value-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.legend-val {
    font-weight: 700;
    color: var(--text-primary);
}

.legend-pct {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   PAYCHECK STUB
   ============================================================ */
.paystub-card {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    position: relative;
    padding: 24px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.paystub-card h3,
.paystub-card h4 {
    font-family: var(--font-sans);
    color: var(--text-primary);
}

.paystub-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.stub-co h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.stub-co p {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.stub-meta {
    font-size: 11px;
    text-align: right;
    color: var(--text-secondary);
}

.meta-row strong {
    color: var(--text-primary);
}

.paystub-section {
    margin-bottom: 16px;
}

.paystub-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--border-focus);
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding-bottom: 2px;
}

.stub-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.stub-row.header-row {
    font-weight: bold;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.stub-row span {
    flex: 1;
}

.stub-row span.align-right {
    text-align: right;
}

.stub-row span:last-child {
    text-align: right;
}

.paystub-totals {
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    padding: 12px 0;
    margin-bottom: 16px;
}

.totals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.total-box {
    display: flex;
    flex-direction: column;
}

.total-box span {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.total-box strong {
    font-size: 14px;
    color: var(--text-primary);
}

.total-box.highlight strong {
    color: var(--color-net);
    font-weight: 900;
}

.stub-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.barcode {
    display: flex;
    height: 30px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    opacity: 0.5;
}

.bar {
    width: 2px;
    background: rgba(255, 255, 255, 0.7);
    margin-right: 1px;
}

.bar:nth-child(3n) { width: 4px; }
.bar:nth-child(4n) { width: 1px; }

.bar.text-bar {
    width: auto;
    background: transparent;
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.stub-notice {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

.stub-actions {
    margin-top: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 240px;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: var(--color-net);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.24), -6px -6px 18px rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 12px 14px 26px rgba(0, 0, 0, 0.26), -8px -8px 20px rgba(255, 255, 255, 0.06);
}

.btn-download:active {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.18), inset -3px -3px 10px rgba(255, 255, 255, 0.08);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

/* ── second .app-footer definition removed (merged into canonical block above) ── */

/* ============================================================
   PRINT CSS
   ============================================================ */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0;
        margin: 0;
    }

    .app-container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    .input-panel,
    .app-header,
    .app-footer,
    .no-print,
    .stub-actions,
    .toggle-display {
        display: none !important;
    }

    .calculator-grid {
        display: block !important;
        width: 100% !important;
    }

    .output-container {
        display: block !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .visuals-card {
        page-break-after: always;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        margin-bottom: 30px;
    }

    .paystub-card {
        border: 2px solid #000000 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        padding: 20px !important;
        width: 100% !important;
        color: #000000 !important;
    }

    .stub-row,
    .stub-co h3,
    .stub-meta,
    .stub-co p,
    .meta-row strong,
    .paystub-section h4,
    .total-box span,
    .total-box strong {
        color: #000000 !important;
    }

    .total-box {
        border: 1px solid #ddd;
        padding: 4px;
    }

    .total-box.highlight {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================================
   RESPONSIVENESS — CALCULATOR PAGES
   ============================================================ */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    body { padding: 12px; }
    .app-container { padding: 0; }
    .card { padding: 20px; }

    .visuals-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legend-wrapper { text-align: left; }

    .totals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ============================================================
   HOMEPAGE / DIRECTORY — HERO
   ============================================================ */
.home-hero {
    text-align: center;
    max-width: 900px;
    margin: 24px auto 32px auto;
    padding: 48px 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    left: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 60%);
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.14), transparent 55%);
    pointer-events: none;
}

/* On inner pages (not the homepage) reduce decorative hero overflow so header/logo isn't overlapped */
body:not(.homepage) .home-hero {
    margin-top: 8px;
    padding: 28px 20px;
}

body:not(.homepage) .home-hero::before,
body:not(.homepage) .home-hero::after {
    display: none;
}

/* Compact brand sizing on subpages (sticky position + z-index already set above) */


.home-hero .hero-tag {
    color: rgba(125, 211, 252, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-flex;
    gap: 10px;
}

.home-hero h2 {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: -0.75px;
    line-height: 1.05;
    position: relative;
    z-index: 1;
}

.home-hero p {
    font-size: 17px;
    color: rgba(248, 251, 255, 0.74);
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================
   HOMEPAGE FEATURE CARDS
   ============================================================ */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
}

.home-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.home-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.10);
    background: rgba(255, 255, 255, 0.10);
}

.home-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-card-icon svg {
    width: 28px;
    height: 28px;
}

.home-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #f8fbff;
    margin: 0;
}

.home-card p {
    color: rgba(248, 251, 255, 0.72);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.cta-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .home-hero { padding: 32px 24px; }
    .home-hero h2 { font-size: 34px; }
    body.homepage .home-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .home-card { padding: 24px; }
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-container {
    max-width: 760px;
    margin: 0 auto 40px auto;
    padding: 0 16px;
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    padding: 4px 6px 4px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-all);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 12px;
    margin-right: 6px;
    border-radius: 8px;
    cursor: pointer;
}

.search-hint {
    margin-top: 8px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.search-wrapper:focus-within {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

#state-search,
#grade-search,
#lighting-search,
#math-search {
    width: 100%;
    padding: 16px 20px 16px 54px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 999px;
    box-shadow: none;
    outline: none;
    transition: all 0.25s ease;
}

#state-search::placeholder,
#grade-search::placeholder,
#lighting-search::placeholder,
#math-search::placeholder {
    color: var(--text-muted);
}

#state-search:focus,
#grade-search:focus,
#lighting-search:focus,
#math-search:focus {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

/* ============================================================
   STATES / CALCULATOR GRID CARDS
   ============================================================ */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 64px 16px;
}

.state-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.state-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(56, 189, 248, 0.30);
    background: rgba(255, 255, 255, 0.09);
}

.state-card:hover::before {
    opacity: 1;
}

.state-card-header {
    margin-bottom: 20px;
}

.state-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Icon + title layout for cards */
.state-card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon,
.card-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.card-desc {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.35;
}

.tax-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-zero {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

.badge-flat {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.badge-prog {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.state-card:hover .btn-card {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-card svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.state-card:hover .btn-card svg {
    transform: translateX(4px);
}

/* ============================================================
   SECTION SEPARATOR
   ============================================================ */
.section-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
    margin: 64px auto;
    max-width: 1000px;
}

/* ============================================================
   RICH CONTENT CONTAINER (long-form page sections)
   ============================================================ */
.rich-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 80px 16px;
    font-family: inherit;
}

.content-section {
    margin-bottom: 80px;
    scroll-margin-top: 40px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border-radius: 2px;
}

.intro-lead-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    margin-bottom: 48px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.intro-lead-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 26px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.service-item-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-item-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   PRICING GRID
   ============================================================ */
.pricing-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pricing-tier-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(8px);
}

.pricing-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(56, 189, 248, 0.25);
}

.pricing-tier-card.featured {
    border-color: rgba(56, 189, 248, 0.40);
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.15);
}

.pricing-tier-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-size {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.plan-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.plan-features-list li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features-list li svg {
    color: var(--color-net);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-pricing {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pricing-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.22), -6px -6px 18px rgba(255, 255, 255, 0.06);
}

.btn-pricing-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
    box-shadow: 12px 14px 26px rgba(0, 0, 0, 0.26), -8px -8px 20px rgba(255, 255, 255, 0.06);
}

.btn-pricing-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-pricing-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* ============================================================
   COMPARISON COLUMNS
   ============================================================ */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.comparison-column {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.comparison-column h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-column p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Guarantee Callout */
.guarantee-callout {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.guarantee-icon {
    background: var(--color-net);
    color: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-icon svg {
    width: 18px;
    height: 18px;
}

.guarantee-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #6ee7b7;
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #a7f3d0;
}

/* ============================================================
   RESPONSIVE TABLE
   ============================================================ */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.industry-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.industry-matrix-table th {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.industry-matrix-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    line-height: 1.5;
}

.industry-matrix-table tr:last-child td {
    border-bottom: 0;
}

.industry-matrix-table tr:hover td {
    background: rgba(56, 189, 248, 0.04);
}

/* ============================================================
   TIMELINE FLOW
   ============================================================ */
.timeline-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 40px;
    padding-bottom: 24px;
}

.timeline-flow::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 16px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    border: 2px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.timeline-step h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   DOWNLOAD RESOURCE GRID
   ============================================================ */
.download-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.resource-item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.resource-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.resource-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.resource-details p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-download-resource {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.22), -6px -6px 18px rgba(255, 255, 255, 0.06);
}

.resource-item-card:hover .btn-download-resource {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 12px 14px 26px rgba(0, 0, 0, 0.26), -8px -8px 20px rgba(255, 255, 255, 0.06);
}

.resource-item-card:hover .btn-download-resource:active,
.btn-download-resource:active {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.18), inset -3px -3px 10px rgba(255, 255, 255, 0.08);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
    margin-top: 24px;
}

.faq-card-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.faq-card-item:hover {
    border-color: rgba(56, 189, 248, 0.22);
}

.faq-card-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-card-item summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-card-item summary::-webkit-details-marker {
    display: none;
}

.faq-card-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #7dd3fc;
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq-card-item[open] summary::after {
    content: '−';
}

.faq-answer-content {
    padding: 0 24px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    animation: slideDown 0.2s ease-out;
}

/* ============================================================
   BOTTOM CTA BANNER
   ============================================================ */
.bottom-cta-banner {
    background:
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.12), transparent 60%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    margin-top: 48px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.bottom-cta-banner h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.bottom-cta-banner p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(248, 251, 255, 0.65);
    max-width: 800px;
    margin: 0 auto 32px auto;
}

.bottom-cta-banner .cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.16), -6px -6px 18px rgba(255, 255, 255, 0.75);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.bottom-cta-banner .cta-btn-white:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 12px 14px 26px rgba(0, 0, 0, 0.20), -8px -8px 20px rgba(255, 255, 255, 0.75);
}

.bottom-cta-banner .cta-btn-white:active {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.18), inset -3px -3px 10px rgba(255, 255, 255, 0.75);
}

/* Media Queries for Rich Content */
@media (max-width: 768px) {
    .comparison-container { grid-template-columns: 1fr; }

    .timeline-flow {
        flex-direction: column;
        gap: 32px;
    }

    .timeline-flow::before { display: none; }
    .timeline-step { padding: 0; }

    .bottom-cta-banner { padding: 40px 24px; }
    .bottom-cta-banner h2 { font-size: 24px; }
}

/* ============================================================
   TOOL HERO BANNER (sub-pages individual calculators)
   ============================================================ */
.tool-hero {
    text-align: center;
    max-width: 800px;
    margin: 32px auto 24px auto;
    padding: 0 16px;
}

.tool-hero h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tool-hero p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

@media (max-width: 968px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition-all);
    backdrop-filter: blur(8px);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(56, 189, 248, 0.25);
}

.blog-card-image {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #7dd3fc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.blog-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 700;
    color: #7dd3fc;
    text-decoration: none;
    transition: var(--transition-all);
    display: inline-block;
    align-self: flex-start;
}

.blog-read-more:hover {
    color: #bae6fd;
    transform: translateX(4px);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.home-features {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px 16px;
    margin-top: 48px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-box {
    text-align: center;
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px auto;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   MOBILE NAV — HAMBURGER + OVERLAY
   ============================================================ */

/* On ≤ 768 px: hide desktop links, show hamburger */
@media (max-width: 768px) {
    .nav-menu { display: none !important; }
    .hamburger-btn { display: flex !important; }
}

/* Hamburger button (injected by nav.js) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 201;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(56, 189, 248, 0.40);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    display: block;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* X animation when open */
.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen mobile overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 10, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    padding: 88px 32px 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Close (×) button inside overlay */
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s;
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Individual links in mobile overlay */
.mobile-nav-link {
    font-size: 26px;
    font-weight: 700;
    color: rgba(248, 251, 255, 0.65);
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: -0.5px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
}

.mobile-nav-link:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.mobile-nav-link.active {
    color: #7dd3fc;
}

.mobile-nav-sublink {
    font-size: 18px;
    font-weight: 600;
    padding: 14px 0 14px 18px;
}

/* Light-theme overrides for mobile nav */
html[data-theme="light"] .hamburger-btn {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.14);
}
html[data-theme="light"] .hamburger-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    border-color: #0284c7;
}
html[data-theme="light"] .mobile-nav-overlay {
    background: rgba(248, 250, 252, 0.98);
}
html[data-theme="light"] .mobile-nav-close {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}
html[data-theme="light"] .mobile-nav-close:hover {
    background: rgba(15, 23, 42, 0.11);
}
html[data-theme="light"] .mobile-nav-link {
    color: #64748b;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .mobile-nav-link:hover {
    color: #0f172a;
}
html[data-theme="light"] .mobile-nav-link.active {
    color: #0284c7;
}

/* ============================================================
   THEME TOGGLE BUTTON — NAV
   ============================================================ */
.theme-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
    padding: 0;
    line-height: 1;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    transform: scale(1.08);
}

.theme-btn-icon {
    font-size: 15px;
    line-height: 1;
}

.theme-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0d1f3f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    min-width: 130px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theme-dropdown.open {
    display: block;
    animation: dropIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 13px;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: rgba(248, 251, 255, 0.75);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    text-align: left;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.theme-option.active {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

.theme-option span {
    font-size: 15px;
}

/* ============================================================
   LIGHT THEME — VARIABLE OVERRIDES
   ============================================================ */
html[data-theme="light"] {
    --bg-app: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: #ffffff;
    --border-color: rgba(15, 23, 42, 0.10);
    --border-focus: #0284c7;
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --surface-soft: rgba(15, 23, 42, 0.04);
    --surface-strong: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 28px rgba(2, 132, 199, 0.12);

    --gradient-hero: linear-gradient(135deg, rgba(15,23,42,0.04) 0%, rgba(15,23,42,0.02) 100%);
}

/* ── body background ── */
html[data-theme="light"] body {
    background:
        radial-gradient(circle at top right, rgba(186, 230, 253, 0.55), transparent 32%),
        radial-gradient(circle at 20% 20%, rgba(199, 210, 254, 0.45), transparent 18%),
        linear-gradient(180deg, #dbeafe 0%, #f1f5f9 100%);
}

/* ── sub-page body: clean white instead of blue gradient ── */
html[data-theme="light"] body:not(.homepage) {
    background: #f8fafc;
}

/* ── homepage glass container ── */
html[data-theme="light"] body.homepage .app-container {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
}

/* ── brand text (light handled by base styles now) ── */
html[data-theme="light"] .brand-text h1 span {
    background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .brand-text p {
    color: #475569;
}

/* ── theme toggle button ── */
html[data-theme="light"] .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}
html[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    border-color: #0284c7;
}
html[data-theme="light"] .theme-dropdown {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
html[data-theme="light"] .theme-option {
    color: #475569;
}
html[data-theme="light"] .theme-option:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}
html[data-theme="light"] .theme-option.active {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
}

/* ── generic cards / panels ── */
html[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .card:hover {
    border-color: rgba(2, 132, 199, 0.30);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

/* ── inputs & selects ── */
html[data-theme="light"] input[type="number"],
html[data-theme="light"] select {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.18);
    color: #0f172a;
}
html[data-theme="light"] input[type="number"]::placeholder {
    color: #94a3b8;
}
html[data-theme="light"] input[type="number"]:focus,
html[data-theme="light"] select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #ffffff;
}
html[data-theme="light"] select option {
    background: #ffffff;
    color: #0f172a;
}
html[data-theme="light"] input[type="range"] {
    background: rgba(15, 23, 42, 0.12);
}

/* ── tab container ── */
html[data-theme="light"] .tab-container {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .tab-btn {
    color: #475569;
}
html[data-theme="light"] .tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

/* ── info box read-only ── */
html[data-theme="light"] .info-box-read-only {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    color: #475569;
}

/* ── accordion ── */
html[data-theme="light"] .accordion-card {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .accordion-content {
    border-top-color: rgba(15, 23, 42, 0.08);
}

/* ── net pay card ── */
html[data-theme="light"] .net-pay-card {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
}

/* ── toggle display (pay period) ── */
html[data-theme="light"] .toggle-display {
    background: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .btn-toggle {
    color: #475569;
}

/* ── donut chart bg ── */
html[data-theme="light"] .donut-bg {
    stroke: rgba(15, 23, 42, 0.10);
}

/* ── legend items ── */
html[data-theme="light"] .legend-item {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

/* ── pay stub ── */
html[data-theme="light"] .paystub-card {
    background: #fafafa;
    border-color: rgba(15, 23, 42, 0.22);
}
html[data-theme="light"] .paystub-header {
    border-bottom-color: rgba(15, 23, 42, 0.25);
}
html[data-theme="light"] .paystub-totals {
    border-top-color: rgba(15, 23, 42, 0.22);
    border-bottom-color: rgba(15, 23, 42, 0.22);
}
html[data-theme="light"] .stub-row {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .stub-row.header-row {
    border-bottom-color: rgba(15, 23, 42, 0.20);
}
html[data-theme="light"] .paystub-section h4 {
    border-bottom-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .bar {
    background: rgba(15, 23, 42, 0.5);
}

/* footer is always dark — no light-theme override needed */

/* ── home hero ── */
html[data-theme="light"] .home-hero {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .home-hero .hero-tag {
    color: #0284c7;
}
html[data-theme="light"] .home-hero h2 {
    color: #0f172a;
}
html[data-theme="light"] .home-hero p {
    color: #475569;
}

/* ── homepage feature cards ── */
html[data-theme="light"] .home-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .home-card:hover {
    border-color: rgba(2, 132, 199, 0.30);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}
html[data-theme="light"] .home-card h3 {
    color: #0f172a;
}
html[data-theme="light"] .home-card p {
    color: #475569;
}
html[data-theme="light"] .home-card-icon {
    background: rgba(2, 132, 199, 0.10);
    color: #0284c7;
}

/* ── search bar ── */
html[data-theme="light"] .search-wrapper {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .search-wrapper:focus-within {
    border-color: rgba(2, 132, 199, 0.50);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 0 0 3px rgba(2, 132, 199, 0.12);
}
html[data-theme="light"] #state-search,
html[data-theme="light"] #grade-search,
html[data-theme="light"] #lighting-search,
html[data-theme="light"] #math-search {
    color: #0f172a;
}
html[data-theme="light"] #state-search::placeholder,
html[data-theme="light"] #grade-search::placeholder,
html[data-theme="light"] #lighting-search::placeholder,
html[data-theme="light"] #math-search::placeholder {
    color: #94a3b8;
}

/* ── state / calculator cards ── */
html[data-theme="light"] .state-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .state-card:hover {
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.30);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .btn-card {
    background: #2563eb;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ── badge colours stay vibrant; just tweak backgrounds ── */
html[data-theme="light"] .badge-zero {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
html[data-theme="light"] .badge-flat {
    background: rgba(2, 132, 199, 0.12);
    color: #0369a1;
}
html[data-theme="light"] .badge-prog {
    background: rgba(124, 58, 237, 0.10);
    color: #6d28d9;
}

/* ── section separator ── */
html[data-theme="light"] .section-separator {
    background: linear-gradient(to right, rgba(15,23,42,0), rgba(15,23,42,0.15), rgba(15,23,42,0));
}

/* ── rich content cards ── */
html[data-theme="light"] .intro-lead-card,
html[data-theme="light"] .service-item-card,
html[data-theme="light"] .pricing-tier-card,
html[data-theme="light"] .comparison-column,
html[data-theme="light"] .resource-item-card,
html[data-theme="light"] .faq-card-item,
html[data-theme="light"] .blog-card {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .service-item-card:hover,
html[data-theme="light"] .pricing-tier-card:hover,
html[data-theme="light"] .resource-item-card:hover,
html[data-theme="light"] .blog-card:hover {
    border-color: rgba(2, 132, 199, 0.28);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

html[data-theme="light"] .faq-card-item summary:hover {
    background: rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .faq-card-item[open],
html[data-theme="light"] .faq-card-item:hover {
    border-color: rgba(2, 132, 199, 0.22);
}
html[data-theme="light"] .faq-answer-content {
    border-top-color: rgba(15, 23, 42, 0.07);
}

/* ── table ── */
html[data-theme="light"] .table-responsive-wrapper {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .industry-matrix-table th {
    background: rgba(15, 23, 42, 0.04);
    border-bottom-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .industry-matrix-table td {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .industry-matrix-table tr:hover td {
    background: rgba(2, 132, 199, 0.04);
}

/* ── timeline ── */
html[data-theme="light"] .timeline-flow::before {
    background: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .step-number {
    background: rgba(2, 132, 199, 0.10);
    border-color: rgba(2, 132, 199, 0.45);
    color: #0284c7;
}

/* ── bottom CTA banner ── */
html[data-theme="light"] .bottom-cta-banner {
    background:
        radial-gradient(circle at 20% 50%, rgba(2, 132, 199, 0.10), transparent 60%),
        linear-gradient(135deg, rgba(219, 234, 254, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-color: rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .bottom-cta-banner h2 {
    color: #0f172a;
}
html[data-theme="light"] .bottom-cta-banner p {
    color: #475569;
}

/* ── features section ── */
html[data-theme="light"] .home-features {
    background: rgba(15, 23, 42, 0.02);
    border-top-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .feature-icon {
    background: rgba(2, 132, 199, 0.10);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.22);
}

/* ── blog category chip ── */
html[data-theme="light"] .blog-category {
    background: rgba(255, 255, 255, 0.90);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.25);
}

/* ── btn-download-resource ── */
html[data-theme="light"] .btn-download-resource {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.10);
    color: #0f172a;
}

/* ── guarantee callout ── */
html[data-theme="light"] .guarantee-callout {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.20);
}

/* ── search clear btn ── */
html[data-theme="light"] .search-clear-btn {
    color: #94a3b8;
}


/* ── light bg-app: match brief's #F8FAFC ── */
html[data-theme="light"] {
    --bg-app: #f8fafc;
}
html[data-theme="light"] body:not(.homepage) {
    background: #f8fafc;
}

/* footer always dark — no light override */

/* ============================================================
   GRADE FEEDBACK BANNER
   ============================================================ */
.grade-feedback {
    margin-top: 20px;
    padding: 24px 20px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1.5px solid;
    animation: fadeUp 0.4s cubic-bezier(0.4,0,0.2,1) both;
}
.feedback-emoji {
    font-size: 52px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
    animation: feedbackBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}
.feedback-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}
.feedback-subtitle {
    font-size: 13.5px;
    opacity: 0.78;
    line-height: 1.5;
}
.gf-excellent { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.28); }
.gf-excellent .feedback-title { color: #10b981; }
.gf-welldone  { background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.28); }
.gf-welldone  .feedback-title { color: #3b82f6; }
.gf-good      { background: rgba(139,92,246,0.10); border-color: rgba(139,92,246,0.28); }
.gf-good      .feedback-title { color: #8b5cf6; }
.gf-fair      { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.28); }
.gf-fair      .feedback-title { color: #f59e0b; }
.gf-fail      { background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.28);  }
.gf-fail      .feedback-title { color: #ef4444; }

@keyframes feedbackBounce {
    from { transform: scale(0.4) rotate(-10deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ============================================================
   PAGE DECORATIONS — transparent floating stickers
   ============================================================ */
.page-deco {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    font-size: 130px;
    line-height: 1;
    opacity: 0.045;
    filter: saturate(0.6) blur(0.5px);
    animation: decoFloat 8s ease-in-out infinite alternate;
}
.page-deco:nth-child(even) { animation-duration: 11s; animation-direction: alternate-reverse; }

@keyframes decoFloat {
    from { transform: translateY(0px) rotate(-4deg); }
    to   { transform: translateY(18px) rotate(4deg); }
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Hero fades in first */
.home-hero {
    animation: fadeUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}

/* Homepage feature cards stagger */
.home-card { animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.home-card:nth-child(1) { animation-delay: 0.12s; }
.home-card:nth-child(2) { animation-delay: 0.17s; }
.home-card:nth-child(3) { animation-delay: 0.22s; }
.home-card:nth-child(4) { animation-delay: 0.27s; }
.home-card:nth-child(5) { animation-delay: 0.32s; }
.home-card:nth-child(6) { animation-delay: 0.37s; }
.home-card:nth-child(7) { animation-delay: 0.42s; }

/* Listing page tool/state cards stagger */
.state-card { animation: fadeUp 0.42s cubic-bezier(0.4, 0, 0.2, 1) both; }
.state-card:nth-child(1)  { animation-delay: 0.07s; }
.state-card:nth-child(2)  { animation-delay: 0.11s; }
.state-card:nth-child(3)  { animation-delay: 0.15s; }
.state-card:nth-child(4)  { animation-delay: 0.19s; }
.state-card:nth-child(5)  { animation-delay: 0.23s; }
.state-card:nth-child(6)  { animation-delay: 0.27s; }
.state-card:nth-child(7)  { animation-delay: 0.31s; }
.state-card:nth-child(8)  { animation-delay: 0.35s; }
.state-card:nth-child(9)  { animation-delay: 0.39s; }
.state-card:nth-child(10) { animation-delay: 0.43s; }
.state-card:nth-child(11) { animation-delay: 0.47s; }
.state-card:nth-child(12) { animation-delay: 0.51s; }

/* Cards beyond 12 get the same delay so they still appear (no FOUC) */
.state-card:nth-child(n+13) { animation-delay: 0.55s; }

/* Respect user's prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .home-hero, .home-card, .state-card { animation: none; }
}

/* ============================================================
   HEADER CONSISTENCY — Light white header for all inner pages
   Matches the homepage header exactly
   ============================================================ */

/* Override the dark header with a clean white light header */
.app-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e8ecf4 !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
    height: 64px !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
}

/* On wide screens: mirror the homepage's 1200px constrained container */
@media (min-width: 1200px) {
    .app-header {
        padding: 0 calc((100% - 1200px) / 2 + 24px) !important;
    }
}

.app-header .brand,
.app-header .brand h1,
.app-header .brand h1 span { color: #1e293b !important; }
.app-header .brand h1 span { color: #2563eb !important; }

.app-header .brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    margin-right: 40px !important;
    flex-shrink: 0 !important;
}

.app-header .brand-text h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
    color: #1e293b !important;
    line-height: 1 !important;
}

.app-header .brand-text h1 span { color: #2563eb !important; }

.app-header .logo-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    flex-shrink: 0 !important;
}

.app-header .logo-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #fff !important;
}

/* Nav menu for inner pages */
.app-header .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    justify-content: flex-start !important;
}

.app-header .nav-link {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
    background: #fff !important;
    height: 36px !important;
    box-sizing: border-box !important;
}

.app-header .nav-link:hover {
    color: #2563eb !important;
    background: #f8faff !important;
    border-color: #2563eb !important;
}

.app-header .nav-link.active {
    color: #2563eb !important;
    background: #eff6ff !important;
    border-color: #2563eb !important;
    font-weight: 600 !important;
}

.app-header .nav-link::after { display: none !important; }

/* ============================================================
   NAV DROPDOWNS (Calculators / Tools) — shared for all pages
   ============================================================ */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-btn {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-caret {
    transition: transform 0.15s !important;
    flex-shrink: 0 !important;
}

.nav-dropdown-btn[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 2000;
    display: none;
    flex-direction: column;
    gap: 1px;
}

.nav-dropdown-menu.open {
    display: flex;
}

.nav-dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.12s !important;
    white-space: nowrap !important;
}

.nav-dropdown-item:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.nav-dropdown-viewall {
    border-top: 1px solid #eef1f6 !important;
    margin-top: 3px !important;
    padding-top: 10px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
}

@media (max-width: 768px) {
    .nav-dropdown-menu { display: none !important; }
}

/* Contact Us button in inner pages */
.app-header .contact-btn-header {
    background: #2563eb !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.2s !important;
    margin-left: auto !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.app-header .contact-btn-header:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}

/* Hamburger in light header */
.app-header .hamburger-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}

.app-header .hamburger-line { background: #374151 !important; }

/* header search form in light mode */
.app-header .header-search-form {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

.app-header .header-search-form:focus-within {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10) !important;
}

.app-header .header-search-icon { color: #9ca3af !important; }
.app-header .header-search-input { color: #374151 !important; }
.app-header .header-search-input::placeholder { color: #9ca3af !important; }

/* Header inner wrapper for inner pages */
.app-header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    height: 64px;
}

/* Nav right section for inner pages */
.app-header .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
}

/* ============================================================
   LANGUAGE SELECTOR — shared for all pages
   ============================================================ */
.lang-selector {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
    min-height: unset !important;
    height: 36px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.lang-btn:hover {
    background: #f8faff !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
    transform: none !important;
    box-shadow: none !important;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    min-width: 170px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 2000;
    display: none;
    flex-direction: column;
    gap: 1px;
}

.lang-dropdown.open {
    display: flex;
}

.lang-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.12s !important;
    white-space: nowrap !important;
}

.lang-option:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.lang-option.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 600 !important;
}

/* Homepage specific lang selector integration */
.hp-nav-right .lang-selector { margin-right: 4px; }
.hp-nav-right .lang-btn {
    border-color: #e2e8f0 !important;
    background: #fff !important;
    color: #374151 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .lang-dropdown {
        right: 0;
        left: auto;
    }

    .lang-btn span:first-of-type { display: none; }
}



/* ============================================================
   UNIFIED HAMBURGER HEADER — all pages, all screen sizes
   Applied after all other rules to ensure correct cascade.
   ============================================================ */

/* 1. Standard header styling for subpages — show menu on desktop, hide hamburger */
@media (min-width: 769px) {
  .app-header .nav-menu { display: flex !important; }
  .app-header .hamburger-btn,
  .hamburger-btn { display: none !important; }
}

/* 2. Hamburger button shown on mobile (<= 768px), hide desktop nav */
@media (max-width: 768px) {
  .app-header .nav-menu { display: none !important; }
  .app-header .hamburger-btn,
  .hamburger-btn { display: flex !important; }
}

/* 3. Header always white — dark mode does not affect the header */
.app-header,
html[data-theme="dark"] .app-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8ecf4 !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
}

/* 4. Logo text always dark in header */
html[data-theme="dark"] .app-header .brand-text h1 { color: #1e293b !important; }
html[data-theme="dark"] .app-header .brand-text h1 span { color: #2563eb !important; }
html[data-theme="dark"] .app-header .logo-icon { background: #2563eb !important; }
html[data-theme="dark"] .app-header .logo-icon svg { stroke: #ffffff !important; }

/* 5. Hamburger lines always dark (header is light) */
.app-header .hamburger-line,
html[data-theme="dark"] .app-header .hamburger-line { background: #374151 !important; }
.app-header .hamburger-btn,
html[data-theme="dark"] .app-header .hamburger-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}
.app-header .hamburger-btn:hover,
html[data-theme="dark"] .app-header .hamburger-btn:hover {
  background: #e2e8f0 !important;
  border-color: #2563eb !important;
}

/* 6. Injected theme toggle button in inner page headers */
.oc-theme-toggle-btn {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #374151 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, border-color 0.2s !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}
.oc-theme-toggle-btn:hover {
  background: #e2e8f0 !important;
  border-color: #2563eb !important;
}
html[data-theme="dark"] .oc-theme-toggle-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #374151 !important;
}

/* 7. Contact Us button push left when theme toggle present */
.app-header .contact-btn-header { margin-left: 0 !important; }

/* 8. Search form always hidden on inner pages (header is clean) */
.app-header .header-search-form { display: none !important; }

/* ============================================================
   STANDARD FOOTER STYLES — universal dark footer across website
   ============================================================ */
.hp-footer {
  background: #0B132B !important;
  color: #94A3B8 !important;
  padding-top: 64px !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}
html[data-theme="dark"] .hp-footer { background: #070D1E !important; }

.hp-footer .hp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-footer-grid {
  display: grid !important;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.3fr !important;
  gap: 48px !important;
  padding-bottom: 56px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.hp-footer-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.hp-footer-logo-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: #2563eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hp-footer-wordmark {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #F1F5F9 !important;
  letter-spacing: -.02em !important;
}
.hp-footer-wordmark em { font-style: normal !important; color: #38bdf8 !important; }
.hp-footer-brand p {
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: #64748B !important;
  max-width: 240px !important;
  margin-bottom: 20px !important;
}
.hp-footer-socials { display: flex !important; gap: 10px !important; }
.hp-footer-social {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94A3B8 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: all .2s !important;
}
.hp-footer-social:hover { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }

.hp-footer-col-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #F1F5F9 !important;
  margin-bottom: 18px !important;
}
.hp-footer-links { display: flex !important; flex-direction: column !important; gap: 10px !important; padding: 0 !important; list-style: none !important; margin: 0 !important; }
.hp-footer-link {
  font-size: 14px !important;
  color: #64748B !important;
  text-decoration: none !important;
  transition: all .2s !important;
  display: inline-block !important;
}
.hp-footer-link:hover { color: #CBD5E1 !important; padding-left: 4px !important; }

.hp-newsletter p {
  font-size: 13.5px !important;
  color: #64748B !important;
  margin-bottom: 14px !important;
  line-height: 1.65 !important;
}
.hp-newsletter-form { display: flex !important; gap: 10px !important; flex-direction: column !important; }
.hp-newsletter-input {
  width: 100 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px !important;
  color: #E2E8F0 !important;
  outline: none !important;
}
.hp-newsletter-btn {
  width: 100% !important;
  padding: 11px !important;
  background: #2563eb !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .2s !important;
}
.hp-newsletter-btn:hover { background: #1d4ed8 !important; }

.hp-footer-bottom {
  padding: 22px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  font-size: 13px !important;
  color: #475569 !important;
}
.hp-footer-bottom-links { display: flex !important; gap: 20px !important; flex-wrap: wrap !important; }
.hp-footer-bottom a { color: #475569 !important; text-decoration: none !important; transition: color .2s !important; }
.hp-footer-bottom a:hover { color: #94A3B8 !important; }

@media (max-width: 1024px) {
  .hp-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 768px) {
  .hp-footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hp-footer-bottom { flex-direction: column !important; text-align: center !important; }
}

/* 8. Search form always hidden on inner pages (header is clean) */
.app-header .header-search-form { display: none !important; }
