/* ─── NeoReach Fast Track — Dark Theme ─────────────────────────── */
:root {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #0f3460;
    --bg-hover: #1a3a6e;
    --accent: #00c9a7;
    --accent-dim: #00c9a722;
    --text: #e8e8e8;
    --text-dim: #8892a4;
    --muted: #5a6478;
    --border: #2a2a4a;
    --red: #ff6b6b;
    --amber: #ffc107;
    --green: #00c9a7;
    --purple: #6c63ff;
    --orange: #ff9f43;
    --sidebar-w: 240px;
    --radius: 10px;
    --radius-sm: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    font-size: 14px;
    line-height: 1.5;
}

/* ─── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
}
.sidebar-brand {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
}
.brand-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    color: #1a1a2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.brand-icon.large {
    width: 56px; height: 56px;
    font-size: 1.6rem;
    border-radius: 14px;
}
.sidebar-nav {
    list-style: none;
    padding: .75rem .5rem;
    flex: 1;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: all .15s;
}
.sidebar-nav a:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-nav a.active { background: var(--accent-dim); color: var(--accent); }
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}
.user-badge {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}
.avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}
.user-name { font-weight: 600; font-size: .85rem; }
.user-role { font-size: .75rem; color: var(--muted); text-transform: capitalize; }
.logout-link { color: var(--muted); font-size: .8rem; text-decoration: none; }
.logout-link:hover { color: var(--red); }

/* ─── Main Content ────────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
    overflow-y: auto;
}
.main-content.full { margin-left: 0; padding: 0; }

/* ─── Page Header ─────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.header-actions { display: flex; gap: .5rem; align-items: center; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .35rem .7rem; font-size: .78rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

/* ─── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: relative;
}
.stat-card.accent { border-color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-dim); margin-bottom: .35rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-icon {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    color: var(--muted);
    opacity: .5;
}

/* ─── Dashboard Grid ──────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Pipeline Bars */
.pipeline-bars { display: flex; flex-direction: column; gap: .6rem; }
.pipeline-bar-row { display: flex; align-items: center; gap: .75rem; }
.stage-label { width: 90px; font-size: .8rem; color: var(--text-dim); text-align: right; }
.bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; min-width: 2px; transition: width .3s; }
.bar-count { width: 30px; font-size: .8rem; color: var(--text-dim); }
.bar-fill.stage-contacted { background: #6c63ff; }
.bar-fill.stage-responded { background: #00b4d8; }
.bar-fill.stage-interested { background: #00c9a7; }
.bar-fill.stage-applied { background: #ffc107; }
.bar-fill.stage-in_review { background: #ff9f43; }
.bar-fill.stage-approved { background: #00e676; }
.bar-fill.stage-active { background: #00c9a7; }
.bar-fill.stage-declined { background: #ff6b6b; }

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: .5rem; max-height: 400px; overflow-y: auto; }
.activity-item { display: flex; align-items: flex-start; gap: .6rem; padding: .4rem 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.activity-text { flex: 1; font-size: .85rem; }
.activity-time { font-size: .75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ─── Score Badges ────────────────────────────────────────────── */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 24px;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 700;
}
.score-badge.large { width: 48px; height: 32px; font-size: 1rem; }
.score-badge.small { width: 28px; height: 20px; font-size: .7rem; }
.score-green { background: #00c9a733; color: #00c9a7; }
.score-amber { background: #ffc10733; color: #ffc107; }
.score-red { background: #ff6b6b33; color: #ff6b6b; }

/* ─── Stage Pills ─────────────────────────────────────────────── */
.stage-pill {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.stage-pill.stage-contacted { background: #6c63ff22; color: #6c63ff; }
.stage-pill.stage-responded { background: #00b4d822; color: #00b4d8; }
.stage-pill.stage-interested { background: #00c9a722; color: #00c9a7; }
.stage-pill.stage-applied { background: #ffc10722; color: #ffc107; }
.stage-pill.stage-in_review { background: #ff9f4322; color: #ff9f43; }
.stage-pill.stage-approved { background: #00e67622; color: #00e676; }
.stage-pill.stage-active { background: #00c9a722; color: #00c9a7; }
.stage-pill.stage-declined { background: #ff6b6b22; color: #ff6b6b; }

/* ─── Filters Bar ─────────────────────────────────────────────── */
.filters-bar {
    margin-bottom: 1.25rem;
}
.filters-form {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}
.filter-input, .filter-select {
    padding: .45rem .75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .85rem;
    font-family: inherit;
}
.filter-input { width: 220px; }
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--accent); }

/* ─── Data Table ──────────────────────────────────────────────── */
.table-container { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th {
    padding: .65rem .75rem;
    text-align: left;
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.data-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}
.clickable-row { cursor: pointer; transition: background .1s; }
.clickable-row:hover { background: var(--bg-hover); }
.creator-cell { display: flex; align-items: center; gap: .65rem; }
.creator-avatar {
    width: 32px; height: 32px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}
.creator-name { font-weight: 600; }
.creator-email { font-size: .75rem; color: var(--muted); }

/* ─── Kanban ──────────────────────────────────────────────────── */
.kanban-board {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}
.kanban-column {
    min-width: 220px;
    max-width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.kanban-header {
    padding: .65rem .75rem;
    font-weight: 600;
    font-size: .85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid;
    border-radius: var(--radius) var(--radius) 0 0;
}
.kanban-header.stage-contacted { border-color: #6c63ff; }
.kanban-header.stage-responded { border-color: #00b4d8; }
.kanban-header.stage-interested { border-color: #00c9a7; }
.kanban-header.stage-applied { border-color: #ffc107; }
.kanban-header.stage-in_review { border-color: #ff9f43; }
.kanban-header.stage-approved { border-color: #00e676; }
.kanban-header.stage-active { border-color: #00c9a7; }
.kanban-header.stage-declined { border-color: #ff6b6b; }
.kanban-count {
    background: var(--bg);
    padding: .1rem .5rem;
    border-radius: 10px;
    font-size: .75rem;
    color: var(--text-dim);
}
.kanban-cards { padding: .5rem; display: flex; flex-direction: column; gap: .4rem; max-height: 600px; overflow-y: auto; }
.kanban-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem;
    cursor: pointer;
    transition: border-color .15s;
}
.kanban-card:hover { border-color: var(--accent); }
.kanban-card-name { font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.kanban-card-meta { display: flex; justify-content: space-between; align-items: center; }
.followers-mini { font-size: .72rem; color: var(--muted); }
.kanban-more { text-align: center; font-size: .78rem; color: var(--muted); padding: .4rem; }

/* ─── Modal ───────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #000a;
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    overflow-y: auto;
}
.modal.open { display: flex; }
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    width: 100%;
    max-width: 700px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: .75rem; right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .25rem;
}
.modal-email { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.modal-section { margin-bottom: 1.25rem; }
.modal-section h3 { font-size: .9rem; color: var(--accent); margin-bottom: .5rem; }
.handles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; font-size: .85rem; }
.stats-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stat-mini { text-align: center; }
.stat-mini-val { display: block; font-size: 1.1rem; font-weight: 700; }
.stat-mini-label { font-size: .72rem; color: var(--muted); }
.ai-suggestion {
    background: var(--accent-dim);
    border-left: 3px solid var(--accent);
    padding: .75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .85rem;
}
.stage-buttons { display: flex; flex-wrap: wrap; gap: .35rem; }
.stage-btn { text-transform: capitalize; }
.notes-textarea {
    width: 100%;
    padding: .5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: .85rem;
    resize: vertical;
    min-height: 60px;
    margin-bottom: .5rem;
}
.notes-textarea:focus { outline: none; border-color: var(--accent); }
.email-list { display: flex; flex-direction: column; gap: .5rem; max-height: 300px; overflow-y: auto; }
.email-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem;
    font-size: .82rem;
}
.email-item.inbound { border-left: 3px solid var(--accent); }
.email-item.outbound { border-left: 3px solid var(--purple); }
.email-dir { font-weight: 600; font-size: .75rem; color: var(--muted); text-transform: uppercase; margin-bottom: .2rem; }
.email-subj { font-weight: 600; margin-bottom: .2rem; }
.email-body { color: var(--text-dim); margin-bottom: .25rem; }
.email-time { font-size: .72rem; color: var(--muted); }
.class-badge {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: capitalize;
}
.class-badge.class-interested { background: #00c9a733; color: #00c9a7; }
.class-badge.class-faq { background: #6c63ff33; color: #6c63ff; }
.class-badge.class-confused { background: #ffc10733; color: #ffc107; }
.class-badge.class-not_interested { background: #ff6b6b33; color: #ff6b6b; }
.class-badge.class-needs_help { background: #ff9f4333; color: #ff9f43; }

/* ─── AI Responder ────────────────────────────────────────────── */
.responder-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.inbound-list { max-height: 700px; overflow-y: auto; }
.email-filter-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn {
    padding: .3rem .7rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-size: .78rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all .15s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.inbound-items { display: flex; flex-direction: column; gap: .5rem; }
.inbound-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem;
    cursor: pointer;
    transition: border-color .15s;
}
.inbound-item:hover, .inbound-item.selected { border-color: var(--accent); }
.inbound-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .25rem; }
.inbound-name { font-weight: 600; font-size: .9rem; }
.inbound-subject { font-size: .82rem; font-weight: 500; margin-bottom: .2rem; }
.inbound-preview { font-size: .78rem; color: var(--text-dim); }
.inbound-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.inbound-time { font-size: .72rem; color: var(--muted); }
.response-panel { min-height: 400px; display: flex; flex-direction: column; }
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.empty-state p { color: var(--muted); }
.original-quote {
    background: var(--bg);
    border-left: 3px solid var(--muted);
    padding: .6rem .75rem;
    margin: .75rem 0;
    font-size: .82rem;
    color: var(--text-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.response-textarea {
    width: 100%;
    min-height: 180px;
    padding: .75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: .85rem;
    resize: vertical;
    margin-bottom: .75rem;
}
.response-textarea:focus { outline: none; border-color: var(--accent); }
.response-actions { display: flex; gap: .5rem; }
.success-msg {
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

/* Toggle */
.toggle-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .85rem; }
.toggle-label input { display: none; }
.toggle-slider {
    width: 40px; height: 22px;
    background: var(--muted);
    border-radius: 11px;
    position: relative;
    transition: background .2s;
}
.toggle-slider::after {
    content: '';
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px; left: 2px;
    transition: transform .2s;
}
.toggle-label input:checked + .toggle-slider { background: var(--accent); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ─── Templates Grid ──────────────────────────────────────────── */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.template-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.template-card h4 { font-size: .85rem; color: var(--accent); margin-bottom: .4rem; }
.template-card p { font-size: .8rem; color: var(--text-dim); }

/* ─── Campaigns ───────────────────────────────────────────────── */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.domain-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.domain-name { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.domain-status { font-size: .75rem; color: var(--accent); font-weight: 600; margin-bottom: .25rem; }
.domain-sends { font-size: .78rem; color: var(--text-dim); margin-bottom: .5rem; }
.domain-bar { height: 6px; background: var(--bg-card); border-radius: 3px; overflow: hidden; }
.domain-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.campaigns-list { display: flex; flex-direction: column; gap: 1rem; }
.campaign-card { }
.campaign-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.campaign-name { font-size: 1.05rem; font-weight: 600; }
.campaign-date { font-size: .78rem; color: var(--muted); }
.campaign-status {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: .25rem;
}
.status-draft { background: var(--muted); color: var(--bg); }
.status-active { background: var(--accent); color: var(--bg); }
.status-completed { background: var(--purple); color: #fff; }
.campaign-subjects { margin-bottom: 1rem; }
.ab-variant { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; font-size: .85rem; }
.ab-label {
    width: 22px; height: 22px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem;
    flex-shrink: 0;
}
.campaign-stats-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.campaign-stat { text-align: center; }
.campaign-stat-val { font-size: 1.25rem; font-weight: 700; }
.campaign-stat.accent .campaign-stat-val { color: var(--accent); }
.campaign-stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; }

/* ─── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label, .form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim); margin-bottom: .35rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: .55rem .75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: .85rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Login ───────────────────────────────────────────────────── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-card h1 { font-size: 1.5rem; margin-top: 1rem; margin-bottom: .25rem; }
.login-card .subtitle { color: var(--text-dim); font-size: .9rem; margin-bottom: 1.5rem; }
.login-card form { text-align: left; }
.demo-creds { margin-top: 1.25rem; font-size: .8rem; color: var(--muted); }
.demo-creds code { color: var(--accent); }
.alert { padding: .65rem; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 1rem; }
.alert-error { background: #ff6b6b22; color: var(--red); border: 1px solid #ff6b6b44; }

/* ─── Onboard Page ────────────────────────────────────────────── */
.onboard-page { min-height: 100vh; }
.onboard-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--accent);
}
.onboard-hero-content { max-width: 600px; margin: 0 auto; }
.onboard-hero h1 { font-size: 2.25rem; margin-top: 1.25rem; margin-bottom: .75rem; }
.hero-sub { font-size: 1.05rem; color: var(--text-dim); line-height: 1.6; }
.onboard-container { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.benefit-icon { margin-bottom: .75rem; }
.benefit-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.benefit-card p { font-size: .82rem; color: var(--text-dim); }
.onboard-form-card { padding: 2rem; }
.onboard-form-card h2 { margin-bottom: .25rem; }
.success-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
}
.success-card h2 { margin: 1rem 0 .5rem; }
.success-card p { color: var(--text-dim); margin-bottom: 1.5rem; }
.onboard-footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: .82rem;
    border-top: 1px solid var(--border);
}

/* ─── View Toggle ─────────────────────────────────────────────── */
.view-toggle { display: flex; gap: 2px; }

/* ─── Utilities ───────────────────────────────────────────────── */
.muted { color: var(--muted); }

/* ─── Mobile Topbar & Hamburger ───────────────────────────────── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding: 0 16px;
    gap: 14px;
}
.hamburger {
    width: 44px; height: 44px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.hamburger .icon-close { display: none; }
body.sidebar-open .hamburger .icon-menu { display: none; }
body.sidebar-open .hamburger .icon-close { display: block; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 140;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Responsive: All sub-desktop ─────────────────────────────── */
@media (max-width: 900px) {
    /* Switch to hamburger drawer on anything below desktop */
    .mobile-topbar { display: flex; }
    .sidebar {
        width: var(--sidebar-w);
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 150;
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; }
    .main-content { margin-left: 0 !important; padding: 1.25rem !important; padding-top: 70px !important; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .responder-layout { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Responsive: Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }

    /* Page header */
    .page-header { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .header-actions { width: 100%; }
    .header-actions .btn { flex: 1; justify-content: center; font-size: .8rem; padding: .5rem .6rem; }

    /* Stats */
    .stat-card { padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
    .stat-label { margin-bottom: 0; }
    .stat-value { font-size: 1.4rem; }
    .stat-icon { display: none; }

    /* Dashboard */
    .dashboard-grid { grid-template-columns: 1fr; gap: 1rem; }
    .activity-item { flex-wrap: wrap; }
    .activity-time { width: 100%; padding-left: 14px; }

    /* Tables */
    .table-container { margin: 0 -1rem; }
    .data-table { font-size: .78rem; }
    .data-table th, .data-table td { padding: .5rem .4rem; white-space: nowrap; }
    .creator-cell { min-width: 140px; }

    /* Filters */
    .filters-form { gap: .4rem; }
    .filter-input { width: 100%; }
    .filter-select { flex: 1; min-width: 0; }

    /* AI Responder */
    .responder-layout { grid-template-columns: 1fr; gap: 1rem; }
    .response-panel { min-height: auto; }

    /* Campaigns */
    .campaign-stats-row { gap: .75rem; }
    .domain-grid { grid-template-columns: 1fr; }
    .ab-variant { font-size: .8rem; }

    /* Kanban */
    .kanban-board { padding-bottom: .5rem; }
    .kanban-column { min-width: 260px; }

    /* Modal */
    .modal { padding: 1rem .5rem; align-items: flex-start; }
    .modal-content { padding: 1.25rem; border-radius: 14px; }
    .handles-grid { grid-template-columns: 1fr; }
    .stats-mini-grid { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .stage-buttons { gap: .25rem; }
    .stage-buttons .btn { font-size: .72rem; padding: .3rem .5rem; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: .75rem; }

    /* Login */
    .login-card { padding: 1.75rem 1.25rem; }

    /* Onboard legacy (fallback) */
    .benefits-grid { grid-template-columns: 1fr; }
    .onboard-hero { padding: 2.5rem 1.25rem; }
    .onboard-hero h1 { font-size: 1.6rem; }
    .onboard-container { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; }
    .stat-label { margin-bottom: 0; }
    .stat-value { font-size: 1.2rem; }
    .campaign-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
    .email-filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }
    .tab-btn { white-space: nowrap; flex-shrink: 0; }
}
