:root {
    --bg: #f4f1ec;
    --ink: #1c1917;
    --muted: #78716c;
    --panel: #ffffff;
    --line: #e7e5e4;
    --accent: #0f766e;
    --accent-ink: #fff;
    --danger: #b91c1c;
    --sidebar: #111827;
    --sidebar-ink: #e5e7eb;
    --radius: 14px;
    --font: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, #ccfbf1 0%, transparent 55%),
        radial-gradient(900px 400px at 100% 0%, #fde68a 0%, transparent 50%),
        var(--bg);
    min-height: 100vh;
}

button, input, textarea, select { font: inherit; }
.btn {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}
.auth-card {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(28, 25, 23, 0.08);
}
.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
}
.auth-logo {
    width: min(280px, 100%);
    height: auto;
    display: block;
}
.auth-tagline { color: var(--muted); margin: 0.35rem 0 1.25rem; text-align: center; }
.auth-tabs { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
.auth-tab {
    flex: 1;
    border: 1px solid var(--line);
    background: #fafaf9;
    border-radius: 999px;
    padding: 0.55rem;
    cursor: pointer;
}
.auth-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.auth-form label, .modal-card label, .profile-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.auth-form input, .auth-form textarea,
.modal-card input, .modal-card textarea,
.profile-form input, .profile-form textarea,
.select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-weight: 400;
    width: 100%;
    background: #fff;
    color: var(--ink);
}
.auth-form input:focus, .auth-form textarea:focus,
.modal-card input:focus, .modal-card textarea:focus,
.profile-form input:focus, .profile-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.auth-error { color: var(--danger); font-size: 0.85rem; }

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-ink);
    padding: 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.35rem 0.75rem;
}
.sidebar-logo {
    width: min(168px, 100%);
    height: auto;
    display: block;
}
.nav-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    color: inherit;
    border: none;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 0.25rem;
}
.nav-btn.active, .nav-btn:hover { background: rgba(255,255,255,0.08); }
.nav-btn--refer {
    color: #fbbf24;
    font-weight: 600;
}
.nav-btn--refer:hover { color: #fcd34d; }
.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}
.biz-name { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.6rem; }
.sidebar .btn-ghost { color: #e5e7eb; border-color: #374151; width: 100%; }

.main {
    padding: 1.75rem 2rem 2.5rem;
    max-width: 1180px;
    width: 100%;
}
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.view-header h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.view-header p { margin: 0.25rem 0 0; color: var(--muted); }

.list {
    display: grid;
    gap: 0.85rem;
}
.item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}
.item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}
.pill {
    background: #f5f5f4;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}
.pill a { color: var(--accent); text-decoration: none; font-weight: 600; }
.item-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; flex-wrap: wrap; }

/* Desktop catalog row: thumbnail + copy (not full-bleed image) */
.ad-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.ad-item__thumb {
    width: 160px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f4;
    border: 1px solid var(--line);
}
.ad-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ad-item__body h3 { margin-top: 0; }
.ad-item__body .item-actions { margin-top: auto; padding-top: 0.75rem; }
.ad-item[data-view-ad] { cursor: pointer; }

.modal-card--wide { width: min(720px, 100%); }
.ad-detail__image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.ad-detail__meta {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}
.ad-detail__meta dt { color: var(--muted); margin: 0; }
.ad-detail__meta dd { margin: 0; }
.ad-detail__reject { color: #b42318; }
.ad-detail__desc { margin: 0; color: var(--muted); line-height: 1.5; }

.ad-image-preview {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin: -0.25rem 0 0.85rem;
}
.ad-image-preview[hidden] { display: none !important; }
.ad-image-preview img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border, #e7e5e4);
    background: #f5f5f4;
}
.ad-image-preview__clear {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.45);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    z-index: 50;
}
.modal[hidden] { display: none !important; }
.modal-card {
    width: min(640px, 100%);
    background: var(--panel);
    border-radius: 18px;
    padding: 1.5rem;
    max-height: 90vh;
    overflow: auto;
}
.modal-card h2 { margin: 0 0 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.check { flex-direction: row !important; align-items: center; gap: 0.5rem !important; font-weight: 500 !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.5rem; }

.modal-card--payment {
    width: min(760px, 100%);
    height: min(780px, 90vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.payment-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.payment-modal-header h2 { margin: 0 0 0.25rem; }
.payment-modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.payment-modal-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.payment-frame {
    width: 100%;
    flex: 1;
    border: 0;
    background: #fff;
}
.payment-status {
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: #e0f2fe;
    color: #075985;
}
.payment-status--success { background: #dcfce7; color: #166534; }
.payment-status--cancel { background: #fef3c7; color: #92400e; }
.payment-status--error,
.payment-status--unknown { background: #fee2e2; color: #991b1b; }

.empty {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.6);
}

/* Nav badge for unread count */
.nav-btn { position: relative; }
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* Messaging layout */
.msg-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 500px;
    background: var(--panel);
}
.msg-threads {
    border-right: 1px solid var(--line);
    overflow-y: auto;
    max-height: 70vh;
}
.msg-thread {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.msg-thread:hover, .msg-thread.active { background: #f0fdf4; }
.msg-thread__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}
.msg-thread__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.msg-thread__body strong { font-size: 0.9rem; }
.msg-thread__job {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msg-thread__preview {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.msg-thread__badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.msg-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.msg-chat__empty {
    padding: 3rem;
    text-align: center;
    color: var(--muted);
    margin: auto;
}
.msg-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 60vh;
}
.msg-bubble {
    max-width: 70%;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.msg-bubble--me {
    align-self: flex-end;
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg-bubble--them {
    align-self: flex-start;
    background: #f3f4f6;
    color: var(--ink);
    border-bottom-left-radius: 4px;
}
.msg-bubble__name {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.7;
}
.msg-bubble__time {
    font-size: 0.68rem;
    opacity: 0.55;
    margin-top: 3px;
    text-align: right;
}
.msg-chat__input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--line);
    background: #fafaf9;
}
.msg-chat__input input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font: inherit;
}
.msg-chat__input .btn { border-radius: 999px; }

/* Profile */
.profile-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
}
.profile-header {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.profile-avatar-section { text-align: center; flex-shrink: 0; }
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15,118,110,0.18);
}
.profile-photo-btn {
    cursor: pointer;
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.82rem;
}
.profile-summary { min-width: 0; }
.profile-display-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.profile-display-email {
    margin: 0.2rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.profile-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}
.profile-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 1.15rem 0 0.75rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.profile-section-title:first-child { margin-top: 0; }
.incentive-panel { margin-bottom: 0.25rem; }
.incentive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.85rem;
}
.incentive-stat {
    background: var(--surface-2, #fafaf9);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}
.incentive-stat__label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}
.incentive-stat__value {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.incentive-link-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
}
.incentive-link-row--stack {
    flex-direction: column;
    align-items: stretch;
}
.incentive-message-input {
    width: 100%;
    min-height: 4.5rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #374151;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    font-size: 0.82rem;
    resize: vertical;
}
.incentive-link-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #374151;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    font-size: 0.82rem;
}
.sidebar-refer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: none;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.sidebar-refer-btn:hover { color: #fcd34d; background: rgba(255,255,255,0.06); }
.incentive-panel--highlight {
    outline: 2px solid rgba(251, 191, 36, 0.65);
    outline-offset: 4px;
    border-radius: 10px;
}
.profile-form .grid-2 { margin-bottom: 0.15rem; }
.profile-form input:disabled {
    background: #f5f5f4;
    color: var(--muted);
    cursor: not-allowed;
}
.profile-form textarea {
    resize: vertical;
    min-height: 4.5rem;
}
.profile-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.15rem;
    flex-wrap: wrap;
}
.profile-success { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin: 0; }

.profile-account-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.82rem;
}

.profile-account-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

.profile-account-link:hover {
    color: var(--text);
}

.profile-account-link--danger {
    color: #b42318;
}

.profile-account-link--danger:hover {
    color: #912018;
}

.profile-account-sep {
    margin: 0 0.45rem;
    color: var(--muted);
}
.ad-posted-success { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin: 0 0 0.5rem; }

/* Status pills */
.pill-status { font-weight: 600; }
.pill-active { background: #dcfce7; color: #166534; }
.pill-assigned { background: #dbeafe; color: #1e40af; }
.pill-in-progress { background: #fef3c7; color: #92400e; }
.pill-completed { background: #e0e7ff; color: #3730a3; }
.pill-paid { background: #d1fae5; color: #065f46; }
.pill-cancelled { background: #fee2e2; color: #991b1b; }
.pill-new { background: #f3f4f6; color: #374151; }
.pill-accepted { background: #dbeafe; color: #1e40af; }
.pill-rejected { background: #fee2e2; color: #991b1b; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label { font-size: 0.85rem; font-weight: 600; }
.field-hint { margin: 0; font-size: 0.78rem; color: var(--muted); }
.industry-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafaf9;
    max-height: 180px;
    overflow-y: auto;
}
.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
}
.industry-chip:has(input:checked) {
    border-color: var(--accent);
    background: #ecfdf5;
    color: #115e59;
}
.industry-chip input { margin: 0; accent-color: var(--accent); }
.industry-picker--loading,
.industry-picker--empty {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
}

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .sidebar-nav { display: flex; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
    .sidebar-foot { margin-top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
    .sidebar-foot .sidebar-refer-btn { width: auto; margin-top: 0; }
    .main { padding: 1.25rem; max-width: none; }
    .ad-item { grid-template-columns: 112px minmax(0, 1fr); gap: 0.85rem; }
    .ad-item__thumb { width: 112px; height: 96px; }
    .grid-2 { grid-template-columns: 1fr; }
    .msg-layout { grid-template-columns: 1fr; min-height: auto; }
    .msg-threads { max-height: 35vh; border-right: none; border-bottom: 1px solid var(--line); }
    .msg-chat__messages { max-height: 40vh; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-summary { text-align: center; }
    .profile-badges { justify-content: center; }
}

.welcome-modal-card {
    text-align: center;
}

.welcome-modal-brand {
    margin-bottom: 1rem;
}

.welcome-modal-logo {
    width: min(220px, 80%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.welcome-modal-lead {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.welcome-modal-list {
    text-align: left;
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    line-height: 1.65;
}

.welcome-modal-foot {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 0.5rem;
}

/* ── Buttons (extended) ───────────────────────────────────────────── */
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-secondary {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-secondary:hover { background: #ecfdf5; }

/* ── Landing page ─────────────────────────────────────────────────── */
.landing-shell {
    min-height: 100vh;
    background:
        radial-gradient(1100px 520px at 0% -5%, #ccfbf1 0%, transparent 55%),
        radial-gradient(900px 480px at 100% 10%, #fef3c7 0%, transparent 50%),
        var(--bg);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 241, 236, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.7);
}
.landing-nav__brand { display: flex; align-items: center; text-decoration: none; }
.landing-nav__logo { height: 40px; width: auto; }
.landing-nav__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
    min-height: min(88vh, 760px);
}
.landing-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.landing-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.landing-hero__lead {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
}
.landing-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.landing-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.landing-link-btn:hover { color: #115e59; }

.hero-visual {
    position: relative;
    min-height: 420px;
}
.hero-visual__scene {
    position: relative;
    height: 100%;
    min-height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(28, 25, 23, 0.12);
    border: 1px solid var(--line);
}
.hero-visual__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, #134e4a 0%, #0f766e 45%, #115e59 100%);
}
.hero-visual__figure {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
}
.hero-visual__person {
    width: 140px;
    height: 220px;
    border-radius: 70px 70px 20px 20px;
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
    position: relative;
    margin-bottom: 1rem;
}
.hero-visual__person::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fcd34d;
    border: 4px solid rgba(255,255,255,0.35);
}
.hero-visual__laptop {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 110px;
    border-radius: 12px 12px 4px 4px;
    background: #1c1917;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.hero-visual__laptop::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ecfdf5, #99f6e4);
}

.hero-float {
    position: absolute;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}
.hero-float__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.hero-float__dot--green { background: #22c55e; }
.hero-float__dot--amber { background: #f59e0b; }
.hero-float--1 { top: 8%; left: -4%; }
.hero-float--2 { top: 22%; right: -6%; }
.hero-float--3 { bottom: 38%; left: -8%; }
.hero-float--4 { bottom: 18%; right: -4%; }
.hero-float--5 { bottom: 6%; left: 12%; }

.landing-benefits,
.landing-how,
.landing-auth {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}
.section-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}
.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.benefit-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(28, 25, 23, 0.08);
}
.benefit-card--wide { grid-column: 1 / -1; }
.benefit-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ecfdf5;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}
.benefit-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}
.benefit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.how-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
    max-width: 720px;
    margin-inline: auto;
}
.how-steps li {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    line-height: 1.55;
    counter-increment: step;
    position: relative;
    padding-left: 3.25rem;
}
.how-steps { counter-reset: step; }
.how-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
}

.landing-auth { padding-bottom: 3rem; }
.auth-card--landing {
    width: min(480px, 100%);
    margin: 0 auto;
}

.landing-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 2rem;
}

/* ── In-app page heroes ───────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%, #fefce8 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}
.page-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -0.02em;
}
.page-hero__lead {
    margin: 0 0 0.65rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 52rem;
}
.page-hero__sub {
    margin: 0 0 1rem;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mini-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.mini-benefits--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-benefit {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}
.mini-benefit h3 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
}
.mini-benefit p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* ── Conversion empty states ──────────────────────────────────────── */
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}
.empty-state h2,
.empty-state h3 {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.empty-state p {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    color: var(--muted);
    line-height: 1.6;
}
.empty-state__actions {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* ── Radius slider ────────────────────────────────────────────────── */
.radius-field { margin-bottom: 1rem; }
.radius-field__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.65rem;
}
.radius-field__value {
    font-size: 0.92rem;
    color: var(--accent);
}
.radius-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 20%, #e7e5e4 20%, #e7e5e4 100%);
    outline: none;
    cursor: pointer;
}
.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    cursor: grab;
}
.radius-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    cursor: grab;
}

/* ── Custom file upload ───────────────────────────────────────────── */
.file-upload__drop {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1.75rem 1rem;
    text-align: center;
    background: #fafaf9;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.file-upload__drop:hover,
.file-upload__drop:focus,
.file-upload__drop.is-dragover {
    border-color: var(--accent);
    background: #ecfdf5;
    outline: none;
}
.file-upload__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.file-upload__title {
    margin: 0 0 0.25rem;
    font-weight: 600;
}
.file-upload__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}
.file-upload-preview {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.85rem;
}
.file-upload-preview[hidden] { display: none !important; }
.file-upload-preview img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f5f5f4;
}

/* ── Target market multi-select ───────────────────────────────────── */
.target-market-picker { position: relative; }
.target-market__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    min-height: 0;
}
.target-market__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem 0.3rem 0.65rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    color: #115e59;
    font-size: 0.8rem;
    font-weight: 600;
}
.target-market__tag button {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}
.target-market__trigger {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.target-market__trigger:hover { border-color: var(--accent); }
.target-market__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
    max-height: 260px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.target-market__panel[hidden] { display: none !important; }
.target-market__search {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0.75rem;
    outline: none;
}
.target-market__toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--line);
    background: #fafaf9;
}
.target-market__toolbar button {
    border: none;
    background: none;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.target-market__options {
    overflow-y: auto;
    padding: 0.35rem;
}
.target-market__option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
}
.target-market__option:hover { background: #f5f5f4; }
.target-market__option input { accent-color: var(--accent); }

.modal-actions--center { justify-content: center; }

@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 1.5rem;
    }
    .hero-visual { min-height: 320px; }
    .hero-float--1, .hero-float--3 { left: 0; }
    .hero-float--2, .hero-float--4 { right: 0; }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-card--wide { grid-column: auto; }
    .mini-benefits,
    .mini-benefits--6 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .landing-nav { padding: 0.85rem 1rem; }
    .landing-hero__ctas { flex-direction: column; }
    .landing-hero__ctas .btn { width: 100%; }
    .mini-benefits,
    .mini-benefits--6 { grid-template-columns: 1fr; }
    .hero-float { font-size: 0.7rem; padding: 0.45rem 0.65rem; }
}
