:root {
    --brand: #4338ca;
    --brand-dark: #312e81;
    --brand-light: #eef2ff;
    --brand-contrast: #ffffff;
    --ink: #111827;
    --body-text: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f8f9fc;
    --success: #059669;
    --success-light: #ecfdf5;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .06);
    --shadow-lg: 0 8px 24px rgba(17, 24, 39, .10);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--body-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* Navbar */
.site-navbar {
    background: #fff !important;
    border-bottom: 1px solid var(--border);
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.site-navbar .navbar-brand {
    color: var(--ink) !important;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), #6366f1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}
.site-navbar .nav-link {
    color: var(--body-text) !important;
    font-weight: 500;
    font-size: .93rem;
    padding: .5rem .8rem !important;
}
.site-navbar .nav-link { position: relative; transition: color .15s ease; }
.site-navbar .nav-link:hover { color: var(--brand) !important; }
.site-navbar .nav-link.active { color: var(--brand) !important; font-weight: 600; }
.site-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: -1px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.navbar-toggler { border: none; box-shadow: none !important; }
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    object-fit: cover;
}

/* Buttons */
.btn { border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; padding: .55rem 1.1rem; transition: background-color .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-secondary { color: var(--body-text); border-color: var(--border); }
.btn-lg { padding: .75rem 1.6rem; font-size: 1.02rem; border-radius: 10px; }

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card.elevated { box-shadow: var(--shadow-lg); }

/* Badges */
.badge { font-weight: 600; letter-spacing: 0; border-radius: 999px; padding: .4em .75em; }
.badge.bg-secondary { background: #eef0f4 !important; color: var(--body-text) !important; }
.badge.bg-success { background: var(--success-light) !important; color: var(--success) !important; }
.badge.bg-danger { background: var(--danger-light) !important; color: var(--danger) !important; }
.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--brand-light);
    color: var(--brand-dark);
    border: none;
    border-radius: 999px;
    padding: .35em .8em;
    font-size: .82rem;
    font-weight: 600;
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border);
    padding: .6rem .8rem;
    font-size: .94rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .3rem; }

/* Tables */
.table { font-size: .92rem; }
.table thead th {
    color: var(--muted);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom-width: 1px;
    border-color: var(--border);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--brand-light) 0%, rgba(238,242,255,0) 100%);
    border-radius: var(--radius);
    padding: 2.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero { padding: 4.5rem 2.5rem; }
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .8rem;
    border-radius: 999px;
    padding: .4em .9em;
    margin-bottom: 1.25rem;
}
.hero h1 { font-size: 1.85rem; max-width: 720px; }
.hero p.lead { font-size: 1rem; color: var(--body-text); max-width: 620px; }
@media (min-width: 768px) {
    .hero h1 { font-size: 2.75rem; }
    .hero p.lead { font-size: 1.15rem; }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* Hero decorative blobs */
.hero-visual { position: relative; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .35;
    z-index: 0;
}
.hero-blob-1 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #818cf8, transparent 70%);
    top: -60px;
    right: -40px;
}
.hero-blob-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--brand), transparent 70%);
    bottom: -50px;
    left: -30px;
}
.scorecard-mock { position: relative; z-index: 1; }

/* Trust strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.5rem;
    padding: 1.1rem 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--body-text);
}
.trust-item i { color: var(--brand); font-size: 1rem; }

/* Hero scorecard mockup */
.scorecard-mock {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    max-width: 380px;
    margin: 0 auto;
    transform: rotate(-1deg);
}
.scorecard-mock .sc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
}
.scorecard-mock .sc-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.scorecard-mock .sc-sub { font-size: .78rem; color: var(--muted); }
.scorecard-mock .sc-row { margin-bottom: .85rem; }
.scorecard-mock .sc-row-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    font-weight: 600;
    color: var(--body-text);
    margin-bottom: .3rem;
}
.scorecard-mock .sc-bar {
    height: 7px;
    border-radius: 999px;
    background: #eef0f4;
    overflow: hidden;
}
.scorecard-mock .sc-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #6366f1);
    border-radius: 999px;
}
.scorecard-mock .sc-note {
    background: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-sm);
    padding: .6rem .8rem;
    font-size: .78rem;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Job search bar (hero) */
.job-search-bar {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem;
    box-shadow: var(--shadow);
    max-width: 560px;
}
@media (min-width: 576px) {
    .job-search-bar { flex-direction: row; align-items: center; }
}
.job-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    color: var(--muted);
}
@media (min-width: 576px) {
    .job-search-field:first-child { border-right: 1px solid var(--border); }
}
.job-search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: .92rem;
    color: var(--ink);
    background: transparent;
}
.job-search-bar .btn { flex-shrink: 0; white-space: nowrap; }

/* Job teaser cards (homepage) */
.job-teaser-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    color: inherit;
}
.job-teaser-card h6 { color: var(--ink); }
.job-teaser-card:hover h6 { color: var(--brand); }

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border: none;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { color: #e0e7ff; }
.btn-light-cta { background: #fff; color: var(--brand-dark); font-weight: 700; }
.btn-light-cta:hover { background: #f4f4ff; color: var(--brand-dark); }
.btn-outline-light-cta { background: transparent; color: #fff; font-weight: 700; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light-cta:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* Job listing / detail pages */
.job-card-link { color: inherit; }
.prep-upsell {
    background: var(--brand-light);
    border: 1px dashed var(--brand);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
}

/* Job filter bar */
.job-filter-bar {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) {
    .job-filter-bar { flex-direction: row; align-items: center; }
}
.job-filter-bar .job-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .7rem;
    color: var(--muted);
}
@media (min-width: 768px) {
    .job-filter-bar .job-search-field:not(:last-of-type) { border-right: 1px solid var(--border); }
}
.job-filter-bar input, .job-filter-bar select {
    border: none;
    outline: none;
    width: 100%;
    font-size: .92rem;
    color: var(--ink);
    background: transparent;
}
.job-filter-bar .job-search-select select { appearance: none; cursor: pointer; }
.job-filter-bar .btn { flex-shrink: 0; white-space: nowrap; }

/* Job avatar */
.job-avatar {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.job-avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }

/* Job list rows */
.job-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.job-list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.job-list-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
    color: inherit;
}
.job-list-main {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
    min-width: 0;
}
.job-list-title {
    font-weight: 700;
    color: var(--ink);
    font-size: .98rem;
}
.job-list-row:hover .job-list-title { color: var(--brand); }
.job-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .82rem;
    color: var(--muted);
}
.job-list-meta i { margin-right: .25rem; }
.job-list-side {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .job-list-row { flex-wrap: wrap; }
    .job-list-side { width: 100%; justify-content: space-between; padding-left: calc(44px + 1rem); }
}

/* Pagination */
.job-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.job-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--body-text);
    font-weight: 600;
    font-size: .88rem;
}
.job-pagination .page-btn:hover { border-color: var(--brand); color: var(--brand); }
.job-pagination .page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.job-pagination .page-btn.disabled { pointer-events: none; opacity: .4; }
.job-pagination .page-ellipsis { color: var(--muted); padding: 0 .25rem; }

/* Job detail page */
.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 992px) {
    .job-detail-grid { grid-template-columns: 2fr 1fr; }
}
.job-fact-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.2rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}
.job-fact {
    font-size: .86rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.prep-upsell-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Package detail / coupon */
.coupon-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.coupon-field {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .5rem .8rem;
}
.coupon-field input { text-transform: uppercase; }
.coupon-field input::placeholder { text-transform: none; }
.price-summary {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.price-summary .price { font-size: 1.4rem; font-weight: 800; color: var(--ink); }

/* Package icon */
.package-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: .75rem;
}

/* Section headers */
.section-eyebrow {
    color: var(--brand);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.section-title { font-size: 1.75rem; margin-top: .3rem; }

/* Feature / step cards */
.feature-card {
    padding: 1.5rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: .9rem;
}
.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}

/* Pricing cards */
.pricing-card {
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-lg);
}
.pricing-card .popular-tag {
    position: absolute;
    top: -12px;
    left: 1.75rem;
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3em .8em;
    border-radius: 999px;
}
.pricing-card .price { font-size: 1rem; font-weight: 500; color: var(--ink); }
.pricing-card .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }

/* Progress / stepper (booking flow) */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: .25rem .1rem;
}
@media (min-width: 768px) {
    .flow-steps { justify-content: center; overflow-x: visible; }
}
.flow-steps .flow-step {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-weight: 600;
    font-size: .8rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.flow-steps .flow-step .dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef0f4;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    flex-shrink: 0;
}
.flow-steps .flow-step.done .dot { background: var(--success); color: #fff; }
.flow-steps .flow-step.active .dot { background: var(--brand); color: #fff; }
.flow-steps .flow-step.active { color: var(--ink); }
.flow-steps .flow-sep { width: 20px; height: 1px; background: var(--border); flex-shrink: 0; }

/* Google sign-in */
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .93rem;
    padding: .55rem 1.1rem;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-google:hover { background: #f8f9fc; color: var(--ink); box-shadow: var(--shadow); }
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 1.1rem 0;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.auth-divider span { padding: 0 .9rem; }

/* Auth pages */
.auth-shell { padding: 1rem 0 2rem; }
.auth-card {
    padding: 2.25rem;
}
.auth-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 1rem;
}

/* Split-screen auth layout */
.auth-split {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: #fff;
}
@media (min-width: 992px) {
    .auth-split { grid-template-columns: 1fr 1fr; }
}
.auth-split-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}
.auth-split-brand h3 { color: #fff; }
.auth-split-brand p { color: #e0e7ff; }
.auth-split-brand ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.auth-split-brand li { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: #e0e7ff; }
.auth-split-brand li i { font-size: 1.15rem; margin-top: 2px; color: #c7d2fe; }
.auth-split-form {
    padding: 2.5rem;
    display: flex;
    align-items: center;
}
.auth-split-form > div { width: 100%; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 2.5rem 0 1.5rem;
    color: var(--muted);
    font-size: .88rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }

/* Stat tiles */
.stat-tile { padding: 1.25rem; }
.stat-tile .stat-label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-tile .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--ink); margin-top: .2rem; }
