@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* ManifestJob Design System */
:root {
    --bg: #0F172A;
    --surface: #0f1629;
    --primary: #4F46E5;
    --accent: #22D3EE;
    --success: #10B981;
    --warning: #FBBF24;
    --danger: #EF4444;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0,0,0,0.35);
    
    /* Legacy variables kept for compatibility */
    --secondary: #8B5CF6; 
    --surface-2: #13203a;
    --card-bg: #1E293B; 
    --border: #1e2d4a;
    --text: #e2e8f0;
    --text-main: #F8FAFC; 
    --text-muted: #94A3B8;
    --muted: #8896a5;
}

* { box-sizing: border-box; }
body { font-size: 0.9rem; font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text-main); margin: 0; min-height: 100vh; }

/* ── Components ── */
.card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.chip:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.chip.active {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin: 0 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
}

.li-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.li-status-pill.connected {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}
.li-status-pill.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    z-index: 1000;
    transition: transform 0.2s;
}
.chat-fab:hover {
    transform: scale(1.05);
}

.interactive-modal {
    background: var(--surface);
    border-radius: var(--radius);
    width: 100%;
    max-width: 780px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow);
}

/* ── Base App Layout ── */
.app-header {
    background: var(--surface);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.app-header-logo {
    height: 40px;
    border-radius: 6px;
}
.app-header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

        .scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
        .scope-pill { background: #0B1120; border: 1px solid #334155; border-radius: 6px; padding: 8px 10px; color: var(--text-muted); font-family: monospace; font-size: 0.76rem; overflow-wrap: anywhere; }
        .test-output { display: none; margin-top: 14px; background: #0B1120; border: 1px solid #334155; border-radius: 8px; padding: 12px; color: var(--text-main); font-family: monospace; font-size: 0.8rem; white-space: pre-wrap; overflow-x: auto; }
        table { width: 100%; border-collapse: collapse; }
        th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.88rem; }
        th { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
        .badge { padding: 4px 9px; border-radius: 4px; font-size: 0.73rem; font-weight: 600; }
        .badge-applied { background: #4F46E533; color: #818CF8; }
        .badge-interview { background: #10B98133; color: #34D399; }
        .badge-rejected { background: #EF444433; color: #F87171; }
        .badge-pendingcvapproval { background: #FBBF2433; color: #FBBF24; }
        .badge-applying, .badge-approvedapplying, .badge-approved_applying { background: #06B6D433; color: #22D3EE; animation: pulse 1.2s infinite; }
        .badge-applyfailed, .badge-apply_failed { background: #EF444433; color: #F87171; }
        .badge-jobexpired, .badge-job_expired { background: #F59E0B33; color: #F59E0B; }
        .badge-manualsubmitneeded { background: #FBBF2433; color: #FBBF24; }
        .badge-awaitingkbinput, .badge-awaiting_kb_input { background: #F97316AA; color: #fff; font-weight:700; animation: pulse 1.4s infinite; border: 1px solid #F97316; }
        .badge-offer { background: #10B98133; color: #34D399; }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
        @keyframes spin { 100% { transform:rotate(360deg); } }
        @keyframes liSpin { to { transform: rotate(360deg); } }
        .li-stat-box { background: rgba(15,23,42,0.6); border: 1px solid #1e293b; border-radius: 8px; padding: 10px 12px; }
        .li-stat-label { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
        .li-stat-value { font-size: 1.1rem; font-weight: 700; color: #e2e8f0; margin-top: 2px; }
        .li-plan-tile:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(56,189,248,0.15); }
        .status-pipeline { display:flex; gap:0; align-items:center; font-size:0.7rem; margin-top:4px; }
        .status-step { padding:3px 7px; border-radius:3px; background:#1e293b; color:#64748b; white-space:nowrap; }
        .status-step.done { background:#1e3a2f; color:#34d399; }
        .status-step.active { background:#0f2d3d; color:#22d3ee; font-weight:700; animation:pulse 1.2s infinite; }
        .status-step.failed { background:#3d0f0f; color:#f87171; }
        .status-step.expired { background:#3d2a00; color:#f59e0b; }
        .status-step.awaiting { background:#3d2b0f; color:#fbbf24; font-weight:700; animation:pulse 1.2s infinite; }
        .status-arrow { color:#334155; padding:0 2px; }
        .failure-detail { margin-top:8px; padding:7px 9px; border:1px solid rgba(248,113,113,0.45); border-radius:6px; background:rgba(127,29,29,0.22); color:#fecaca; font-size:0.74rem; line-height:1.35; max-width:520px; }
        .expired-detail { margin-top:8px; padding:7px 9px; border:1px solid rgba(245,158,11,0.45); border-radius:6px; background:rgba(92,60,0,0.22); color:#fde68a; font-size:0.74rem; line-height:1.35; max-width:520px; }
        /* History filters */
        .hist-filter-bar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:10px 0 14px; }
        .hist-filter-bar input, .hist-filter-bar select { background:#0f172a; border:1px solid #334155; color:#e2e8f0; border-radius:6px; padding:5px 10px; font-size:0.82rem; }
        .hist-filter-bar input:focus, .hist-filter-bar select:focus { border-color:var(--accent); outline:none; }
        .hist-toggle { cursor:pointer; user-select:none; display:flex; align-items:center; gap:8px; }
        .hist-toggle .hist-arrow { transition:transform 0.25s; font-size:1rem; color:var(--accent); }
        .hist-toggle.collapsed .hist-arrow { transform:rotate(-90deg); }
        #historyBody { transition: all 0.3s ease; }
        /* Live step ticker */
        .live-step-ticker { margin-top:6px; font-size:0.74rem; color:#22d3ee; font-weight:600; display:flex; align-items:center; gap:5px; }
        .live-step-ticker::before { content:''; width:6px; height:6px; background:#22d3ee; border-radius:50%; display:inline-block; animation:pulse 1s infinite; flex-shrink:0; }

        /* Drop Zone */
        .drop-zone { border: 2px dashed #334155; border-radius: 10px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: #0B1120; position: relative; }
        .drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: rgba(34,211,238,0.05); }
        .drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
        .drop-zone .dz-icon { font-size: 2.5rem; margin-bottom: 10px; }
        .drop-zone p { margin: 5px 0; color: var(--text-muted); font-size: 0.85rem; }
        .drop-zone .dz-title { color: var(--text-main); font-weight: 600; font-size: 0.95rem; }

        /* CV Preview Modal */
        .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; }
        .modal-overlay.active { display: flex; }
        /* In-app confirm — native confirm() is unreliable inside modal-overlay */
        .jm-confirm-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 100002; justify-content: center; align-items: center; padding: 20px; }
        .jm-confirm-overlay.active { display: flex; }
        .jm-confirm-box { background: #0f172a; border: 1px solid #334155; border-radius: 12px; padding: 24px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.55); }
        .jm-confirm-box h3 { margin: 0 0 10px; font-size: 1.05rem; color: #f8fafc; }
        .jm-confirm-box p { margin: 0 0 20px; font-size: 0.88rem; color: #94a3b8; line-height: 1.55; }
        .jm-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
        .jm-confirm-actions button { padding: 9px 18px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; border: 1px solid #334155; }
        .jm-confirm-cancel { background: transparent; color: #94a3b8; }
        .jm-confirm-ok { background: #6366f1; color: #fff; border-color: #6366f1; }
        .jm-confirm-ok.danger { background: #dc2626; border-color: #dc2626; }
        .modal { background: var(--card-bg); border-radius: 14px; width: 100%; max-width: 780px; padding: 30px; border: 1px solid rgba(255,255,255,0.1); animation: slideUp 0.2s ease; }
        @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        .modal h2 { margin-top: 0; color: var(--accent); }
        .cv-preview { background: #0B1120; border-radius: 8px; padding: 20px; font-size: 0.85rem; line-height: 1.7; max-height: 45vh; overflow-y: auto; border: 1px solid #334155; white-space: pre-wrap; word-break: break-word; }
        .cv-paper-shell {
            background: linear-gradient(180deg, #e8eef6 0%, #dbe4f0 100%);
            border-radius: 12px;
            border: 1px solid var(--border);
            overflow: hidden;
        }
        .cv-paper-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 14px;
            background: rgba(15, 23, 42, 0.55);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .cv-paper-label {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .cv-paper-zoom { display: flex; gap: 6px; }
        .cv-zoom-btn {
            min-width: 36px;
            height: 30px;
            padding: 0 10px;
            border-radius: 6px;
            border: 1px solid #334155;
            background: #0f172a;
            color: #e2e8f0;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }
        .cv-zoom-btn:hover { border-color: #38bdf8; color: #38bdf8; }
        .cv-paper-stage {
            max-height: min(78vh, 980px);
            overflow: auto;
            padding: 18px 16px 24px;
            display: flex;
            justify-content: center;
        }
        .cv-paper-page {
            width: min(100%, 820px);
            background: #fff;
            border-radius: 4px;
            box-shadow:
                0 1px 2px rgba(15, 23, 42, 0.08),
                0 12px 28px rgba(15, 23, 42, 0.18);
            transform-origin: top center;
            transition: transform 0.15s ease;
            overflow: hidden;
        }
        .cv-paper-page iframe {
            width: 100%;
            height: 1120px;
            border: none;
            display: block;
            background: #fff;
        }
        @media (max-width: 720px) {
            .cv-paper-stage { padding: 12px 8px 16px; max-height: 70vh; }
            .cv-paper-page iframe { height: 960px; }
            .cv-paper-toolbar { flex-wrap: wrap; }
        }
        .modal-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
        .hitl-modal { max-width: 720px; border: 1px solid rgba(251,191,36,0.7); padding: 0; overflow: hidden; }
        .hitl-panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:22px 24px 14px; border-bottom:1px solid rgba(255,255,255,0.08); background:rgba(15,23,42,0.45); }
        .hitl-eyebrow { color:var(--warning); font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:6px; }
        .modal .hitl-title { margin:0; color:var(--text-main); font-size:1.35rem; border:0; padding:0; }
        .hitl-close { width:34px; height:34px; border-radius:8px; border:1px solid #334155; background:#0f172a; color:var(--text-muted); cursor:pointer; font-size:1.2rem; line-height:1; }
        .hitl-body { font-size: 0.9rem; padding:20px 24px 24px; }
        .hitl-message { font-size:0.95rem; line-height:1.5; color:var(--text-main); margin:0; }
        .hitl-screen { position:relative; margin:18px 0; background:#0B1120; border-radius:8px; overflow:hidden; border:1px solid rgba(251,191,36,0.7); box-shadow:0 10px 30px rgba(0,0,0,0.42); }
        .hitl-screen:focus { outline:2px solid var(--accent); outline-offset:2px; }
        .hitl-screen.is-control-active { border-color:var(--accent); box-shadow:0 0 0 2px rgba(34,211,238,0.24), 0 10px 30px rgba(0,0,0,0.42); }
        .hitl-badge { position:absolute; top:10px; right:10px; background:var(--warning); color:black; padding:4px 10px; border-radius:20px; font-size:0.72rem; font-weight:bold; z-index:10; box-shadow:0 2px 8px rgba(0,0,0,0.3); pointer-events:none; }
        .hitl-screen-hint { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,0.82); color:white; padding:6px 12px; border-radius:8px; font-size:0.78rem; z-index:10; border:1px solid rgba(255,255,255,0.2); pointer-events:none; white-space:nowrap; max-width:calc(100% - 24px); overflow:hidden; text-overflow:ellipsis; }
        .hitl-controls { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:10px; margin-top:12px; }
        .hitl-actions { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:10px; margin-top:18px; }
        .hitl-log { margin-top:18px; border-top:1px solid rgba(255,255,255,0.1); padding-top:14px; }
        .hitl-log h4 { margin:0 0 10px; font-size:0.76rem; color:var(--text-muted); text-transform:uppercase; }
        .hitl-log-feed { background:#020617; border:1px solid #111827; border-radius:6px; padding:12px; font-family:monospace; font-size:0.75rem; color:#34d399; max-height:120px; overflow-y:auto; line-height:1.4; white-space:pre-wrap; }
        .hitl-note { font-size:0.75rem; color:var(--text-muted); margin-top:14px; text-align:center; }
        @media (max-width: 760px) { .hitl-controls, .hitl-actions { grid-template-columns:1fr 1fr; } .hitl-actions #hitlSubmitBtn { grid-column:1 / -1; } }
        .feedback-area { display: none; margin-top: 15px; }
        .feedback-area textarea { height: 90px; }
        .score-badge { display: inline-block; padding: 5px 14px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
        .progress-bar { height: 5px; background: #334155; border-radius: 5px; margin-top: 8px; }
        .progress-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s; }
        #uploadStatus { margin-top: 10px; font-size: 0.83rem; padding: 8px 12px; border-radius: 6px; display: none; }
        .status-ok { background: rgba(16,185,129,0.15); color: var(--success); }
        .status-err { background: rgba(239,68,68,0.15); color: var(--danger); }
        .settings-panel { margin-top: 30px; }
        .plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
        .plan-card { background: #0B1120; border: 2px solid #334155; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
        .plan-card:hover { border-color: var(--primary); transform: translateY(-2px); }
        .plan-card.active { border-color: var(--accent); background: rgba(34,211,238,0.08); }
        .plan-card .plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
        .plan-card .plan-limit { font-size: 2rem; font-weight: 700; color: var(--accent); }
        .plan-card .plan-sublabel { font-size: 0.72rem; color: var(--text-muted); }
        .plan-card .plan-price { font-size: 0.9rem; color: var(--success); margin-top: 8px; font-weight: 600; }
        .byok-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .alert-banner { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; display: none; }
        .alert-error { background: rgba(239,68,68,0.15); border: 1px solid #EF4444; color: #F87171; }
        .alert-success { background: rgba(16,185,129,0.15); border: 1px solid #10B981; color: #34D399; }
        .alert-warn { background: rgba(251,191,36,0.15); border: 1px solid #FBBF24; color: #FBBF24; }
        .curr-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; padding: 3px 8px; border-radius: 4px; font-family: inherit; transition: all 0.15s; }
        .curr-btn:hover { color: var(--text-main); }
        .curr-btn.active-curr { background: var(--primary); color: white; font-weight: 600; }
        /* Week-4: Plan quota card */
        #planQuotaCard { background:linear-gradient(135deg,rgba(99,102,241,0.12),rgba(34,211,238,0.08)); border:1px solid rgba(99,102,241,0.3); border-radius:14px; padding:16px 20px; margin-bottom:18px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
        #planQuotaCard .pq-plan { font-size:0.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#818cf8; }
        #planQuotaCard .pq-label { font-size:1.05rem; font-weight:700; color:#f1f5f9; }
        #planQuotaCard .pq-meta { font-size:0.75rem; color:var(--text-muted); margin-top:2px; }
        #planQuotaCard .pq-meters { display:flex; gap:18px; flex-wrap:wrap; flex:1; justify-content:flex-end; align-items:center; }
        .pq-meter { min-width:120px; }
        .pq-meter-label { font-size:0.7rem; color:var(--text-muted); margin-bottom:4px; display:flex; justify-content:space-between; }
        .pq-bar { height:6px; background:rgba(51,65,85,0.8); border-radius:6px; overflow:hidden; }
        .pq-bar-fill { height:100%; border-radius:6px; transition:width 0.6s ease; }
        .pq-bar-fill.green { background:linear-gradient(90deg,#10b981,#34d399); }
        .pq-bar-fill.amber { background:linear-gradient(90deg,#f59e0b,#fbbf24); }
        .pq-bar-fill.red   { background:linear-gradient(90deg,#ef4444,#f87171); }
        #planQuotaCard .pq-upgrade { margin-left:auto; white-space:nowrap; }
        /* Upgrade modal */
        #upgradeModal { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.7); backdrop-filter:blur(6px); align-items:center; justify-content:center; }
        #upgradeModal.show { display:flex; }
        #upgradeModalBox { background:#0f172a; border:1px solid rgba(99,102,241,0.4); border-radius:18px; padding:32px; max-width:860px; width:95%; max-height:88vh; overflow-y:auto; box-shadow:0 24px 64px rgba(0,0,0,0.6); }
        .upgrade-current-card {
            background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(34,211,238,0.08));
            border: 1px solid rgba(99,102,241,0.35);
            border-radius: 14px;
            padding: 16px 18px;
            margin-bottom: 20px;
        }
        .upgrade-current-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
        .upgrade-current-badge { font-size:0.65rem; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; color:#94a3b8; margin-bottom:4px; }
        .upgrade-current-name { font-size:1.15rem; font-weight:800; color:#f1f5f9; }
        .upgrade-current-meta { font-size:0.78rem; color:#94a3b8; margin-top:2px; }
        .upgrade-current-meters { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; }
        .upgrade-current-meter { background:rgba(0,0,0,0.25); border-radius:8px; padding:8px 10px; border:1px solid rgba(255,255,255,0.06); }
        .upgrade-current-meter-label { font-size:0.68rem; color:#94a3b8; margin-bottom:4px; display:flex; justify-content:space-between; }
        .upgrade-current-meter-bar { height:4px; background:rgba(255,255,255,0.08); border-radius:4px; overflow:hidden; }
        .upgrade-current-meter-fill { height:100%; border-radius:4px; background:linear-gradient(90deg,#22d3ee,#6366f1); }
        .upgrade-section-title { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:#64748b; margin:0 0 10px; }
        .upgrade-plans-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; margin-bottom:20px; }
        .upgrade-plan-card {
            background:rgba(15,23,42,0.9);
            border:2px solid #1e293b;
            border-radius:12px;
            padding:14px 16px;
            cursor:pointer;
            transition:border-color 0.15s, transform 0.1s;
            position:relative;
        }
        .upgrade-plan-card:hover { transform:translateY(-2px); }
        .upgrade-plan-cta { margin-top:10px; font-weight:700; font-size:0.76rem; padding:6px; border-radius:7px; text-align:center; color:#0f172a; }
        .upgrade-all-set { text-align:center; color:#94a3b8; font-size:0.85rem; padding:12px 0 20px; }
        /* Billing history */
        .billing-table { width:100%; border-collapse:collapse; font-size:0.82rem; }
        .billing-table th { color:var(--text-muted); font-weight:600; padding:8px 12px; text-align:left; border-bottom:1px solid #1e293b; }
        .billing-table td { padding:10px 12px; border-bottom:1px solid #0f172a; vertical-align:middle; }
        .billing-table tr:hover td { background:rgba(255,255,255,0.02); }
        .badge-paid { background:rgba(16,185,129,0.15); color:#34d399; padding:2px 8px; border-radius:12px; font-size:0.72rem; font-weight:700; }
        .badge-pending { background:rgba(245,158,11,0.15); color:#fbbf24; padding:2px 8px; border-radius:12px; font-size:0.72rem; font-weight:700; }
        .badge-refunded { background:rgba(99,102,241,0.15); color:#818cf8; padding:2px 8px; border-radius:12px; font-size:0.72rem; font-weight:700; }
        
        .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
        
        @media (max-width: 992px) { 
            .grid { grid-template-columns: 1fr; } 
            .stats-bar { grid-template-columns: repeat(2, 1fr); }
            .plan-cards { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) { 
            .header { padding: 14px 20px; flex-direction: column; gap: 10px; }
            .user-nav { flex-wrap: wrap; justify-content: center; }
            .stats-bar { grid-template-columns: 1fr; } 
            .plan-cards { grid-template-columns: 1fr; } 
            .byok-inputs, .scope-list { grid-template-columns: 1fr; } 
            .public-grid { grid-template-columns: 1fr; } 
            .public-hero h1 { font-size: 2.2rem; } 
            .hitl-controls, .hitl-actions { grid-template-columns:1fr 1fr; } 
            .hitl-actions #hitlSubmitBtn { grid-column:1 / -1; }
            .modal { padding: 20px; }
            #upgradeModalBox { padding: 20px; width: 95%; }
        }
        footer { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.88rem; }
        .score-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        color: white;
        border: 2px solid rgba(255,255,255,0.1);
    }

        /* Tabs System */
        .dash-tabs { display: none; /* hidden on desktop, block on mobile via media query */ gap: 4px; gap: 4px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
        .dash-tab { background: transparent; color: var(--text-muted); border: none; font-size: 1.05rem; font-weight: 600; padding: 8px 16px; cursor: pointer; transition: all 0.2s; border-radius: 8px; font-family: inherit; }
        .dash-tab:hover { background: rgba(255,255,255,0.05); color: white; }
        .dash-tab.active { background: rgba(34,211,238,0.1); color: var(--accent); box-shadow: 0 2px 8px rgba(34,211,238,0.2); }
        .tab-pane { display: none; animation: fadeIn 0.3s ease; }
        .tab-pane.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Application History Card */
.app-card {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 3.5fr 0.5fr;
    gap: 20px;
    align-items: start;
}
.app-card-section {
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .app-card {
        grid-template-columns: 1fr;
    }
}


/* Standardized Semantic Layout & Typography Classes */
.page { max-width: 1100px; margin: 0 auto; padding-top: 10px; }
.section { margin-bottom: 24px; }
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; color: var(--text-main); }
.section-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; margin: 0 0 16px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 8px; }
.card-title { font-size: 1.1rem; color: var(--accent); margin: 0 0 10px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; padding: 11px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: all 0.2s; font-size: 0.9rem; text-align: center; text-decoration: none; display: inline-block; box-sizing: border-box; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; padding: 11px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; font-size: 0.9rem; text-decoration: none; display: inline-block; box-sizing: border-box; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }

/* Global Sticky Strip */
.global-sticky-strip {
    background: #1e2d4a; 
    text-align: center; 
    padding: 10px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100;
    color: #e2e8f0;
}
@media (max-width: 768px) {
    .global-sticky-strip { font-size: 0.8rem; padding: 8px; }
}


/* Mobile Responsive (Moved to bottom) */
@media (max-width: 768px) {
  .header-nav-links { display: none; }  .dash-tabs { display: flex; }
}


/* RESTORED MISSING STYLES */

/* Glass card — same as landing */
.glass-card {
  background: rgba(30,41,59,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
}
/* Stepper */
.stepper { display: flex; flex-direction: column; gap: 0; }
.stepper-item { display: flex; gap: 16px; padding: 12px 0; }
.stepper-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.stepper-dot.done { background: rgba(16,185,129,0.2); color: #34d399; border: 2px solid #10b981; }
.stepper-dot.current { background: rgba(34,211,238,0.15); color: #22d3ee; border: 2px solid #22d3ee; }
.stepper-dot.pending { background: transparent; color: #64748b; border: 2px solid #334155; }
/* Page header — every tab */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 8px; }
.page-header p { color: var(--muted); margin: 0; font-size: 1rem; max-width: 560px; }

.header-nav-links { display: flex; gap: 20px; align-items: center; margin-left: 30px; }
.header-nav-link { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s; cursor: pointer; }
.header-nav-link:hover { color: white; }
.header-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

.help-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #4f46e5); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(99,102,241,0.4); z-index: 1000; transition: transform 0.2s; }
.help-fab:hover { transform: scale(1.05); }
.help-drawer { position: fixed; bottom: 90px; right: 24px; width: 300px; background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 1000; }
.help-drawer h3 { margin: 0 0 10px; font-size: 1.1rem; color: white; }
.help-drawer p { color: #94a3b8; font-size: 0.85rem; line-height: 1.4; margin-bottom: 16px; }
.help-drawer a { display: block; padding: 10px; background: rgba(255,255,255,0.05); color: #cbd5e1; text-decoration: none; border-radius: 8px; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; text-align: center; border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s; }
.help-drawer a:hover { background: rgba(255,255,255,0.1); color: white; }

/* Mobile bottom nav — must stay inside this media query (desktop keeps .dash-tabs { display: none }) */
@media (max-width: 768px) {
  .dash-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    z-index: 100;
    justify-content: space-around;
    margin: 0;
  }
  .dash-tabs .dash-tab {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
  }
  .container { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .help-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
        .container { max-width: 1200px; margin: 36px auto; padding: 0 20px; }
        .stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
        .stat-card { background: var(--card-bg); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
        .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
        .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-top: 5px; }
        .grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
        .card { background: var(--card-bg); padding: 25px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 24px; }
        .card h2 { margin-top: 0; color: var(--accent); font-size: 1.1rem; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
        /* Collapsible card headers — remove border-bottom from h2 inside summary */
        details.card > summary h2, details.card > summary > h2 { padding-bottom: 0; border-bottom: none; margin:0; }
        details.card > summary { padding: 0; list-style: none; }
        details.card > summary::-webkit-details-marker { display: none; }
        details.card[open] > summary { margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 12px; }
        .form-group { margin-bottom: 14px; }
        .form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
        input[type="url"], textarea { width: 100%; padding: 11px; background: #0B1120; border: 1px solid #334155; border-radius: 8px; color: white; font-family: inherit; font-size: 0.9rem; }
        textarea { resize: vertical; }
        .btn { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; padding: 11px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; transition: all 0.2s; font-size: 0.9rem; }
        .btn:hover { opacity: 0.9; transform: translateY(-1px); }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .btn-sm { padding: 7px 14px; width: auto; font-size: 0.8rem; }
        .btn-success { background: linear-gradient(135deg, #10B981, #059669); }
        .btn-danger { background: linear-gradient(135deg, #EF4444, #DC2626); }
        .btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
        .btn-outline:hover { background: var(--primary); color: white; }
        .google-btn { display: inline-flex; align-items: center; background: white; color: #444; padding: 12px 24px; border-radius: 4px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: all 0.2s; cursor: pointer; border: none; font-size: 0.9rem; font-family: inherit; }
        .auth-container { padding: 56px 20px; }
        .public-hero { max-width: 1040px; margin: 0 auto; }
        .public-hero h1 { font-size: 3rem; margin: 0 0 14px; line-height: 1.05; }
        .public-hero p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.6; max-width: 780px; }
        .public-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
        .public-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 22px; }
        .public-card h2 { font-size: 1rem; color: var(--accent); margin: 0 0 10px; }
        .public-card p, .public-card li { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }
        .public-card ul { padding-left: 18px; margin: 8px 0 0; }
        .public-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:26px; }
        .public-link { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ── Post-SSO Home (conversion-focused) ── */
.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 32px 28px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(79,70,229,0.18) 0%, rgba(15,23,42,0.9) 45%, rgba(14,165,233,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(99,102,241,0.2);
    color: #c7d2fe;
    border: 1px solid rgba(99,102,241,0.35);
    margin-bottom: 16px;
}
.home-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #f8fafc;
}
.home-hero h1 .gradient-text {
    background: linear-gradient(135deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-hero-sub {
    color: #94a3b8;
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 0 22px;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

/* Live Activity panel (Home + Auto) */
.jm-activity {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.55));
    border: 1px solid rgba(34, 211, 238, 0.22);
}
.jm-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.jm-activity-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.jm-activity-title h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    border: none;
}
.jm-activity-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
    animation: jmActivityPulse 1.8s ease-out infinite;
    flex-shrink: 0;
}
@keyframes jmActivityPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.jm-activity-counts {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}
.jm-activity-link {
    background: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #7dd3fc;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}
.jm-activity-link:hover {
    border-color: rgba(125, 211, 252, 0.55);
    color: #bae6fd;
}
.jm-activity-searches {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.jm-activity-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #67e8f9;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.2);
}
.jm-activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jm-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    text-align: left;
    width: 100%;
    color: inherit;
    font: inherit;
}
.jm-activity-row:hover {
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(2, 6, 23, 0.5);
}
.jm-activity-row-main {
    min-width: 0;
}
.jm-activity-role {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jm-activity-company {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jm-activity-step {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jm-activity-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.jm-activity-badge.kind-active {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.35);
}
.jm-activity-badge.kind-queued {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.35);
}
.jm-activity-badge.kind-needs_you {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.jm-activity-badge.kind-ready {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.jm-activity-ready {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.jm-activity-ready-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}
.jm-activity-empty {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}
.home-stat-card {
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 0.2s, transform 0.2s;
}
.home-stat-card:hover {
    border-color: rgba(34,211,238,0.25);
    transform: translateY(-2px);
}
.home-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.home-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.home-feature-card {
    background: rgba(30,41,59,0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 22px;
    transition: transform 0.25s, border-color 0.25s;
}
.home-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99,102,241,0.3);
}
.home-feature-card.highlight {
    background: linear-gradient(145deg, rgba(99,102,241,0.12), rgba(30,41,59,0.5));
    border-color: rgba(99,102,241,0.35);
}
.home-feature-icon { font-size: 1.75rem; margin-bottom: 10px; }
.home-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 8px;
    border: none;
}
.home-feature-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}
.home-upgrade-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 24px;
    background: linear-gradient(120deg, #1e1b4b 0%, #312e81 40%, #0f172a 100%);
    border: 1px solid rgba(129,140,248,0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.home-upgrade-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(34,211,238,0.1), transparent 60%);
    pointer-events: none;
}
.home-upgrade-banner > * { position: relative; z-index: 1; }
.home-upgrade-banner h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #e0e7ff;
    margin: 0 0 6px;
}
.home-upgrade-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #a5b4fc;
    line-height: 1.5;
    max-width: 480px;
}
.home-upgrade-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #c7d2fe;
}
.home-upgrade-perks span::before { content: '✓ '; color: #34d399; font-weight: 700; }
.home-progress-ring-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.home-progress-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) var(--pct, 0%), rgba(255,255,255,0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-progress-ring-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent);
}
.home-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.84rem;
    color: #94a3b8;
}
.home-trust-strip strong { color: #34d399; }
.home-li-connect-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 24px;
    background: linear-gradient(120deg, #0c4a6e 0%, #0369a1 35%, #0f172a 100%);
    border: 1px solid rgba(56,189,248,0.45);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.home-li-connect-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(34,211,238,0.12), transparent 55%);
    pointer-events: none;
}
.home-li-connect-banner > * { position: relative; z-index: 1; }
.home-li-connect-banner h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e0f2fe;
    margin: 0 0 6px;
}
.home-li-connect-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #7dd3fc;
    line-height: 1.55;
    max-width: 520px;
}
.home-li-connect-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #bae6fd;
}
.home-li-connect-perks span::before { content: '✓ '; color: #34d399; font-weight: 700; }
@media (max-width: 640px) {
    .home-hero { padding: 24px 20px; }
    .home-upgrade-banner { flex-direction: column; align-items: flex-start; }
    .home-li-connect-banner { flex-direction: column; align-items: flex-start; }
}

        .scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
