/**
 * Applicant Dashboard Stylesheet
 * Ultra-premium beneficiary portal matching Zafar Sovereign Foundation design.
 */

:root {
    --dash-bg: #070c18;
    --dash-card-bg: rgba(13, 21, 39, 0.92);
    --dash-card-border: rgba(255, 255, 255, 0.08);
    --dash-gold: #f59e0b;
    --dash-gold-glow: rgba(245, 158, 11, 0.2);
    --dash-cyan: #06b6d4;
    --dash-cyan-glow: rgba(6, 182, 212, 0.2);
    --dash-green: #10b981;
    --dash-green-glow: rgba(16, 185, 129, 0.25);
    --dash-text-main: #f8fafc;
    --dash-text-muted: #94a3b8;
    --dash-border-subtle: rgba(148, 163, 184, 0.12);
}

[data-theme="light"] {
    --dash-bg: #f1f5f9;
    --dash-card-bg: #ffffff;
    --dash-card-border: #e2e8f0;
    --dash-text-main: #0f172a;
    --dash-text-muted: #64748b;
    --dash-border-subtle: #f1f5f9;
}

/* ==========================================================================
   COMPLETE LIGHT THEME SYSTEM (PIXEL-PERFECT CONTRAST & CARD STYLING)
   ========================================================================== */
[data-theme="light"] .applicant-portal-main {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Header & Lookup */
[data-theme="light"] .portal-tag {
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0284c7 !important;
}

[data-theme="light"] .ref-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .portal-main-heading {
    color: #0f172a !important;
}

[data-theme="light"] .portal-main-sub {
    color: #475569 !important;
}

[data-theme="light"] .lookup-input-group {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .lookup-input-group i {
    color: #64748b !important;
}

[data-theme="light"] .lookup-input-group input {
    color: #0f172a !important;
}

[data-theme="light"] .lookup-input-group input::placeholder {
    color: #94a3b8 !important;
}

/* Main Status Container Card */
[data-theme="light"] .applicant-status-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

/* Status Banner */
[data-theme="light"] .status-top-banner {
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .user-avatar-badge {
    background: #e0f2fe !important;
    border: 2px solid #bae6fd !important;
    color: #0284c7 !important;
}

[data-theme="light"] .applicant-name {
    color: #0f172a !important;
}

[data-theme="light"] .verified-identity-tag {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #059669 !important;
}

[data-theme="light"] .user-sub-label {
    color: #64748b !important;
}

[data-theme="light"] .user-sub-label strong {
    color: #0f172a !important;
}

[data-theme="light"] .status-badge-right {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #059669 !important;
}

[data-theme="light"] .status-text-live {
    color: #059669 !important;
}

/* 4-Step Milestone Progress Bar */
[data-theme="light"] .dashboard-stepper-wrapper {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .stepper-title {
    color: #475569 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .stepper-percent {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .stepper-bar-track {
    background: #e2e8f0 !important;
}

[data-theme="light"] .step-node .node-icon {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .step-node.step-completed .node-icon {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

[data-theme="light"] .step-node.step-current .node-icon {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

[data-theme="light"] .step-node .node-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .step-node .node-desc {
    color: #64748b !important;
}

/* Stage Switcher / Simulator */
[data-theme="light"] .review-stage-simulator {
    background: #f0f9ff !important;
    border: 1.5px dashed #7dd3fc !important;
}

[data-theme="light"] .simulator-header {
    color: #0369a1 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .sim-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .sim-btn:hover {
    background: #f8fafc !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

[data-theme="light"] .sim-btn.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

/* 4-Card Metrics Grid */
[data-theme="light"] .metric-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .metric-label {
    color: #64748b !important;
    font-weight: 700 !important;
}

[data-theme="light"] .metric-label i {
    color: #0284c7 !important;
}

[data-theme="light"] .metric-value {
    color: #0f172a !important;
}

[data-theme="light"] .metric-gold {
    color: #b45309 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .metric-cyan {
    color: #0369a1 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .highlight-ref-val {
    color: #b45309 !important;
}

[data-theme="light"] .metric-hint {
    color: #64748b !important;
}

[data-theme="light"] .copy-btn-mini {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .copy-btn-mini:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Left Panel: Verified Beneficiary Dossier */
[data-theme="light"] .details-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .panel-heading {
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
}

[data-theme="light"] .panel-heading i {
    color: #0284c7 !important;
}

[data-theme="light"] .details-list li {
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .detail-name {
    color: #64748b !important;
}

[data-theme="light"] .detail-name i {
    color: #94a3b8 !important;
}

[data-theme="light"] .detail-data {
    color: #0f172a !important;
}

[data-theme="light"] .highlight-gold {
    color: #b45309 !important;
}

[data-theme="light"] .badge-tag-success {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #059669 !important;
}

[data-theme="light"] .badge-tag-cipher {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
}

[data-theme="light"] .badge-green-sm {
    color: #059669 !important;
}

/* Right Panel: Document Credential & Biometrics */
[data-theme="light"] .document-credential-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .doc-type-info {
    color: #0f172a !important;
}

[data-theme="light"] .doc-type-info i {
    color: #0284c7 !important;
}

[data-theme="light"] .doc-status-pill {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #059669 !important;
}

[data-theme="light"] .doc-item-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .doc-thumb-icon {
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
}

[data-theme="light"] .doc-thumb-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .doc-thumb-sub {
    color: #64748b !important;
}

[data-theme="light"] .doc-ok-badge {
    background: #f0fdf4 !important;
    color: #059669 !important;
    border: 1px solid #bbf7d0 !important;
}

/* 3D Biometric Seal Card */
[data-theme="light"] .biometric-seal-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0fdfa 100%) !important;
    border: 1px solid #bbf7d0 !important;
}

[data-theme="light"] .seal-glow-icon {
    background: #dcfce7 !important;
    border: 1.5px solid #22c55e !important;
    color: #15803d !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.2) !important;
}

[data-theme="light"] .seal-title {
    color: #14532d !important;
    font-weight: 800 !important;
}

[data-theme="light"] .seal-grade-badge {
    background: #22c55e !important;
    color: #ffffff !important;
}

[data-theme="light"] .seal-text-desc {
    color: #334155 !important;
}

[data-theme="light"] .confidence-bar-track {
    background: #e2e8f0 !important;
}

[data-theme="light"] .confidence-val {
    color: #15803d !important;
}

/* Cryptographic Case Investigation Ledger */
[data-theme="light"] .investigation-ledger-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .ledger-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .ledger-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

[data-theme="light"] .ledger-title-group i {
    color: #0284c7 !important;
}

[data-theme="light"] .ledger-status-tag {
    background: #e0f2fe !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .ledger-entries-stream::before {
    background: #e2e8f0 !important;
}

[data-theme="light"] .ledger-entry .entry-marker {
    background: #dcfce7 !important;
    border: 1.5px solid #10b981 !important;
    color: #15803d !important;
    box-shadow: 0 0 0 4px #ffffff !important;
}

[data-theme="light"] .ledger-entry.active .entry-marker {
    background: #e0f2fe !important;
    border: 1.5px solid #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 0 4px #ffffff !important;
}

[data-theme="light"] .ledger-entry .entry-content {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.2s ease !important;
}

[data-theme="light"] .ledger-entry:hover .entry-content {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .ledger-entry.active .entry-content {
    background: #f0f9ff !important;
    border: 1.5px solid #7dd3fc !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
}

[data-theme="light"] .entry-name {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

[data-theme="light"] .ledger-entry.active .entry-name {
    color: #0369a1 !important;
}

[data-theme="light"] .entry-time {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.74rem !important;
}

[data-theme="light"] .ledger-entry.active .entry-time {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .entry-detail {
    color: #475569 !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
}

[data-theme="light"] .entry-detail code {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Exit Case Button & Demo Chips in Light Mode */
[data-theme="light"] .ref-pill-exit {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    text-decoration: none !important;
}

[data-theme="light"] .ref-pill-exit:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .demo-case-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .demo-case-chip:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

[data-theme="light"] .demo-case-chip.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .demo-case-chip.active .chip-tag {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

[data-theme="light"] .chip-tag {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

/* Not Found / Case Tracking Fallback in Light Mode */
[data-theme="light"] .not-found-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .not-found-title {
    color: #0f172a !important;
}

[data-theme="light"] .not-found-sub {
    color: #475569 !important;
}

[data-theme="light"] .not-found-icon {
    background: #e0f2fe !important;
    border: 2px solid #bae6fd !important;
    color: #0284c7 !important;
}

/* Action Footer Bar */
[data-theme="light"] .dashboard-action-footer {
    border-top: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .security-seal {
    color: #64748b !important;
}

[data-theme="light"] .security-seal i {
    color: #059669 !important;
}

[data-theme="light"] .dash-btn--secondary {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .dash-btn--secondary:hover {
    background: #f8fafc !important;
    color: #0284c7 !important;
    border-color: #0284c7 !important;
}

[data-theme="light"] .dash-btn--primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

.applicant-portal-main {
    min-height: 85vh;
    background: radial-gradient(circle at 50% 0%, #111e3b 0%, #070c18 65%);
    color: var(--dash-text-main);
    padding: 60px 20px 100px 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Guarantee Font Awesome icons can never be overridden */
.applicant-portal-main .fa, 
.applicant-portal-main .fas, 
.applicant-portal-main .far, 
.applicant-portal-main .fab, 
.applicant-portal-main .fa-solid, 
.applicant-portal-main .fa-regular, 
.applicant-portal-main .fa-brands, 
.applicant-portal-main [class*=" fa-"], 
.applicant-portal-main [class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.applicant-portal-main .fa::before,
.applicant-portal-main .fa-solid::before,
.applicant-portal-main .fa-regular::before,
.applicant-portal-main [class*=" fa-"]::before {
    font-family: inherit !important;
}

.applicant-portal-main .fa-regular {
    font-weight: 400 !important;
}

.applicant-portal-main .fa-solid {
    font-weight: 900 !important;
}

.applicant-portal-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.applicant-portal-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* Header Section */
.applicant-portal-header {
    text-align: center;
    margin-bottom: 35px;
}

.header-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.portal-tag {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ref-pill {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 999px;
}

.portal-main-heading {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 10px;
}

.portal-main-sub {
    font-size: 0.95rem;
    color: var(--dash-text-muted);
    max-width: 620px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

/* Reference Code Lookup Input */
.ref-lookup-bar {
    max-width: 560px;
    margin: 0 auto 20px auto;
}

.lookup-input-group {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--dash-border-subtle);
    border-radius: 14px;
    padding: 6px 8px 6px 16px;
    gap: 10px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.lookup-input-group:focus-within {
    border-color: var(--dash-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.lookup-input-group i {
    color: var(--dash-text-muted);
    font-size: 0.95rem;
}

.lookup-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
}

.lookup-input-group input::placeholder {
    color: #64748b;
}

.lookup-btn {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lookup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

/* Demo Cases Quick Switcher */
.demo-cases-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.demo-switcher-label {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-switcher-label i {
    color: #38bdf8;
}

.demo-chips-scroll {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-case-chip {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.demo-case-chip:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #38bdf8;
    transform: translateY(-1px);
}

.demo-case-chip.active {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.status-investigating .chip-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.status-passed .chip-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.status-disbursed .chip-dot { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

.chip-name {
    font-weight: 600;
}

.chip-tag {
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

.demo-case-chip.active .chip-tag {
    color: #7dd3fc;
    background: rgba(6, 182, 212, 0.2);
}

/* Main Status Card */
.applicant-status-card {
    background: var(--dash-card-bg);
    border: 1px solid var(--dash-card-border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    position: relative;
}

/* Top Banner */
.status-top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--dash-border-subtle);
    flex-wrap: wrap;
}

.user-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.35);
}

.user-name-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.applicant-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.verified-identity-tag {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.user-sub-label {
    font-size: 0.84rem;
    color: var(--dash-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-sub-label strong {
    color: #fbbf24;
    font-family: monospace;
}

.status-badge-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 8px 18px;
    border-radius: 999px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text-live {
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Stepper */
.dashboard-stepper-wrapper {
    margin: 30px 0;
    padding: 24px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.stepper-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.stepper-title {
    color: var(--dash-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stepper-percent {
    color: #38bdf8;
}

.stepper-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.stepper-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepper-nodes-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.step-node {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.node-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-bottom: 4px;
}

.step-completed .node-icon {
    background: rgba(16, 185, 129, 0.2);
    border: 1.5px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.step-current .node-icon {
    background: rgba(6, 182, 212, 0.2);
    border: 1.5px solid #06b6d4;
    color: #38bdf8;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
    animation: nodePulse 2s infinite;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.step-upcoming .node-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #64748b;
}

.node-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.node-desc {
    font-size: 0.72rem;
    color: var(--dash-text-muted);
}

/* Review Stage Controller / Simulator */
.review-stage-simulator {
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed rgba(6, 182, 212, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simulator-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simulator-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sim-btn {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sim-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #38bdf8;
}

.sim-btn.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(6, 182, 212, 0.2));
    border-color: #06b6d4;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* 4 Metrics Grid */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.metric-box {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-size: 0.74rem;
    color: var(--dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metric-label i {
    color: #38bdf8;
}

.metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.metric-gold { color: #fbbf24; }
.metric-cyan { color: #38bdf8; }

.highlight-ref-val {
    font-family: monospace;
    color: #fbbf24;
    letter-spacing: 0.5px;
}

.metric-hint {
    font-size: 0.72rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.copy-btn-mini {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.copy-btn-mini:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    border-color: #06b6d4;
}

/* 2-Column KYC Dossier & Right Column */
.dashboard-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.details-panel {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 22px 24px;
}

.panel-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-heading i {
    color: #38bdf8;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 12px;
}

.details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-name {
    color: var(--dash-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-name i {
    color: #64748b;
    font-size: 0.82rem;
    width: 14px;
}

.detail-data {
    color: #f1f5f9;
    font-weight: 600;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-address {
    max-width: 260px;
    line-height: 1.4;
    word-break: break-word;
}

.font-mono {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.highlight-gold {
    color: #fbbf24;
}

.badge-tag-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-tag-cipher {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-green-sm {
    color: #34d399;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Right Panel: Document Credential & 3D Biometric Seal */
.doc-biometric-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-credential-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 16px;
}

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

.doc-type-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #ffffff;
}

.doc-type-info i {
    color: #38bdf8;
}

.doc-status-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.doc-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.doc-item-box {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.doc-thumb-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.doc-thumb-desc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.doc-thumb-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
}

.doc-thumb-sub {
    font-size: 0.68rem;
    color: #64748b;
}

.doc-ok-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 3D Biometric Seal Card */
.biometric-seal-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.seal-glow-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 1.3rem;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

.seal-content-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seal-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seal-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.seal-grade-badge {
    background: #10b981;
    color: #022c22;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.seal-text-desc {
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0;
}

.confidence-meter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.confidence-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.confidence-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 5px;
}

.confidence-val {
    font-size: 0.72rem;
    font-weight: 700;
    color: #34d399;
    font-family: monospace;
}

/* Cryptographic Case Investigation Ledger (Chime / FinTech style) */
.investigation-ledger-card {
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.ledger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ledger-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ledger-title-group i {
    color: #38bdf8;
    font-size: 1.1rem;
}

.ledger-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ledger-status-tag {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ledger-status-tag i {
    color: #06b6d4;
    font-size: 0.6rem;
}

.ledger-entries-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 28px;
}

.ledger-entries-stream::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.ledger-entry {
    position: relative;
}

.entry-marker {
    position: absolute;
    left: -28px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1.5px solid #10b981;
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    z-index: 1;
}

.entry-marker.marker-pulse {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #38bdf8;
    animation: markerPulse 1.8s infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

.entry-content {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 13px 18px;
    transition: all 0.25s ease;
}

.ledger-entry:hover .entry-content {
    background: rgba(20, 32, 58, 0.85);
    border-color: rgba(6, 182, 212, 0.35);
}

.ledger-entry.active .entry-content {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}

.entry-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.entry-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #f1f5f9;
}

.ledger-entry.active .entry-name {
    color: #38bdf8;
}

.entry-time {
    font-size: 0.72rem;
    color: #64748b;
    font-family: monospace;
}

.ledger-entry.active .entry-time {
    color: #7dd3fc;
    font-weight: 700;
}

.entry-detail {
    font-size: 0.8rem;
    color: var(--dash-text-muted);
    margin: 0;
    line-height: 1.45;
}

.entry-detail code {
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 700;
}

.ref-pill-exit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--dash-text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.ref-pill-exit:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Footer Action Bar */
.dashboard-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--dash-border-subtle);
    flex-wrap: wrap;
}

.security-seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
}

.security-seal i {
    color: #10b981;
}

.action-buttons-group {
    display: flex;
    gap: 12px;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.dash-btn--primary {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.dash-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
    color: #ffffff;
}

.dash-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.dash-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Not Found Fallback Card */
.not-found-card {
    text-align: center;
    padding: 60px 30px;
}

.not-found-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.not-found-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.not-found-sub {
    color: var(--dash-text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.not-found-sub code {
    color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Animation */
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsive */
@media (max-width: 900px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-details-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
    }
    .stepper-nodes-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .applicant-status-card {
        padding: 24px 16px;
    }
    .status-top-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .doc-items-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-action-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .action-buttons-group {
        flex-direction: column;
    }
}

/* Print Certificate Rules */
@media print {
    body { background: #ffffff !important; color: #000000 !important; }
    .global-header, .ref-lookup-bar, .demo-cases-switcher, .dashboard-action-footer, .chat-widget-wrapper {
        display: none !important;
    }
    .applicant-portal-main { background: #ffffff !important; padding: 0 !important; }
    .applicant-status-card {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
        box-shadow: none !important;
    }
    .portal-main-heading, .applicant-name, .panel-heading, .metric-value, .ledger-title {
        color: #000000 !important;
    }
}