/* ===================================================
   CG JOBS LIVE - Warm White Clean Theme (Mobile & Desktop)
   =================================================== */

:root {
    /* Vintage Paper Warm White Palette */
    --bg-page: #f8f6f0;          /* Authentic vintage paper warm white / parchment ivory */
    --bg-surface: #fdfcf9;       /* Creamy warm white surface */
    --bg-warm-tint: #f3efe6;     /* Vintage linen tint for cards, tags & soft borders */
    --border-subtle: #e6e0d3;    /* Antique soft warm border */
    --border-hover: #d2c8b4;     /* Focused paper border */

    /* Text Colors */
    --text-primary: #1f242e;     /* Deep rich vintage slate ink */
    --text-secondary: #585d68;   /* Refined charcoal secondary */
    --text-muted: #8c887e;       /* Muted antique timestamp */

    /* Accent & Brand Colors */
    --brand-primary: #2563eb;    /* Trust blue */
    --brand-dark: #1d4ed8;

    /* Status Colors */
    --status-active-bg: #ecfdf5;
    --status-active-text: #059669;
    --status-urgent-bg: #fffbeb;
    --status-urgent-text: #b45309;
    --status-closed-bg: #f3f4f6;
    --status-closed-text: #6b7280;

    /* Action: Apply / Applied */
    --btn-apply-bg: #2563eb;
    --btn-apply-hover: #1d4ed8;
    --btn-applied-bg: #10b981;
    --btn-applied-hover: #059669;

    --font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, sans-serif;
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100vh;
}

/* 1. Header */
.app-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-text-col {
    display: flex;
    flex-direction: column;
}
.live-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.main-heading {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-sub-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.brand-jobs-badge {
    font-size: 0.74rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.2px;
}

.brand-service-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1px 7px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}

/* Interactive Circular Profile Trigger with Dynamic Boundary Progress Ring */
.nav-profile-circle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    padding: 2px;
}
.nav-profile-circle-wrap:hover {
    transform: scale(1.06);
}
.nav-profile-circle-wrap:active {
    transform: scale(0.96);
}

.profile-ring-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* Conic gradient boundary ring based on dynamic completion percentage */
    background: conic-gradient(
        var(--progress-color, #ef4444) var(--progress-deg, 0deg),
        #e5e7eb var(--progress-deg, 0deg) 360deg
    );
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.profile-ring-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    padding: 1.5px;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-online-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Header Sub-Row: Due Payment Alert Pill */
.nav-due-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.nav-due-payment-pill:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    transform: translateY(-1px);
}
.nav-due-payment-pill i {
    font-size: 0.72rem;
    color: #e11d48;
}

.user-nav-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-profile-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 50px;
    line-height: 1.2;
    transition: all 0.3s ease;
}
.nav-profile-badge.red {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}
.nav-profile-badge.orange {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.nav-profile-badge.green {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.chevron-icon {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 2px;
    transition: transform 0.2s;
}
.user-profile-trigger:hover .chevron-icon {
    transform: translateX(2px);
    color: var(--brand-primary);
}

/* WhatsApp OTP Drawer Styles */
.mobile-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.digit-counter {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.digit-counter.complete {
    background: #dcfce7;
    color: #15803d;
}

.clean-phone-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.clean-phone-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.clean-phone-box.valid {
    border-color: #10b981;
}

.phone-country-code {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px 10px 14px;
    background: #f8fafc;
    border-right: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.5px;
    user-select: none;
}

.spaced-phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0f172a;
    background: transparent;
    font-family: 'Courier New', Courier, monospace, system-ui;
}
.spaced-phone-input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 2px;
}

.phone-helper-text {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 6-Digit Centered Spaced OTP Input */
.otp-input-wrap {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.otp-input-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.spaced-otp-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 14px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: #0f172a;
    background: transparent;
    font-family: monospace;
}
.spaced-otp-input::placeholder {
    color: #cbd5e1;
    letter-spacing: 6px;
}

/* Why Login & Safe Vault Benefits Card */
.login-benefits-card {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.benefits-header {
    margin-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 10px;
}
.benefits-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.benefits-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, background 0.2s ease;
}
.benefit-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}
.benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.benefit-icon.safe-shield {
    background: #ecfdf5;
    color: #059669;
}
.benefit-icon.one-time {
    background: #eff6ff;
    color: #2563eb;
}
.benefit-icon.price-save {
    background: #fef3c7;
    color: #d97706;
}
.benefit-icon.fast-speed {
    background: #f3e8ff;
    color: #7c3aed;
}
.benefit-content {
    flex: 1;
}
.benefit-content strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}
.benefit-content p {
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.4;
    margin: 0;
}
.benefit-content strong span.highlight {
    color: #16a34a;
}
.btn-wa-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45) !important;
}

/* User Detected Banner (Existing user) */
.user-detected-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
}
.user-detected-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.user-detected-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.user-detected-info strong {
    font-size: 0.95rem;
    color: #0f172a;
    letter-spacing: 0.5px;
}

/* Password Input with eye toggle */
.password-input-box {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-box .pwd-field {
    padding-right: 42px;
    font-size: 0.92rem;
}
.btn-toggle-pwd {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s;
}
.btn-toggle-pwd:hover {
    color: #3b82f6;
}

/* Alternative OTP Link */
.otp-alternative-link-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.76rem;
    color: #64748b;
}
.otp-alternative-link-row .btn-resend-link {
    margin: 0 auto;
    font-size: 0.82rem;
    color: #059669;
}
.otp-sent-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #166534;
    font-weight: 600;
}
.btn-change-number {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.otp-resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #6b7280;
}
.btn-resend-link {
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-resend-link:hover {
    text-decoration: underline;
}

/* ===================================================
   Right-Side Slide-Over Drawer
   =================================================== */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.profile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-surface);
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.12);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-subtle);
}
.profile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-warm-tint);
    flex-shrink: 0;
}
.drawer-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}
.btn-drawer-close {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-drawer-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px calc(80px + env(safe-area-inset-bottom, 20px)) 18px;
    overscroll-behavior: contain;
}

/* Bottom Action Buttons in Profile Drawer */
.drawer-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.btn-save-profile {
    flex: 2;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}
.btn-save-profile:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-logout-drawer {
    flex: 1;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-logout-drawer:hover {
    background: #fee2e2;
    color: #be123c;
    border-color: #fda4af;
}

/* Custom Sleek Scrollbar for Drawer */
.drawer-content::-webkit-scrollbar {
    width: 6px;
}
.drawer-content::-webkit-scrollbar-track {
    background: var(--bg-warm-tint);
}
.drawer-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}
.drawer-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Drawer Multi-Tabs Navigation */
.drawer-tabs-nav {
    display: flex;
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 18px;
    gap: 4px;
}
.drawer-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.drawer-tab-btn.active {
    background: var(--bg-surface);
    color: var(--brand-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Form Fields Styling */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.field-group label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.custom-input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}
.custom-input:focus {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Upload Vault Styles */
.upload-rules-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.75rem;
    color: #1e40af;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.upload-rules-banner i {
    font-size: 1rem;
    color: var(--brand-primary);
    margin-top: 2px;
}
.section-subheading {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 4px;
}
.doc-upload-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.doc-info {
    display: flex;
    flex-direction: column;
}
.doc-info strong {
    font-size: 0.82rem;
    color: var(--text-primary);
}
.doc-info small {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.doc-info small.success {
    color: #059669;
    font-weight: 600;
}
.doc-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-doc-view {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-doc-view:hover {
    background: #16a34a;
    color: #ffffff;
}
.btn-file-upload {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-file-upload:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}
.btn-file-upload.reupload {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.btn-file-upload.reupload:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}
.btn-file-upload input {
    display: none;
}
.doc-vault-meter-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.doc-vault-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.doc-vault-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
.doc-vault-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 0.3s ease;
}
.doc-vault-fill.is-orange { background: #f59e0b; }
.doc-vault-fill.is-green { background: #10b981; }
.doc-vault-subtext {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
}
.photo-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 6px;
}

/* Payment Summary Card */
.payment-summary-card {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
}
.payment-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}
.rate-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.payment-summary-top h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
}
.total-fee-badge {
    background: #10b981;
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
/* Tab 3 Accordion Cards */
.accordion-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.accordion-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}
.accordion-header {
    background: #f8fafc;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.accordion-header:hover {
    background: #f1f5f9;
}
.accordion-header.active {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
}
.acc-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.acc-title-wrap h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.acc-badge-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
}
.acc-badge-pill.unpaid {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
.acc-badge-pill.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.acc-arrow {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.accordion-header.active .acc-arrow {
    transform: rotate(180deg);
    color: var(--brand-primary);
}
.accordion-body {
    display: none;
    padding: 14px;
    background: #ffffff;
}
.accordion-body.show {
    display: block;
    animation: fadeIn 0.25s ease;
}

.pay-info-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.pay-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pay All Together Master Banner */
.pay-all-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}
.pay-all-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.pay-all-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.pay-all-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pay-all-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}
.pay-all-meta {
    font-size: 0.78rem;
    color: #cbd5e1;
}
.pay-all-meta strong {
    color: #ffffff;
}
.pay-all-total {
    color: #34d399 !important;
    font-size: 0.96rem;
    font-weight: 900;
}
.btn-pay-all {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.btn-pay-all:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}
.btn-pay-all:active {
    transform: translateY(0);
}

.pay-item-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.pay-item-card.is-unpaid {
    border-left: 4px solid #ef4444;
    background: #fffdfd;
}
.pay-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.pay-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.pay-item-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}
.pay-item-dept {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.pay-item-price-badge {
    text-align: right;
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.pay-item-fee {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e1b4b;
    display: block;
    line-height: 1;
}
.pay-item-charge-label {
    font-size: 0.64rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.pay-item-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-subtle);
}

.btn-pay-single {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-pay-single:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.btn-cancel-applied {
    background: #fff;
    color: #ef4444;
    border: 1.5px solid #fecdd3;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.btn-cancel-applied:hover {
    background: #fff1f2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.15);
}
.btn-cancel-applied:active {
    transform: translateY(0);
    background: #fecaca;
}
.btn-cancel-applied * {
    pointer-events: none;
}
.paid-pill {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pay-action-bar {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle);
}
.btn-pay-all {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    transition: transform 0.2s;
}
.btn-pay-all:hover {
    transform: translateY(-1px);
}

/* Receipts List */
.receipts-header {
    margin-bottom: 12px;
}
.receipts-header h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.receipts-header p {
    font-size: 0.76rem;
    color: var(--text-secondary);
}
.receipts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.receipt-card {
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.receipt-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.receipt-badge-success {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #a7f3d0;
}
.receipt-badge-waiting {
    background: #fffbeb;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #fde68a;
}
.receipt-badge-unpaid {
    background: #fff1f2;
    color: #e11d48;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #fecdd3;
}
.btn-waiting-receipt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 10px;
}
.btn-download-receipt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0284c7;
    color: white;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn-download-receipt:hover {
    background: #0369a1;
}
/* Profile Photo Section */
.profile-photo-card {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

/* Profile Completion & Document Vault Progress Meter */
.vault-progress-card {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 12px;
    text-align: left;
}
.progress-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.progress-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.progress-percent {
    font-size: 0.84rem;
    font-weight: 800;
    transition: color 0.3s ease;
}
.progress-percent.is-red { color: #ef4444; }
.progress-percent.is-orange { color: #d97706; }
.progress-percent.is-green { color: #059669; }

.progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}
.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.progress-fill.is-red {
    background: linear-gradient(90deg, #ef4444, #f87171);
}
.progress-fill.is-orange {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.progress-fill.is-green {
    background: linear-gradient(90deg, #10b981, #059669);
}
.progress-subtext {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
}

.avatar-edit-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
}
.drawer-big-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-avatar-upload {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.btn-avatar-upload:hover {
    transform: scale(1.1);
}
.profile-name-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.profile-cg-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 4px;
}

/* Details Section */
.details-section {
    margin-bottom: 22px;
}
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-subtle);
    gap: 10px;
}
.detail-key {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.detail-val-inp {
    flex: 1;
    max-width: 200px;
    text-align: right;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 3px 6px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}
.detail-val-inp:focus {
    background: #fff;
    border-color: var(--brand-primary);
}

.badge-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.badge-tag {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.drawer-applied-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
}
.applied-item-row {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}
.applied-item-title {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.drawer-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
}
.btn-save-profile {
    flex: 1;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-save-profile:hover {
    background: var(--brand-dark);
}
.btn-logout-drawer {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-logout-drawer:hover {
    background: #fee2e2;
}

/* Logged Out View */
.login-prompt-box {
    text-align: center;
    padding: 20px 10px 30px;
}
.login-icon-circle {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}
.login-prompt-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.login-prompt-box p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.drawer-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.input-with-icon input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}
.input-with-icon input:focus {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-login-submit {
    background: var(--brand-primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    transition: background 0.2s;
}
.btn-login-submit:hover {
    background: var(--brand-dark);
}
.demo-login-hint {
    background: #f8fafc;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 2. Filter & Quick Search Strip */
.filter-strip {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}
.strip-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 460px;
}
.search-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.search-input-wrap input {
    width: 100%;
    padding: 8px 34px 8px 34px;
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}
.search-input-wrap input:focus {
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.strip-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-badge {
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.btn-refresh-sm {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.btn-refresh-sm:hover {
    background: var(--border-subtle);
    color: var(--text-primary);
}

/* 3. Main Container */
.main-container {
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

/* Loader */
.loader-box {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-box p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Table Card (For Desktop/Laptops) */
.table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.jobs-table thead {
    background: var(--bg-warm-tint);
    border-bottom: 1px solid var(--border-subtle);
}
.jobs-table th {
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.th-sr { width: 60px; text-align: center; }
.th-date { width: 120px; }
.th-status { width: 110px; }
.th-action { width: 110px; text-align: center; }

.jobs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}
.jobs-table tr {
    transition: background-color 0.2s ease;
}

.jobs-table tr.animate-row {
    opacity: 0;
    transform: translateY(14px);
    animation: rowFadeSlide 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rowFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.jobs-table tr:hover {
    background-color: #faf9f6;
}

.td-sr {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
}
.job-title-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.job-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
}
.job-dept {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.date-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-status.active {
    background: var(--status-active-bg);
    color: var(--status-active-text);
}
.badge-status.urgent {
    background: var(--status-urgent-bg);
    color: var(--status-urgent-text);
}
.badge-status.closed {
    background: var(--status-closed-bg);
    color: var(--status-closed-text);
}

/* ===================================================
   Job Information Details Modal (Popup Dialog)
   =================================================== */
.job-info-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}
.job-info-modal-backdrop.active {
    display: flex;
}

.job-info-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.job-modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-warm-tint);
}
.job-modal-header-text {
    display: flex;
    flex-direction: column;
}
.modal-job-id-pill {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    width: fit-content;
}
.modal-job-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}
.modal-job-dept {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.btn-modal-close {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.job-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.info-chips-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.info-chip {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-chip i {
    font-size: 1rem;
    color: var(--brand-primary);
}
.info-chip.highlight-end i {
    color: #b45309;
}
.info-chip div {
    display: flex;
    flex-direction: column;
}
.info-chip span {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.info-chip strong {
    font-size: 0.82rem;
    color: var(--text-primary);
}

.specs-table-box {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}
.spec-row {
    display: flex;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    gap: 12px;
    align-items: flex-start;
}
.spec-row:last-child {
    border-bottom: none;
}
.spec-row:nth-child(even) {
    background: #faf9f6;
}
.spec-key {
    width: 140px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}
.spec-val {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.4;
}

.docs-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.doc-pill-tag {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.modal-links-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.btn-link-action {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.full-width-link {
    width: 100%;
}
.btn-pdf {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.btn-pdf:hover {
    background: #fee2e2;
}
.btn-portal {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.btn-portal:hover {
    background: #dcfce7;
}

.job-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--bg-warm-tint);
}
.btn-modal-back {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-modal-back:hover {
    background: var(--border-subtle);
    color: var(--text-primary);
}
.btn-modal-apply {
    flex: 1;
    max-width: 200px;
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-modal-apply:hover {
    background: var(--brand-dark);
}

/* Action button in table & card: Info button */
.btn-action-info {
    background: var(--bg-warm-tint);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    transition: all 0.2s;
}
.btn-action-info:hover {
    background: #eef2ff;
    color: var(--brand-primary);
    border-color: #c7d2fe;
}
.actions-cell-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Primary Action Buttons: Apply (Blue) vs Applied (Green) */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    user-select: none;
}

/* Normal State: Attractive Royal Blue */
.btn-action.btn-apply {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}
.btn-action.btn-apply:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.35);
}

/* Applied State: Rich Vibrant Emerald Green with Checkmark */
.btn-action.btn-applied {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: 1px solid #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.btn-action.btn-applied:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}


/* 4. Mobile Optimized Cards (Hidden on Desktop) */
.mobile-card-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}
.mobile-job-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    animation: cardFadeSlide 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.m-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.m-sr-pill {
    background: var(--bg-warm-tint);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.m-job-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 4px;
}
.m-dept-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.m-dates-row {
    display: flex;
    justify-content: space-between;
    background: var(--bg-warm-tint);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}
.m-date-item span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.m-date-item strong {
    color: var(--text-primary);
}
.m-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Empty State */
.no-match {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.no-match i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111827;
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    display: none;
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.25s ease forwards;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .table-card {
        display: none; /* Hide table on mobile for clean touch cards */
    }
    .mobile-card-list {
        display: flex;
    }
    .header-container {
        padding: 10px 14px;
        gap: 8px;
    }
    .brand {
        gap: 8px;
        min-width: 0;
    }
    .main-heading {
        font-size: 1.02rem;
        letter-spacing: -0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-sub-badge-row {
        gap: 6px;
        margin-top: 2px;
    }
    .brand-jobs-badge {
        font-size: 0.7rem;
    }
    .brand-service-tag {
        font-size: 0.64rem;
        padding: 1px 6px;
    }
    .profile-ring-container {
        width: 40px;
        height: 40px;
    }
    .main-container {
        padding: 0 12px;
        margin-top: 14px;
    }
    .search-input-wrap {
        max-width: 100%;
    }
    .toast {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}
