/* ============================================================
   OnlyRemoteJobs — Main Stylesheet
   Complete responsive stylesheet for the entire application
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:    #1a1a2e;
    --secondary:  #16213e;
    --accent:     #e94560;
    --bg-light:   #f8f9fa;
    --text-dark:  #1a1a2e;
    --text-muted: #6c757d;
    --border:     #dee2e6;
    --white:      #ffffff;
    --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
    --radius:     8px;
    --radius-sm:  4px;
    --radius-lg:  16px;
    --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #c73652; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

/* ============================================================
   LAYOUT & CONTAINER
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
}

.nav-logo {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.5px;
    flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }

.nav-logo:hover { color: var(--white); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: rgba(255,255,255,.85);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

.nav-link.btn-accent {
    background: var(--accent);
    color: var(--white);
    padding: 8px 18px;
}

.nav-link.btn-accent:hover {
    background: #c73652;
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #0f3460 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 36px;
}

.hero-search {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.hero-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

.hero-input::placeholder { color: var(--text-muted); }

.hero-search .btn-accent {
    border-radius: 0 50px 50px 0;
    padding: 16px 28px;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.tag-pill {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: .8rem;
    color: rgba(255,255,255,.9);
    transition: background var(--transition), border-color var(--transition);
    cursor: pointer;
}

.tag-pill:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.7);
    color: var(--white);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    padding: 60px 0;
}

.section-light {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    color: var(--text-dark);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-count {
    font-size: .82rem;
    color: var(--text-muted);
}

/* ============================================================
   JOB / TALENT CARDS
   ============================================================ */

.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow var(--transition), border-color var(--transition);
    margin-bottom: 16px;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #c0c8d4;
}

.job-card-body {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-decoration: none;
}

.job-card-title:hover { color: var(--accent); }

.job-card-meta {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4361ee;
    white-space: nowrap;
}

.tag:nth-child(3n+1) { background: #fef3c7; color: #92400e; }
.tag:nth-child(3n+2) { background: #dcfce7; color: #166534; }
.tag:nth-child(3n+3) { background: #eef2ff; color: #4361ee; }

/* ============================================================
   JOB / TALENT DETAIL
   ============================================================ */

.job-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.job-detail-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.job-detail-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.job-detail-meta {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 12px;
}

.job-detail-salary {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    margin-top: 8px;
}

.job-detail-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    line-height: 1.85;
}

.job-detail-body h2,
.job-detail-body h3 {
    margin: 24px 0 12px;
}

.job-detail-body p { margin-bottom: 14px; }

.job-detail-body ul,
.job-detail-body ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.job-detail-body li { margin-bottom: 6px; }

.job-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
    background: var(--bg-light);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    font-size: .95rem;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: .9rem;
    color: var(--text-muted);
}

.auth-links a { font-weight: 600; }

.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    text-align: center;
}

.role-option input[type="radio"]:checked + .role-label {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff5f7;
}

.role-label:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 240px;
    background: var(--primary);
    color: var(--white);
    flex-shrink: 0;
    padding: 24px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar h3 {
    color: rgba(255,255,255,.5);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px 8px;
    margin-top: 20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    color: var(--white);
    border-left-color: var(--accent);
}

.sidebar-link.active {
    background: rgba(233,69,96,.15);
    color: var(--white);
    border-left-color: var(--accent);
    font-weight: 600;
}

.dashboard-content {
    flex: 1;
    padding: 32px;
    background: var(--bg-light);
    min-width: 0;
}

.dashboard-content h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="color"] {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group { flex: 1; }

/* ============================================================
   DATA TABLES
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: .9rem;
}

.data-table thead {
    background: var(--primary);
    color: var(--white);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.data-table tbody tr:nth-child(even) { background: #fafafa; }

.data-table tbody tr:hover { background: #f5f7ff; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--accent);
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular:hover { transform: scale(1.04) translateY(-4px); }

.pricing-card.selected {
    border-color: var(--accent);
    background: #fff5f7;
}

.pricing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pricing-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.pricing-amount {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1;
}

.pricing-amount span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 20px 0 28px;
}

.pricing-features li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-dark);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: '✓ ';
    color: #22c55e;
    font-weight: 700;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */

.search-bar {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

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

.search-bar .btn { border-radius: 0; }

.search-info {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 1rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    background: var(--white);
}

.page-link:hover {
    background: var(--bg-light);
    border-color: #adb5bd;
    color: var(--text-dark);
}

.page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}
.toast {
    padding: 14px 40px 14px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    font-size: 0.95em;
    line-height: 1.4;
}
.toast-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.toast-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
.toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}
.toast-close:hover { opacity: 1; }
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(50px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #c73652;
    color: var(--white);
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    color: var(--white);
}

.btn-sm {
    padding: 6px 14px;
    font-size: .8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    display: flex;
}

.btn:disabled,
.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: .3px;
    white-space: nowrap;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-active,
.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: center;
}

.filter-bar .btn { font-size: .85rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-about {
    flex: 1;
}
.footer-logo {
    color: white;
    font-size: 1.3em;
    margin-bottom: 0.5rem;
}
.footer-tagline {
    color: var(--accent);
    font-size: 0.95em;
    margin-bottom: 0.75rem;
}
.footer-message {
    font-size: 0.85em;
    line-height: 1.6;
    opacity: 0.7;
}
.footer-links-grid {
    display: flex;
    gap: 3rem;
}
.footer-links-grid div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links-grid h4 {
    color: white;
    font-size: 0.9em;
    margin-bottom: 4px;
}
.footer-links-grid a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85em;
}
.footer-links-grid a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8em;
    opacity: 0.6;
}
.footer-bottom a {
    color: rgba(255,255,255,0.8);
}

/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: clamp(4rem, 15vw, 8rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ============================================================
   UTILITY
   ============================================================ */

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-2  { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============================================================
   RESPONSIVE — MOBILE  max-width: 768px
   ============================================================ */

@media (max-width: 768px) {

    /* --- Navigation --- */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: 0 8px 24px rgba(0,0,0,.3);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        border-radius: 0;
        padding: 12px 20px;
    }

    /* --- Hero --- */
    .hero {
        padding: 50px 20px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
        overflow: visible;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }

    .hero-input {
        border-radius: var(--radius-sm);
        background: var(--white);
        border: none;
        width: 100%;
    }

    .hero-search .btn-accent {
        border-radius: var(--radius-sm);
        width: 100%;
    }

    /* --- Sections --- */
    .section,
    .section-light {
        padding: 40px 0;
    }

    .section-title { font-size: 1.5rem; }

    /* --- Category Grid --- */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* --- Job Cards --- */
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Stats --- */
    .stats-grid {
        flex-direction: column;
        gap: 0;
    }

    .stat-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.08);
        padding: 20px;
    }

    .stat-item:last-child { border-bottom: none; }

    /* --- Dashboard --- */
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 12px 0;
    }

    .sidebar h3 { margin-top: 8px; }

    .dashboard-content {
        padding: 20px 16px;
    }

    /* --- Pricing --- */
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        min-width: 0;
        width: 100%;
        max-width: 360px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

    /* --- Forms --- */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-card { padding: 20px; }

    /* --- Auth --- */
    .auth-card { padding: 28px 20px; }

    /* --- Tables --- */
    .table-wrapper,
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Job Detail --- */
    .job-detail-header,
    .job-detail-body {
        padding: 20px;
    }

    .job-detail-actions {
        flex-direction: column;
    }

    .job-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Footer --- */
    .footer-grid { flex-direction: column; gap: 2rem; }
    .footer-links-grid { gap: 2rem; }

    /* --- Filter bar --- */
    .filter-bar {
        gap: 8px;
    }
}

/* ============================================================
   RESPONSIVE — TABLET  max-width: 992px
   ============================================================ */

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


    .pricing-card {
        min-width: 220px;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .navbar, .sidebar, .footer, .btn, .pagination { display: none !important; }
    .dashboard-layout { display: block; }
    .dashboard-content { padding: 0; }
    body { color: #000; }
}

/* ============================================================
   TWO-COLUMN JOB DETAIL LAYOUT + AD BANNER
   ============================================================ */

/* Two-column job detail layout */
.job-detail-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.job-detail-main {
    flex: 1;
    min-width: 0;
}
.job-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

/* Ad banner */
.ad-banner {
    margin-bottom: 1.5rem;
}
.ad-banner img {
    border-radius: 8px;
}
.ad-placeholder div {
    transition: border-color 0.2s;
}
.ad-placeholder:hover div {
    border-color: var(--accent);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .job-detail-layout {
        flex-direction: column;
    }
    .job-detail-sidebar {
        width: 100%;
        position: static;
    }
}

/* ---- Reveal Status & Card Badges ---- */
.card-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 4px;
}
.badge-revealed {
    background: #dbeafe;
    color: #1e40af;
}
.badge-saved {
    background: #fef3c7;
    color: #92400e;
}
.status-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85em;
}
.inline-form { display: inline; }

/* ---- Dynamic Ad Sidebar Stack ---- */
.ad-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}
