:root {
    --kj-ink: #17213a;
    --kj-subtle: #4f5d75;
    --kj-bg-soft: #f4f9ff;
    --kj-card: rgba(255, 255, 255, 0.88);
    --kj-card-strong: rgba(255, 255, 255, 0.96);
    --kj-accent: #006d77;
    --kj-accent-2: #ff7b54;
    --kj-good: #00ae77;
    --kj-bad: #9f1239;
    --kj-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    --kj-radius-lg: 26px;
    --kj-radius-md: 16px;
}


.koopo-employer-form-wrap,
.koopo-resume-landing {
    color: var(--kj-ink);
    border-radius: var(--kj-radius-lg);
    padding: clamp(18px, 3.4vw, 34px);
    box-shadow: var(--kj-shadow);
}


.koopo-employer-form-wrap{
    background: radial-gradient(circle at 5% 10%, #ecfeff 0%, #f6f7ff 55%, #fff8f0 100%);
}

.koopo-jobs-board h2,
.koopo-employer-form-wrap h2,
.koopo-dashboard h2,
.koopo-resume-landing h2,
.koopo-job-card h3,
.koopo-resume-card h3 {
    font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
    letter-spacing: -0.02em;
}

.koopo-jobs-grid,
.koopo-resume-split,
.koopo-stats-grid {
    display: grid;
    gap: 14px;
}

.koopo-jobs-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.koopo-job-card,
.koopo-resume-card,
.koopo-resume-upload-panel,
.koopo-stat-card,
.koopo-dashboard-table-wrap {
    border-radius: var(--kj-radius-md);
    border: 1px solid rgba(23, 33, 58, 0.1);
    background: var(--kj-card);
    backdrop-filter: blur(5px);
}

.koopo-job-card,
.koopo-resume-card,
.koopo-resume-upload-panel,
.koopo-stat-card {
    padding: 16px;
}

.koopo-job-card__meta,
.koopo-muted {
    color: var(--kj-subtle);
    font-size: 0.92rem;
}

.koopo-job-card__company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
}

.koopo-company-logo {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
}

.koopo-company-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #d8e0ff 100%);
    border: 1px solid #d8def2;
    color: #3148c8;
    border-radius: 999px;
}

.koopo-company-logo--fallback svg {
    width: 18px;
    height: 18px;
}

.koopo-job-card__company-name {
    font-weight: 700;
    margin-bottom: 8px;
}

.koopo-pill {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: llinear-gradient(130deg, #0077a4, #00ae77);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 7px 10px;
    border-radius: 999px;
}

.koopo-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(130deg, #0077a4, #00ae77);
    color: #fff;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.koopo-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.1);
}

.koopo-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.koopo-btn--ghost {
    display: inline-block;
    border: 1px solid rgba(23, 33, 58, 0.22) !important;
    background: transparent;
    color: var(--kj-ink);
    text-decoration: none;
}

.koopo-job-apply-form,
.koopo-employer-form-wrap form,
.koopo-resume-upload-panel form {
    display: grid;
    gap: 10px;
    margin-bottom:0;
}

.koopo-job-apply-form textarea,
.koopo-employer-form-wrap textarea,
.koopo-employer-form-wrap input,
.koopo-employer-form-wrap select,
.koopo-resume-upload-panel input[type="file"] {
    width: 100%;
    border-radius: 11px;
    border: 1px solid rgba(23, 33, 58, 0.2);
    padding: 10px 12px;
    background: #fff;
}

.koopo-employer-form-wrap textarea:focus,
.koopo-employer-form-wrap input:focus,
.koopo-employer-form-wrap select:focus,
.koopo-job-apply-form textarea:focus {
    outline: 2px solid rgba(0, 109, 119, 0.25);
    border-color: var(--kj-accent);
}

.koopo-alert {
    border-radius: 11px;
    margin-bottom: 14px;
    font-weight: 600;
    padding: 10px 14px;
}

.koopo-alert--error {
    color: var(--kj-bad);
    background: rgba(159, 18, 57, 0.11);
}

.koopo-alert--success {
    color: var(--kj-good);
    background: rgba(10, 124, 74, 0.12);
}

.koopo-list,
.koopo-chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.koopo-chip-list {
    flex-direction: row;
    flex-wrap: wrap;
}

.koopo-chip-list li {
    border-radius: 999px;
    background: rgba(0, 109, 119, 0.12);
    color: #073f45;
    font-size: 0.84rem;
    padding: 7px 10px;
}

.koopo-dashboard-table-wrap {
    margin-top: 14px;
    padding: 14px;
    overflow-x: auto;
}

.koopo-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.koopo-dashboard-table th,
.koopo-dashboard-table td {
    text-align: left;
    font-size: 0.92rem;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(23, 33, 58, 0.1);
}

.koopo-dashboard-table th {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: var(--kj-subtle);
}

.koopo-apply-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.koopo-apply-modal[hidden] {
    display: none !important;
}

.koopo-apply-modal .koopo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 32, 0.68);
}

.koopo-apply-modal .koopo-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(12, 18, 32, 0.28);
    padding: 26px;
    display: grid;
    gap: 16px;
}

.koopo-apply-modal__lead,
.koopo-apply-modal__status {
    margin: 0;
}

.koopo-apply-modal__status {
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
}

.koopo-apply-modal__status.is-loading {
    background: rgba(15, 118, 110, 0.11);
    color: #00ae77;
}

.koopo-apply-modal__status.is-success {
    background: rgba(22, 163, 74, 0.11);
    color: #166534;
}

.koopo-apply-modal__status.is-error {
    background: rgba(190, 24, 93, 0.12);
    color: #9f1239;
}

.koopo-apply-modal__panel {
    display: grid;
    gap: 14px;
}

.koopo-apply-modal__field {
    display: grid;
    gap: 8px;
}

.koopo-apply-modal__field[hidden] {
    display: none !important;
}

.koopo-apply-modal__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #16213b;
}

.koopo-apply-modal__toggle input {
    width: 18px;
    height: 18px;
}

.koopo-apply-modal__field span {
    font-weight: 700;
    color: #16213b;
}

.koopo-apply-modal__field input,
.koopo-apply-modal__field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    padding: 12px 14px;
}

.koopo-apply-modal__field textarea {
    min-height: 168px;
    resize: vertical;
}

.koopo-apply-modal__actions {
    display: flex;
    justify-content: flex-end;
}
