/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --green-dark:   #14532D;
    --green-mid:    #16A34A;
    --green:        #22C55E;
    --green-light:  #4ADE80;
    --green-pale:   #DCFCE7;
    --green-xpale:  #F0FDF4;

    /* Accent */
    --accent:       #F59E0B;

    /* Text — slate palette */
    --text:         #0F172A;
    --text-mid:     #1E293B;
    --text-muted:   #64748B;

    /* Surfaces */
    --bg:           #FFFFFF;
    --surface:      #F8FAFC;
    --border:       rgba(15, 23, 42, 0.08);
    --border-mid:   rgba(15, 23, 42, 0.13);
    --white:        #FFFFFF;

    /* Radius */
    --radius:       12px;
    --radius-lg:    20px;
    --radius-pill:  9999px;

    /* Shadows */
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
    --shadow:       0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);
    --shadow-lg:    0 8px 16px rgba(0,0,0,0.06), 0 24px 64px rgba(0,0,0,0.10);
    --shadow-green: 0 4px 24px rgba(22,163,74,0.22);

    /* Animation */
    --transition:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(0.99) translateY(0); }

.btn-primary {
    background: var(--green-mid);
    color: var(--white);
    border-color: var(--green-mid);
    box-shadow: 0 1px 4px rgba(22,163,74,0.25);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    box-shadow: var(--shadow-green);
}

.btn-outline {
    background: transparent;
    color: var(--green-mid);
    border-color: rgba(22,163,74,0.35);
}
.btn-outline:hover {
    background: var(--green-xpale);
    border-color: var(--green-mid);
}

.btn-white {
    background: var(--white);
    color: var(--green-dark);
    border-color: rgba(255,255,255,0.3);
    box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--green-pale); }

.btn-sm  { padding: 6px 14px; font-size: 0.825rem; }
.btn-lg  { padding: 13px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ─── Logo ───────────────────────────────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--green-dark);
    letter-spacing: -0.025em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    border-radius: 9px;
    flex-shrink: 0;
}
.logo-mark--sm { width: 24px; height: 24px; border-radius: 7px; }

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.footer-brand .logo-mark { background: rgba(255,255,255,0.2); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.main-nav > a:not(.btn) {
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}
.main-nav > a:not(.btn):hover { color: var(--text); background: var(--surface); }
.main-nav .btn { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ─── Flash messages ─────────────────────────────────────────────────────── */
.flash-messages { padding: 12px 0 0; }
.flash {
    padding: 11px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}
.flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash-info    { background: var(--green-xpale); color: var(--green-dark); border: 1px solid var(--green-pale); }
.flash-success { background: var(--green-pale);  color: var(--green-dark); border: 1px solid #86EFAC; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    padding: 96px 0 110px;
    background:
        radial-gradient(ellipse 70% 65% at 8% -5%, rgba(220,252,231,0.75) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 88% 105%, rgba(220,252,231,0.45) 0%, transparent 55%),
        var(--white);
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 22px;
}
.hero-content h1 .highlight {
    color: var(--green-mid);
    position: relative;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.75;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Match card illustration */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.card-stack  { position: relative; width: 290px; }

.match-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.match-card--behind {
    position: absolute;
    inset: auto -10px -12px 10px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--green-pale);
    border: 1px solid rgba(74,222,128,0.3);
    z-index: 0;
}
.match-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
    flex-shrink: 0;
}
.match-info   { flex: 1; min-width: 0; }
.match-name   { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.match-tag    { font-size: 0.77rem; color: var(--text-muted); margin-top: 3px; }
.match-score  { font-weight: 700; font-size: 1.1rem; color: var(--green-mid); flex-shrink: 0; }

/* ─── How it works ───────────────────────────────────────────────────────── */
.how-it-works {
    padding: 96px 0;
    background: var(--surface);
    text-align: center;
}
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-mid);
    margin-bottom: 14px;
}
.how-it-works h2 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 60px;
    letter-spacing: -0.035em;
}

.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}
.step {
    flex: 1;
    max-width: 280px;
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}
.step-number {
    width: 44px;
    height: 44px;
    background: var(--green-xpale);
    color: var(--green-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 18px;
    border: 1.5px solid var(--green-pale);
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.02em; }
.step p   { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

.step-connector {
    align-self: center;
    padding: 0 12px;
    font-size: 1.2rem;
    color: var(--border-mid);
    flex-shrink: 0;
}

/* ─── For volunteers / orgs ──────────────────────────────────────────────── */
.for-both { padding: 96px 0; background: var(--white); }
.for-both .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.for-card {
    padding: 44px 40px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.for-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.badge--volunteer { background: var(--green-pale);  color: var(--green-dark); }
.badge--org       { background: #FEF3E8;             color: #9A3412; }

.for-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    line-height: 1.28;
}
.feature-list li {
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--green-pale);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316A34A'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list { margin-bottom: 30px; }

/* ─── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
    padding: 100px 24px;
    background: linear-gradient(145deg, #0C3D22 0%, #14532D 50%, #166534 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(74,222,128,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    padding: 44px 0;
    background: #0C1A13;
    color: rgba(255,255,255,0.5);
    text-align: center;
}
.footer-tagline { font-size: 0.875rem; margin-bottom: 8px; color: rgba(255,255,255,0.6); }
.footer-copy    { font-size: 0.775rem; opacity: 0.4; }

/* ─── Auth ───────────────────────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background:
        radial-gradient(ellipse 80% 70% at 0% 0%, rgba(220,252,231,0.5) 0%, transparent 60%),
        var(--surface);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
}
.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}
.auth-card .subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius);
    font-size: 0.925rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.form-group textarea { resize: vertical; min-height: 96px; }

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}
.checkbox-item {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
    user-select: none;
    transition: all var(--transition);
}
.checkbox-item:hover {
    border-color: var(--green-mid);
    background: var(--green-xpale);
    color: var(--green-dark);
}
.checkbox-item:has(input:checked) {
    background: var(--green-mid);
    color: var(--white);
    border-color: var(--green-mid);
    box-shadow: 0 1px 4px rgba(22,163,74,0.25);
}
.checkbox-item input[type="checkbox"] { display: none; }
.checkbox-other-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 6px;
    display: block;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }

.form-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}
.form-footer a { color: var(--green-mid); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* Role picker */
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 22px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}
.role-card:hover {
    border-color: var(--green-mid);
    background: var(--green-xpale);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.role-card .role-icon  { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.role-card .role-name  { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.role-card .role-desc  { font-size: 0.775rem; color: var(--text-muted); text-align: center; line-height: 1.4; }

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.dashboard { padding: 40px 0 64px; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}
.dashboard-header p { color: var(--text-muted); margin-top: 5px; font-size: 0.9rem; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.card-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.empty-state {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 20px 0;
    line-height: 1.65;
}

/* ─── Match items (basic row) ─────────────────────────────────────────────── */
.match-item, .opp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.match-item:last-child, .opp-item:last-child { border-bottom: none; }
.match-item strong, .opp-item strong { color: var(--text); font-weight: 500; }
.match-item .score-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green-mid);
    background: var(--green-xpale);
    border: 1px solid var(--green-pale);
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

/* ─── Match items (rich card version) ──────────────────────────────────────── */
.match-item--rich {
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    gap: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.match-item--rich:last-child { margin-bottom: 0; }
.match-item--rich:hover {
    border-color: var(--border-mid);
    box-shadow: var(--shadow);
}
.match-item-body { flex: 1; }
.match-item-title { font-weight: 600; font-size: 0.9rem; color: var(--text); letter-spacing: -0.01em; }
.match-item-org   { font-size: 0.775rem; color: var(--text-muted); margin-top: 3px; }
.match-item-reasoning {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
    font-style: italic;
}
.match-item-side {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* ─── Score pill (standalone) ─────────────────────────────────────────────── */
.score-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green-mid);
    background: var(--green-xpale);
    border: 1px solid var(--green-pale);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* ─── Profile summary (dashboard card) ──────────────────────────────────────── */
.profile-summary { display: flex; flex-direction: column; gap: 0; }
.profile-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }

/* ─── Tags ───────────────────────────────────────────────────────────────── */
.tag {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--green-pale);
    color: var(--green-dark);
    letter-spacing: 0.01em;
}
.tag--remote { background: #E0F2FE; color: #075985; }

/* ─── Card title row ─────────────────────────────────────────────────────── */
.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.card-title-row .card-title { margin-bottom: 0; }
.card-title-link {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--green-mid);
    text-decoration: none;
}
.card-title-link:hover { text-decoration: underline; }

/* ─── Opportunities list ─────────────────────────────────────────────────── */
.page-header {
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.035em;
}
.page-header p { color: var(--text-muted); margin-top: 6px; font-size: 0.9rem; }

.opportunities-grid {
    padding: 36px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.opp-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.opp-card:hover {
    border-color: var(--border-mid);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.opp-card-org   { font-size: 0.775rem; color: var(--text-muted); font-weight: 500; }
.opp-card-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.35; letter-spacing: -0.02em; }
.opp-card-desc  { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }
.opp-card-tags  { display: flex; gap: 5px; flex-wrap: wrap; }
.opp-card { display: block; text-decoration: none; color: inherit; }

/* ─── Org dashboard: managed opp rows ─────────────────────────────────────── */
.opp-item--managed, .opp-item--closed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.opp-item--managed:last-child, .opp-item--closed:last-child { border-bottom: none; }
.opp-item-info { flex: 1; min-width: 0; }
.opp-item-info strong { color: var(--text); font-weight: 600; font-size: 0.875rem; }
.opp-item-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.opp-item--closed .opp-item-info strong { color: var(--text-muted); font-weight: 500; }

/* ─── Opportunities filter bar ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.filter-search-wrap {
    position: relative;
    flex: 1 1 240px;
    min-width: 0;
}
.filter-search {
    width: 100%;
    padding: 9px 38px 9px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-search:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.filter-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.filter-search-btn:hover { color: var(--green-mid); }
.filter-select {
    padding: 9px 12px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    height: 40px;
    transition: border-color var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--green-mid); }
.filter-remote-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-mid);
    cursor: pointer;
    white-space: nowrap;
}
.filter-remote-label input[type="checkbox"] { accent-color: var(--green-mid); width: 15px; height: 15px; }
.filter-location {
    padding: 9px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    width: 160px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-location:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.filter-clear {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    transition: color var(--transition), background var(--transition);
}
.filter-clear:hover { color: var(--text); background: var(--surface); }

/* ─── Status pill ───────────────────────────────────────────────────────────── */
.status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.01em;
}
.status-pill--applied { background: #E0F2FE; color: #075985; }

/* ─── Verified inline badge ────────────────────────────────────────────────── */
.verified-inline {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--green-dark);
    background: var(--green-pale);
    border-radius: var(--radius-pill);
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ─── Org name link ─────────────────────────────────────────────────────────── */
.org-name-link {
    color: var(--text-mid);
    font-weight: 500;
}
.org-name-link:hover { color: var(--green-mid); text-decoration: underline; }

/* ─── Lead pipeline ─────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.lead-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.lead-tab {
    padding: 8px 14px;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    transition: color var(--transition), background var(--transition);
}
.lead-tab:hover { color: var(--text); background: var(--surface); }
.lead-tab--active {
    color: var(--text);
    background: var(--white);
    border-color: var(--border);
    border-bottom-color: var(--white);
}
.lead-tab--registered { color: var(--green-mid); }
.lead-tab--registered.lead-tab--active { color: var(--green-dark); }

/* ─── Star picker ─────────────────────────────────────────────────────────── */
.star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
    margin-top: 4px;
}
.star-picker input[type="radio"] { display: none; }
.star-picker label {
    font-size: 2rem;
    color: var(--border-mid);
    cursor: pointer;
    transition: color 0.1s;
    line-height: 1;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: #F59E0B; }

/* ─── Feedback display ──────────────────────────────────────────────────────── */
.feedback-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.feedback-item:last-child { border-bottom: none; }
.feedback-stars { font-size: 0.95rem; color: #F59E0B; letter-spacing: 1px; }
.feedback-comment { font-size: 0.875rem; color: var(--text-mid); margin: 6px 0 4px; line-height: 1.6; }
.feedback-meta { font-size: 0.75rem; color: var(--text-muted); }
.rating-summary { font-size: 0.9rem; font-weight: 700; color: #92400E; }
.rating-inline  { font-size: 0.75rem; color: #92400E; font-weight: 600; margin-top: 2px; }

/* ─── Pagination ────────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 0 20px;
}
.pagination-info { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Messages / Inbox ───────────────────────────────────────────────────── */
.inbox { padding: 44px 0; }
.inbox h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}
.message-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.message-item:hover { border-color: var(--border-mid); box-shadow: var(--shadow); }
.message-item.unread { border-left: 3px solid var(--green-mid); }
.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-pale), var(--green-xpale));
    flex-shrink: 0;
    border: 1px solid var(--green-pale);
}
.message-meta    { font-size: 0.775rem; color: var(--text-muted); margin-top: 3px; }
.message-preview { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Nav badge ──────────────────────────────────────────────────────────── */
.nav-messages-link { position: relative; }
.nav-badge {
    position: absolute;
    top: 0px;
    right: 2px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ─── Apply page ─────────────────────────────────────────────────────────── */
.auth-card--wide { max-width: 560px; }
.apply-opp-info {
    background: var(--green-xpale);
    border: 1px solid var(--green-pale);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
}
.apply-opp-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-mid);
    margin-bottom: 6px;
}
.apply-opp-title { font-weight: 700; font-size: 0.975rem; color: var(--text); letter-spacing: -0.015em; }
.apply-opp-org   { font-size: 0.825rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Message thread ─────────────────────────────────────────────────────── */
.thread-page { padding: 36px 0 60px; }
.thread-header { margin-bottom: 24px; }
.thread-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-top: 8px;
}
.back-link {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}
.back-link:hover { color: var(--green-mid); }

.thread-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.thread-msg { display: flex; flex-direction: column; max-width: 72%; }
.thread-msg--mine   { align-self: flex-end;   align-items: flex-end; }
.thread-msg--theirs { align-self: flex-start; align-items: flex-start; }

.thread-bubble {
    padding: 10px 15px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}
.thread-msg--mine   .thread-bubble { background: var(--green-mid); color: var(--white); border-bottom-right-radius: 4px; }
.thread-msg--theirs .thread-bubble { background: var(--white); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.thread-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

.thread-reply {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.thread-reply textarea {
    flex: 1;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.thread-reply textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

/* ─── Admin ──────────────────────────────────────────────────────────────── */
.admin-page { padding: 36px 0 60px; }
.admin-table-wrap { overflow-x: auto; margin-top: 24px; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.admin-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border);
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }
.admin-ext-link { font-size: 0.775rem; color: var(--green-mid); margin-left: 4px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.status-badge--verified { background: var(--green-pale); color: var(--green-dark); }
.status-badge--pending  { background: #FEF3CD; color: #92400E; }

/* ─── Footer nav ─────────────────────────────────────────────────────────── */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}
.footer-nav a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
}
.footer-nav a:hover { color: rgba(255,255,255,0.85); }

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.035em;
    margin-bottom: 6px;
}
.legal-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 36px; }
.legal-body h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 10px;
}
.legal-body p, .legal-body li {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.78;
}
.legal-body ul { padding-left: 20px; list-style: disc; margin-top: 6px; }
.legal-body ul li { margin-bottom: 6px; }

/* ─── Opportunity detail ─────────────────────────────────────────────────── */
.opp-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 36px 0 64px;
    align-items: start;
}
.opp-detail-section { margin-bottom: 28px; }
.opp-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.opp-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.opp-detail-meta-row:last-of-type { border-bottom: none; }
.opp-detail-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 90px;
    flex-shrink: 0;
}

/* ─── Consent checkbox ───────────────────────────────────────────────────── */
.consent-group { margin-top: 18px; }
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}
.consent-label input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--green-mid);
}
.consent-label a { color: var(--green-mid); font-weight: 600; }
.consent-label a:hover { text-decoration: underline; }

/* ─── Danger zone ────────────────────────────────────────────────────────── */
.danger-zone {
    margin-top: 32px;
    padding: 20px 24px;
    border: 1.5px solid #FECACA;
    border-radius: var(--radius-lg);
    background: #FFF5F5;
}
.danger-zone-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #B91C1C;
    margin-bottom: 8px;
}
.danger-zone-warning {
    font-size: 0.85rem;
    color: #7F1D1D;
    margin-bottom: 14px;
    line-height: 1.6;
}
.btn-danger {
    background: #DC2626;
    color: var(--white);
    border-color: #DC2626;
    box-shadow: none;
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; }

/* ─── Cookie notice ──────────────────────────────────────────────────────── */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--text);
    color: rgba(255,255,255,0.85);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
}

/* ─── Admin mode bar ─────────────────────────────────────────────────────── */
.admin-mode-bar {
    background: #dc2626;
    color: #fff;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 16px;
}

/* ─── AI fill ─────────────────────────────────────────────────────────────── */
.ai-fill-section {
    background: var(--green-xpale);
    border: 1px solid var(--green-pale);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.ai-fill-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--green-dark);
    margin-bottom: 12px;
}
.ai-fill-header svg { color: var(--green-mid); flex-shrink: 0; }
.ai-fill-row { display: flex; gap: 8px; }
.ai-fill-input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.ai-fill-input:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.ai-fill-status {
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 7px 12px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
}
.ai-fill-status--success { background: var(--green-xpale); color: var(--green-dark); border: 1px solid var(--green-pale); }
.ai-fill-status--error   { background: #fef2f2; color: #991b1b; }

/* ─── Location autocomplete ───────────────────────────────────────────────── */
.location-autocomplete {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    z-index: 200;
    max-height: 260px;
    overflow-y: auto;
}
.location-autocomplete:empty { display: none; }
.location-autocomplete li {
    padding: 9px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text);
    line-height: 1.4;
}
.location-autocomplete li:hover,
.location-autocomplete li.is-active { background: var(--green-xpale); color: var(--green-dark); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { display: none; }

    .steps { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding: 4px 0; }

    .for-both .container { grid-template-columns: 1fr; }

    .main-nav { display: none; flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 16px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open .btn { margin-left: 0; }
    .nav-toggle { display: flex; }

    .for-card { padding: 32px 28px; }
    .auth-card { padding: 32px 24px; }
    .role-picker { grid-template-columns: 1fr; }
    .opp-detail-layout { grid-template-columns: 1fr; }
    .filter-bar { flex-wrap: wrap; }
    .filter-search-wrap { flex: 1 1 100%; }
}
