:root {
    --rose: #a83f70;
    --rose-dark: #76304f;
    --sand: #fbf5ef;
    --sand-strong: #f4e6dc;
    --ink: #1f1a1d;
    --muted: #756d72;
    --line: #eadfdf;
    --card: #ffffff;
    --green: #2e7d5b;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--sand);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }

/* Buttons */
.button, .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--rose);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}
.button:hover, .btn:hover { background: var(--rose-dark); text-decoration: none; }
.button-small { padding: 8px 16px; font-size: 14px; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #000; }
.button-primary { background: var(--rose); }
.button-cream { background: #fff; color: var(--ink); }
.button-cream:hover { background: var(--sand-strong); }
.button-outline { background: #fff; color: var(--rose); border: 1px solid var(--line); }
.button-outline:hover { background: var(--sand); color: var(--rose-dark); }

/* Header */
.site-header { background: rgba(251, 245, 239, 0.92); border-bottom: 1px solid var(--line); padding: 16px 0; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--ink); }
.brand-mark svg { width: 28px; height: 28px; fill: none; stroke: var(--rose); stroke-width: 2; }
.brand-light { color: #fff; }
.brand-light .brand-mark svg { stroke: #fff; }
.brand b { color: var(--rose); }
.brand-light b { color: #f0bfd4; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.site-nav a:not(.button) { color: var(--ink); font-weight: 500; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Messages */
.message-wrap { padding-top: 16px; }
.messages { list-style: none; padding: 0; margin: 0 0 8px; }
.messages li { background: #eafaf0; border: 1px solid #b6e2c6; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }

/* Hero */
.hero { position: relative; padding: 72px 0 34px; background: linear-gradient(135deg, #fffaf6 0%, #f8ece7 100%); border-bottom: 1px solid var(--line); }
.hero-lede { color: var(--muted); font-size: 18px; max-width: 620px; margin: 18px 0 0; }

.hero-simple { text-align: center; padding: 56px 0; }
.hero-simple h1 { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.04em; margin: 0 auto; max-width: 700px; }
.hero-simple .hero-lede { margin: 14px auto 0; }
.hero-simple .hero-search { margin-left: auto; margin-right: auto; }
.hero-stat { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--rose-dark); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }

.hero-search { display: grid; grid-template-columns: minmax(0, 1fr) 180px 170px; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; margin: 30px 0 16px; box-shadow: 0 18px 40px rgba(71, 45, 53, 0.09); max-width: 760px; }
.search-field { display: flex; flex-direction: column; padding: 6px 12px; position: relative; border-right: 1px solid var(--line); }
.search-field:nth-child(2) { border-right: 0; }
.search-field svg { display: none; }
.search-field label { font-size: 12px; color: var(--muted); margin-bottom: 3px; font-weight: 700; }
.search-field input, .search-field select { border: none; outline: none; font-size: 16px; padding: 4px 0; background: transparent; color: var(--ink); width: 100%; }
.search-button { flex-shrink: 0; justify-content: center; min-height: 54px; }

/* Openings */
.openings { padding: 36px 0 58px; background: #fff; }

.filter-note { display: flex; justify-content: space-between; align-items: center; background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 14px; margin-bottom: 20px; }
.filter-note strong { color: var(--rose); }

.jobs-grid { display: grid; gap: 14px; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.job-card:hover { box-shadow: 0 14px 30px rgba(71, 45, 53, 0.08); border-color: #dfcbd1; }
.job-card-featured { border-color: var(--rose); box-shadow: 0 10px 26px rgba(71, 45, 53, 0.07); background: linear-gradient(180deg, #fffaf5 0%, #fff 60px); }
.job-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.salon-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--sand-strong); color: var(--rose-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.job-role { font-size: 12px; background: var(--sand); color: var(--rose-dark); padding: 5px 11px; border-radius: 999px; font-weight: 700; }
.job-card-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.job-badge { font-size: 11px; padding: 5px 10px; border-radius: 999px; font-weight: 700; display: inline-block; }
.job-badge-unverified { background: #fdf1d8; color: #8a5a13; }
.job-badge-featured { background: var(--rose); color: #fff; }

.featured-notice { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.featured-notice strong { display: block; margin-bottom: 4px; }
.featured-notice p { margin: 0; color: var(--muted); }
.job-main h3 { font-size: 22px; margin: 2px 0 8px; letter-spacing: -0.02em; }
.salon-name { color: var(--muted); font-size: 14px; margin: 0; font-weight: 700; }
.job-location { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.job-location svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.job-card-footer span { display: block; font-size: 11px; color: var(--muted); }
.job-card-footer strong { font-size: 16px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state span { font-size: 22px; color: var(--rose); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 32px; }
.pagination-status { color: var(--muted); font-size: 14px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #d8cdd3; padding: 32px 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #fff; }

/* Inner pages (post job, login, signup, dashboard, applicants, job detail) */
.inner-main { display: block; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.inner-main .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.inner-main form p { margin-bottom: 14px; }
.inner-main label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.inner-main input, .inner-main textarea, .inner-main select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.inner-main .job-card { margin-bottom: 12px; }
.renew-form { margin-top: 10px; }

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-header h2 {
    font-size: 34px;
    letter-spacing: -0.035em;
}

.dashboard-header p {
    color: var(--muted);
    margin: 6px 0 0;
}

.dashboard-empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    color: var(--muted);
}

.dashboard-empty p {
    margin-top: 0;
}

.dashboard-job h2 {
    font-size: 22px;
}

.dashboard-job-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.dashboard-job-actions .renew-form {
    margin-top: 0;
}

/* Mobile */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; flex-direction: column; align-items: flex-start; gap: 12px; position: absolute; top: 64px; right: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
    .site-nav.is-open { display: flex; }
    .hero-search { grid-template-columns: 1fr; }
    .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
    .job-card-footer { align-items: flex-start; flex-direction: column; }
    .job-card-footer .button { width: 100%; justify-content: center; }
    .dashboard-header { flex-direction: column; }
    .dashboard-header .button { width: 100%; justify-content: center; }
}
