:root {
    --ink: #102027;
    --muted: #5d6f78;
    --paper: #f7fbfc;
    --panel: #ffffff;
    --line: #dbe7ea;
    --blue: #247ba0;
    --teal: #21a89a;
    --coral: #f25f5c;
    --yellow: #ffd166;
    --green: #3bb273;
    --shadow: 0 18px 45px rgba(16, 32, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

body {
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

main {
    width: 100%;
}

.top-nav {
    width: 100%;
    min-height: 68px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: linear-gradient(90deg, #053b4a 0%, #247ba0 45%, #21a89a 100%);
    box-shadow: 0 12px 28px rgba(5, 59, 74, 0.2);
}

.brand {
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a,
.logout-form button {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-links a:hover,
.logout-form button:hover,
.nav-pill {
    background: rgba(255, 255, 255, 0.22);
}

.logout-form {
    margin: 0;
}

.message-strip {
    padding: 14px 5vw 0;
}

.message {
    max-width: 1120px;
    margin: 0 auto 10px;
    padding: 13px 16px;
    border-radius: 8px;
    border-left: 6px solid var(--blue);
    background: #fff;
    box-shadow: 0 10px 25px rgba(16, 32, 39, 0.08);
    font-weight: 700;
}

.message.success {
    border-left-color: var(--green);
}

.message.error {
    border-left-color: var(--coral);
}

.message.info {
    border-left-color: var(--yellow);
}

.hero {
    min-height: calc(100vh - 68px);
    padding: 58px 5vw 42px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 42px;
    background:
        linear-gradient(135deg, rgba(255, 209, 102, 0.22), transparent 38%),
        linear-gradient(180deg, #f7fbfc 0%, #eaf7f5 100%);
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 8px;
    color: #053b4a;
    background: rgba(255, 209, 102, 0.45);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

.hero p {
    max-width: 560px;
    font-size: 1.1rem;
}

.hero-media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 12 / 7;
    object-fit: cover;
}

.action-row,
.row-actions,
.card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn.primary {
    color: #fff;
    background: var(--coral);
    box-shadow: 0 10px 22px rgba(242, 95, 92, 0.24);
}

.btn.secondary {
    color: #053b4a;
    background: var(--yellow);
}

.btn.danger {
    color: #fff;
    background: #b42318;
    box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.btn.small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.86rem;
}

.btn.full {
    width: 100%;
}

.stats-band {
    width: min(1120px, 90vw);
    margin: -18px auto 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stats-band.compact {
    margin-top: 22px;
}

.stats-band div {
    min-height: 104px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 20px;
    text-align: center;
    background: #fff;
}

.stats-band div:nth-child(2) {
    background: #eaf7f5;
}

.stats-band strong {
    font-size: 2rem;
    color: #053b4a;
}

.stats-band span {
    color: var(--muted);
    font-weight: 800;
}

.page-shell {
    width: min(1120px, 90vw);
    margin: 42px auto;
}

.page-shell.single {
    max-width: 880px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
}

.grid-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(16, 32, 39, 0.08);
}

.accent-panel {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #053b4a 0%, #247ba0 62%, #21a89a 100%);
}

.accent-panel p,
.accent-panel .summary-list span {
    color: rgba(255, 255, 255, 0.78);
}

.accent-panel .eyebrow {
    color: #053b4a;
    background: var(--yellow);
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2,
.profile-summary h1,
.dashboard-header h1 {
    margin-top: 10px;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.auth-shell {
    min-height: calc(100vh - 68px);
    display: grid;
    place-items: center;
    padding: 42px 5vw;
    background:
        linear-gradient(145deg, rgba(36, 123, 160, 0.16), transparent 42%),
        linear-gradient(0deg, rgba(255, 209, 102, 0.26), transparent 48%);
}

.auth-panel {
    width: min(540px, 100%);
}

.stacked-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.form-row small {
    color: var(--muted);
    font-weight: 600;
}

.form-control,
.form-row input,
.form-row select,
.form-row textarea,
.search-bar input,
.search-bar select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #c9dade;
    border-radius: 8px;
    color: var(--ink);
    background: #fbfefe;
    font: inherit;
}

.form-row textarea {
    min-height: 118px;
    resize: vertical;
}

.field-error,
.form-errors {
    color: #b42318;
    font-size: 0.9rem;
}

.summary-list {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    margin-top: 24px;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-cloud span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    color: #053b4a;
    background: #e4f4f2;
    font-size: 0.82rem;
    font-weight: 800;
}

.skill-cloud span.matched {
    color: #fff;
    background: var(--green);
}

.skill-cloud.mini span {
    min-height: 24px;
    font-size: 0.76rem;
}

.dashboard-header {
    width: min(1120px, 90vw);
    margin: 38px auto 0;
    padding: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-header .eyebrow {
    background: rgba(255, 255, 255, 0.82);
}

.recruiter-theme {
    background: linear-gradient(135deg, #053b4a 0%, #247ba0 100%);
}

.seeker-theme {
    background: linear-gradient(135deg, #0e766d 0%, #3bb273 100%);
}

.page-title {
    width: min(1120px, 90vw);
    margin: 38px auto 0;
}

.page-title h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    align-items: end;
    gap: 14px;
}

.search-bar label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.job-results,
.item-list {
    display: grid;
    gap: 16px;
}

.job-results {
    margin-top: 20px;
}

.job-card,
.job-row,
.application-row,
.match-block {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.job-card-head,
.job-row,
.application-row,
.match-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.job-card h2,
.job-row h3,
.application-row h3,
.match-block h3 {
    margin-bottom: 6px;
}

.score-badge,
.status-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    color: #053b4a;
    background: var(--yellow);
    font-weight: 900;
}

.status-pill {
    background: #e4f4f2;
}

.match-line {
    margin-top: 12px;
    font-weight: 800;
}

.score-large {
    margin: 24px 0 8px;
    font-size: 3rem;
    font-weight: 900;
}

.job-description {
    padding: 16px;
    border-left: 6px solid var(--teal);
    border-radius: 8px;
    background: #f1faf8;
}

.delete-panel {
    border-top: 6px solid #b42318;
}

.muted,
.empty-state p {
    color: var(--muted);
}

@media (max-width: 860px) {
    .top-nav {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero,
    .two-column,
    .grid-shell,
    .search-bar {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 38px;
    }

    .stats-band {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .dashboard-header,
    .job-card-head,
    .job-row,
    .application-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand {
        white-space: normal;
    }

    h1 {
        font-size: 2.1rem;
    }

    .panel,
    .dashboard-header,
    .job-card,
    .job-row,
    .application-row,
    .match-block {
        padding: 20px;
    }

    .page-shell,
    .dashboard-header,
    .page-title {
        width: min(94vw, 1120px);
    }
}
