/* ============================================================
   Ledger Accounting — app.css
   Bootstrap 5 base + custom overrides only
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --sidebar-width: 240px;
    --topbar-height: 64px;

    --color-navy:       #0f1e2d;
    --color-navy-2:     #162030;
    --color-navy-3:     #1f3048;
    --color-lime:       #8dc63f;
    --color-lime-dark:  #5a8a00;
    --color-bg:         #f0f2f5;
    --color-surface:    #ffffff;
    --color-border:     #e2e6ea;
    --color-text:       #1a2535;
    --color-muted:      #8a9baa;
    --color-danger:     #e84545;
    --color-amber:      #f0a500;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
}

/* ── Layout Shell ─────────────────────────────────────────── */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.main-content {
    padding: 1.5rem;
    flex: 1;
}

@media (max-width: 991.98px) {
    .main-wrapper {
        margin-left: 0;
    }
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-navy);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1039;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid var(--color-navy-3);
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-lime), var(--color-lime-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 0.625rem;
    font-weight: bold;
    color: var(--color-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 1.25rem;
}

.nav-group-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-amber);
    padding: 0 1.25rem 0.4rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    position: relative;
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    font-size: 0.875rem;
    width: 16px;
    flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
    color: #c0d8f0;
    background: rgba(255,255,255,0.04);
}

.sidebar-nav .nav-link.active {
    color: var(--color-lime);
    background: rgba(141,198,63,0.1);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-lime);
    border-radius: 0 2px 2px 0;
}

/* Nav Badge */
.nav-badge {
    font-size: 0.625rem;
    padding: 0.15em 0.55em;
    border-radius: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.nav-badge.success {
    background: rgba(141,198,63,0.15);
    color: var(--color-lime);
}

.nav-badge.danger {
    background: rgba(232,69,69,0.15);
    color: var(--color-danger);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-navy-3);
    flex-shrink: 0;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-lime), var(--color-lime-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c0d8f0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.625rem;
    font-weight: bold;
    color: var(--color-amber);
}

.text-muted-sidebar {
    color: var(--color-danger);
    font-size: 0.875rem;
    font-weight: bold;
}

.text-muted-sidebar:hover {
    color: #6a8aaa !important;
}

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-height);
    background: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
    border-left: 1px solid var(--color-navy-3);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.topbar .breadcrumb {
    font-size: 0.6875rem;
    margin: 0;
}

.topbar .breadcrumb-item a {
    color: var(--color-muted);
    text-decoration: none;
}

.topbar .breadcrumb-item.active {
    color: var(--color-muted);
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.topbar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.8125rem;
    width: 180px;
}

.topbar-search input::placeholder { color: var(--color-muted); }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: #ffffff;
}

.btn-icon:hover {
    background: var(--color-bg);
}

/* ── Bootstrap Button Overrides ────────────────────────────── */
.btn-primary {
    background: var(--color-lime) !important;
    border-color: var(--color-lime) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(141,198,63,0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-lime-dark) !important;
    border-color: var(--color-lime-dark) !important;
    box-shadow: 0 4px 12px rgba(141,198,63,0.35) !important;
}

/* ── Period Filter ─────────────────────────────────────────── */
.period-tabs {
    display: flex;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 7px;
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.period-btn:hover { color: var(--color-text); background: var(--color-bg); }

.period-btn.active {
    background: var(--color-lime);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(141,198,63,0.35);
}

/* ── KPI Cards ─────────────────────────────────────────────── */
.kpi-card {
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
    height: 100%;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.kpi-navy {
    background: var(--color-navy);
    border: 1px solid var(--color-navy-3);
}

.kpi-lime {
    background: var(--color-lime);
    border: 1px solid var(--color-lime-dark);
}

.kpi-white {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.kpi-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.625rem;
    color: var(--color-amber) !important;
}

.kpi-navy .kpi-label  { color: #4a6a88; }
.kpi-lime .kpi-label  { color: rgba(255,255,255,0.7); }
.kpi-white .kpi-label { color: var(--color-muted); }

.kpi-value {
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.kpi-navy .kpi-value  { color: #ffffff; }
.kpi-lime .kpi-value  { color: #ffffff; }
.kpi-white .kpi-value { color: var(--color-text); }

.kpi-trend {
    font-size: 0.6875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.kpi-trend.up   { color: var(--color-lime); }
.kpi-trend.down { color: var(--color-danger); font-size: 0.8rem; }

.kpi-lime .kpi-trend { color: rgba(255,255,255,0.85) !important; }
.kpi-navy .kpi-trend.up { color: var(--color-lime); font-size: 0.8rem; }

.kpi-sparkline {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0.5;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card-custom {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header-custom {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-title-custom {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.2px;
}

.card-footer-custom {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
}

/* ── Chart ─────────────────────────────────────────────────── */
.chart-container {
    display: flex;
    gap: 0.5rem;
    height: 180px;
}

.chart-y-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.625rem;
    color: var(--color-muted);
    text-align: right;
    padding-bottom: 22px;
    flex-shrink: 0;
    width: 38px;
}

.chart-bars-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-gridlines {
    position: absolute;
    inset: 0;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    border-bottom: 1px solid var(--color-border);
}

.chart-gridlines > div {
    border-top: 1px dashed var(--color-border);
    width: 100%;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding-bottom: 22px;
    position: relative;
    z-index: 1;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.bar-group.dim .bar { opacity: 0.25; }

.bar-pair {
    width: 100%;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: calc(100% - 22px);
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.bar:hover { opacity: 0.8; }

.bar-revenue {
    background: linear-gradient(to top, var(--color-lime-dark), var(--color-lime));
}

.bar-expense {
    background: #d0dce8;
}

.bar-projected {
    background: transparent !important;
    border: 1.5px dashed var(--color-lime);
    border-bottom: none;
    opacity: 0.5;
}

.bar-projected-exp {
    background: transparent !important;
    border: 1.5px dashed #d0dce8;
    border-bottom: none;
    opacity: 0.4;
}

.bar-group.current .bar-revenue {
    box-shadow: 0 0 10px rgba(141,198,63,0.4);
}

.bar-label {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.bar-group.current .bar-label { color: var(--color-lime); font-weight: 600; }

/* Chart Legend */
.chart-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    color: var(--color-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.bg-lime { background: var(--color-lime) !important; }
.bg-slate { background: #d0dce8; }
.border-dashed-lime {
    background: transparent;
    border: 1.5px dashed var(--color-lime);
    border-radius: 3px;
}

/* ── Table ─────────────────────────────────────────────────── */
.table-custom {
    font-size: 0.8125rem;
}

.table-custom thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    background: #f7f8fa;
    border-bottom: 1px solid var(--color-border);
    padding: 0.625rem 1rem;
    white-space: nowrap;
}

.table-custom tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.12s;
    cursor: pointer;
}

.table-custom tbody tr:last-child { border-bottom: none; }

.table-custom tbody tr:hover { background: #f7f8fa; }

.table-custom td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.invoice-id {
    color: var(--color-lime-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Status Badges ─────────────────────────────────────────── */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2em 0.65em;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-status-paid    { background: rgba(141,198,63,0.1);  color: var(--color-lime-dark); border-color: rgba(141,198,63,0.25); }
.badge-status-paid::before { background: var(--color-lime); }

.badge-status-pending { background: rgba(240,165,0,0.1);   color: #b87800;               border-color: rgba(240,165,0,0.25); }
.badge-status-pending::before { background: var(--color-amber); }

.badge-status-overdue { background: rgba(232,69,69,0.08);  color: #c43030;               border-color: rgba(232,69,69,0.2); }
.badge-status-overdue::before { background: var(--color-danger); }

.badge-status-partial { background: rgba(15,30,45,0.07);   color: var(--color-navy);     border-color: rgba(15,30,45,0.15); }
.badge-status-partial::before { background: var(--color-navy); }

/* ── Tabs (Invoice filter) ─────────────────────────────────── */
.nav-tabs-custom {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border-bottom: none;
}

.nav-tabs-custom a {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.nav-tabs-custom a:hover { color: var(--color-text); }
.nav-tabs-custom a.active { color: var(--color-lime-dark); border-bottom-color: var(--color-lime); }

/* ── Donut ─────────────────────────────────────────────────── */
.donut-wrapper {
    width: 150px;
    height: 150px;
}

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

.donut-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--color-border);
}

.donut-legend-row:last-child { border-bottom: none; }

.text-success-dark { color: var(--color-lime-dark) !important; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.text-danger .alert-icon-wrap,
.alert-icon-wrap.text-danger  { background: rgba(232,69,69,0.08); }
.alert-icon-wrap.text-warning,
.text-warning .alert-icon-wrap { background: rgba(240,165,0,0.08); }
.alert-icon-wrap.text-success,
.text-success .alert-icon-wrap { background: rgba(141,198,63,0.1); }

/* ── Plan Rows ─────────────────────────────────────────────── */
.plan-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.plan-row:last-child { border-bottom: none; }

.plan-name {
    font-size: 0.75rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.plan-bar-track {
    height: 5px;
    background: var(--color-bg);
    border-radius: 10px;
    overflow: hidden;
}

.plan-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(to right, var(--color-lime-dark), var(--color-lime));
    transition: width 0.4s ease;
}

.plan-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Client Avatars ────────────────────────────────────────── */
.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.bg-lime-avatar  { background: linear-gradient(135deg, var(--color-lime-dark), var(--color-lime)); }
.bg-navy-avatar  { background: linear-gradient(135deg, var(--color-navy), #2e5070); color: #8dc63f; }
.bg-slate-avatar { background: #dde4eb; color: #5a7a90; }
.bg-muted-avatar { background: #eef0f2; color: var(--color-muted); }

/* ── Expense Rows ──────────────────────────────────────────── */
.expense-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0.75rem;
}

.expense-row:last-child { border-bottom: none; }

.expense-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Misc / Utilities ──────────────────────────────────────── */
.min-width-0 { min-width: 0; }

.bg-danger-subtle { background: rgba(232,69,69,0.1) !important; }
.bg-navy-subtle { background: rgba(15, 30, 45, 0.05) !important; }
.lookup-page-intro {
    max-width: 640px;
}

.lookup-page-intro p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.lookup-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
}

.lookup-modal .modal-content {
    background: var(--color-navy);
    color: #fff;
}

.lookup-modal .modal-header,
.lookup-modal .modal-footer {
    border-color: rgba(255,255,255,0.08) !important;
}

.lookup-modal-note {
    color: #c0d8f0;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.lookup-empty-hint {
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.table-entity-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.table-entity-meta {
    font-size: 0.6875rem;
    color: var(--color-muted);
}

.auth-card {
    width: 100%;
    max-width: 600px;
    background: var(--color-navy-2);
    border: 1px solid var(--color-navy-3);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-brand .brand-icon {
    margin: 0 auto 0.75rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--color-lime), var(--color-lime-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.auth-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.auth-subtitle {
    color: var(--color-muted);
    font-size: 0.875rem;
}
.form-label {
    color: #c0d8f0;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-control,
.form-select,
textarea.form-control,
input.form-control,
select.form-select {
    background: var(--color-navy-3);
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus,
input.form-control:focus,
select.form-select:focus {
    background: var(--color-navy-3);
    border-color: var(--color-lime);
    box-shadow: 0 0 0 0.25rem rgba(141,198,63,0.15);
    color: #fff;
}

.form-control::placeholder,
textarea.form-control::placeholder,
input.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-select option {
    color: #1a2535;
    background: #fff;
}
.btn-auth {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    margin-top: 1rem;
    background: var(--color-lime) !important;
    border-color: var(--color-lime) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(141,198,63,0.3) !important;
}
.btn-auth:hover {
    background: var(--color-lime-dark) !important;
    border-color: var(--color-lime-dark) !important;
}
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
}
.auth-links a {
    color: var(--color-lime);
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover {
    text-decoration: underline;
}
.form-check-label {
    color: var(--color-muted);
    font-size: 0.8125rem;
}
.form-check-input {
    border-color: rgba(255,255,255,0.1);
}
.form-check-input[type="checkbox"]:not(:checked) {
    background-color: #fff;
    border-color: var(--color-lime);
}
.form-check-input:checked {
    background-color: var(--color-lime);
    border-color: var(--color-lime);
}
.invalid-feedback {
    font-size: 0.75rem;
    color: #ff6b6b;
}
.bg-navy {
    background: var(--color-navy);
}
.breadcrumb-item+.breadcrumb-item::before {
    color: var(--color-muted) !important;
}

/* ── Invoices ─────────────────────────────────────────────── */
.invoice-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.invoice-tab-btn {
    border: 1px solid var(--color-navy-3);
    background: #fff;
    color: var(--color-navy);
    font-weight: 600;
}

.invoice-tab-btn:hover {
    border-color: var(--color-lime);
    color: var(--color-navy);
    background: rgba(141,198,63,0.08);
}

.invoice-tab-btn.active {
    background: var(--color-lime);
    border-color: var(--color-lime);
    color: #fff;
}

.invoice-tab-btn .badge {
    border-radius: 999px;
    font-size: 0.7rem;
}

.invoice-tab-btn.active .badge {
    background: #fff !important;
    color: var(--color-lime-dark) !important;
}

.invoice-tab-btn:not(.active) .badge {
    background: var(--color-navy) !important;
    color: #fff !important;
}

.btn-po-print {
    border: 1px solid var(--color-lime);
    color: var(--color-lime-dark);
    background: rgba(141,198,63,0.08);
    font-weight: 600;
}

.btn-po-print:hover {
    border-color: var(--color-lime-dark);
    color: #fff;
    background: var(--color-lime-dark);
}

/* ── Shared Form Utilities ────────────────────────────────── */
.form-control-lg,
.form-select-lg {
    font-size: 0.95rem;
    border-radius: 10px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.custom-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.custom-switch .form-check-input:checked {
    background-color: var(--color-lime);
    border-color: var(--color-lime);
}

.input-group-text {
    font-size: 0.95rem;
    border-radius: 10px;
}

.text-navy {
    color: var(--color-navy);
}

.btn-lime {
    background-color: var(--color-lime);
    color: var(--color-navy);
    border: none;
    font-weight: 600;
}

.btn-lime:hover {
    background-color: var(--color-lime-dark);
    color: #fff;
}

.text-lime-dark {
    color: var(--color-lime-dark);
}

/* ── DataTables ───────────────────────────────────────────── */
:root {
    --dt-row-selected: 141, 198, 63;
    --dt-row-selected-text: 255, 255, 255;
    --dt-row-selected-link: 255, 255, 255;
    --dt-row-stripe: 0, 0, 0;
    --dt-row-hover: 0, 0, 0;
    --dt-column-ordering: 0, 0, 0;
    --dt-search: 0, 0, 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0;
    margin-left: 0;
    display: inline;
    border: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 0 !important;
    background: none !important;
}

div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
    margin-bottom: 0;
}

div.dataTables_wrapper div.dataTables_length select {
    width: auto;
    display: inline-block;
}

.table-custom thead th {
    border-bottom: 2px solid var(--color-border) !important;
    background-color: #f8f9fa !important;
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem !important;
}

.table-custom tbody td {
    padding: 1rem !important;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
}

.page-item.active .page-link {
    background-color: var(--color-lime);
    border-color: var(--color-lime);
}

.page-link {
    color: var(--color-navy);
    border-radius: 8px;
    margin: 0 2px;
}

.dt-buttons .btn {
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    margin-right: 0.35rem;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-navy);
    transition: all 0.2s;
}

.dt-buttons .btn:hover {
    background: var(--color-bg);
    border-color: var(--color-navy-3);
}

.search-wrapper {
    position: relative;
    max-width: 300px;
}

.search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    z-index: 10;
}

.search-wrapper input {
    padding-left: 35px !important;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Flatpickr Theme ──────────────────────────────────────── */
.flatpickr-calendar {
    background: var(--color-navy-2) !important;
    border: 1px solid var(--color-navy-3) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--color-lime) !important;
    border-color: var(--color-lime) !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--color-navy-2) !important;
    color: #fff !important;
    fill: #fff !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #fff !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #fff !important;
}

.flatpickr-weekday {
    color: var(--color-muted) !important;
}

.flatpickr-day {
    color: #eee !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(255,255,255,0.1) !important;
}

/* ── Dashboard ────────────────────────────────────────────── */
.chart-wrapper { position: relative; height: 220px; width: 100%; }
.kpi-sub { font-size: 0.7rem; color: var(--color-muted); margin-top: 2px; }
.kpi-duo-row { display: flex; gap: 1rem; margin-top: 0.5rem; }
.kpi-duo-item { flex: 1; }
.kpi-duo-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.kpi-duo-value { font-size: 0.9rem; font-weight: 700; color: #fff; }
.kpi-divider { width: 1px; background: rgba(255,255,255,0.1); }

.month-selector .form-select {
    background-color: var(--color-navy-3);
    border: 1px solid var(--color-navy-3);
    color: #fff;
    font-size: 0.8125rem;
    border-radius: 8px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    cursor: pointer;
}

.month-selector .form-select option {
    color: #1a2535;
    background: #fff;
}

.month-selector .form-select:focus {
    border-color: var(--color-lime);
    box-shadow: 0 0 0 0.2rem rgba(141,198,63,0.15);
}

.month-selector .btn-go {
    background: var(--color-lime);
    color: #fff;
    border: none;
    font-size: 0.8125rem;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
}

.month-selector .btn-go:hover {
    background: var(--color-lime-dark);
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.stat-pill.collected { background: rgba(141,198,63,0.15); color: var(--color-lime); }
.stat-pill.pending { background: rgba(240,165,0,0.15); color: #f0a500; }
.stat-pill.danger { background: rgba(232,69,69,0.15); color: var(--color-danger); }

/* ── Auth Layout Bodies ───────────────────────────────────── */
.guest-auth-page {
    background-color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-layout-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ── Invoices (Print + Receipt) ──────────────────────────── */
.invoice-receipt-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.receipt-container {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    position: relative;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #eee;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f1e2d;
    margin-bottom: 5px;
}

.receipt-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #8a9baa;
    font-weight: 700;
}

.item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #0f1e2d;
    font-weight: 800;
    font-size: 18px;
}

.status-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 60px;
    font-weight: 900;
    color: rgba(25, 135, 84, 0.15);
    text-transform: uppercase;
    border: 5px solid;
    padding: 10px 30px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 0;
}

.info-group {
    margin-bottom: 20px;
}

.info-label {
    font-size: 11px;
    color: #8a9baa;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
}

@media print {
    body * {
        visibility: hidden;
    }

    #printableInvoice,
    #printableInvoice * {
        visibility: visible;
    }

    #printableInvoice {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
    }

    .btn,
    .breadcrumb,
    footer,
    .sidebar,
    .topbar,
    .no-print {
        display: none !important;
    }

    .invoice-receipt-page {
        background: #fff;
    }

    .receipt-container {
        box-shadow: none;
        margin: 0 auto;
        padding: 20px;
    }
}

/* ── Landing Page ─────────────────────────────────────────── */
.landing-navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 30, 45, 0.08);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    z-index: 1050;
}

.brand-text-container .fw-bold {
    color: var(--color-navy);
    font-size: 1.1rem;
    line-height: 1;
}

.brand-text-container .small {
    color: var(--color-lime-dark) !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.btn-landing-login {
    color: var(--color-navy);
    font-weight: 600;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-landing-login:hover {
    background: rgba(15, 30, 45, 0.04);
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-landing-demo {
    background: linear-gradient(135deg, var(--color-lime), var(--color-lime-dark));
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(141, 198, 63, 0.3);
    transition: all 0.3s ease;
}

.btn-landing-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(141, 198, 63, 0.4);
    color: #fff;
}

.landing-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(141,198,63,0.12), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(15,30,45,0.06), transparent 32%),
        #f7f9fc;
    overflow-x: hidden;
}

.landing-shell {
    position: relative;
}

.landing-shell::before,
.landing-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(2px);
}

.landing-shell::before {
    width: 180px;
    height: 180px;
    background: rgba(141,198,63,0.2);
    top: 40px;
    right: -40px;
}

.landing-shell::after {
    width: 140px;
    height: 140px;
    background: rgba(15,30,45,0.12);
    bottom: 180px;
    left: -35px;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--color-navy), var(--color-navy-2));
    color: #fff;
    border-radius: 18px;
    padding: 3rem;
}

.landing-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(141,198,63,0.32) 0%, rgba(141,198,63,0) 65%);
    top: -110px;
    right: -80px;
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    pointer-events: none;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-dashboard-preview {
    position: relative;
    perspective: 1200px;
    margin-bottom: 2rem;
}

.dashboard-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    padding: 1rem;
    position: relative;
    z-index: 2;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 100%;
}

.hero-dashboard-preview:hover .dashboard-main {
    transform: rotateY(-5deg) rotateX(2deg);
}

.dashboard-floating-card {
    position: absolute;
    background: #fff;
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.card-1 { top: -20px; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 20px; left: -30px; animation-delay: 1.5s; }
.card-3 { top: 40%; right: -40px; animation-delay: 0.7s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-right: 0.4rem;
    margin-bottom: 0.5rem;
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
}

.hero-kpi {
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    padding: 0.65rem;
    background: rgba(255,255,255,0.06);
}

.hero-kpi strong {
    display: block;
    color: var(--color-lime);
    font-size: 1rem;
    line-height: 1.1;
}

.hero-kpi span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.78);
}

.hero-illustration {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 0.95rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(1.5px);
}

.hero-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

.floating-mini-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 8px 18px rgba(15,30,45,0.08);
}

.floating-mini-card .mini-label {
    font-size: 0.7rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.floating-mini-card .mini-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-navy);
}

.module-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15,30,45,0.12);
    border-color: var(--color-lime);
}

.module-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(141,198,63,0.1), rgba(141,198,63,0.25));
    color: var(--color-lime-dark);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
}

.process-step {
    position: relative;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: #fff;
    color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.step-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-lime), var(--color-lime-dark));
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(141,198,63,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 1;
    position: relative;
}

.process-step:hover .step-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(141,198,63,0.4);
}

.step-line {
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, var(--color-border) 50%, rgba(255,255,255,0) 0%);
    background-position: top;
    background-size: 15px 1px;
    background-repeat: repeat-x;
    z-index: 0;
    opacity: 0.4;
}

@media (max-width: 991.98px) {
    .step-line { display: none; }
}

.contact-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
}

.contact-card .form-label {
    color: var(--color-navy);
    font-weight: 600;
}

.contact-card-v2 {
    background: #ffffff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.contact-card-v2 .form-label {
    color: var(--color-navy);
    font-weight: 600;
}

.contact-card-v2 .form-control {
    color: var(--color-navy) !important;
}

.contact-card-v2 .form-control::placeholder {
    color: #a0aec0 !important;
}

.contact-card-v2::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(141, 198, 63, 0.08), transparent 70%);
    pointer-events: none;
}

.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-lime) !important;
}

.form-floating-custom .form-control:focus {
    background: #fff !important;
    border-color: var(--color-lime) !important;
    box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.1) !important;
    color: var(--color-navy) !important;
}

.text-navy {
    color: var(--color-navy);
}

.highlights-band {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(15,30,45,0.02), rgba(141,198,63,0.08));
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.why-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15,30,45,0.25);
}

.why-band::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(141,198,63,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-item {
    border: 1px solid rgba(15,30,45,0.08);
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem 0.9rem;
    height: 100%;
}

.highlight-item .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.highlight-item .value {
    margin-top: 0.3rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--color-navy);
}

.highlight-item .hint {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #5c6d7d;
}

.engagement-ribbon {
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.ribbon-container {
    background: linear-gradient(135deg, rgba(141, 198, 63, 0.05), rgba(15, 30, 45, 0.02));
}

.process-connection-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.connection-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--color-lime);
    border-radius: 50%;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.15);
}

.step-dot.highlight {
    background: var(--color-lime);
    box-shadow: 0 0 0 6px rgba(141, 198, 63, 0.2);
}

.step-content {
    text-align: center;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
}

.step-desc {
    font-size: 0.7rem;
    color: var(--color-muted);
}

.connection-line {
    flex: 1;
    height: 3px;
    background: rgba(15, 30, 45, 0.08);
    position: relative;
    margin: 0 5px;
    transform: translateY(-24px);
    z-index: 0;
}

.line-progress {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-lime), var(--color-lime-dark));
    width: 0%;
    animation: fillLine 3s ease-in-out forwards;
}

@keyframes fillLine {
    to { width: 100%; }
}

@media (max-width: 1199.98px) {
    .process-connection-flow {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    .connection-step {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0.5rem 0;
    }
    .step-dot {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .step-content {
        text-align: left;
    }
    .connection-line {
        width: 3px;
        height: 20px;
        flex: none;
        transform: translate(6px, -5px);
        margin: 0;
    }
    .line-progress {
        width: 100%;
        height: 0%;
        background: linear-gradient(to bottom, var(--color-lime), var(--color-lime-dark));
        animation: fillLineVertical 2s ease-in-out forwards;
    }
    @keyframes fillLineVertical {
        to { height: 100%; }
    }
}

.platform-intro-band {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: linear-gradient(120deg, #ffffff 0%, #f4f9ee 100%);
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(141,198,63,0.35);
    background: rgba(141,198,63,0.08);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--color-navy);
}

.platform-pill i {
    color: var(--color-lime-dark);
    font-size: 0.95rem;
}

.module-card .module-list {
    padding-left: 1.1rem;
    margin: 0;
}

.module-card .module-list li {
    margin-bottom: 0.25rem;
}

.why-band {
    background: linear-gradient(120deg, var(--color-navy), var(--color-navy-2));
    border-radius: 18px;
    color: #fff;
}

.why-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.why-check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(141,198,63,0.22);
    color: var(--color-lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 0.05rem;
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 575.98px) {
    .main-content { padding: 0.75rem; }
    .topbar       { padding: 0 0.75rem; }
    .kpi-card     { padding: 1rem; }
    .kpi-value    { font-size: 1.125rem; }
    .kpi-label    { font-size: 0.625rem; margin-bottom: 0.4rem; }
    .period-btn   { padding: 0.3rem 0.6rem; font-size: 0.6875rem; }
    .card-header-custom { padding: 0.75rem 1rem; }
    .hero-kpi-grid { grid-template-columns: 1fr; }
    .brand-text-container { display: none; }
    .hero-chip { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
    .landing-hero { text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-visual { margin-top: 2rem; }
    .dashboard-floating-card { display: none; }
    .dashboard-main { transform: none !important; }
    .landing-navbar { padding: 0.6rem 0.8rem; margin-top: 0.5rem !important; }
    .btn-landing-login, .btn-landing-demo { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
    .why-band { padding: 2rem 1.25rem !important; }
    .why-check-item { text-align: left; }
    .process-step { padding: 0.5rem; }
    .step-icon-wrapper { width: 64px; height: 64px; margin-bottom: 1rem; }
    .step-icon { font-size: 1.4rem; border-radius: 15px; }
}

@media (max-width: 767.98px) {
    .chart-container { height: 140px; }
    .chart-y-labels  { display: none; }
    .hero-kpi-grid { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 1.5rem; }
    .dashboard-floating-card { padding: 0.5rem; }
    .card-1 { right: -10px; top: -10px; }
    .card-2 { left: -10px; bottom: 10px; }
    .card-3 { display: none; }
    .highlights-band { padding: 1.5rem !important; }
    .platform-intro-band { padding: 1.5rem !important; }
}

@media (max-width: 991.98px) {
    .landing-hero { padding: 2rem 1.5rem; }
    .hero-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .hero-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
