/* 
   ================================================================
   1. CORE VARIABLES & DESIGN TOKENS
   ================================================================
*/
:root {
    --bg-main: #f5f5dc;
    --bg-card: #fffaf0;
    --color-tan-light: #e3d9ca;
    --color-tan-mid: #d8cfc4;
    --color-tan-dark: #cdc4b5;
    --text-main: #333333;
    --text-muted: #555555;
    --accent-gold: #f1c40f;
    --accent-red: #e74c3c;
    --accent-green: #27ae60;
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* 
   ================================================================
   2. GLOBAL RESET
   ================================================================
*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove blue tap flash on mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Only remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 2px; }

body {
    background-color: var(--bg-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* 
   ================================================================
   3. Z-INDEX LAYER SYSTEM (single source of truth)
   ================================================================
*/
header           { z-index: 11000 !important; }
.spa-container   { z-index: 5000 !important; }
#side-drawer     { z-index: 40000 !important; }
.modal-overlay   { z-index: 20000 !important; }
#toast-container { z-index: 99999; }

/* 
   ================================================================
   4. HEADER & NAVIGATION
   ================================================================
*/
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(255, 252, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: var(--color-tan-light);
    padding: 6px 18px 6px 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
    border: 1px solid var(--color-tan-mid);
}
.profile-trigger:hover { transform: translateY(-2px); }

.profile-circle-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    background: #ccc;
}
.profile-circle-img img { width: 100%; height: 100%; object-fit: cover; }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.balance-box {
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid var(--color-tan-mid);
    text-align: right;
    line-height: 1.2;
}

.btn-auth, .btn-post {
    background: var(--color-tan-light);
    border: none;
    padding: 12px 25px;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: var(--shadow-md);
    font-size: 14px;
}
.btn-auth:hover, .btn-post:hover { background: var(--color-tan-mid); }

.hamburger {
    font-size: 30px;
    cursor: pointer;
    padding: 5px 15px;
    background: var(--color-tan-light);
    border-radius: 5px;
}

/* 
   ================================================================
   5. HOME VIEW & HERO
   ================================================================
*/
#view-home {
    padding-top: 140px;
    text-align: center;
    display: block;
}

/* Hero handled by index.php inline styles — these are fallback only */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 32px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 
   ================================================================
   6. CATEGORY GRID (HOME)
   ================================================================
*/
.grid-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 40px;
}

.grid-item {
    background: white;
    border: 1.5px solid #e8e0d4;
    border-radius: 20px;
    padding: 32px 16px;
    font-size: 15px;
    font-weight: 800;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.grid-item:hover {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(39,174,96,0.25);
}

/* 
   ================================================================
   7. SPA CONTAINERS
   ================================================================
*/
.spa-container {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--bg-main);
    padding: 110px 40px 60px !important;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.btn-back-arrow {
    position: fixed;
    top: 105px !important;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-tan-light);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: 0.2s;
    z-index: 15000 !important;
}
.btn-back-arrow:hover { transform: scale(1.08); background: var(--color-tan-mid); }

/* Category page title */
#category-display-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 20px;
    text-transform: none;
}

/* Search bar */
.search-wrap { max-width: 600px; margin: 0 auto 20px; }

#job-search-input {
    border: 1.5px solid #e0d9cc;
    border-radius: 50px;
    padding: 13px 24px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
#job-search-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 2px 16px rgba(39,174,96,0.15);
    outline: none;
}

/* Sub-filter pills */
.sub-filter-wrapper, #filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 22px;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

.filter-pill, .sub-filter-wrapper button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 2px 10px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.filter-pill:hover, .sub-filter-wrapper button:hover {
    color: var(--accent-green);
}
.filter-pill.active, .sub-filter-wrapper button.active {
    background: none;
    color: var(--accent-green);
    font-weight: 800;
    border-bottom-color: var(--accent-green);
}

/* 
   ================================================================
   8. JOB CARDS
   ================================================================
*/
.category-job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 0 20px;
}

.job-list-card {
    background: white;
    border: 1px solid #ede8df;
    border-radius: 20px;
    padding: 24px 24px 20px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-align: left;
}
.job-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
    border-color: #d4cbbf;
}
.job-list-card:active { transform: scale(0.99); }

.job-list-card h2 {
    font-size: 20px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 10px;
    padding-right: 90px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.job-list-card p {
    font-size: 13px;
    color: #888;
    margin: 0 0 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.job-list-card p b { color: #555; }

.time-posted-badge {
    position: absolute;
    top: 20px;
    right: 58px;
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: var(--accent-green);
    font-size: 21px;
    font-weight: 900;
    padding: 0;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

#load-more-btn {
    display: block;
    margin: 8px auto 0;
    max-width: 220px;
    height: 48px;
    font-size: 13px;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* 
   ================================================================
   9. MODALS
   ================================================================
*/
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.82);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    margin: 6vh auto;
    padding: 50px;
    width: 95%;
    max-width: 550px;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.15s;
}
.modal-close:hover { color: #555; }

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--color-tan-mid);
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 14px;
    background: white;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-control:focus { border-color: var(--accent-green); outline: none; }

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--color-tan-light);
    border: none;
    font-weight: 800;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.btn-submit:hover { background: var(--color-tan-mid); transform: translateY(-1px); }

/* 
   ================================================================
   10. PROFILE MODAL
   ================================================================
*/
.profile-card { text-align: center; padding: 30px !important; }

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #d1d1c1;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }

.pfp-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 50%;
}
.pfp-hover-overlay span { color: white; font-size: 50px; font-weight: 200; }
.profile-avatar-large:hover .pfp-hover-overlay { opacity: 1; }

.initials-placeholder { font-size: 40px; font-weight: 800; color: #333; }

.profile-username { font-size: 24px; font-weight: 900; color: #333; margin-bottom: 5px; }

.profile-stats-grid {
    display: flex;
    justify-content: space-around;
    background: #f1f1d4;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 18px; font-weight: 900; color: #222; }
.stat-label { font-size: 13px; color: #555; }

/* 
   ================================================================
   11. ELITE TILES (PROFILE GRID)
   ================================================================
*/
.elite-grid-tile {
    background: white;
    border: 1px solid #f0f0f0;
    padding: 25px 15px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.elite-grid-tile:hover {
    transform: translateY(-6px);
    border-color: var(--accent-green);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.elite-grid-tile strong { font-size: 13px; font-weight: 800; color: #333; }

.elite-wallet-card {
    background: white;
    padding: 25px 30px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--accent-green);
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 24px rgba(39,174,96,0.08);
}
.elite-wallet-card:hover { transform: scale(1.01); background: #f0fdf4; }

.elite-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 18px;
    background: white;
    border: 1px solid #f5f5f5;
    cursor: pointer;
    transition: 0.2s;
}
.elite-list-item:hover { background: #f9f9f9; padding-left: 25px; }

.pulse-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 50px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(231,76,60,0.25);
}

/* 
   ================================================================
   12. JOB DOSSIER (DETAIL VIEW)
   ================================================================
*/
.job-dossier {
    background: white;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    text-align: left;
    animation: slideUp 0.35s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.dossier-header {
    padding: 50px 50px 30px;
    text-align: center;
    background: linear-gradient(to bottom, #fdfdfb, #ffffff);
}

.dossier-title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.employer-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
}
.emp-pfp-small img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.category-tag, .category-pill-label {
    display: inline-block;
    background: #f0fdf4;
    color: var(--accent-green);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    border: 1px solid #dcfce7;
}

.section-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
    padding-left: 5px;
}

.dossier-body { padding: 0 50px 30px; }

.dossier-desc, .dossier-desc-box {
    font-size: 17px;
    line-height: 1.75;
    color: #444;
    background: #fbfbfb;
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed #eee;
    font-style: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-align: left;
}
.dossier-desc::before {
    content: '"';
    position: absolute;
    top: 10px; left: 15px;
    font-size: 40px;
    color: #e2e8f0;
    font-family: serif;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 50px 40px;
}

.dossier-info-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    transition: border-color 0.2s;
}
.dossier-info-box:hover { border-color: var(--accent-green); }

.dossier-icon, .info-icon {
    width: 40px; height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.dossier-text small, .info-text small {
    display: block;
    color: #aaa;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 1px;
}
.dossier-text strong, .info-text strong { font-size: 15px; color: #333; font-weight: 800; }

.dossier-footer {
    padding: 50px;
    background: #fdfdfd;
    border-top: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.btn-premium-apply {
    width: 100%;
    max-width: 450px;
    height: 65px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(39,174,96,0.22);
    transition: all 0.25s;
}
.btn-premium-apply:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(39,174,96,0.3); }

.trust-signal {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.owner-management-badge {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px 35px;
    border-radius: 24px;
    align-items: center;
    gap: 20px;
    text-align: left;
    max-width: 550px;
    margin: 0 auto;
}

.badge-icon { font-size: 28px; }
.badge-content strong { color: #1e293b; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px; }
.badge-content p { color: #64748b; font-size: 13px; margin: 0; }

/* 
   ================================================================
   13. VERIFIED BADGE
   ================================================================
*/
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    background: var(--accent-green);
    color: white;
    font-size: 9px;
    border-radius: 50%;
    vertical-align: middle;
    animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(39,174,96,0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
}

/* 
   ================================================================
   14. MISC COMPONENTS
   ================================================================
*/
.stars { font-size: 38px; margin-bottom: 10px; }
.star { color: #ccc; }
.star.filled { color: var(--accent-gold); }

footer {
    background: var(--color-tan-mid);
    padding: 60px 40px;
    text-align: center;
    margin-top: 40px;
}

/* Side drawer */
#side-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%; width: 0;
    background: white;
    overflow-x: hidden;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-top: 80px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}
#side-drawer a {
    white-space: nowrap;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* Inbox */
.inbox-row:hover, .inbox-item:hover { background: #f8fafc; }
.inbox-row:last-child { border-bottom: none; }
.inbox-item {
    transition: all 0.2s;
    border-radius: 12px;
}
.inbox-item:hover { transform: translateX(4px); border-color: var(--accent-green) !important; }

/* Toast */
#toast-container { position: fixed; bottom: 30px; right: 30px; }
.toast {
    background: #1a1a1a;
    color: white;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slideInToast 0.35s ease-out forwards;
    border-left: 4px solid var(--accent-green);
}
.toast.error { border-left-color: var(--accent-red); }

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Status badges */
.status-badge-premium {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}
.status-paid     { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.status-accepted { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }

/* Buttons */
.btn-premium-apply:hover, .btn-submit-premium:hover { transform: translateY(-3px); }

.btn-submit-premium {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 18px 52px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(39,174,96,0.28);
    transition: 0.25s;
}

.btn-step-next {
    width: 100%;
    height: 62px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.btn-step-back {
    flex: 0.4;
    height: 62px;
    background: #f0f0f0;
    color: #888;
    border: none;
    border-radius: 20px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}
.btn-step-next:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.btn-action-premium {
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}
.btn-action-premium:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-action-premium:active { transform: scale(0.95); }

.btn-verify-action {
    background: #1a1a1a;
    color: white;
    border: none;
    width: 100%;
    height: 58px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

/* Input error */
.input-error { border-color: var(--accent-red) !important; background: #fffafa !important; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}

/* Premium inbox card */
.premium-inbox-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}
.premium-inbox-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border-color: var(--accent-green);
}

/* Dashboard */
.dashboard-job-card[style*="border-left"] { animation: slideInLow 0.4s ease-out; }
@keyframes slideInLow {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Dossier cards */
.dossier-card {
    background: white;
    padding: 22px 15px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.dossier-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.05); border-color: var(--accent-gold); }
.dossier-card small { display: block; color: #aaa; text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px; }
.dossier-card strong { color: #1a1a1a; font-size: 18px; font-weight: 800; }

/* Security card */
.security-card-premium {
    background: white;
    border: 1px solid #eee;
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}
.shield-icon-wrap { position: relative; width: 60px; height: 60px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: white; border-radius: 50%; z-index: 1; }
.shield-pulse-ring { position: absolute; width: 100%; height: 100%; background: var(--accent-gold); border-radius: 50%; opacity: 0.25; animation: shield-pulse 2s infinite; z-index: -1; }
@keyframes shield-pulse { 0% { transform: scale(1); opacity: 0.25; } 70% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }

/* Modal animation */
@keyframes modalPop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
#success-modal .modal-content { animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Journey text */
.essay-container { scrollbar-width: thin; scrollbar-color: var(--color-tan-dark) transparent; }
.journey-text p { font-size: 17px; line-height: 1.9; color: #444; margin-bottom: 25px; font-family: 'Georgia', serif; }
.journey-text h3 { font-size: 24px; font-weight: 900; color: #1a1a1a; margin: 40px 0 15px; }
.drop-cap::first-letter { font-family: 'Segoe UI', sans-serif; float: left; font-size: 65px; line-height: 1; font-weight: 950; padding-right: 12px; color: var(--accent-green); }

/* Leaflet */
.leaflet-bar { border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }
.leaflet-bar a { background-color: white !important; color: #333 !important; border-bottom: 1px solid #f0f0f0 !important; }

/* Info boxes */
.info-box-clean { text-align: center; min-width: 120px; }
.info-box-clean strong { display: block; font-size: 14px; color: #333; margin-bottom: 5px; }
.info-box-clean span { color: #666; font-size: 16px; }

/* Modal title spacing */
.modal-title { margin-bottom: 25px !important; }

/* 
   ================================================================
   16. RESPONSIVE
   ================================================================
*/
@media (max-width: 900px) {
    .grid-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 0 16px; height: 80px; }

    .nav-actions { gap: 8px; }
    .hamburger { padding: 5px 10px; }

    .grid-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
        margin-top: 20px;
    }
    .grid-item {
        padding: 0;
        height: 90px;
        font-size: 13px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-job-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 8px;
    }
    .job-list-card {
        min-height: unset;
        padding: 22px 18px 18px;
    }
    .job-list-card h2 { font-size: 16px; }

    .spa-container { padding: 100px 12px 80px !important; }

    .dossier-grid { padding: 0 20px 24px; }
    .dossier-body { padding: 0 20px 20px; }
    .dossier-footer { padding: 30px 20px; }
    .dossier-header { padding: 30px 20px 20px; }
    .dossier-title { font-size: 26px; }

    .sub-filter-wrapper, #filter-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        padding: 0 8px 8px;
    }
    .sub-filter-wrapper::-webkit-scrollbar,
    #filter-container::-webkit-scrollbar { display: none; }

    #side-drawer {
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }
}

@media (max-width: 600px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        height: 65px;
        background: white;
        border-top: 1px solid #eee;
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #888;
        cursor: pointer;
        flex: 1;
        transition: 0.15s;
    }
    .nav-item:active { transform: scale(0.9); }
    .nav-icon { font-size: 20px; margin-bottom: 2px; }
    .nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

    body { padding-bottom: 80px !important; }

    .essay-container { padding: 30px 20px !important; }
    .journey-text p { font-size: 15px; }
}