/* Remote Jobs Canada — shared design system */

:root {
    --brand-red: #e53935;
    --brand-red-dark: #c62828;
    --brand-red-light: #ffe5e5;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --surface: #ffffff;
    --surface-muted: #f4f4f5;
    --surface-card: #ededed;
    --border: #e8eaed;
    --container-max: 1120px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;
    --nav-height: 64px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-red: 0 4px 14px rgba(229, 57, 53, 0.25);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.5;
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/* ── Layout ── */

.app-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* ── Topbar ── */

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-topbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--space-sm) var(--space-xl);
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    box-sizing: border-box;
}

.app-topbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
}

.app-topbar-brand:hover {
    text-decoration: none;
}

.app-topbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.app-topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ── Top nav box (Home / Account / Resume) ── */

.topnav-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.topnav-box-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.topnav-box-item:hover {
    background: var(--surface-muted);
    color: var(--text-primary);
    text-decoration: none;
}

.topnav-box-item--resume {
    color: var(--brand-red);
}

.topnav-box-item--resume:hover {
    background: var(--brand-red-light);
    color: var(--brand-red-dark);
}

.topnav-box-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Resume modal ── */

.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.resume-modal[hidden] {
    display: none;
}

body.resume-modal-open {
    overflow: hidden;
}

.resume-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.resume-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: min(85vh, 640px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    padding: var(--space-xl);
}

.resume-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.resume-modal-close:hover {
    background: var(--brand-red-light);
    color: var(--brand-red);
}

.resume-modal-title {
    margin: 0 0 var(--space-xs);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding-right: var(--space-xl);
}

.resume-modal-lead {
    margin: 0 0 var(--space-sm);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-modal-intro {
    margin: 0 0 var(--space-lg);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.resume-modal-section {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: #f8f9fb;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.resume-modal-section:last-child {
    margin-bottom: 0;
}

.resume-modal-section h3 {
    margin: 0 0 6px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-modal-section p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.resume-modal-section a {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.resume-modal-section a:hover {
    color: var(--brand-red-dark);
}

/* ── Buttons ── */

.btn {
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    border: none;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.32);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.btn-outline:hover {
    background: var(--brand-red-light);
    color: var(--brand-red);
}

.btn-ghost {
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.btn-ghost:hover {
    background: var(--brand-red);
    color: #fff;
}

.btn:disabled,
.btn[disabled] {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

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

.btn-block {
    width: 100%;
}

/* ── Auth pages ── */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
}

.auth-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
}

.auth-card h1 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 800;
    margin: 0 0 var(--space-xs);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.auth-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg);
    color: var(--text-primary);
}

.auth-card .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.auth-card form {
    text-align: left;
}

.auth-footer-link {
    margin-top: var(--space-lg);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.account-card {
    max-width: 480px;
    text-align: left;
}

.account-card h1,
.account-card .subtitle {
    text-align: center;
}

.account-details {
    margin: var(--space-lg) 0 var(--space-xl);
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.account-row:last-child {
    border-bottom: none;
}

.account-row dt {
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.account-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

.account-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.account-badge--active {
    background: #e8f5e9;
    color: #2e7d32;
}

.account-badge--inactive {
    background: #f5f5f5;
    color: #616161;
}

.account-badge--warning {
    background: #fff3e0;
    color: #e65100;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ── Forms ── */

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.form-input::placeholder {
    color: #aaa;
}

/* ── Alerts ── */

.alert {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.alert-error {
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ── Search (job board) ── */

.search-page {
    background: #f8f9fb;
    min-height: 100vh;
}

.search-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.search-header-top {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--space-sm) var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-height: var(--nav-height);
    box-sizing: border-box;
}

.search-header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.search-header-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.search-header-form {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-lg);
}

.search-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
}

.search-pill {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    background: var(--surface);
    border-radius: 28px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 48px;
    padding: 0 16px 0 46px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-pill:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1), var(--shadow-sm);
}

.search-pill-icon {
    position: absolute;
    left: 14px;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}

.search-pill-input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--text-primary);
}

.search-pill-btn {
    height: 48px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0 18px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 22px;
    border: none;
    box-shadow: var(--shadow-red);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.32);
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-xs);
    scrollbar-width: none;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: 28px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    height: 34px;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.filter-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.filter-btn.selected {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

.filter-bubble {
    display: none;
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-red);
    color: #fff;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 0.875rem;
    font-weight: 700;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
    z-index: 8;
}

.remove-filter {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    font-family: inherit;
}

/* ── Job results ── */

.search-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-3xl);
}

.results-summary {
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.results-summary strong {
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2xl);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.empty-state h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
    color: var(--text-primary);
}

.empty-state p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.search-welcome {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    margin-top: var(--space-xl);
}

.search-welcome h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 var(--space-sm);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.search-welcome p {
    margin: 0 auto;
    max-width: 480px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.job-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    border-color: rgba(229, 57, 53, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.job-card-action {
    flex: 0 0 auto;
}

.job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.35;
}

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

.job-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.job-compensation {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--brand-red-dark);
    background: var(--brand-red-light);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-top: var(--space-xs);
}

.job-apply-btn {
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.job-apply-btn:hover {
    background: var(--brand-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ── Pagination (HeroUI-inspired) ── */

.pagination-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.results-page-title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 var(--space-lg);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-left: auto;
}

.pagination {
    flex: 0 0 auto;
}

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

.pagination-item {
    display: inline-flex;
    align-items: center;
}

.pagination-previous,
.pagination-next,
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.pagination-link {
    min-width: 36px;
    padding: 0;
}

.pagination-previous:hover:not(:disabled),
.pagination-next:hover:not(:disabled),
.pagination-link:hover:not(.is-active) {
    background: var(--surface-muted);
    border-color: #d0d4d9;
}

.pagination-link.is-active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.28);
}

.pagination-previous:disabled,
.pagination-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    color: var(--text-muted);
    font-size: 1rem;
    user-select: none;
}

.pagination-icon {
    flex-shrink: 0;
}

.pagination-per-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.pagination-per-page-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pagination-select {
    padding: 7px 28px 7px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.pagination-select:hover,
.pagination-select:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ── Pricing card ── */

.pricing-card {
    background: var(--brand-red-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(229, 57, 53, 0.08);
}

.pricing-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.pricing-features {
    text-align: left;
    margin-bottom: var(--space-lg);
    list-style: disc;
    padding-left: 20px;
}

.pricing-features li {
    margin-bottom: 6px;
    font-size: 1rem;
}

/* ── Reviews ── */

.reviews-section {
    background: var(--surface-card);
    border-radius: var(--radius-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    width: 100%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.review-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-portrait {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-sm);
}

.review-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.review-country {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.review-body {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.section-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: var(--space-md);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

/* ── Footer ── */

.site-footer {
    background: #111;
    color: #fff;
    padding: var(--space-2xl) 0 var(--space-md);
}

.site-footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
}

.site-footer-col-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 6px;
}

.site-footer-col-text {
    font-size: 0.875rem;
    color: #ccc;
    line-height: 1.6;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-links li {
    margin-bottom: 6px;
}

.site-footer-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 400;
}

.site-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Legal / info pages ── */

.legal-page {
    background: var(--surface-muted);
}

.legal-main {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-3xl);
}

.legal-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.02em;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.legal-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-xl);
}

.legal-section {
    margin-bottom: var(--space-xl);
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-md);
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-xs);
    color: var(--text-primary);
}

.legal-section p,
.legal-section li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.legal-section ul {
    padding-left: 1.25rem;
    margin: var(--space-sm) 0;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--brand-red);
}

.site-footer-bottom {
    border-top: 1px solid #333;
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg) 0;
    font-size: 0.875rem;
    color: #999;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .pagination-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .pagination-controls {
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .app-container,
    .app-topbar-inner,
    .search-header-top,
    .search-header-form,
    .search-content {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .search-header-top {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-lg);
    }

    .job-card-action {
        width: 100%;
        margin-top: var(--space-sm);
    }

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

    .search-row {
        flex-direction: column;
    }

    .search-pill,
    .search-pill-btn {
        width: 100%;
    }

    .search-pill-btn {
        min-width: unset;
    }

    .auth-card {
        padding: var(--space-xl) var(--space-lg);
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}
