/* ═══════════════════════════════════════════════════════════════════════
   Landed design system
   White canvas · light grey page · one green
   Type: Inter (everything) + JetBrains Mono
   --green-* is the brand accent scale, referenced everywhere below.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand green */
    --green-50:  #EEF8F2;
    --green-100: #D8F0E2;
    --green-200: #B4E2C8;
    --green-300: #86CFA7;
    --green-400: #4FB884;
    --green-500: #22A066;
    --green-600: #158A57;
    --green-700: #10714A;
    --green-800: #0D5A3C;
    --green-900: #0A4530;
    --green-950: #062E20;

    /* Cool neutrals */
    --paper:   #F5F7F9;
    --surface: #FFFFFF;
    --ink:     #111827;
    --ink-2:   #4B5563;
    --ink-3:   #8A94A6;
    --line:    #E5E9EF;
    --line-2:  #EEF1F5;

    /* Accents */
    --amber-600: #C98A28;
    --amber-500: #DE9B33;
    --amber-100: #F9EED9;
    --red-600:   #C0442F;
    --red-100:   #F9E7E3;
    --blue-600:  #3E6FA3;
    --blue-100:  #E9F0F7;

    /* Sidebar: white, like the page */
    --side-bg:     #FFFFFF;
    --side-bg-2:   #F5F7F9;
    --side-text:   #3B4453;
    --side-muted:  #8A94A6;

    --sidebar-w: 264px;
    --topbar-h: 64px;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --shadow-1: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-2: 0 4px 16px rgba(17, 24, 39, 0.06);
    --shadow-3: 0 16px 40px rgba(17, 24, 39, 0.12);

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-ui);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 0.925rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.015em;
}
h4, h5, h6 { color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }

code, pre, .font-mono, .font-monospace { font-family: var(--font-mono); }

a { color: var(--green-600); }
a:hover { color: var(--green-700); }

::selection { background: var(--green-200); color: var(--green-950); }

a, .btn, .side-link, .card, .tile, .plan-card, .dropzone, .chip,
.form-control, .form-select, .status-chip, .seg-btn {
    transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ═══ Sidebar ══════════════════════════════════════════════════════════ */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--side-bg);
    color: var(--side-text);
    border-right: 1px solid var(--line);
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 20px 20px 16px;
    text-decoration: none;
}
.side-brand:hover { text-decoration: none; }

.side-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex: none;
    display: block;
}

.side-wordmark {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.side-new {
    margin: 4px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    background: var(--green-600);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
}
.side-new:hover { background: var(--green-700); color: #fff; }

.side-nav {
    flex: 1;
    overflow-y: auto;
    padding: 2px 12px 12px;
}

.side-section {
    padding: 16px 12px 6px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--side-muted);
}

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 9px;
    color: var(--side-text);
    font-size: 0.89rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}
.side-link i {
    width: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--side-muted);
}
.side-link:hover { color: var(--ink); background: var(--green-50); }
.side-link:hover i { color: var(--green-600); }
.side-link.is-active {
    color: #fff;
    background: var(--green-700);
    font-weight: 600;
}
.side-link.is-active i { color: #fff; }
.side-link.is-active::before {
    content: none;
    position: absolute;
    left: -12px;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--green-400);
}

.side-chip {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-600);
}

/* Usage meter */
.side-usage {
    margin: 0 12px 10px;
    padding: 13px 14px;
    border-radius: var(--r-md);
    background: var(--side-bg-2);
    border: 1px solid var(--line);
}
.su-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.su-plan {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--green-300);
}
.su-count {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--ink);
}
.su-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}
.su-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--green-400);
    transition: width 0.3s ease;
}
.su-fill.is-high { background: var(--amber-500); }
.su-fill.is-full { background: #D96C57; }
.su-hint {
    margin-top: 7px;
    font-size: 0.71rem;
    color: var(--side-muted);
}
.su-cta {
    margin-top: 10px;
    width: 100%;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #fff;
    background: var(--green-700);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.su-cta:hover { background: var(--green-800); }

/* User footer */
.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}
.su-id { min-width: 0; flex: 1; }
.su-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.su-tag { font-size: 0.7rem; color: var(--side-muted); }
.side-logout {
    flex: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--side-muted);
    text-decoration: none;
    font-size: 0.85rem;
}
.side-logout:hover { color: var(--red-600); background: var(--red-100); }

/* Signed-out sidebar footer */
.side-guest {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
}

.avatar {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}
.avatar.av-light { background: var(--green-100); color: var(--green-800); }

/* ═══ Main layout ══════════════════════════════════════════════════════ */

.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--topbar-h);
    background: rgba(246, 244, 239, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.tb-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--ink);
}

.tb-actions { display: flex; align-items: center; gap: 10px; }

.tb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-2);
}
.tb-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-500);
}
.tb-pill .dot.is-low { background: var(--amber-500); }
.tb-pill .dot.is-out { background: var(--red-600); }

.page-container {
    padding: 30px 32px 44px;
    flex: 1;
    width: 100%;
    max-width: 1240px;
}

/* Page header */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}
.page-head h1 {
    font-size: 1.55rem;
    font-weight: 750;
    margin-bottom: 2px;
}
.ph-sub { color: var(--ink-2); font-size: 0.9rem; max-width: 640px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* ═══ Cards ════════════════════════════════════════════════════════════ */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line-2);
    padding: 16px 22px;
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-header h5, .card-header h6 { font-size: 0.98rem; margin: 0; }

.card-body { padding: 22px; }

/* Card captions: one quiet style everywhere (no uppercase, no tracking). */
.card-hint {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-3);
    text-align: right;
}
.card-hint a { color: var(--green-700); text-decoration: none; }
.card-hint a:hover { text-decoration: underline; }

/* A row of actions under a form: one primary, the rest quiet. */
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ═══ Stat tiles ═══════════════════════════════════════════════════════ */

.tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-1);
    height: 100%;
}
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.tile-label {
    font-size: 0.74rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.t-green { background: var(--green-50); color: var(--green-600); }
.t-amber { background: var(--amber-100); color: var(--amber-600); }
.t-red   { background: var(--red-100); color: var(--red-600); }
.t-slate { background: var(--blue-100); color: var(--blue-600); }

.tile-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
}
.tile-foot {
    margin-top: 6px;
    font-size: 0.79rem;
    color: var(--ink-3);
}

/* ═══ Status chips ═════════════════════════════════════════════════════ */

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.status-chip.is-sent    { background: var(--green-50);  color: var(--green-700); }
.status-chip.is-pending { background: var(--amber-100); color: var(--amber-600); }
.status-chip.is-failed  { background: var(--red-100);   color: var(--red-600); }

/* ═══ Buttons ══════════════════════════════════════════════════════════ */

.btn {
    font-weight: 600;
    font-family: var(--font-ui);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.4;
}
.btn:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }

.btn-primary, .btn-emerald, .btn-success {
    background: var(--green-600);
    border: 1px solid var(--green-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(17, 52, 44, 0.2);
}
.btn-primary:hover, .btn-primary:focus, .btn-emerald:hover, .btn-success:hover,
.btn-primary:active, .btn-emerald:focus, .btn-success:focus {
    background: var(--green-700);
    border-color: var(--green-700);
    color: #fff;
}
.btn-primary:disabled { background: var(--green-300); border-color: var(--green-300); }

.btn-quiet, .btn-light, .btn-outline-primary, .btn-outline-secondary {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.btn-quiet:hover, .btn-light:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover {
    background: var(--paper);
    border-color: #D6D2C6;
    color: var(--ink);
}

.btn-soft {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-700);
}
.btn-soft:hover { background: var(--green-100); color: var(--green-800); }

.btn-danger-soft, .btn-outline-danger {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--red-600);
}
.btn-danger-soft:hover, .btn-outline-danger:hover {
    background: var(--red-100);
    border-color: #EDC8C0;
    color: var(--red-600);
}

.btn-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

.btn-lg { padding: 12px 26px; font-size: 0.95rem; border-radius: 12px; }
.btn-sm { padding: 5px 11px; font-size: 0.8rem; border-radius: 8px; }

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

/* ═══ Forms ════════════════════════════════════════════════════════════ */

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 0.89rem;
    color: var(--ink);
    background-color: var(--surface);
}
.form-control::placeholder { color: #A9B2A4; }
.form-control:focus, .form-select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(129, 137, 251, 0.22);
}

.form-text, .field-hint { font-size: 0.76rem; color: var(--ink-3); }

.input-group-text {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-3);
    border-radius: 10px;
}
.input-group .form-control { border-radius: 10px; }
.input-group > :first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > :last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:first-child):not(:last-child) { border-radius: 0; }

.form-check-input { border-color: #C9CFC2; }
.form-check-input:checked { background-color: var(--green-600); border-color: var(--green-600); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(129, 137, 251, 0.22); border-color: var(--green-400); }

/* ═══ Alerts / flash ═══════════════════════════════════════════════════ */

.alert {
    border: 1px solid transparent;
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert i { margin-top: 2px; }
.alert-success { background: var(--green-50); border-color: var(--green-100); color: var(--green-800); }
.alert-danger  { background: var(--red-100); border-color: #EDCFC8; color: #8F3324; }
.alert-warning { background: var(--amber-100); border-color: #EFDCB8; color: #7E5A1D; }
.alert-info    { background: var(--blue-100); border-color: #D4E1EE; color: #2C5479; }
.alert .btn-close { margin-left: auto; font-size: 0.7rem; }

/* ═══ Tables ═══════════════════════════════════════════════════════════ */

.table { --bs-table-hover-bg: #FAF9F4; margin-bottom: 0; color: var(--ink); }

.table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: #FBFAF6;
    border-bottom: 1px solid var(--line);
    padding: 11px 16px;
    white-space: nowrap;
}
.table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
    font-size: 0.875rem;
}
.table tbody tr:last-child td { border-bottom: none; }

.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub  { font-size: 0.76rem; color: var(--ink-3); }

.company-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 7px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 0.79rem;
    font-weight: 550;
    color: var(--ink-2);
}

/* ═══ Empty states ═════════════════════════════════════════════════════ */

.empty { padding: 56px 24px; text-align: center; }
.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--green-50);
    color: var(--green-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.empty h5 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 400px; margin: 0 auto 20px; font-size: 0.89rem; }

/* ═══ Onboarding checklist ═════════════════════════════════════════════ */

.setup-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}
.setup-item + .setup-item { border-top: 1px solid var(--line-2); }

.si-check {
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
    border: 2px solid var(--line);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
}
.si-check.is-done {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
}
.si-body { flex: 1; min-width: 0; }
.si-title { font-weight: 600; font-size: 0.89rem; }
.si-sub { font-size: 0.78rem; color: var(--ink-3); }
.setup-item.is-done .si-title { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }

.setup-bar {
    height: 6px;
    flex: 1;
    border-radius: 999px;
    background: var(--line-2);
    overflow: hidden;
}
.setup-bar > div { height: 100%; border-radius: 999px; background: var(--green-500); }

/* ═══ Hero (dashboard) ═════════════════════════════════════════════════ */

.hero {
    background: var(--green-950);
    background-image: radial-gradient(ellipse 60% 90% at 85% 10%, rgba(79, 169, 138, 0.25), transparent),
                      radial-gradient(ellipse 40% 70% at 10% 100%, rgba(222, 155, 51, 0.08), transparent);
    border-radius: var(--r-xl);
    color: #fff;
    padding: 34px 36px;
    position: relative;
    overflow: hidden;
}
.hero h2 {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 750;
    margin-bottom: 6px;
}
.hero p { color: rgba(240, 245, 240, 0.75); max-width: 560px; margin: 0; font-size: 0.92rem; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--green-300);
    margin-bottom: 10px;
}

/* ═══ Dropzones ════════════════════════════════════════════════════════ */

.dropzone {
    border: 1.5px dashed #CFCBBE;
    border-radius: var(--r-md);
    padding: 30px 20px;
    text-align: center;
    background: #FBFAF6;
    position: relative;
    cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--green-400);
    background: var(--green-50);
}
.dropzone.has-file {
    border-color: var(--green-400);
    border-style: solid;
    background: var(--green-50);
}
.dz-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.15rem;
    color: var(--green-600);
}
.dz-title { font-weight: 650; font-size: 0.9rem; margin-bottom: 2px; }
.dz-hint { font-size: 0.78rem; color: var(--ink-3); }

.file-ready {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--green-50);
    border: 1px solid var(--green-100);
}
.fr-icon {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

/* ═══ Send console ═════════════════════════════════════════════════════ */

#send-log {
    background: var(--green-950);
    color: var(--green-200);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    padding: 18px;
    border-radius: var(--r-md);
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}
#send-log .log-sent  { color: #7FD7B4; }
#send-log .log-error { color: #F0917E; }
#send-log .log-wait  { color: #EDBE6F; }
#send-log .log-info  { color: #93B8DB; }

.progress {
    height: 10px;
    border-radius: 999px;
    background: var(--line-2);
}
.progress-bar {
    background: var(--green-500);
    font-size: 0;
    border-radius: 999px;
}

.con-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cs-box {
    padding: 10px 14px;
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
    text-align: center;
}
.cs-box small { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 650; }
.cs-box span { font-family: var(--font-display); font-weight: 750; font-size: 1.25rem; }
.cs-sent span { color: var(--green-600); }
.cs-failed span { color: var(--red-600); }
.cs-left span { color: var(--ink-2); }

/* ═══ Mail preview (compose mockup) ════════════════════════════════════ */

.mailview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.mv-bar {
    background: #FBFAF6;
    border-bottom: 1px solid var(--line-2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--ink-3);
}
.mv-dot { width: 9px; height: 9px; border-radius: 50%; }
.mv-dot.r { background: #E58274; }
.mv-dot.y { background: #EDBE6F; }
.mv-dot.g { background: #7FC9A9; }

.mv-meta { padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 0.84rem; }
.mv-row { display: flex; gap: 8px; padding: 2px 0; align-items: baseline; }
.mv-k { color: var(--ink-3); width: 58px; flex: none; font-size: 0.78rem; }
.mv-v { font-weight: 550; }
.mv-pill {
    display: inline-block;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-800);
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 550;
}

.mv-attach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 18px 0;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.79rem;
    font-weight: 550;
}
.mv-attach i { color: var(--red-600); }

.mv-body {
    padding: 18px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--ink);
    min-height: 240px;
}

.pvar {
    background: var(--green-50);
    color: var(--green-800);
    border-radius: 5px;
    padding: 0 4px;
    font-weight: 600;
}

/* ═══ Placeholder chips ════════════════════════════════════════════════ */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.chip {
    background: var(--surface);
    color: var(--green-800);
    border: 1px solid var(--line);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    cursor: pointer;
}
.chip:hover {
    background: var(--green-600);
    color: #fff;
    border-color: var(--green-600);
}

/* ═══ Auth (split screen) ══════════════════════════════════════════════ */

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(400px, 46%) 1fr;
}

.auth-brand {
    background: var(--green-950);
    background-image: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(79, 169, 138, 0.22), transparent),
                      radial-gradient(ellipse 55% 55% at 0% 100%, rgba(222, 155, 51, 0.09), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 52px;
}

.ab-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.ab-logo img, .ab-logo svg { width: 36px; height: 36px; border-radius: 9px; }
.ab-logo span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.ab-mid { max-width: 460px; }
.ab-head {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 14px;
}
.ab-head em {
    font-style: normal;
    color: var(--green-300);
}
.ab-sub { color: rgba(240, 245, 240, 0.72); font-size: 0.98rem; margin-bottom: 30px; }

.ab-points { list-style: none; display: grid; gap: 15px; }
.ab-points li { display: flex; gap: 13px; align-items: flex-start; }
.ab-pt-icon {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    background: rgba(79, 169, 138, 0.16);
    color: var(--green-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.ab-pt-title { font-weight: 650; font-size: 0.92rem; color: #EFF3EF; }
.ab-pt-sub { font-size: 0.82rem; color: rgba(240, 245, 240, 0.6); }

.ab-foot { font-size: 0.78rem; color: rgba(240, 245, 240, 0.45); }

.auth-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    background: var(--paper);
}
.ap-inner { width: 100%; max-width: 396px; }
.ap-title {
    font-size: 1.5rem;
    font-weight: 750;
    margin-bottom: 4px;
}
.ap-sub { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 26px; }
.ap-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    padding: 28px;
}
.ap-foot { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--ink-2); }

.toggle-password { border-color: var(--line); color: var(--ink-3); background: var(--surface); }
.toggle-password:hover { background: var(--paper); color: var(--ink-2); }

/* ═══ Pricing ══════════════════════════════════════════════════════════ */

.pricing-head { text-align: center; max-width: 620px; margin: 8px auto 30px; }
.pricing-head h1 { font-size: 2.1rem; font-weight: 750; margin-bottom: 8px; }
.pricing-head p { color: var(--ink-2); font-size: 0.95rem; }

.seg {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin: 0 auto 38px;
}
.seg-btn {
    border: none;
    background: transparent;
    padding: 7px 20px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.seg-btn.is-on { background: var(--green-900); color: #fff; }
.save-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-600);
}
.seg-btn.is-on .save-pill { background: rgba(222, 155, 51, 0.25); color: #EDBE6F; }

.plan-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-1);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.plan-card.is-popular {
    border: 2px solid var(--green-600);
    box-shadow: var(--shadow-3);
}
.pc-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-600);
    color: #fff;
    padding: 3px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pc-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
}
.pc-price {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 4px;
}
.pc-price .pc-per { font-family: var(--font-ui); font-size: 0.88rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.pc-cycle-note { font-size: 0.76rem; color: var(--ink-3); min-height: 1.2em; }
.pc-desc { color: var(--ink-2); font-size: 0.86rem; margin: 10px 0 20px; }
.pc-feats { list-style: none; margin: 0 0 24px; flex: 1; display: grid; gap: 0; }
.pc-feats li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.87rem;
    border-bottom: 1px solid var(--line-2);
}
.pc-feats li:last-child { border-bottom: none; }
.pc-feats i.fa-check { color: var(--green-500); font-size: 0.78rem; }
.pc-feats li.off { color: var(--ink-3); }
.pc-feats li.off i { color: #C9CFC2; font-size: 0.78rem; }
.pc-feats b { font-weight: 700; color: var(--ink); }
.pc-feats li.off b { color: var(--ink-3); }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    margin: 40px auto 0;
    padding: 18px 24px;
    max-width: 860px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
.ts-item { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; font-weight: 550; color: var(--ink-2); }
.ts-item i { color: var(--green-500); }

/* FAQ accordion */
.accordion-item {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
    background: var(--surface);
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--surface);
    padding: 16px 20px;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) { background: var(--green-50); color: var(--green-900); }
.accordion-button::after { background-size: 0.9rem; width: 0.9rem; height: 0.9rem; }
.accordion-body { color: var(--ink-2); font-size: 0.875rem; padding: 16px 20px; }

/* ═══ Modals ═══════════════════════════════════════════════════════════ */

.modal-content {
    border: none;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
}
.modal-header { border-bottom: 1px solid var(--line-2); padding: 18px 24px; }
.modal-title { font-size: 1.02rem; font-weight: 700; }
.modal-body { padding: 22px 24px; }
.modal-footer { border-top: 1px solid var(--line-2); padding: 14px 24px; gap: 8px; }
.modal-backdrop.show { opacity: 0.4; }

.upgrade-plan-box {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
}

/* ═══ Pagination ═══════════════════════════════════════════════════════ */

.page-link {
    color: var(--ink-2);
    border-color: var(--line);
    font-size: 0.84rem;
    font-weight: 550;
}
.page-link:hover { color: var(--green-700); background: var(--green-50); border-color: var(--line); }
.page-item.active .page-link {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
}
.page-item.disabled .page-link { color: #C2C8BB; }

/* ═══ Misc ═════════════════════════════════════════════════════════════ */

.text-primary { color: var(--green-600) !important; }
.bg-success { background-color: var(--green-600) !important; }
.text-success { color: var(--green-600) !important; }
.text-danger { color: var(--red-600) !important; }
.text-warning { color: var(--amber-600) !important; }
.badge.bg-success { background-color: var(--green-600) !important; }
.badge.bg-danger { background-color: var(--red-600) !important; }

.divider { border: none; border-top: 1px solid var(--line-2); margin: 22px 0; }

.info-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--ink-2);
}
.info-note i { color: var(--green-500); margin-top: 2px; }
.info-note.warn { background: var(--amber-100); border-color: #EFDCB8; color: #7E5A1D; }
.info-note.warn i { color: var(--amber-600); }

/* ═══ Responsive ═══════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}

@media (max-width: 992px) {
    .sidebar { width: 68px; }
    .side-wordmark, .side-section, .side-link span, .side-chip,
    .side-usage, .su-id, .side-new span, .side-guest span { display: none; }
    .side-brand { justify-content: center; padding: 18px 0 12px; }
    .side-new { margin: 4px 12px 12px; padding: 9px 0; }
    .side-link { justify-content: center; padding: 11px 0; }
    .side-link.is-active::before { display: none; }
    .side-user { justify-content: center; padding: 12px 0; flex-direction: column; gap: 8px; }
    .side-guest { padding: 12px 8px; }
    .main-content { margin-left: 68px; }
    .topbar { padding: 0 18px; }
    .page-container { padding: 20px 18px 36px; }
}

@media (max-width: 640px) {
    .tb-pill { display: none; }
    .page-head h1 { font-size: 1.3rem; }
    .hero { padding: 24px 22px; }
    .auth-pane { padding: 28px 18px; }
    .ap-card { padding: 22px 18px; }
}

/* ═══ Discovery: method switch, candidate review ═══════════════════════ */

.method-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.method-tab {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    text-decoration: none;
    box-shadow: var(--shadow-1);
}
.method-tab:hover { border-color: #D6D2C6; color: var(--ink); }
.method-tab.is-on {
    border-color: var(--green-500);
    box-shadow: 0 0 0 1px var(--green-500), var(--shadow-1);
    background: var(--green-50);
}
.method-tab > i {
    font-size: 1.35rem;
    width: 40px;
    height: 40px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--green-50);
    color: var(--green-600);
}
.method-tab.is-on > i { background: var(--green-100); }
.mt-title { font-weight: 650; color: var(--ink); font-size: 0.94rem; }
.mt-title .side-chip { margin-left: 4px; vertical-align: middle; }
.mt-sub { font-size: 0.8rem; color: var(--ink-3); }

/* candidate review cards */
.cand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    cursor: pointer;
    margin: 0;
}
.cand:hover { border-color: #D6D2C6; }
.cand .form-check-input { margin-top: 3px; flex: none; }
.cand-body { min-width: 0; flex: 1; }
.cand-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.cand-name { font-weight: 650; color: var(--ink); }
.cand-email { font-size: 0.8rem; color: var(--green-700); margin-bottom: 4px; }
.cand-snippet { font-size: 0.82rem; color: var(--ink-2); margin-bottom: 4px; }
.cand-unverified { font-size: 0.78rem; color: var(--amber-600, #b45309); margin-bottom: 4px; }
.cand.is-unverified { border-style: dashed; }
.chart-box { position: relative; height: 280px; }
.chart-box-sm { height: 240px; }
.status-chip.is-opened { color: #1d4ed8; background: rgba(29, 78, 216, 0.08); border-color: rgba(29, 78, 216, 0.3); }
.review-note { font-size: 0.85rem; color: var(--amber-600, #b45309); background: rgba(180, 83, 9, 0.07); border: 1px solid rgba(180, 83, 9, 0.25); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.company-tag.is-partial { color: var(--amber-600, #b45309); border-color: rgba(180, 83, 9, 0.4); }
.cand-subj {
    font-size: 0.82rem;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* In-app notifications (see notify() in app.js) */
.toast-stack {
    position: fixed; top: 16px; right: 16px; z-index: 1090;
    display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}
.ltoast {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--green-500);
    border-radius: var(--r-md); padding: 12px 14px; box-shadow: 0 10px 30px rgba(17, 32, 27, 0.14);
    opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease;
    pointer-events: auto; font-size: 0.88rem;
}
.ltoast.is-in { opacity: 1; transform: none; }
.ltoast i { margin-top: 2px; font-size: 1rem; color: var(--green-500); }
.ltoast.is-success { border-left-color: var(--green-500); }
.ltoast.is-danger  { border-left-color: var(--red-600); }   .ltoast.is-danger i  { color: var(--red-600); }
.ltoast.is-warning { border-left-color: var(--amber-600); } .ltoast.is-warning i { color: var(--amber-600); }
.ltoast.is-info    { border-left-color: #4C79A6; }          .ltoast.is-info i    { color: #4C79A6; }
.ltoast-title { font-weight: 650; margin-bottom: 2px; }
.ltoast-msg { color: var(--ink-2); }
.ltoast .btn-close { margin-left: auto; font-size: 0.65rem; margin-top: 3px; }
.modal-sm-plus { max-width: 440px; }

/* Contacts: the post a contact came from */
.post-link { font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--green-700); white-space: nowrap; }
.post-link:hover { text-decoration: underline; }
.post-link i { margin-right: 3px; }

/* Resume preview */
.resume-viewer { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #F3F1EA; }

/* Contact groups + campaigns */
.camp-card .camp-name, .grp-card .grp-name { font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; color: inherit; }
.camp-tag, .grp-tag { background: var(--green-50); color: var(--green-700); }
.status-chip.st-draft     { background: #EEECE6; color: var(--ink-2); }
.status-chip.st-running   { background: var(--green-50); color: var(--green-700); }
.status-chip.st-paused    { background: var(--amber-100); color: var(--amber-600); }
.status-chip.st-completed { background: var(--blue-100); color: #2C5479; }
.camp-progress { height: 8px; border-radius: 999px; background: #EEECE6; }
.camp-progress .progress-bar { background: var(--green-600); border-radius: 999px; }
.tile-icon.t-red { background: var(--red-100); color: var(--red-600); }
.table td .btn-icon { margin-left: 2px; }
.text-wrap-normal { white-space: normal; }
.tile-icon.t-amber { background: var(--amber-100); color: var(--amber-600); }

/* Import review: column mapping */
.map-table td { vertical-align: top; }
.map-sample { color: var(--ink-2); font-size: 0.8rem; word-break: break-word; }

/* Discover: the two input modes. Plain grid (no !important) so [hidden] wins. */
.mode-fields { display: grid; gap: 16px; }
.mode-fields[hidden] { display: none; }

/* Discover: guided keyword picker */
.kw-picker { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; padding: 8px; border: 1px solid var(--line, #E6E2D8); border-radius: var(--r-md); }
.kw-group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kw-group-label { font-size: 0.72rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; min-width: 52px; }
.kw-chip {
    border: 1px solid var(--line, #E6E2D8); background: #fff; color: var(--ink);
    border-radius: 999px; padding: 2px 9px; font-size: 0.78rem; line-height: 1.4; cursor: pointer;
}
.kw-chip:hover { border-color: #D6D2C6; }
.kw-chip.is-on { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.kw-chip.is-exclude { color: var(--ink-2); }
.kw-chip.is-exclude.is-on { background: #7a2e2e; border-color: #7a2e2e; color: #fff; }

/* Discover: where to look (one row per source) */
.src-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--line, #E6E2D8);
    border-radius: var(--r-md);
    cursor: pointer;
    margin: 0;
}
.src-option:hover { border-color: #D6D2C6; }
.src-option .form-check-input { margin-top: 3px; flex: none; }
.src-option > i { font-size: 1.1rem; margin-top: 2px; color: var(--ink-2); width: 20px; text-align: center; }
.src-option .src-label { font-weight: 600; color: var(--ink); }
.src-option.is-off { opacity: 0.55; cursor: default; }

#d-log {
    background: var(--green-950);
    color: var(--green-200);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    padding: 16px;
    border-radius: var(--r-md);
    max-height: 360px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
#d-log .log-sent  { color: #7FD7B4; }
#d-log .log-error { color: #F0917E; }
#d-log .log-wait  { color: #EDBE6F; }
#d-log .log-info  { color: #93B8DB; }

@media (max-width: 640px) {
    .method-switch { grid-template-columns: 1fr; }
}

/* ── Profile page ───────────────────────────────────────────────────── */
.profile-facts dt { font-weight: 500; color: var(--ink-2); }
.profile-facts dd { margin-bottom: .55rem; }
.profile-facts dd:last-child { margin-bottom: 0; }

/* ── Public job board ───────────────────────────────────────────────── */
.board-crumbs { font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.board-crumbs a { color: inherit; text-decoration: none; }
.board-crumbs span { margin: 0 .35rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.board-tile { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--line, #E5E2DA);
              border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); }
.board-tile:hover { border-color: var(--green-400); }
.board-tile.is-empty { opacity: .55; }
.bt-name { font-weight: 600; }
.bt-count { font-size: .8rem; color: var(--ink-2); }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-post { display: flex; gap: 1.25rem; padding: 1.1rem 1.25rem; border-top: 1px solid var(--line, #E5E2DA); }
.board-post:first-child { border-top: 0; }
.bp-main { flex: 1 1 auto; min-width: 0; }
.bp-title { font-weight: 600; font-size: 1.02rem; }
.bp-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; color: var(--ink-2); margin: .25rem 0 .5rem; }
.bp-excerpt { margin: 0 0 .5rem; color: var(--ink); }
.bp-links { display: flex; gap: 1rem; font-size: .8rem; }
.bp-links a { text-decoration: none; }
.bp-remove { color: var(--ink-2); }
.bp-action { flex: 0 0 auto; text-align: center; align-self: center; }
.board-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.bm-head { font-weight: 600; margin-bottom: .4rem; }
.bm-col a { display: block; font-size: .9rem; text-decoration: none; padding: .15rem 0; }
@media (max-width: 640px) { .board-post { flex-direction: column; } .bp-action { text-align: left; } }

/* ── Continue with Google ───────────────────────────────────────────── */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: #fff;
              color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; padding: .6rem 1rem; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c8cc; color: #1f1f1f; }
.auth-or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--ink-2); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line, #E5E2DA); }

/* ── Landing page and the questions before the account ─────────────── */
body.lp { background: #fff; color: var(--ink); font-family: Inter, system-ui, sans-serif; margin: 0; }
.lp h1, .lp h2, .lp h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 2rem; max-width: 1180px; margin: 0 auto; }
.lp-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.lp-brand em { color: var(--green-500); font-style: normal; }
.lp-links { display: flex; gap: 1.5rem; }
.lp-links a { text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.lp-links a:hover { color: var(--ink); }
.lp-actions { display: flex; align-items: center; gap: 1rem; }
.lp-login { text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.lp-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-700); color: #fff !important; text-decoration: none; border: 0;
          padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer; font-family: inherit; }
.lp-btn:hover { background: var(--green-800); }
.lp-btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.lp-btn-quiet { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.lp-btn-quiet:hover { background: var(--paper); }
.lp-eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); font-weight: 700; margin-bottom: .75rem; }
.lp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; max-width: 1180px; margin: 2.5rem auto 0; padding: 2rem; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 0 0 1.1rem; }
.lp-hero h1 em { font-style: normal; color: var(--green-700); }
.lp-hero h1 span { color: var(--green-400); }
.lp-hero p { font-size: 1.1rem; color: var(--ink-2); line-height: 1.6; max-width: 34rem; margin-bottom: 1.5rem; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; font-size: .85rem; color: var(--ink-2); }
.lp-trust i { color: var(--green-500); margin-right: .3rem; }
.lp-stack { position: relative; min-height: 230px; }
.lp-post { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; box-shadow: 0 12px 30px rgba(20, 22, 60, .10); }
.lp-stack .lp-post { position: absolute; left: 0; right: 0; }
.lp-stack .lp-post:nth-child(1) { top: 0; z-index: 3; }
.lp-stack .lp-post:nth-child(2) { top: 22px; transform: scale(.96); z-index: 2; opacity: .85; }
.lp-stack .lp-post:nth-child(3) { top: 44px; transform: scale(.92); z-index: 1; opacity: .7; }
.lp-post-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: var(--green-700); background: var(--green-50); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.lp-post-title { font-weight: 600; font-size: 1.05rem; }
.lp-post-meta { color: var(--ink-3); font-size: .85rem; margin-top: .3rem; }
.lp-hero-note { font-size: .82rem; color: var(--ink-3); margin-top: 4.5rem; text-align: center; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1180px; margin: 2rem auto; padding: 1.5rem 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-stat b { display: block; font-size: 2rem; font-family: var(--font-display); color: var(--green-800); }
.lp-stat span { color: var(--ink-2); font-size: .9rem; }
.lp-why, .lp-how, .lp-features, .lp-pricing, .lp-faq, .lp-final { max-width: 1180px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.lp h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 1.5rem; }
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.lp-col { border-radius: 18px; padding: 1.5rem 1.75rem; border: 1px solid var(--line); }
.lp-col h3 { font-size: 1.05rem; margin: 0 0 .75rem; }
.lp-col ul { margin: 0; padding-left: 1.2rem; line-height: 1.9; color: var(--ink-2); }
.lp-col-with { background: var(--green-50); border-color: var(--green-200); }
.lp-col-with ul { list-style: none; padding-left: 0; }
.lp-col-with li::before, .lp-checks li::before, .lp-plan li::before { content: "\2713"; color: var(--green-600); font-weight: 700; margin-right: .5rem; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lp-step { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.lp-num { display: inline-block; font-family: var(--font-display); font-weight: 800; color: var(--green-500); font-size: 1.4rem; margin-bottom: .5rem; }
.lp-step h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.lp-step p { color: var(--ink-2); margin: 0; line-height: 1.6; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lp-feature { background: var(--paper); border-radius: 18px; padding: 1.75rem; }
.lp-feature h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.lp-feature p { color: var(--ink-2); line-height: 1.6; }
.lp-checks { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--ink-2); line-height: 1.9; }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lp-plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; display: flex; flex-direction: column; }
.lp-plan.is-popular { border-color: var(--green-500); box-shadow: 0 12px 30px rgba(20, 22, 60, .10); }
.lp-plan-flag { position: absolute; top: -.7rem; left: 1.5rem; background: var(--green-700); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.lp-plan-name { font-weight: 700; margin-bottom: .25rem; }
.lp-plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.lp-plan-price small { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; color: var(--ink-2); line-height: 1.9; flex: 1; }
.lp-small { color: var(--ink-3); font-size: .85rem; margin-top: 1rem; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.lp-faq p { color: var(--ink-2); margin: .75rem 0 0; line-height: 1.6; }
.lp-final { text-align: center; padding-bottom: 4rem; }
.lp-final p { color: var(--ink-2); margin-bottom: 1.5rem; }
.lp-foot { display: flex; gap: 1.5rem; justify-content: center; padding: 2rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }
.lp-foot a { color: var(--ink-2); text-decoration: none; }
@media (max-width: 900px) {
    .lp-hero, .lp-compare, .lp-steps, .lp-features, .lp-plans, .lp-stats { grid-template-columns: 1fr; }
    .lp-links, .lp-hero-card { display: none; }
}

/* The questions */
body.oq { background: var(--paper); min-height: 100vh; }
.oq-top { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 2rem; max-width: 900px; margin: 0 auto; }
.oq-progress { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.oq-progress div { height: 100%; background: var(--green-500); border-radius: 999px; transition: width .3s; }
.oq-main { display: flex; justify-content: center; padding: 1.5rem 1rem 4rem; }
.oq-card { width: 100%; max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2.25rem 2.25rem 2rem; box-shadow: 0 12px 30px rgba(20, 22, 60, .08); }
.oq-card h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6rem; line-height: 1.15; }
.oq-hint { color: var(--ink-2); margin: 0 0 1.25rem; line-height: 1.55; font-size: .95rem; }
.oq-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); font-weight: 700; margin-bottom: .6rem; }
.oq-error { background: #FDECEA; color: #8A2B20; border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.oq-error.is-ok { background: var(--green-50); color: var(--green-800); }
.oq-options { display: grid; gap: .65rem; margin-bottom: 1.25rem; }
.oq-grid { grid-template-columns: 1fr 1fr; }
.oq-option { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line);
             border-radius: 14px; padding: .95rem 1.1rem; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.oq-option:hover { border-color: var(--green-400); background: var(--green-50); }
.oq-option.is-on { border-color: var(--green-600); background: var(--green-50); }
.oq-option-sm { padding: .75rem .9rem; }
.oq-opt-label { font-weight: 600; }
.oq-opt-sub { color: var(--ink-3); font-size: .85rem; }
.oq-check { flex-direction: row; align-items: center; gap: .75rem; }
.oq-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--green-600); }
.oq-input { width: 100%; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .9rem; box-sizing: border-box; }
.oq-input:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.oq-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.oq-chip { font: inherit; font-size: .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.oq-chip:hover { border-color: var(--green-400); background: var(--green-50); }
.oq-continue { width: 100%; justify-content: center; margin-top: .25rem; }
.oq-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; background: none; border: 0; color: var(--ink-3); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
.oq-back:hover { color: var(--ink); }
.oq-inter { text-align: center; padding: .5rem 0; }
.oq-inter-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.oq-inter p { color: var(--ink-2); line-height: 1.65; margin: 0 auto 1.5rem; max-width: 30rem; }
.oq-review { margin: 0 0 1.5rem; }
.oq-review div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.oq-review dt { color: var(--ink-3); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.oq-review dd { margin: 0; font-weight: 600; text-align: right; }
.oq-scan h1 em { font-style: normal; color: var(--green-700); }
.oq-scan-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 1.25rem 0 .6rem; }
.oq-scan-bar div { height: 100%; width: 0; background: var(--green-500); transition: width .2s; }
.oq-scan-line { color: var(--ink-3); font-size: .88rem; margin-bottom: 1.5rem; }
.oq-count { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--green-800); line-height: 1; }
.oq-count small { font-size: 1rem; font-weight: 500; color: var(--ink-2); font-family: Inter, sans-serif; }
.oq-result-text { color: var(--ink-2); margin: .6rem 0 1.25rem; line-height: 1.55; }
.oq-sample { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.oq-sample-post { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.oq-sample-title { font-weight: 600; }
.oq-sample-meta { color: var(--ink-3); font-size: .85rem; }
.oq-sample-badge { display: inline-flex; gap: .4rem; align-items: center; margin-top: .4rem; font-size: .75rem; color: var(--green-700); background: var(--green-50); padding: .2rem .55rem; border-radius: 999px; }
.oq-account { margin-top: .25rem; }
.oq-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
.oq-foot { margin-top: 1.25rem; text-align: center; color: var(--ink-2); font-size: .92rem; }
.oq .btn-google { border-radius: 999px; padding: .8rem 1rem; display: flex; }
.oq-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; }
.oq-skip { color: var(--ink-3); font-size: .85rem; text-decoration: none; }
.oq-skip:hover { color: var(--ink); text-decoration: underline; }

/* ── The questions' look, everywhere ────────────────────────────────────
   Paper background, white cards with a soft shadow and 22px corners, pill
   buttons in the deep green, rounded inputs with a soft green focus ring.
   These sit after the older rules on purpose and win on order. */
.card, .tile, .plan-card, .modal-content, .board-tile, .upgrade-plan-box {
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(20, 22, 60, .08);
}
.card-header { border-radius: 22px 22px 0 0 !important; padding: 18px 24px; }
.card-header h5 { font-family: var(--font-display); letter-spacing: -0.01em; }
.page-head h1 { font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -0.02em; }
.pricing-head h1, .modal-title { font-family: var(--font-display); letter-spacing: -0.02em; }

.btn { border-radius: 999px; font-weight: 600; padding: 9px 18px; }
.btn-sm, .btn-group-sm > .btn { padding: 6px 13px; }
.btn-primary, .btn-emerald, .btn-success { background: var(--green-700); border-color: var(--green-700); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-emerald:hover, .btn-success:hover {
    background: var(--green-800); border-color: var(--green-800);
}
.btn-quiet, .btn-light, .btn-outline-primary, .btn-outline-secondary { border-width: 1.5px; }
.btn-quiet:hover { border-color: var(--green-400); background: var(--green-50); color: var(--ink); }
.btn-dark { border-radius: 999px; }
.su-cta { border-radius: 999px; }
.side-new { border-radius: 999px; }

.form-control, .form-select {
    border-radius: 12px;
    border-width: 1.5px;
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text { border-width: 1.5px; border-radius: 12px 0 0 12px; }
.input-group > .btn { border-radius: 0 12px 12px 0; }
.info-note, .alert { border-radius: 14px; }
.status-chip, .company-tag, .side-chip { border-radius: 999px; }
.oq-error.is-info { background: var(--green-50); color: var(--green-800); }
.oq-top-spacer { flex: 1; }

/* The sign-in pages inherit Bootstrap form classes; give them the questions' inputs and buttons. */
.oq .form-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.oq .form-control { font-size: 1.02rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; }
.oq .form-control:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.oq .input-group .form-control { border-radius: 12px 0 0 12px; }
.oq .input-group .btn { border-radius: 0 12px 12px 0; border: 1.5px solid var(--line); border-left: 0; background: #fff; color: var(--ink-2); }
.oq .btn-primary { width: 100%; justify-content: center; padding: .85rem 1.5rem; font-size: 1rem; border-radius: 999px; }
.oq .btn-primary.btn-lg { font-size: 1rem; }
.oq .btn-quiet { border-radius: 999px; }
.oq .oq-foot a { color: var(--green-700); font-weight: 600; text-decoration: none; }
.oq .oq-foot a:hover { text-decoration: underline; }
.oq .form-check-label, .oq .small { color: var(--ink-2); }

/* ── White and green ─────────────────────────────────────────────────────
   Solid green on every primary action, white cards with a hairline border
   over the light grey page, a white sidebar with a green active pill. */
:root {
    --grad: var(--green-700);
    --glow: var(--shadow-2);
    --glow-lg: var(--shadow-3);
}
body, body.oq { background: var(--paper); }
.btn-primary, .btn-emerald, .btn-success, .lp-btn, .oq-continue, .su-cta, .btn-dark {
    background: var(--green-700); border: 0; box-shadow: none; color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .lp-btn:hover, .su-cta:hover, .btn-dark:hover {
    background: var(--green-800); color: #fff; box-shadow: var(--shadow-1);
}
.btn-primary:disabled { background: var(--green-300); }
.lp-btn-quiet { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.card, .tile, .oq-card, .modal-content, .board-tile, .plan-card, .upgrade-plan-box {
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.card-header { border-bottom: 1px solid var(--line-2); }
.status-chip.is-sent { background: var(--green-100); color: var(--green-800); }
.oq-progress div, .oq-scan-bar div, .su-fill { background: var(--green-600); }
.oq-inter-icon { background: var(--green-700); color: #fff; }
.lp-eyebrow, .oq-eyebrow { color: var(--green-600); }
body.lp { background: #fff; }
.lp-hero h1 em { color: var(--green-700); }
.lp-hero h1 span { color: var(--green-500); }
.lp-col-with { background: var(--green-50); border-color: var(--green-200); }
.lp-plan.is-popular { border-color: var(--green-500); box-shadow: var(--shadow-2); }
.lp-plan-flag { background: var(--green-700); }

/* ── Job board: tabs and the list ───────────────────────────────────── */
.board-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1.25rem; }
.board-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px;
             border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
             font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s; }
.board-tab:hover { border-color: var(--green-400); color: var(--ink); background: var(--green-50); }
.board-tab.is-on { background: var(--green-700); border-color: transparent; color: #fff; }
.board-tab.is-empty:not(.is-on) { opacity: .55; }
.tab-n { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.board-tab.is-on .tab-n { background: rgba(255, 255, 255, .22); color: #fff; }
.board-card { overflow: hidden; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem .6rem; }
.board-h2 { font-size: 1.05rem; margin: 0; }
.board-count { font-size: .82rem; color: var(--ink-3); }
#board-list.is-loading { opacity: .5; transition: opacity .15s; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-post { display: flex; gap: 1.25rem; padding: 1.15rem 1.4rem; border-top: 1px solid var(--line-2); }
.board-post:hover { background: var(--green-50); }
.bp-main { flex: 1 1 auto; min-width: 0; }
.bp-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.bp-tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px;
          background: var(--green-100); color: var(--green-700); }
.bp-tag-src { background: var(--line-2); color: var(--ink-2); }
.bp-age { font-size: .78rem; color: var(--ink-3); margin-left: .25rem; }
.bp-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.bp-by { color: var(--ink-2); font-size: .88rem; margin-top: .15rem; }
.bp-excerpt { margin: .5rem 0 .55rem; color: var(--ink); line-height: 1.5; }
.bp-links { display: flex; gap: 1rem; font-size: .8rem; align-items: center; }
.bp-links a { text-decoration: none; color: var(--green-700); font-weight: 600; }
.bp-remove { color: var(--ink-3); }
.bp-action { flex: 0 0 auto; text-align: center; align-self: center; }
.bp-free { font-size: .75rem; color: var(--ink-3); margin-top: .35rem; }
.board-empty { display: flex; gap: .9rem; align-items: center; padding: 2rem 1.4rem; color: var(--ink-2); }
.board-empty i { font-size: 1.4rem; color: var(--green-400); }
@media (max-width: 640px) { .board-post { flex-direction: column; } .bp-action { text-align: left; } }

/* ── Landing: the product video ─────────────────────────────────────── */
.lp-video { max-width: 980px; margin: 3.5rem auto 0; padding: 0 2rem; text-align: center; }
.lp-video h2 { margin-bottom: .6rem; }
.lp-video-sub { color: var(--ink-2); max-width: 640px; margin: 0 auto 1.6rem; font-size: 1.02rem; }
.lp-video-frame { border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line);
                  box-shadow: var(--shadow-3); }
.lp-video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
@media (max-width: 640px) { .lp-video { padding: 0 1rem; margin-top: 2.5rem; } .lp-video-frame { border-radius: 12px; } }
