:root {
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --primary: #2563eb;
    --primary-soft: rgba(37,99,235,0.08);
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --radius: 10px;
    --shadow-soft: 0 10px 30px rgba(15,23,42,0.06);
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}
.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}
.main-nav a {
    padding: 6px 0;
    color: var(--muted);
}
.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BUTTONS */
.btn-primary,
.btn-outline,
.btn-link,
.btn-ghost {
    border-radius: 999px;
    font-size: 14px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--bg-alt);
}

.btn-link {
    background: none;
    color: var(--muted);
    padding: 4px 8px;
}
.btn-link:hover {
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    border: none;
    color: var(--muted);
}
.btn-ghost:hover {
    background: var(--bg-alt);
}

.btn-ghost.danger {
    color: var(--danger);
}

.btn-outline.full,
.btn-primary.full {
    width: 100%;
}

.link-sm {
    font-size: 13px;
    color: var(--primary);
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
}
.burger span {
    width: 20px;
    height: 2px;
    background: var(--text);
}

/* HERO */
.hero {
    padding: 40px 0 32px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-text h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.hero-text p {
    color: var(--muted);
    margin: 0;
}

/* SEARCH */
.job-search {
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto;
    gap: 10px;
    padding: 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-soft);
}
.job-search .field label {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-bottom: 2px;
}
.job-search input,
.job-search select {
    border: none;
    outline: none;
    font-size: 13px;
    width: 100%;
}
.job-search .search-btn {
    border-radius: 999px;
    padding-inline: 22px;
    align-self: center;
}

/* TAGS */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}
.tag-pill {
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 12px;
}
.tag-pill:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* SECTION */
.section {
    padding: 32px 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h2 {
    margin: 0;
}

/* JOB CARDS */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.jobs-grid.small {
    grid-template-columns: 1fr;
}

.job-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px 14px 10px;
    background: white;
    box-shadow: 0 4px 12px rgba(15,23,42,0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.job-card-header h3 {
    margin: 0;
    font-size: 16px;
}
.job-card-header p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.job-card-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

/* BADGES */
.badge {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid transparent;
}
.badge-green {
    background: #ecfdf3;
    color: #15803d;
    border-color: #bbf7d0;
}
.badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.badge-orange {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

/* COMPANY CARDS */
.companies-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.company-card {
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--border);
    padding: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}
.company-card h3 {
    margin: 8px 0 4px;
    font-size: 15px;
}
.company-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.company-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}
.company-logo-circle.big {
    width: 64px;
    height: 64px;
    font-size: 24px;
}
.company-logo-circle.small {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

/* HOW IT WORKS */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 16px;
}
.steps-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}
.steps-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.step-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step h4 {
    margin: 0 0 2px;
    font-size: 14px;
}
.step p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* RESUME CTA */
.resume-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr);
    gap: 20px;
}
.contact-info {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--muted);
}
.contact-form .field {
    margin-bottom: 10px;
}
.field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #374151;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
}

/* FOOTER */
.site-footer {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    background: white;
    font-size: 13px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-links a {
    color: var(--muted);
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

/* JOB DETAIL LAYOUT */
.job-detail-layout {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,0.8fr);
    gap: 20px;
}
.job-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.job-detail-main h1 {
    margin: 0 0 6px;
    font-size: 22px;
}
.job-meta,
.job-meta-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.job-company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dot {
    color: #d1d5db;
}
.job-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.job-detail section {
    margin-bottom: 14px;
}
.job-detail section h2 {
    font-size: 16px;
    margin-bottom: 6px;
}
.bullet-list {
    padding-left: 20px;
    margin: 0;
    font-size: 14px;
}
.bullet-list li {
    margin-bottom: 4px;
}
.job-apply-box {
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    padding: 12px;
    background: #fefce8;
}
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    padding: 12px;
    font-size: 14px;
}
.small-hint {
    font-size: 12px;
    color: var(--muted);
}

/* COMPANY PAGE */
.company-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.company-header-card {
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}
.company-short {
    margin: 2px 0 6px;
    font-size: 14px;
    color: var(--muted);
}
.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

/* DASHBOARD */
.dashboard-body {
    background: var(--bg-alt);
}
.dashboard {
    display: grid;
    grid-template-columns: 240px minmax(0,1fr);
    min-height: calc(100vh - 64px);
}
.dashboard-sidebar {
    border-right: 1px solid var(--border);
    padding: 16px;
    background: #f9fafb;
}
.dashboard-sidebar h3 {
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: var(--muted);
}
.dashboard-sidebar a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}
.dashboard-sidebar a:hover {
    background: var(--primary-soft);
}
.dashboard-sidebar a.active {
    background: var(--primary);
    color: white;
}
.sidebar-separator {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.dashboard-content {
    padding: 16px;
}
.dash-section {
    display: none;
}
.dash-section.active {
    display: block;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px;
}
.field.full {
    grid-column: 1 / -1;
}
.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.simple-table th,
.simple-table td {
    border-bottom: 1px solid var(--border);
    padding: 8px 6px;
    text-align: left;
}
.simple-table th {
    background: #f9fafb;
}

/* UTIL */
.user-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .job-search {
        border-radius: 16px;
        grid-template-columns: 1fr;
    }
    .resume-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-detail-layout {
        grid-template-columns: minmax(0,1fr);
    }
    .job-detail-actions {
        align-items: flex-start;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .dashboard {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions {
        display: none;
    }
    .burger {
        display: flex;
    }
    .site-header.open .main-nav,
    .site-header.open .header-actions {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 10px;
        background: white;
        padding: 10px 16px 12px;
        border-bottom: 1px solid var(--border);
    }
    .header-actions {
        justify-content: flex-start;
    }
}
