/* ═══════════════════════════════════════════════════════════
   NVC File Check — Custom CSS
   Brand: American Flag Colors
   Primary Navy: #002868 | Accent Red: #BF0A30 | White: #FFFFFF
═══════════════════════════════════════════════════════════ */

:root {
    --primary:       #002868;
    --primary-dark:  #001a4a;
    --primary-light: #0044b0;
    --accent:        #BF0A30;
    --accent-dark:   #960822;
    --bg:            #FFFFFF;
    --text:          #1A1A2E;
    --border:        #E8EDF5;
    --bg-light:      #F4F6FB;
    --success:       #2E7D32;
    --warning:       #F57F17;
    --error:         #C62828;
    --sidebar-w:     260px;
    --topbar-h:      60px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-light);
}

.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

/* ─── Background ─────────────────────────────────────────── */
.bg-light-custom { background: var(--bg-light) !important; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar-ds260 {
    background: var(--primary);
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0,40,104,.25);
}

.navbar-ds260 .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    padding: 7px 14px !important;
    transition: all .2s;
}

.navbar-ds260 .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}

.navbar-ds260 .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-ds260 .navbar-toggler-icon { filter: invert(1); }

.brand-shield {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    flex-shrink: 0;
}

/* Beta version badge — used beside the brand logo across all layouts */
.beta-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #BF0A30, #d6324e);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(191,10,48,.25);
    margin-left: 6px;
    vertical-align: middle;
}
.beta-badge.beta-badge-light {
    background: rgba(255,255,255,.15);
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,.25);
}

/* ── Top-of-page Site Notification Banner ── */
.site-notification {
    width: 100%;
    padding: 10px 0;
    font-size: .9rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: relative;
    z-index: 1100;
}
.site-notification .container { gap: 12px; }
.site-notification__icon { font-size: 1.05rem; flex-shrink: 0; }
.site-notification__content { flex: 1 1 auto; min-width: 0; }
.site-notification__content a { color: inherit; text-decoration: underline; font-weight: 600; }
.site-notification__close {
    background: transparent; border: 0;
    color: inherit; opacity: .55;
    padding: 4px 8px; border-radius: 6px;
    cursor: pointer; flex-shrink: 0;
    font-size: .85rem;
    transition: opacity .15s, background .15s;
}
.site-notification__close:hover { opacity: 1; background: rgba(0,0,0,.06); }
.site-notification--yellow { background: #fff8e1; color: #7a5b00; }
.site-notification--green  { background: #e6f6ec; color: #1b5e20; }
.site-notification--red    { background: #fde8eb; color: #8a1024; }
@media (max-width: 576px) {
    .site-notification { font-size: .82rem; padding: 8px 0; }
}

.brand-name {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.3px;
}

.brand-tag {
    font-size: 10px;
    color: #B0C4DE;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-left: 6px;
}

.user-avatar-sm {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700;
}

/* ─── Background Utilities ────────────────────────────────── */
.bg-primary-ds { background-color: var(--primary) !important; }
.bg-accent-ds  { background-color: var(--accent)  !important; }

/* ─── Shared Page UI ──────────────────────────────────────── */
.section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary);
    opacity: .65;
    margin-bottom: 14px;
}
.stat-box {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.stat-box .stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-box .stat-lbl {
    font-size: .72rem;
    color: #6c757d;
    margin-top: 3px;
}
.page-header { margin-bottom: 1.75rem; }
.page-header .back-btn { margin-right: .75rem; }
.quick-link-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    color: #495057;
    font-size: .88rem;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color .15s;
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { color: var(--primary); }
.quick-link-item .bi { font-size: 1rem; color: var(--primary); opacity: .7; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-primary-ds {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 22px;
    transition: background .2s, transform .1s, box-shadow .2s;
}
.btn-primary-ds:hover {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,40,104,.3);
}
.btn-primary-ds:active { transform: scale(.98); }

.btn-accent {
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 22px;
    transition: background .2s, box-shadow .2s;
}
.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 15px rgba(191,10,48,.3);
}

.btn-primary-ds.btn-sm { padding: .25rem .6rem; font-size: .875rem; border-radius: 6px; }
.btn-accent.btn-sm     { padding: .25rem .6rem; font-size: .875rem; border-radius: 6px; }

/* ─── Auth Cards ─────────────────────────────────────────── */
.auth-card {
    border: none;
    border-radius: 16px;
    border-top: 4px solid var(--primary);
}

.auth-icon-wrap {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* ─── Form Controls ──────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--border);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,40,104,.12);
}

.input-group-text {
    background: var(--bg-light);
    border-color: var(--border);
    color: var(--primary);
    border-radius: 8px 0 0 8px !important;
}

.form-label { font-size: 13px; color: #444; margin-bottom: 6px; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer-ds260 {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    font-size: 13px;
}
.footer-ds260 a { color: #B0C4DE; text-decoration: none; }
.footer-ds260 a:hover { color: #fff; }

/* ─── Dashboard Welcome Banner ───────────────────────────── */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::after {
    content: '★';
    position: absolute;
    right: 20px; top: -20px;
    font-size: 120px;
    opacity: .05;
    color: #fff;
    pointer-events: none;
}

/* ─── Stat Mini Cards ────────────────────────────────────── */
.stat-mini-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid var(--border);
    transition: transform .2s;
}
.stat-mini-card:hover { transform: translateY(-2px); }
.stat-mini-card i { font-size: 1.8rem; }
.stat-mini-val { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 6px 0 2px; }
.stat-mini-label { font-size: 12px; color: #888; font-weight: 500; }

/* ─── How it Works Steps ────────────────────────────────── */
.how-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

.step-num {
    width: 30px; height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Admin Layout ───────────────────────────────────────── */
.admin-body { background: #f0f2f5; }

#admin-wrapper { min-height: 100vh; }

#admin-sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.sidebar-admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-avatar {
    width: 38px; height: 38px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all .2s;
    border-radius: 0;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-nav li a.active {
    border-left: 3px solid var(--accent);
    background: rgba(191,10,48,.2);
}

.sidebar-nav li a.disabled-link {
    opacity: .5;
    pointer-events: none;
    cursor: not-allowed;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.4);
    padding: 8px 18px 4px;
}

.sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.sidebar-logout {
    color: rgba(255,255,255,.7) !important;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.sidebar-logout:hover { color: #fff !important; }

#admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.admin-page-content {
    padding: 28px;
    flex: 1;
}

/* ─── Admin Stat Cards ───────────────────────────────────── */
.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    margin-top: 4px;
}

/* ─── Admin Login Page ───────────────────────────────────── */
.admin-auth-body {
    background: linear-gradient(135deg, #001a4a 0%, #002868 50%, #960822 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.admin-login-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.admin-login-box {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.admin-login-icon {
    width: 72px; height: 72px;
    background: var(--accent);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(191,10,48,.4);
}

.admin-input {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.2) !important;
    color: #fff !important;
    border-radius: 0 8px 8px 0 !important;
}
.admin-input::placeholder { color: rgba(255,255,255,.4) !important; }
.admin-input:focus {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.4) !important;
    box-shadow: none !important;
}

.admin-input-icon {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.2) !important;
    color: rgba(255,255,255,.7) !important;
}

.admin-eye-btn {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.2) !important;
    color: rgba(255,255,255,.7) !important;
    border-radius: 0 8px 8px 0 !important;
}
.admin-eye-btn:hover { background: rgba(255,255,255,.15) !important; }

/* ─── Alert overrides ────────────────────────────────────── */
.alert { border-radius: 10px; font-size: 14px; }

/* ─── Table ──────────────────────────────────────────────── */
.table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #666; }
.table td { font-size: 13.5px; vertical-align: middle; }

/* ─── Cards ──────────────────────────────────────────────── */
.card { border-radius: 12px; }
.card-header { border-radius: 12px 12px 0 0 !important; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c5cfe0; border-radius: 3px; }

/* ─── Inline Drop Zone (per document card) ───────────────── */
.dz-inline {
    border: 2px dashed #c5cfe0;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8fafc;
    position: relative;
    font-size: .82rem;
    color: #6b7280;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dz-inline:hover,
.dz-inline.dragover {
    border-color: var(--primary);
    background: #eef2fb;
    color: var(--primary);
}
.dz-inline.has-file {
    border-color: #28a745;
    background: #f0fff4;
    color: #155724;
}
.dz-inline input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.dz-inline strong { color: var(--primary); }
.dz-inline.has-file strong { color: #155724; }
.dz-fname { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-inline.dz-disabled {
    opacity: .6;
    cursor: default;
    pointer-events: none;
    background: #f3f4f6;
    border-style: solid;
    border-color: #d1d5db;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    #admin-sidebar { display: none; }
    #admin-sidebar.show { display: flex; position: fixed; z-index: 1050; }
}

@media (max-width: 576px) {
    .admin-page-content { padding: 16px; }
    .admin-login-box { padding: 28px 22px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — USER PAGES
═══════════════════════════════════════════════════════════ */

/* ─── Tablet & below (≤991px) ─────────────────────────────── */
@media (max-width: 991px) {
    /* Page-wide layout navbar (navbar-ds260) collapse */
    .navbar-ds260 .navbar-collapse {
        margin-top: 10px;
        padding-bottom: 8px;
        border-top: 1px solid rgba(255,255,255,.15);
    }
    .navbar-ds260 .navbar-nav { gap: 4px; }
    .navbar-ds260 .navbar-nav .nav-link {
        padding: 10px 14px !important;
        border-radius: 6px;
    }
    .navbar-ds260 .navbar-nav .btn { width: 100%; margin-top: 6px; }

    /* The 64px container height is fixed only on desktop. On mobile the open
       menu wraps to a second row, so let the bar grow instead of overflowing
       (which made the menu overlap the page and the logo drift up). */
    .app-nav .container {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        align-items: center;
    }
    .app-nav .navbar-brand { align-self: center; }

    /* Navbar collapse area */
    .app-nav .navbar-collapse {
        flex-basis: 100%;
        margin-top: 8px;
        padding-bottom: 14px;
        border-top: 1px solid #eef0f5;
    }
    .app-nav .navbar-nav { gap: 2px !important; align-items: stretch !important; }
    .app-nav .navbar-nav .nav-link { padding: 10px 12px !important; }
    .app-nav .user-chip {
        width: 100%;
        justify-content: flex-start;
        padding: 8px 12px;
    }
    .app-nav .user-chip .name { max-width: none; flex: 1; }
    .app-nav .dropdown { width: 100%; }
    .app-nav .dropdown-menu { width: 100%; }
    .app-nav a[href*="login"],
    .app-nav a[href*="register"] {
        width: 100%;
        text-align: center;
    }

    /* Container side padding */
    main > .container,
    main.py-5 > .container { padding-left: 14px; padding-right: 14px; }
}

/* ─── Phone (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* Section padding on landing/main pages */
    main.py-5 { padding-top: 1.5rem !important; padding-bottom: 2rem !important; }

    /* Page headers — back btn + title stacks cleanly */
    .page-header,
    main h2.fw-bold { font-size: 1.4rem; }
    .breadcrumb { font-size: 11.5px; flex-wrap: wrap; }

    /* Card body default padding */
    .card-body.p-4 { padding: 1rem !important; }
    .card-body.p-5,
    .card-body.p-md-5 { padding: 1.25rem !important; }
    .card-header.py-3.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* Dashboard welcome banner */
    .dashboard-welcome { padding: 20px 18px; border-radius: 14px; }
    .dashboard-welcome h3 { font-size: 1.25rem; }
    .dashboard-welcome p { font-size: .9rem; }
    .dashboard-welcome .btn-lg { width: 100%; padding: 10px; font-size: 1rem; }

    /* Stat mini cards */
    .stat-mini-card { padding: 14px 10px; }
    .stat-mini-card i { font-size: 1.4rem; }
    .stat-mini-val { font-size: 1.25rem; }
    .stat-mini-label { font-size: 11px; }

    /* Dashboard case list — wrap action button row below text */
    .dashboard-case-row { flex-direction: column; align-items: stretch !important; }
    .dashboard-case-row .dashboard-case-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px !important;
    }
    .dashboard-case-row .dashboard-case-actions .btn { flex: 1; min-width: 0; }

    /* Auth pages */
    .auth-icon-wrap { width: 60px; height: 60px; }
    .auth-card .card-body { padding: 1.5rem 1.25rem !important; }
    .auth-card h2 { font-size: 1.5rem; }
    .auth-trust-badges { flex-wrap: wrap !important; gap: 10px 16px !important; justify-content: center; }
    .auth-trust-badges span { font-size: 11.5px; }

    /* Profile */
    .profile-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
    .profile-tab-btn { padding: 10px 14px; font-size: .85rem; }

    /* Cases index — header */
    .page-header-row { flex-wrap: wrap; gap: 14px; }
    .page-header-row > a.btn { width: 100%; justify-content: center; }

    /* Cases show — action area */
    .case-show-header { flex-direction: column; align-items: stretch !important; }
    .case-show-header .case-show-actions { width: 100%; }
    .case-show-actions .btn { flex: 1 1 auto; }

    /* Applicant tabs scroll */
    #applicantTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    #applicantTabs::-webkit-scrollbar { height: 3px; }
    #applicantTabs .nav-item { flex-shrink: 0; }
    #applicantTabs .nav-link { padding: 8px 12px; font-size: .82rem; }

    /* Report header action row */
    .report-actions-row { width: 100%; }
    .report-actions-row .btn { flex: 1 1 calc(50% - 6px); justify-content: center; }

    /* Feedback widget buttons */
    .feedback-btn { flex: 1; min-width: 0; justify-content: center; padding: 10px 12px; }
    .feedback-btn .fb-label { font-size: 12px; }

    /* Footer */
    .app-footer { padding: 40px 0 0; margin-top: 40px; }
    .app-footer .footer-desc { max-width: 100%; }
    .app-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        margin-top: 28px;
    }
    .app-footer .col-lg-4 { text-align: center; }
    .app-footer .col-lg-4 .d-flex.gap-2 { justify-content: center; }
    .app-footer .col-lg-4 .footer-desc { margin-left: auto; margin-right: auto; }

    /* Pricing — disable transform-scale on featured card */
    .pricing-card.featured,
    .pub-pricing-card.featured { transform: none; }
    .pub-pricing-card-header { padding-top: 22px; }
    .pub-pricing-card.featured .pub-pricing-card-header { padding-top: 34px; }

    /* Forms */
    .form-control, .form-select { font-size: 16px; }  /* prevent iOS zoom */

    /* Generic modals */
    .modal-body.py-4 { padding: 1.25rem 1rem !important; }
}

/* ─── Small phone (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {
    .app-nav .brand-text { font-size: .98rem; }
    .app-nav .brand-sub { display: none; }

    /* Hero stats — wrap on small screens */
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px !important;
        margin-top: 28px !important;
    }
    .hero-stat-divider { display: none; }
    .hero-stats > div:not(.hero-stat-divider) { flex: 1 1 calc(50% - 8px); }
    .hero-stat-val { font-size: 1.3rem; }
    .hero-stat-lbl { font-size: .7rem; }

    /* Hero / landing typography */
    .hero { padding: 60px 0 50px; }
    .hero-card { padding: 20px; border-radius: 16px; }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        text-align: center;
        font-size: .95rem;
        padding: 12px 22px;
    }

    /* Landing/pricing section padding */
    .features-section,
    .how-section,
    .docs-section,
    .pricing-section,
    .testimonials-section,
    .faq-section,
    .cta-section { padding: 50px 0; }

    .feature-card,
    .step-card { padding: 20px; }

    /* Dashboard stats row → 2-up wraps already; tighten further */
    .stat-mini-card i { font-size: 1.2rem; }
    .stat-mini-val { font-size: 1.1rem; }

    /* Cases show — collapse multi-button rows into stacks */
    .case-show-header .case-show-actions .btn,
    .case-show-actions form { width: 100%; }
    .case-show-actions form .btn { width: 100%; }

    /* Report header — buttons full width */
    .report-actions-row .btn { flex: 1 1 100%; }

    /* Doc upload card padding */
    .dz-inline { font-size: .78rem; }
}

/* Prevent horizontal page scroll from any single overflowing element */
@media (max-width: 991px) {
    html, body { overflow-x: hidden; }
    .container, .container-fluid { max-width: 100%; }
}

/* ─── AI Progress Bar pulse animation ───────────────────── */
@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}
#aiProgressBar {
    animation: progressPulse 2s ease-in-out infinite;
}
