/* ═══════════════════════════════════════════════════════════════════════════
   Freelancer Jobs Scraper — Freelancer Blue Dark Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --fwjobs-primary: #29b2fe;
    --fwjobs-primary-hover: #1687d3;
    --fwjobs-primary-light: rgba(41, 178, 254, 0.12);
    --fwjobs-primary-glow: rgba(41, 178, 254, 0.25);
    --fwjobs-accent: #70ceff;
    --fwjobs-bg: #09090b;
    --fwjobs-surface: #18181b;
    --fwjobs-surface-2: #121215;
    --fwjobs-border: #27272a;
    --fwjobs-border-hover: #3f3f46;
    --fwjobs-text: #fafafa;
    --fwjobs-text-muted: #a1a1aa;
    --fwjobs-text-dim: #71717a;
    --fwjobs-success: #22c55e;
    --fwjobs-warning: #f59e0b;
    --fwjobs-danger: #ef4444;
    --fwjobs-radius: 10px;
    --fwjobs-radius-sm: 6px;
    --fwjobs-radius-lg: 14px;
    --fwjobs-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Global Reset ────────────────────────────────────────────── */
.fwjobs-dashboard,
.fwjobs-landing,
.fwjobs-dashboard *,
.fwjobs-landing * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--fwjobs-font);
}

/* ─── Dashboard Layout ────────────────────────────────────────── */
.fwjobs-dashboard {
    display: flex;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: 100vh;
    background: var(--fwjobs-bg);
    color: var(--fwjobs-text);
    overflow: hidden !important;
    position: relative;
    border-radius: 16px;
}

/* Keep the desktop workspace in a single row even when the theme styles main/nav. */
@media (min-width: 901px) {
    .fwjobs-dashboard {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }

    .fwjobs-dashboard .fwjobs-sidebar {
        flex: 0 0 250px !important;
    }

    .fwjobs-dashboard .fwjobs-main {
        flex: 1 1 auto !important;
        width: calc(100% - 250px) !important;
        max-width: calc(100% - 250px) !important;
    }
}

/* ─── Sidebar ─────────────────────────────────────────────────── */
.fwjobs-sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.fwjobs-sidebar-logo {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--fwjobs-text);
    border-bottom: 1px solid var(--fwjobs-border);
}

.fwjobs-nav-items {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fwjobs-nav-btn,
.fwjobs-dashboard .fwjobs-nav-btn,
a.fwjobs-nav-btn,
button.fwjobs-nav-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    border-radius: var(--fwjobs-radius) !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--fwjobs-text-muted) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.fwjobs-nav-btn:hover,
.fwjobs-dashboard .fwjobs-nav-btn:hover,
a.fwjobs-nav-btn:hover,
button.fwjobs-nav-btn:hover {
    background: rgba(20, 168, 0, 0.12) !important;
    background-color: rgba(20, 168, 0, 0.12) !important;
    color: #ffffff !important;
}

.fwjobs-nav-btn.active,
.fwjobs-dashboard .fwjobs-nav-btn.active,
a.fwjobs-nav-btn.active,
button.fwjobs-nav-btn.active {
    background: rgba(20, 168, 0, 0.18) !important;
    background-color: rgba(20, 168, 0, 0.18) !important;
    color: #29b2fe !important;
    font-weight: 600 !important;
    box-shadow: inset 3px 0 0 #29b2fe !important;
}

.fwjobs-nav-btn i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.fwjobs-sidebar-footer {
    display: none !important;
}

.fwjobs-plan-badge {
    background: var(--fwjobs-primary-light);
    color: var(--fwjobs-primary);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 10px;
}

.fwjobs-usage-bar .usage-text {
    font-size: 0.75rem;
    color: var(--fwjobs-text-dim);
    margin-bottom: 5px;
}

.fwjobs-usage-bar .usage-track {
    background: var(--fwjobs-border);
    border-radius: 9999px;
    height: 6px;
    overflow: hidden;
}

.fwjobs-usage-bar .usage-fill {
    background: linear-gradient(90deg, var(--fwjobs-primary), var(--fwjobs-accent));
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* ─── Main Content ────────────────────────────────────────────── */
.fwjobs-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px 60px !important;
    overflow-x: hidden !important;
    overflow-y: auto;
}

.fwjobs-panel {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.fwjobs-panel.active {
    display: block;
    animation: fbFadeInUp 0.3s ease-out;
}

@keyframes fbFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Cards ───────────────────────────────────────────────────── */
.fwjobs-campaign-card {
    background: var(--fwjobs-surface);
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius-lg);
    padding: 22px 20px;
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.fwjobs-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fwjobs-text);
    margin: 0 0 6px;
}

.fwjobs-card-header h3 i {
    color: var(--fwjobs-primary);
    margin-right: 8px;
}

.fwjobs-card-header p {
    font-size: 0.85rem;
    color: var(--fwjobs-text-muted);
    margin: 0 0 20px;
}

/* ─── Inputs ──────────────────────────────────────────────────── */
.fwjobs-dashboard input,
.fwjobs-dashboard select,
.fwjobs-dashboard textarea,
.fwjobs-dashboard input[type="text"],
.fwjobs-dashboard input[type="search"],
.fwjobs-input,
input.fwjobs-input,
select.fwjobs-input,
textarea.fwjobs-input,
#fwjobs-keyword,
#fwjobs-country,
#fwjobs-max-results,
#fwjobs-job-filter {
    width: 100% !important;
    padding: 10px 14px !important;
    background: #09090b !important;
    background-color: #09090b !important;
    border: 1px solid var(--fwjobs-border) !important;
    border-radius: var(--fwjobs-radius) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 0.88rem !important;
    font-family: var(--fwjobs-font) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
    color-scheme: dark !important;
}

.fwjobs-dashboard input:focus,
.fwjobs-dashboard select:focus,
.fwjobs-dashboard textarea:focus,
.fwjobs-input:focus,
#fwjobs-keyword:focus,
#fwjobs-country:focus,
#fwjobs-max-results:focus,
#fwjobs-job-filter:focus {
    background: #09090b !important;
    background-color: #09090b !important;
    color: #ffffff !important;
    border-color: var(--fwjobs-primary) !important;
    box-shadow: 0 0 0 3px var(--fwjobs-primary-light) !important;
}

.fwjobs-input::placeholder,
input.fwjobs-input::placeholder,
#fwjobs-keyword::placeholder {
    color: #71717a !important;
    -webkit-text-fill-color: #71717a !important;
}

.fwjobs-dashboard select option {
    background: #18181b !important;
    color: #ffffff !important;
}

select.fwjobs-input,
.fwjobs-dashboard select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.fwjobs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--fwjobs-radius);
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--fwjobs-font);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    color: #ffffff;
}

.fwjobs-btn-primary {
    background: var(--fwjobs-primary) !important;
    color: #ffffff !important;
}

.fwjobs-btn-primary:hover {
    background: var(--fwjobs-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px var(--fwjobs-primary-glow);
    transform: translateY(-1px);
}

.fwjobs-btn-secondary {
    background: #18181b !important;
    color: #ffffff !important;
    border: 1px solid rgba(20, 168, 0, 0.3) !important;
}

.fwjobs-btn-secondary:hover {
    background: rgba(20, 168, 0, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(20, 168, 0, 0.5) !important;
}

.fwjobs-btn-outline {
    background: #18181b !important;
    color: #ffffff !important;
    border: 1px solid var(--fwjobs-border) !important;
}

.fwjobs-btn-outline:hover {
    background: rgba(20, 168, 0, 0.25) !important;
    color: #ffffff !important;
    border-color: var(--fwjobs-primary) !important;
}

.fwjobs-btn-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.fwjobs-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
}

/* ─── Search Form ─────────────────────────────────────────────── */
.fwjobs-search-form {
    margin-bottom: 24px;
}

.fwjobs-form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fwjobs-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fwjobs-form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fwjobs-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ─── Stats Row ───────────────────────────────────────────────── */
.fwjobs-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.fwjobs-stat-card {
    background: var(--fwjobs-bg);
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s;
}

.fwjobs-stat-card:hover {
    border-color: rgba(20, 168, 0, 0.3);
}

.fwjobs-stat-card .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--fwjobs-primary-light);
    color: var(--fwjobs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.fwjobs-stat-card .stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--fwjobs-text);
}

.fwjobs-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--fwjobs-text-dim);
}

/* ─── Toolbar ─────────────────────────────────────────────────── */
.fwjobs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fwjobs-border);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* ─── Table ───────────────────────────────────────────────────── */
.fwjobs-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius);
    display: block !important;
}

.fwjobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.fwjobs-table thead {
    background: var(--fwjobs-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fwjobs-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--fwjobs-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--fwjobs-border);
    white-space: nowrap;
}

.fwjobs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
    color: var(--fwjobs-text-muted);
    vertical-align: middle;
}

.fwjobs-table tbody tr:hover {
    background: rgba(20, 168, 0, 0.03);
}

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

/* ─── CTA Pill & Enriched Badges ─────────────────────────────── */
.fwjobs-cta-pill {
    display: inline-block;
    padding: 3px 10px;
    background: var(--fwjobs-primary-light);
    color: var(--fwjobs-primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.fwjobs-cat-pill {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
}

.fwjobs-post-badge {
    color: #29b2fe;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(20, 168, 0, 0.12);
    padding: 5px 9px;
    border-radius: 6px;
    border: 1px solid rgba(20, 168, 0, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fwjobs-post-badge:hover {
    background: rgba(20, 168, 0, 0.22);
    border-color: rgba(20, 168, 0, 0.45);
    color: #3b82f6;
}

.fwjobs-comments-pill {
    color: #4ade80;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.12);
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fwjobs-comments-pill:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.45);
}

/* ─── Job Status Badges & Progress ────────────────────────────── */
.fwjobs-job-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.fwjobs-job-badge.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.fwjobs-job-badge.status-processing {
    background: rgba(20, 168, 0, 0.15);
    color: #70ceff;
    border: 1px solid rgba(20, 168, 0, 0.35);
}

.fwjobs-job-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.fwjobs-job-badge.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.fwjobs-progress-track {
    width: 100%;
    height: 5px;
    background: #27272a;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 6px;
}

.fwjobs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fwjobs-primary), var(--fwjobs-accent));
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* ─── Modal ───────────────────────────────────────────────────── */
.fwjobs-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: flex-start;
    justify-content: flex-end;
}

.fwjobs-modal-backdrop.open {
    display: flex;
}

.fwjobs-modal-card {
    width: 520px;
    max-width: 90vw;
    height: 100vh;
    background: var(--fwjobs-surface);
    border-left: 1px solid var(--fwjobs-border);
    overflow-y: auto;
    animation: fbSlideIn 0.3s ease-out;
}

@keyframes fbSlideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.fwjobs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--fwjobs-border);
    position: sticky;
    top: 0;
    background: var(--fwjobs-surface);
    z-index: 10;
}

.fwjobs-modal-close {
    background: none;
    border: 1px solid var(--fwjobs-border);
    color: var(--fwjobs-text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--fwjobs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.fwjobs-modal-close:hover {
    background: var(--fwjobs-primary-light);
    color: var(--fwjobs-primary);
}

#fwjobs-ad-modal-body {
    padding: 22px;
}

/* ─── Checkout Modal ──────────────────────────────────────────── */
.fwjobs-checkout-modal-dialog {
    width: 680px;
    max-width: 95vw;
    max-height: 90vh;
    margin: 5vh auto;
    background: var(--fwjobs-surface);
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fwjobs-checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--fwjobs-border);
    background: var(--fwjobs-bg);
}

.fwjobs-checkout-modal-header h3 {
    font-size: 1rem;
    color: var(--fwjobs-text);
    margin: 0;
}

.fwjobs-checkout-modal-header h3 i {
    color: var(--fwjobs-primary);
    margin-right: 8px;
}

.fwjobs-checkout-modal-close {
    background: none;
    border: none;
    color: var(--fwjobs-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.fwjobs-checkout-modal-body {
    flex: 1;
    overflow: hidden;
}

.fwjobs-checkout-modal-body iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

/* ─── Billing Toggle ──────────────────────────────────────────── */
.fwjobs-billing-toggle-container,
.fwjobs-billing-toggle-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.fwjobs-billing-toggle,
.fwjobs-billing-toggle {
    display: inline-flex;
    background: var(--fwjobs-bg);
    border: 1px solid var(--fwjobs-border);
    border-radius: 9999px;
    padding: 3px;
}

.fwjobs-billing-toggle-btn,
.fwjobs-billing-toggle-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--fwjobs-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--fwjobs-font);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fwjobs-billing-toggle-btn.active,
.fwjobs-billing-toggle-btn.active {
    background: var(--fwjobs-primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--fwjobs-primary-glow);
}

.fwjobs-billing-toggle-btn .save-tag,
.fwjobs-billing-toggle-btn .save-tag {
    background: #22c55e;
    color: #000;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
}

/* ─── Plan Cards ──────────────────────────────────────────────── */
.fwjobs-plans-grid,
.fwjobs-plans-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fwjobs-plan-card,
.fwjobs-plan-card {
    background: var(--fwjobs-surface-2);
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius-lg);
    padding: 22px 18px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fwjobs-plan-card:hover,
.fwjobs-plan-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 168, 0, 0.3);
    box-shadow: 0 8px 30px rgba(20, 168, 0, 0.08);
}

.fwjobs-plan-featured,
.fwjobs-plan-featured {
    border-color: var(--fwjobs-primary) !important;
    box-shadow: 0 0 30px rgba(20, 168, 0, 0.1);
}

.fwjobs-plan-featured::before,
.fwjobs-plan-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fwjobs-primary), var(--fwjobs-accent));
}

.plan-badge-top {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fwjobs-primary);
    color: #fff;
    padding: 3px 14px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.plan-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fwjobs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-align: center;
}

.plan-price-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--fwjobs-text);
    text-align: center;
    margin-bottom: 16px;
}

.plan-price-display span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fwjobs-text-dim);
}

.plan-price-display small {
    display: block;
    font-size: 0.75rem;
    color: #a1a1aa;
    font-weight: 400;
    margin-top: 4px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    font-size: 0.82rem;
    color: var(--fwjobs-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li i {
    color: var(--fwjobs-success);
    font-size: 0.72rem;
}

.plan-features li strong {
    color: var(--fwjobs-text);
}

.plan-cta {
    margin-top: auto;
}

/* ─── Landing Page ────────────────────────────────────────────── */
.fwjobs-landing {
    background: var(--fwjobs-bg);
    color: var(--fwjobs-text);
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.fwjobs-landing-hero {
    text-align: center;
    padding: 70px 0 50px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fwjobs-primary-light);
    color: var(--fwjobs-primary);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.fwjobs-landing-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--fwjobs-text);
    margin-bottom: 18px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--fwjobs-primary), var(--fwjobs-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--fwjobs-text-muted);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--fwjobs-text-muted);
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Landing Stats Strip */
.fwjobs-landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 50px;
}

.fwjobs-landing-stat {
    background: var(--fwjobs-surface);
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.fwjobs-landing-stat:hover {
    border-color: rgba(20, 168, 0, 0.3);
    transform: translateY(-2px);
}

.fwjobs-landing-stat .stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fwjobs-primary);
    margin-bottom: 4px;
}

.fwjobs-landing-stat .stat-lbl {
    font-size: 0.78rem;
    color: var(--fwjobs-text-dim);
}

/* Landing Features */
.fwjobs-landing-features {
    margin-bottom: 50px;
    text-align: center;
}

.fwjobs-landing-features h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.fwjobs-landing-features .section-sub {
    font-size: 0.92rem;
    color: var(--fwjobs-text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.fwjobs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    text-align: left;
}

.fwjobs-feature-card {
    background: var(--fwjobs-surface);
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius-lg);
    padding: 24px 20px;
    transition: all 0.3s ease;
}

.fwjobs-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 168, 0, 0.3);
}

.fwjobs-feature-card .fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--fwjobs-primary-light);
    color: var(--fwjobs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.fwjobs-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fwjobs-text);
    margin-bottom: 8px;
}

.fwjobs-feature-card p {
    font-size: 0.84rem;
    color: var(--fwjobs-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.fwjobs-feature-card .fc-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fwjobs-feature-card .fc-tag {
    font-size: 0.7rem;
    background: rgba(20, 168, 0, 0.1);
    color: var(--fwjobs-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Demo Section */
.fwjobs-demo-section {
    margin-bottom: 50px;
    text-align: center;
}

.fwjobs-demo-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.fwjobs-demo-section .section-sub {
    font-size: 0.92rem;
    color: var(--fwjobs-text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
}

.fwjobs-demo-table-wrap {
    position: relative;
    border-radius: var(--fwjobs-radius);
    overflow: hidden;
    border: 1px solid var(--fwjobs-border);
}

.fwjobs-demo-blurred td {
    opacity: 0.6;
}

.fwjobs-demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, var(--fwjobs-bg) 30%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 24px;
    z-index: 10;
}

/* Landing Pricing */
.fwjobs-landing-pricing {
    margin-bottom: 50px;
    text-align: center;
}

.fwjobs-landing-pricing h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.fwjobs-landing-pricing .section-sub {
    font-size: 0.92rem;
    color: var(--fwjobs-text-muted);
    max-width: 600px;
    margin: 0 auto 8px;
}

/* Landing Bottom CTA */
.fwjobs-landing-cta {
    text-align: center;
    padding: 50px 20px 60px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, var(--fwjobs-surface), var(--fwjobs-bg));
    border: 1px solid var(--fwjobs-border);
    border-radius: var(--fwjobs-radius-lg);
}

.fwjobs-landing-cta h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.fwjobs-landing-cta p {
    font-size: 0.92rem;
    color: var(--fwjobs-text-muted);
    max-width: 500px;
    margin: 0 auto 24px;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {

    .fwjobs-dashboard,
    .fwjobs-dashboard.fwjobs-guest-mode {
        flex-direction: column !important;
        margin: 0 !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .fwjobs-sidebar,
    .fwjobs-dashboard.fwjobs-guest-mode .fwjobs-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        position: relative !important;
        top: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--fwjobs-border) !important;
        overflow-y: visible !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 10 !important;
    }

    .fwjobs-sidebar-logo {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--fwjobs-border) !important;
    }

    .fwjobs-nav-items {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fwjobs-nav-items::-webkit-scrollbar {
        display: none;
    }

    .fwjobs-nav-btn {
        white-space: nowrap !important;
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        flex: 0 0 auto !important;
    }

    .fwjobs-sidebar-footer {
        display: none !important;
    }

    .fwjobs-main,
    .fwjobs-dashboard.fwjobs-guest-mode .fwjobs-main {
        padding: 16px 12px 40px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 640px) {
    .fwjobs-landing-hero h1 {
        font-size: 1.8rem;
    }

    .fwjobs-form-row {
        flex-direction: column;
    }

    .fwjobs-plans-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fwjobs-features-grid {
        grid-template-columns: 1fr;
    }

    .fwjobs-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .fwjobs-plans-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Ultra-Specific Theme Override Safeguards ────────────────── */
#fwjobs-root,
.fwjobs-dashboard,
.fwjobs-dashboard div,
.fwjobs-dashboard section,
.fwjobs-dashboard article,
.fwjobs-dashboard nav,
.fwjobs-dashboard aside,
.fwjobs-dashboard main {
    color-scheme: dark !important;
}

.fwjobs-dashboard button,
.fwjobs-dashboard .fwjobs-btn,
.fwjobs-dashboard input,
.fwjobs-dashboard select,
.fwjobs-dashboard textarea {
    color-scheme: dark !important;
}

.fwjobs-dashboard .fwjobs-nav-btn,
.fwjobs-dashboard a.fwjobs-nav-btn,
.fwjobs-dashboard button.fwjobs-nav-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: #a1a1aa !important;
    border: none !important;
    box-shadow: none !important;
}

.fwjobs-dashboard .fwjobs-nav-btn:hover,
.fwjobs-dashboard a.fwjobs-nav-btn:hover,
.fwjobs-dashboard button.fwjobs-nav-btn:hover {
    background: rgba(20, 168, 0, 0.12) !important;
    background-color: rgba(20, 168, 0, 0.12) !important;
    color: #ffffff !important;
}

.fwjobs-dashboard .fwjobs-nav-btn.active,
.fwjobs-dashboard a.fwjobs-nav-btn.active,
.fwjobs-dashboard button.fwjobs-nav-btn.active {
    background: rgba(20, 168, 0, 0.18) !important;
    background-color: rgba(20, 168, 0, 0.18) !important;
    color: #29b2fe !important;
    font-weight: 600 !important;
    box-shadow: inset 3px 0 0 #29b2fe !important;
}

.fwjobs-dashboard #fwjobs-keyword,
.fwjobs-dashboard #fwjobs-country,
.fwjobs-dashboard #fwjobs-max-results,
.fwjobs-dashboard #fwjobs-job-filter,
.fwjobs-dashboard .fwjobs-input,
.fwjobs-dashboard input[type="text"],
.fwjobs-dashboard select {
    background: #09090b !important;
    background-color: #09090b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #27272a !important;
}

.fwjobs-dashboard #fwjobs-submit-search,
.fwjobs-dashboard .fwjobs-btn-primary {
    background: #29b2fe !important;
    background-color: #29b2fe !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #29b2fe !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUEST CONTINUOUS SCROLL LAYOUT (Like Mailey.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.fwjobs-dashboard.fwjobs-guest-mode {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    background: #09090b !important;
    border: 1px solid #27272a !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

@media (min-width: 901px) {

    .fwjobs-sidebar,
    .fwjobs-dashboard.fwjobs-guest-mode .fwjobs-sidebar {
        height: 100vh !important;
        min-height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        flex-shrink: 0 !important;
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }
}

.fwjobs-dashboard.fwjobs-guest-mode .fwjobs-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px 60px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
}

.fwjobs-dashboard.fwjobs-guest-mode .fwjobs-panel {
    display: block !important;
    margin-bottom: 45px !important;
    scroll-margin-top: 30px !important;
    animation: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.fwjobs-dashboard.fwjobs-guest-mode .fwjobs-panel:last-child {
    margin-bottom: 20px !important;
}

/* Guest Landing Section Elements */
.fwjobs-guest-landing-wrap {
    margin-bottom: 35px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* The dashboard, Jobs Database, API, and plans remain available to guests.
   Hide inherited ad-intelligence marketing copy that does not apply to jobs. */
.fwjobs-dashboard.fwjobs-guest-mode .fwjobs-datapoints-section,
.fwjobs-dashboard.fwjobs-guest-mode .fwjobs-usecases-section {
    display: none !important;
}

.fwjobs-landing-hero {
    text-align: center;
    padding: 36px 20px 32px !important;
    background: radial-gradient(circle at 50% 0%, rgba(20, 168, 0, 0.18), transparent 70%);
    border: 1px solid rgba(20, 168, 0, 0.22);
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.fwjobs-landing-hero h1 {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    max-width: 820px !important;
    margin: 0 auto 16px !important;
    letter-spacing: -0.02em !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.fwjobs-landing-hero .hero-sub {
    font-size: 0.95rem !important;
    color: #a1a1aa !important;
    max-width: 720px !important;
    margin: 0 auto 22px !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
}

.fwjobs-landing-hero .hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fwjobs-landing-hero .hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 0.82rem;
    color: #a1a1aa;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fwjobs-landing-hero .hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Metrics Strip */
.fwjobs-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px;
    margin-bottom: 36px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .fwjobs-metrics-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .fwjobs-metrics-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

.fwjobs-metric-box {
    background: #121215;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.25s ease;
    box-sizing: border-box !important;
}

.fwjobs-metric-box:hover {
    border-color: rgba(20, 168, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 168, 0, 0.12);
}

.fwjobs-metric-box .metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 4px;
}

.fwjobs-metric-box .metric-lbl {
    font-size: 0.78rem;
    color: #a1a1aa;
    font-weight: 500;
}

/* Section Header Shared */
.fwjobs-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 168, 0, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(20, 168, 0, 0.3);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.fwjobs-section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.fwjobs-section-sub {
    font-size: 0.95rem;
    color: #a1a1aa;
    max-width: 720px;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Data Points Breakdown Section */
.fwjobs-datapoints-section {
    margin-bottom: 50px;
}

.fwjobs-datapoints-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.fwjobs-data-card {
    background: #121215;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.fwjobs-data-card:hover {
    border-color: rgba(20, 168, 0, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.fwjobs-data-card .dc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.fwjobs-data-card .dc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.fwjobs-data-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px;
}

.fwjobs-data-card .dc-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
}

.fwjobs-data-card p {
    font-size: 0.86rem;
    color: #a1a1aa;
    line-height: 1.55;
    margin-bottom: 16px;
}

.fwjobs-data-card .dc-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

.fwjobs-data-card .dc-list li {
    font-size: 0.8rem;
    color: #e4e4e7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fwjobs-data-card .dc-list li i {
    color: #22c55e;
    font-size: 0.72rem;
}

/* Use Cases Section */
.fwjobs-usecases-section {
    margin-bottom: 45px;
}

.fwjobs-usecases-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.fwjobs-usecase-card {
    background: #121215;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.fwjobs-usecase-card:hover {
    border-color: rgba(20, 168, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.fwjobs-usecase-card .uc-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.fwjobs-usecase-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.fwjobs-usecase-card .uc-summary {
    font-size: 0.88rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 18px;
}

.fwjobs-usecase-card .uc-summary em {
    color: #38bdf8;
    font-style: normal;
    font-weight: 600;
}

.fwjobs-usecase-card .uc-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 14px;
}

.fwjobs-usecase-card .uc-step {
    font-size: 0.82rem;
    color: #d4d4d8;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fwjobs-usecase-card .uc-step em {
    color: #fbbf24;
    font-style: normal;
}

.fwjobs-usecase-card .uc-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(20, 168, 0, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(20, 168, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.fwjobs-usecase-card .uc-result-tag {
    margin-top: auto;
    font-size: 0.82rem;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.45;
}

.fwjobs-usecase-card .uc-result-tag strong {
    color: #ffffff;
}

@media (max-width: 900px) {

    .fwjobs-dashboard,
    .fwjobs-dashboard.fwjobs-guest-mode {
        margin: 0 !important;
        border-radius: 12px !important;
    }

    .fwjobs-landing-hero h1 {
        font-size: 1.7rem !important;
    }

    .fwjobs-usecases-grid,
    .fwjobs-datapoints-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Woodmart Tab Container Integration Safeguards ───────────── */
.woocommerce-Tabs-panel--description,
.entry-content.woocommerce-Tabs-panel--description,
.entry-content.woocommerce-Tabs-panel,
.woocommerce-tabs.wc-tabs-wrapper {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
}

.wc-tab-inner,
.entry-content .wc-tab-inner {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-Tabs-panel--description:has(.fwjobs-dashboard),
.woocommerce-Tabs-panel:has(.fwjobs-dashboard),
.product-tabs-inner:has(.fwjobs-dashboard) {
    overflow-x: clip !important;
    box-sizing: border-box !important;
}

.wc-tab-inner:has(.fwjobs-dashboard) {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
}

/* Desktop uses the same compact top navigation as mobile.  This final rule also
   overrides the earlier legacy left-rail declarations for guest dashboards. */
@media (min-width: 901px) {
    .fwjobs-dashboard,
    .fwjobs-dashboard.fwjobs-guest-mode {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .fwjobs-dashboard > .fwjobs-sidebar,
    .fwjobs-dashboard.fwjobs-guest-mode > .fwjobs-sidebar {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
        top: auto !important;
        overflow: visible !important;
        border-bottom: 1px solid var(--fwjobs-border) !important;
    }

    .fwjobs-dashboard > .fwjobs-sidebar .fwjobs-nav-items,
    .fwjobs-dashboard.fwjobs-guest-mode > .fwjobs-sidebar .fwjobs-nav-items {
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto !important;
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    .fwjobs-dashboard > .fwjobs-sidebar .fwjobs-nav-btn,
    .fwjobs-dashboard.fwjobs-guest-mode > .fwjobs-sidebar .fwjobs-nav-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .fwjobs-dashboard > .fwjobs-main,
    .fwjobs-dashboard.fwjobs-guest-mode > .fwjobs-main {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* Strict containment for campaign card and ads panel */
#panel-campaigns,
#panel-search,
#panel-api,
#panel-billing {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.fwjobs-campaign-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* ─── Login Drawer & Fallback Modal ────────────────────────────── */
.fwjobs-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.fwjobs-modal-inner {
    background: radial-gradient(circle at top left, #0b1528, #050a10);
    border: 1px solid rgba(20, 168, 0, 0.25);
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    height: auto;
    max-height: 90vh;
    overflow: auto;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(20, 168, 0, 0.15);
}

.fwjobs-modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fwjobs-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fwjobs-modal-close:hover {
    opacity: 1;
}

@media (min-width: 901px) {
    .fwjobs-plans-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    .fwjobs-usecases-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    .fwjobs-plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .fwjobs-usecases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .fwjobs-plans-grid {
        grid-template-columns: 1fr !important;
    }

    .fwjobs-usecases-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── API Key Box Responsive Safeguards ─────────────────────────── */
.fwjobs-api-key-box {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.fwjobs-api-key-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 640px) {
    .fwjobs-api-key-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .fwjobs-api-key-actions {
        width: 100% !important;
        margin-top: 8px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .fwjobs-api-key-actions .fwjobs-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .fwjobs-api-key-actions #fwjobs-toggle-api-key {
        flex: 0 0 auto !important;
        width: 36px !important;
        padding: 7px 0 !important;
    }
}
/* ─── Backward-compat aliases for plan/billing classes ─── */
.li-billing-toggle-container { display: flex; justify-content: center; margin-bottom: 24px; }
.li-billing-toggle { display: flex; background: var(--fwjobs-surface); border: 1px solid var(--fwjobs-border); border-radius: 10px; padding: 4px; gap: 4px; }
.li-billing-toggle-btn { padding: 8px 20px; border-radius: 8px; border: none; background: transparent; color: var(--fwjobs-text-muted); cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.li-billing-toggle-btn.active { background: var(--fwjobs-primary); color: #fff; }
.li-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.li-plan-card { background: var(--fwjobs-surface); border: 1px solid var(--fwjobs-border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s, transform 0.2s; }
.li-plan-card:hover { border-color: var(--fwjobs-primary); transform: translateY(-2px); }
.li-plan-card.li-plan-featured { border-color: var(--fwjobs-primary); background: linear-gradient(135deg, var(--fwjobs-primary-light), var(--fwjobs-surface)); }
.li-animate { animation: fwjobs-fadeIn 0.4s ease; }
