/* HireBots — Unified CSS v2 (design system from validated prototypes)
   Extends Pico CSS with the new hirebots.ai design shell. */

/* === Design tokens === */
:root {
    --hb-bg-dark: #1a1a2e;
    --hb-accent: #e94560;
    --hb-accent-hover: #d63851;
    --pico-primary: #e94560;
    --pico-primary-hover: #d63851;
    --pico-background-color: #ffffff;
    --pico-color: #333;
    --pico-muted-color: #999;
    --pico-muted-border-color: #e0e0e0;
    --hb-border-radius: 6px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f5f5f5;
    color: var(--pico-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Top Bar (sticky, black) === */
.top-bar {
    background: var(--hb-bg-dark);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    gap: 0.75rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    line-height: 1;
    /* Override Pico CSS button defaults: display:block; width:100%; margin-bottom:var(--spacing) */
    display: inline-block;
    width: auto;
    margin: 0;
    flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }

.top-bar .brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

/* === Breadcrumb === */
.top-bar .breadcrumb,
.breadcrumb {
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-bar .breadcrumb a,
.breadcrumb a {
    color: #aaa;
    text-decoration: none;
    flex-shrink: 0;
}
.top-bar .breadcrumb a:hover,
.breadcrumb a:hover { color: #fff; }

.breadcrumb .crumb-link { display: inline; }
.breadcrumb .crumb-sep { display: inline; }
.breadcrumb .current { color: var(--hb-accent); font-weight: 600; }
.top-bar .breadcrumb .mission-title {
    color: var(--hb-accent);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Top actions === */
.top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* === Notification bell === */
.notif-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    position: relative;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.notif-btn:hover { background: rgba(255,255,255,0.1); }
.notif-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--hb-accent);
    color: #fff;
    font-size: 0.6rem;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* === User avatar === */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
}

/* === Auth buttons (logged out) === */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.auth-buttons .btn {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    white-space: nowrap;
}
.auth-buttons .btn-login {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.auth-buttons .btn-login:hover { background: rgba(255,255,255,0.1); }
.auth-buttons .btn-start {
    background: var(--hb-accent);
    color: #fff;
}
.auth-buttons .btn-start:hover { background: var(--hb-accent-hover); }

/* === Dropdowns === */
.dropdown {
    position: fixed;
    top: 56px;
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    z-index: 300;
    display: none;
    min-width: 200px;
}
.dropdown.open { display: block; }

.dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--pico-color);
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}
.dropdown a:hover { background: #f5f5f5; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.dropdown a.logout { color: var(--hb-accent); }
.dropdown .dd-header {
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--pico-muted-border-color);
}

#main-menu-dropdown { left: 8px; }
#user-dropdown { right: 8px; }
#notif-dropdown { right: 48px; width: 320px; max-height: 400px; overflow-y: auto; }

/* === Notification items === */
.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    font-size: 0.85rem;
    cursor: pointer;
}
.notif-item:hover { background: #f5f5f5; }
.notif-item:last-child { border-bottom: none; }
.notif-item .notif-time {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    margin-top: 0.25rem;
}

/* === Main content area === */
.main-area {
    flex: 1;
    padding: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
    align-items: start;
}

/* === Page header === */
.page-header { margin-bottom: 1.25rem; }
.page-header h1 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.page-header p { margin: 0; color: var(--pico-muted-color); font-size: 0.9rem; }

/* === Mission tabs === */
.mission-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--pico-muted-border-color);
}

.mission-tabs .tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pico-muted-color);
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: -2px;
    white-space: nowrap;
}
.mission-tabs .tab:hover {
    background: rgba(0,0,0,0.03);
    color: var(--pico-color);
}
.mission-tabs .tab.active {
    background: #a5d8ff;
    color: #1a1a2e;
    border-color: #74c0fc;
    font-weight: 600;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* === Status sidebar === */
.status-panel {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}
.status-panel h4 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
}
.status-panel .status-row {
    margin-bottom: 0.75rem;
}
.status-panel .status-label {
    font-weight: 700;
    font-size: 0.85rem;
}
.status-panel .status-value {
    color: #555;
    font-size: 0.9rem;
    padding-left: 0.75rem;
    margin-top: 0.15rem;
}
.status-panel .status-next {
    color: var(--hb-accent);
    font-weight: 500;
}
/* Rich Next content block (border-left accent, like #post-award-guide) */
.status-panel .next-block {
    border-left: 4px solid #1f7a8c;
    padding: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.88rem;
    line-height: 1.45;
}
.status-panel .next-block ol {
    margin: 0;
    padding-left: 1.25rem;
}
.status-panel .next-block li {
    margin-bottom: 0.4rem;
}
.status-panel .next-block small {
    color: var(--pico-muted-color);
}
.status-panel .next-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
/* Deadline countdown row */
.status-panel .deadline-row {
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #fff4e6;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #b35900;
    font-weight: 600;
}

/* === Bid cards === */
.bid-card {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s;
}
.bid-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.bid-card .bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.bid-card .bid-bot-name { font-weight: 700; font-size: 1rem; }
.bid-card .bid-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hb-accent);
}
.bid-card .bid-presentation {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--pico-muted-border-color);
}
.bid-card .bid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
}
.bid-card .bid-actions { display: flex; gap: 0.5rem; }

/* === Small buttons === */
.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: var(--pico-color);
    display: inline-block;
}
.btn-sm:hover { background: rgba(0,0,0,0.05); }
.btn-sm.primary {
    background: var(--hb-accent);
    color: #fff;
    border-color: var(--hb-accent);
}
.btn-sm.primary:hover { background: var(--hb-accent-hover); }

/* === Budget boxes === */
.budget-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.budget-box {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}
.budget-box .box-label {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.budget-box .box-value {
    font-size: 1.35rem;
    font-weight: 700;
}
.budget-box.deposit .box-value { color: #f59f00; }
.budget-box.released .box-value { color: #2f9e44; }

/* === Card box === */
.card-box {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.card-box h3 { margin-top: 0; }
.card-box dl { margin: 0; }
.card-box dt { font-weight: 600; margin-top: 0.5rem; }
.card-box dd { margin-left: 1rem; margin-bottom: 0.25rem; }

/* === Stats row === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}
.stat-card.active .stat-value { color: var(--hb-accent); }
.stat-card.completed .stat-value { color: #2f9e44; }
.stat-card.bidding .stat-value { color: #f59f00; }
.stat-card.cancelled .stat-value { color: var(--pico-muted-color); }

/* === Section title === */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pico-muted-border-color);
}

/* === Bot profile header === */
.bot-profile-header { margin-bottom: 1.5rem; }
.bot-profile-id {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.bot-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    flex-shrink: 0;
}
.bot-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
}
.bot-profile-meta h1 { margin: 0; }
.bot-profile-meta p { margin: 0.25rem 0; }

/* === Skill list === */
.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skill-list li { margin-bottom: 0.4rem; }

/* === Certificate items === */
.cert-item {
    margin-bottom: 0.5rem;
    background: #f9f9f9;
}
.cert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cert-date { color: var(--pico-muted-color); }
.cert-meta {
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
}
.cert-meta:last-child { margin-top: 0; }

/* === Empty state === */
.empty-state {
    text-align: center;
    padding: 2rem;
}

/* === Mission cards === */
.mission-card {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.mission-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.mission-card .mc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.mission-card .mc-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mission-card .mc-budget {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hb-accent);
    flex-shrink: 0;
}
.mission-card .mc-bot {
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    margin-top: 0.25rem;
}
.mission-card .mc-date {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    flex-shrink: 0;
}

/* === Mission action badge (compact) === */
.mission-card-action {
    border-left: 3px solid var(--hb-accent);
}
.mc-action-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    background: var(--hb-accent);
    color: #fff;
}
.mc-action-muted {
    background: var(--pico-muted-border-color);
    color: var(--pico-muted-color);
}
.mc-action-info {
    background: #d0bfff;
    color: #4c3f7d;
}

/* === Section count badge === */
.section-count {
    display: inline-block;
    background: var(--pico-muted-border-color);
    color: var(--pico-muted-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* === Status badges === */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
.status-draft { background: #e9ecef; color: #495057; }
.status-charter_pending { background: #d0ebff; color: #1c5fa6; }
.status-proposal_pending { background: #ffd8a8; color: #b35400; }
.status-published { background: #d0ebff; color: #1c5fa6; }
.status-bidding_open { background: #fff3bf; color: #997a00; }
.status-bidding_closed { background: #ffe0e0; color: #c92a2a; }
.status-awarded { background: #d0bfff; color: #4c3f7d; }
.status-in_progress { background: #d0bfff; color: #4c3f7d; }
.status-milestone_review { background: #c5f6fa; color: #0b7285; }
.status-support_phase { background: #b2f2bb; color: #2b7a2b; }
.status-completed { background: #b2f2bb; color: #2b7a2b; }
.status-cancelled { background: #f1f1f1; color: #999; }

/* === New mission button === */
.new-mission-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--hb-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 1.5rem;
}
.new-mission-btn:hover { background: var(--hb-accent-hover); }

/* === Wizard stepper === */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 1.25rem;
    padding: 0.65rem;
    background: #fff;
    border-radius: var(--hb-border-radius);
    border: 1px solid var(--pico-muted-border-color);
    position: sticky;
    top: 64px;
    z-index: 10;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.35rem;
    position: relative;
    flex: 1;
}
.wizard-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    border: 2px solid var(--pico-muted-border-color);
    background: #fff;
    color: var(--pico-muted-color);
    transition: all 0.2s;
}
.wizard-step.completed .wizard-step-circle {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}
.wizard-step.current .wizard-step-circle {
    background: var(--hb-accent);
    color: white;
    border-color: var(--hb-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}
.wizard-step-label {
    font-size: 0.65rem;
    margin-top: 0.2rem;
    color: var(--pico-muted-color);
    text-align: center;
}
.wizard-step.current .wizard-step-label { color: var(--hb-accent); font-weight: bold; }
.wizard-step.completed .wizard-step-label { color: #2e7d32; }
.wizard-step-connector {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 2px;
    background: var(--pico-muted-border-color);
    margin: 0 -0.3rem;
    margin-bottom: 0.85rem;
}
.wizard-step.completed + .wizard-step-connector { background: #2e7d32; }

/* === Step sections === */
.step-section {
    margin-top: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}
.step-section[hidden] { display: none; }
.step-section h2 { margin-top: 0; margin-bottom: 0.75rem; font-size: 1.1rem; }
.step-section h3 { font-size: 0.95rem; margin-top: 0.75rem; margin-bottom: 0.5rem; }

.step-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    margin-top: 0.75rem;
}
.step-section input[type="text"],
.step-section input[type="number"],
.step-section textarea,
.step-section select {
    width: 100%;
    font: inherit;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}
.step-section textarea { resize: vertical; min-height: 3.5rem; }
.step-section button {
    width: auto;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--hb-border-radius);
    background: var(--hb-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}
.step-section button:hover { background: var(--hb-accent-hover); }
.step-section button.outline {
    background: transparent;
    color: var(--pico-color);
    border: 1px solid var(--pico-muted-border-color);
}
.step-section button.outline:hover { background: rgba(0,0,0,0.05); }

/* === Radio groups === */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.15s, background 0.15s;
}
.radio-option:hover { border-color: var(--hb-accent); }
.radio-option input[type="radio"] { margin: 0; }
.radio-option.selected {
    border-color: var(--hb-accent);
    background: rgba(233, 69, 96, 0.08);
}
.custom-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.custom-input-row input {
    flex: 1;
    font: inherit;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}

/* === Item rows (deliverables/requirements) === */
.item-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}
.item-row input {
    flex: 1;
    font: inherit;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
    min-width: 0;
}
.item-remove {
    flex: 0 0 auto;
    cursor: pointer;
    background: transparent;
    color: #e53935;
    border: 1px solid #e53935;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
}
.item-remove:hover { background: #e53935; color: white; }
.add-item-btn {
    margin-top: 0.25rem;
    width: auto;
    background: transparent;
    color: var(--pico-color);
    border: 1px solid var(--pico-muted-border-color);
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--hb-border-radius);
    cursor: pointer;
}
.add-item-btn:hover { background: rgba(0,0,0,0.05); }

/* === Step navigation === */
.step-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: space-between;
}
.step-nav .spacer { flex: 1; }
.step-nav button {
    width: auto;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--hb-border-radius);
    cursor: pointer;
    font-weight: 500;
}
.step-nav .btn-next { background: var(--hb-accent); color: #fff; }
.step-nav .btn-next:hover { background: var(--hb-accent-hover); }
.step-nav .btn-back {
    background: transparent;
    color: var(--pico-color);
    border: 1px solid var(--pico-muted-border-color);
}
.step-nav .btn-back:hover { background: rgba(0,0,0,0.05); }

/* === Chat with advisor === */
.chat-section {
    margin-top: 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
    overflow: hidden;
}
.chat-toggle {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--pico-muted-color);
    text-align: left;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.chat-toggle:hover { background: #f5f5f5; }
.chat-toggle::before { content: "💬 "; }
.chat-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    display: none;
}
.chat-section.open .chat-container { display: block; }
.chat-section.open .chat-input-area { display: flex; }
.chat-input-area {
    display: none;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
}
.chat-input-area textarea {
    flex: 1;
    min-width: 0;
    min-height: 2.5rem;
    max-height: 5rem;
    resize: vertical;
    font: inherit;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
}
.chat-input-area button {
    flex: 0 0 auto;
    width: auto;
    padding: 0.4rem 1rem;
    background: var(--hb-accent);
    color: #fff;
    border: none;
    border-radius: var(--hb-border-radius);
    cursor: pointer;
    font-size: 0.85rem;
}
.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--hb-border-radius);
    line-height: 1.5;
    font-size: 0.9rem;
}
.chat-message.user {
    background: var(--hb-accent);
    color: #fff;
    margin-left: 2rem;
}
.chat-message.advisor {
    background: #f5f5f5;
    border: 1px solid var(--pico-muted-border-color);
    margin-right: 2rem;
}
.chat-message.advisor::before {
    content: "Advisor";
    display: block;
    font-size: 0.7rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.2rem;
}

/* === Deliverables editing (step 2 — extended item rows) === */
.deliv-item {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    padding: 0.5rem;
    padding-right: 2.5rem;
    margin-bottom: 0.5rem;
    background: #fff;
    position: relative;
}
.deliv-item .deliv-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    align-items: flex-start;
}
.deliv-item .deliv-row label {
    flex: 0 0 70px;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    padding-top: 0.35rem;
}
.deliv-item input,
.deliv-item textarea {
    flex: 1 1 auto;
    min-width: 0;
    font: inherit;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}
.deliv-item textarea { resize: vertical; min-height: 2.5rem; }
.deliv-remove-corner {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
}

/* === Milestone deliverable checkboxes (step 5) === */
.ms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pico-muted-border-color);
}
.ms-header-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
}
.ms-header-pct {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hb-accent);
}
.ms-deliv-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
}
.ms-deliv-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pico-muted-color);
    margin-bottom: 0.35rem;
}
.ms-deliv-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--hb-border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.ms-deliv-check:hover {
    background: rgba(233, 69, 96, 0.05);
}
.ms-deliv-check input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--hb-accent);
}
.ms-add-deliv {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
}
.ms-add-deliv-row {
    display: flex;
    gap: 0.4rem;
}
.ms-add-deliv-row input {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}
.ms-add-deliv-btn {
    flex: 0 0 auto;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid var(--hb-accent);
    border-radius: var(--hb-border-radius);
    background: var(--hb-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.ms-add-deliv-btn:hover {
    background: var(--hb-accent-hover);
}
.ms-add-deliv-hint {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
    margin-top: 0.3rem;
}
.ms-decision-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

/* === Step 6 review milestone display === */
.cf-milestone-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--pico-muted-border-color);
}
.cf-milestone-item:last-child {
    border-bottom: none;
}
.cf-ms-deliverables {
    margin-top: 0.25rem;
    font-size: 0.85rem;
}
.cf-ms-deliverables-label {
    font-weight: 600;
    color: var(--pico-muted-color);
    font-size: 0.8rem;
}
.cf-ms-deliv-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.2rem;
}
.cf-ms-deliv-list li {
    padding-left: 1.2rem;
    position: relative;
    color: var(--pico-muted-color);
}
.cf-ms-deliv-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hb-accent);
    font-weight: 700;
}

.req-item {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    padding: 0.5rem;
    padding-right: 2.5rem;
    margin-bottom: 0.5rem;
    background: #fff;
    position: relative;
}
.req-row {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
}
.req-row input {
    flex: 1 1 auto !important;
    min-width: 0;
    width: auto;
    font: inherit;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}

/* === Computed range display === */
.computed-range {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    margin-top: 0.5rem;
}
.computed-range strong { color: var(--hb-accent); }

/* === No-charter placeholder === */
.no-charter-msg {
    padding: 1rem;
    text-align: center;
    color: var(--pico-muted-color);
    font-style: italic;
}

/* === Charter summary in chat === */
.charter-summary {
    background: #f5f5f5;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    padding: 1rem 1.25rem;
    margin: 0.5rem 0;
}
.charter-summary h3 { margin-top: 0; }
.charter-summary ul { padding-left: 1.5rem; margin: 0.25rem 0 0.75rem; }
.charter-summary pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 0.75rem;
    border-radius: var(--hb-border-radius);
    overflow-x: auto;
}

/* === Chat message variants === */
.chat-message.error {
    background: #fff;
    border: 1px solid #e53935;
    color: #e53935;
}
.chat-message.advisor ul,
.chat-message.advisor ol { padding-left: 1.5rem; }
.chat-message.advisor pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 0.75rem;
    border-radius: var(--hb-border-radius);
    overflow-x: auto;
}

/* === Chat status & locked === */
.chat-status {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    margin-top: 0.5rem;
    padding: 0 1rem 0.5rem;
}
.chat-locked {
    opacity: 0.55;
    pointer-events: none;
}

/* Hide chat-status when chat section is collapsed */
.chat-section:not(.open) .chat-status { display: none; }

/* === Confirmation screen (step 6) === */
.confirm-section {
    margin-top: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
}
.confirm-section[hidden] { display: none; }
.confirm-section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.cf-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.cf-field:last-of-type { border-bottom: none; }
.cf-label {
    flex: 0 0 130px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pico-muted-color);
    padding-top: 0.15rem;
}
.cf-value {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.cf-value input,
.cf-value textarea {
    width: 100%;
    font: inherit;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--hb-accent);
    border-radius: var(--hb-border-radius);
    background: #fff;
}
.cf-value textarea { resize: vertical; min-height: 3rem; }
.cf-pencil {
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.15rem 0.35rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--hb-border-radius);
    background: #fff;
    line-height: 1;
    user-select: none;
}
.cf-pencil:hover { background: var(--hb-accent); color: #fff; }
.cf-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cf-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    background: var(--hb-accent);
    color: #fff;
    font-size: 0.8rem;
}
.cf-tag-remove { cursor: pointer; font-weight: bold; opacity: 0.7; }
.cf-tag-remove:hover { opacity: 1; }
.cf-tag-input {
    border: none !important;
    border-bottom: 1px dashed var(--pico-muted-color) !important;
    border-radius: 0 !important;
    padding: 0.15rem 0.25rem !important;
    min-width: 120px;
    font-size: 0.8rem;
    background: transparent !important;
}
.cf-deliverables ul { padding-left: 1.5rem; margin: 0; }
.cf-deliverables li { margin-bottom: 0.25rem; }
.cf-requirements ul { padding-left: 1.5rem; margin: 0; }

/* === Confirm responsive === */
@media (max-width: 768px) {
    .cf-field {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    .cf-label {
        flex: none;
        width: 100%;
        font-size: 0.85rem;
        padding-top: 0;
        margin-bottom: 0.25rem;
    }
    .cf-value { width: 100%; }
    .cf-value input,
    .cf-value textarea {
        padding: 0.5rem 0.75rem;
        font-size: 16px;
        min-height: 2.5rem;
    }
    .cf-pencil {
        padding: 0.35rem 0.6rem;
        font-size: 1.25rem;
        align-self: flex-start;
        margin-top: 0.25rem;
    }
    .cf-tag {
        font-size: 0.85rem;
        padding: 0.25rem 0.6rem;
    }
    .cf-tag-input {
        min-width: 100px;
        font-size: 16px;
    }
    .deliv-item .deliv-row { flex-direction: column; }
    .deliv-item .deliv-row label { padding-top: 0; }
    .chat-status { padding: 0 0.5rem 0.5rem; }
}

/* === Footer (black) === */
.site-footer {
    background: var(--hb-bg-dark);
    color: #fff !important;
    text-align: center;
    padding: 1.25rem;
    font-size: 0.85rem;
}
.site-footer p { color: #fff !important; margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--hb-accent); }

/* === Legal pages === */
.legal-page {
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color, #d1d5db);
}
.legal-nav a {
    font-size: 0.82rem;
    color: var(--pico-color, #333);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: var(--pico-card-background-color, #f6f7f9);
    transition: background 0.15s, color 0.15s;
}
.legal-nav a:hover {
    background: var(--pico-secondary-background, #e8e9ec);
}
.legal-nav a.active {
    background: var(--hb-accent, #e94560);
    color: #fff;
}
.legal-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}
.legal-content h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color, #e5e7eb);
    padding-bottom: 0.3rem;
}
.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
}
.legal-content p {
    line-height: 1.65;
    color: var(--pico-color, #333);
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.88rem;
}
.legal-content th,
.legal-content td {
    border: 1px solid var(--pico-muted-border-color, #d1d5db);
    padding: 0.5rem 0.7rem;
    text-align: left;
}
.legal-content th {
    background: var(--pico-card-background-color, #f6f7f9);
    font-weight: 600;
}
.legal-content code {
    font-size: 0.85em;
    background: var(--pico-card-background-color, #f6f7f9);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}
.legal-content blockquote {
    border-left: 3px solid var(--hb-accent, #e94560);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--pico-card-background-color, #f6f7f9);
    border-radius: 0 6px 6px 0;
    color: var(--pico-muted-color, #6b7280);
}
.legal-content ul,
.legal-content ol {
    line-height: 1.65;
    padding-left: 1.5rem;
}
.legal-content hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--pico-muted-border-color, #e5e7eb);
}
.legal-content em {
    color: var(--pico-muted-color, #6b7280);
    font-size: 0.9em;
}

/* === Auth state toggle (preview only — harmless in production) === */
.state-toggle {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: var(--hb-bg-dark);
    color: #fff;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0.8;
}
.state-toggle:hover { opacity: 1; }

/* === Mobile nav box === */
.mobile-nav-box {
    display: none;
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.mobile-nav-box a {
    color: var(--pico-muted-color);
    text-decoration: none;
}
.mobile-nav-box a:hover { color: var(--pico-color); }
.mobile-nav-box .sep { color: var(--pico-muted-border-color); margin: 0 0.3rem; }

/* === Responsive === */
@media (max-width: 768px) {
    .main-area { padding: 0.5rem; }

    /* Hide breadcrumb path on mobile, show only current title */
    .breadcrumb .crumb-link,
    .breadcrumb .crumb-sep { display: none; }
    .breadcrumb .current { font-size: 0.8rem; }
    .breadcrumb .mission-title { font-size: 0.8rem; }

    .mobile-nav-box { display: block; }

    .content-grid {
        grid-template-columns: 1fr;
    }
    .content-grid .sidebar-col { order: 1; }
    .content-grid .main-col { order: 2; }
    .budget-boxes { order: 3; }

    .mission-tabs {
        gap: 0;
        border-bottom: 1px solid var(--pico-muted-border-color);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .mission-tabs .tab {
        font-size: 0.78rem;
        padding: 0.35rem 0.6rem;
        border-radius: 4px 4px 0 0;
        margin-bottom: -1px;
        flex-shrink: 0;
    }

    .budget-boxes {
        grid-template-columns: 1fr;
    }

    .bid-card .bid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .stat-card { padding: 0.6rem 0.5rem; }
    .stat-card .stat-value { font-size: 1.2rem; }

    .mission-card .mc-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .mission-card .mc-title { white-space: normal; }

    #notif-dropdown { width: calc(100vw - 20px); right: 10px; }

    .wizard-stepper {
        padding: 0.4rem;
        gap: 0;
        margin: 0 0 0.75rem 0;
        max-height: 48px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wizard-step { flex: 0 0 auto; padding: 0.2rem 0.35rem; }
    .wizard-step-circle { width: 22px; height: 22px; font-size: 0.65rem; border-width: 1.5px; }
    .wizard-step-label { font-size: 0.55rem; margin-top: 0.1rem; }
    .wizard-step-connector { width: 0.8rem; margin-bottom: 0.6rem; }

    .step-section { padding: 0.85rem; }
    .step-section input, .step-section textarea {
        font-size: 16px; /* prevent iOS zoom-on-focus */
    }
    .step-nav { flex-direction: column; gap: 0.4rem; }
    .step-nav button { width: 100%; text-align: center; }

    /* Tighter auth buttons on mobile to prevent overflow */
    .auth-buttons { gap: 0.3rem; }
    .auth-buttons .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.78rem;
    }
}

/* === Notifications page (notifications.html) === */
.notif-actions-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.notif-unread-info {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
}

/* Each notification rendered as a card-box variant */
.notif-card {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s;
}
.notif-card.is-unread {
    border-left: 3px solid var(--hb-accent);
    cursor: pointer;
}
.notif-card.is-unread:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.notif-card:not(.is-unread) { opacity: 0.7; }

.notif-card-body {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.notif-card .mark-read-btn {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--hb-accent);
    cursor: pointer;
    width: auto;
    padding: 0;
    line-height: 1.2;
    background: none;
    border: none;
}
.notif-card .notif-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.notif-card .notif-content {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}
.notif-card .notif-header-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}
.notif-card .notif-label {
    font-size: 0.9rem;
}
.notif-card .notif-message-text {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.notif-card .notif-action-needed {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}
.notif-card .notif-action-needed strong { color: var(--hb-accent); }
.notif-card .notif-time {
    color: var(--pico-muted-color);
}

/* Inline links inside notification messages (mission/bot deep links) */
.notif-link {
    color: var(--hb-accent);
    text-decoration: none;
    font-weight: 600;
}
.notif-link:hover { text-decoration: underline; }

/* NEW badge uses status-badge base; tint it accent red */
.notif-new-badge {
    background: var(--hb-accent);
    color: #fff;
}

/* Pagination row */
.notif-pagination {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    align-items: center;
}
.notif-page-info {
    font-size: 0.9rem;
    color: var(--pico-muted-color);
}

/* =========================================================
   Legacy styles (still referenced by existing templates)
   ========================================================= */

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--pico-muted-color);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* CTA */
.cta {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--pico-secondary-background);
    margin: 2rem 0;
    border-radius: 8px;
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* How it works */
.how-it-works {
    padding: 2rem 1rem;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hb-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Auth section */
.auth-section {
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Auth card */
.card.auth-card {
    max-width: 480px;
    margin: 0.5rem auto;
}

/* Reduce top padding on auth pages so form is visible without scrolling */
.main-area:has(.auth-card) {
    padding-top: 0.5rem;
}

/* Form */
.form {
    margin: 1rem 0;
}
.form-field {
    margin-bottom: 1rem;
}

/* Button helpers */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--hb-border-radius);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--pico-muted-border-color);
    cursor: pointer;
}
.btn-primary {
    background: var(--hb-accent);
    color: #fff;
    border-color: var(--hb-accent);
}
.btn-primary:hover { background: var(--hb-accent-hover); }
.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Callout */
.callout {
    border-left: 4px solid var(--hb-accent);
    background: rgba(233, 69, 96, 0.05);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

/* Verify banner */
#verify-banner {
    border: 1px solid var(--hb-accent);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Inline icon link — for compact deliverable download buttons */
a.dl-icon {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0.1rem 0.35rem;
    font-size: 0.8rem;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 4px;
    background: transparent;
    color: var(--pico-color);
}
a.dl-icon:hover {
    background: var(--pico-secondary-background);
    text-decoration: none;
}
a.dl-icon-sm {
    font-size: 0.75rem;
    padding: 0.05rem 0.25rem;
}

/* Legacy responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* =========================================================
   Landing page additions (category cards, social proof, etc.)
   ========================================================= */

/* Price hint under hero */
.price-hint {
    font-size: 1rem;
    color: var(--pico-muted-color);
    margin: 0.5rem 0 1.5rem;
}
.price-hint strong { color: var(--hb-accent); }

/* Hero CTA wrapper */
.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Category cards grid */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.card.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
}
.cat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.card.category-card h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1rem;
}
.card.category-card p {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.cat-price {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hb-accent);
    margin-top: 0.25rem;
}

/* Recent missions section */
.recent-missions {
    padding: 2rem 1rem;
}
.mission-examples {
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* ── Fake provisional stats grid (replace with real counters later) ────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
}
.stat-box {
    text-align: center;
    padding: 1.25rem 0.5rem;
    border: 1px solid var(--pico-muted-border-color, #e0e0e0);
    border-radius: var(--hb-border-radius, 6px);
    background: var(--hb-bg-dark, #1a1a2e);
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--hb-accent);
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--pico-muted-color, #999);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.live-since {
    text-align: center;
    font-size: 0.9rem;
    color: var(--pico-muted-color, #999);
    padding: 0 1rem 2rem;
    margin: 0;
}

/* Responsive: 2x2 grid on small screens */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA buttons wrapper */
.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Developer link at bottom */
.dev-link {
    text-align: center;
    padding: 1rem;
    color: var(--pico-muted-color);
}
.dev-link a {
    color: var(--hb-accent);
    text-decoration: none;
    font-weight: 500;
}
.dev-link a:hover { text-decoration: underline; }

/* =========================================================
   Use cases page
   ========================================================= */
.use-case-section {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.use-case-section:last-of-type {
    border-bottom: none;
}
.use-case-body {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.use-case-desc {
    flex: 1;
    min-width: 280px;
}
.use-case-desc p {
    line-height: 1.5;
    color: #555;
}
.use-case-desc h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
    margin: 1rem 0 0.5rem;
}
.price-range {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
.price-range strong { color: var(--hb-accent); }
.use-case-cta {
    flex-shrink: 0;
    padding-top: 0.5rem;
}

@media (max-width: 600px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
    .use-case-body {
        flex-direction: column;
    }
    .feature-card {
        flex-direction: column;
    }
}

/* =========================================================
   Use case landing: Product Catalog Migration
   ========================================================= */

/* Migration routes grid */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.route-card {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
}
.route-card .route-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.route-card .route-flow {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}
.route-card .route-desc {
    font-size: 0.82rem;
    color: var(--pico-muted-color);
    margin: 0;
}

/* Feature cards with icons (Why use HireBots) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(233, 69, 96, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--hb-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}
.feature-body p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #555;
}
/* Steps grid: cap at 3 columns on wide screens (default auto-fit goes to 4+) */
.steps.steps-3col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1000px) {
    .steps.steps-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 680px) {
    .steps.steps-3col {
        grid-template-columns: 1fr;
    }
}

/* Card padding increase for step cards (makes boxes taller/wider feeling) */
.card.step {
    padding: 2rem 1.5rem;
}
.card.step p {
    line-height: 1.55;
}
