@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================
   BASE & RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f4;
    color: #1c1917;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-font { font-family: 'Space Grotesk', sans-serif; }

/* ============================
   SCROLLBAR
   ============================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e7e5e4; }
::-webkit-scrollbar-thumb { background: #a8a29e; border-radius: 3px; }

/* ============================
   NAVIGATION
   ============================ */
#main-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231,229,228,0.7);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
}
.nav-active {
    color: #ea580c !important;
    background: rgba(234,88,12,0.07) !important;
    border-radius: 8px;
}

/* ============================
   PROGRESS BAR + VAULT BAR
   ============================ */
#vault-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #eeeceb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.progress-bar-container {
    background: #f0efee;
    border-radius: 9999px;
    height: 10px;
    overflow: hidden;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c2410c, #ea580c, #f97316);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 4px rgba(234,88,12,0.3);
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25));
    border-radius: 9999px;
}

/* ============================
   VAULT (Copy-Paste Panel)
   ============================ */
#vault-panel {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    overflow: hidden;
}
#vault-panel.vault-collapsed {
    max-height: 0;
    opacity: 0;
}
#vault-panel.vault-open {
    max-height: 600px;
    opacity: 1;
}

.vault-block {
    background: #1c1917;
    border: 1px solid #292524;
    border-radius: 10px;
    padding: 14px 16px;
    position: relative;
}
.vault-block pre {
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #d6d3d1;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding-right: 64px;
}
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #292524;
    color: #a8a29e;
    border: 1px solid #44403c;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.copy-btn:hover { background: #44403c; color: #f5f5f4; }
.copy-btn.copied { background: #15803d; color: #fff; border-color: #15803d; }

/* ============================
   TASK CARDS
   ============================ */
.task-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}
.task-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transform: translateY(-1px);
    border-color: #d6d3d1;
}
.task-card.expanded {
    border-color: #ea580c;
    box-shadow: 0 0 0 1px rgba(234,88,12,0.15), 0 6px 20px rgba(0,0,0,0.07);
}
.task-card.task-completed { opacity: 0.5; }
.task-card.task-completed .task-title { text-decoration: line-through; color: #a8a29e; }

.task-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}
.task-checkbox-wrap { flex-shrink: 0; }
.task-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #d6d3d1;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
}
.task-checkbox:checked {
    background: #ea580c;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}
.task-checkbox:checked::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
    position: absolute;
}
.task-checkbox:hover:not(:checked) {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}

.task-title {
    font-weight: 600;
    font-size: 0.97rem;
    color: #1c1917;
    flex-grow: 1;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.task-category-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}
.task-expand-icon {
    color: #c4c0bc;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.15s ease;
}
.task-card:hover .task-expand-icon { color: #78716c; }
.task-card.expanded .task-expand-icon {
    transform: rotate(180deg);
    color: #ea580c;
}

.task-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.task-card.expanded .task-body { max-height: 2000px; }

.task-body-inner {
    border-top: 1px solid #f5f5f4;
    padding: 22px 20px 24px 56px;
    background: #fafaf9;
}

/* ============================
   PREMIUM / LOCKED CARDS
   ============================ */
.task-card-locked {
    background: #fff;
    border: 1px dashed #d6d3d1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.locked-preview {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.locked-body {
    padding: 14px 18px;
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
    font-size: 0.85rem;
    color: #78716c;
    line-height: 1.7;
}
.locked-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(245,245,244,0) 40%, rgba(245,245,244,0.98) 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
}
.quantum-badge {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================
   CATEGORY FILTER PILLS
   ============================ */
.filter-pill {
    padding: 6px 15px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid #e7e5e4;
    background: #fafaf9;
    color: #78716c;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.filter-pill:hover {
    border-color: #ea580c;
    color: #ea580c;
    background: rgba(234,88,12,0.04);
}
.filter-pill.active {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(234,88,12,0.25);
}

/* ============================
   PHASE CARDS (Dashboard)
   ============================ */
.phase-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.phase-card-top {
    position: relative;
    padding: 20px 24px 18px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 90px;
}
.phase-card-top--orange { background: #1c1917; }
.phase-card-top--blue   { background: #0f172a; }
.phase-card-top--green  { background: #0c1a0f; }
.phase-card-ghost-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    left: 16px;
    bottom: -8px;
    color: rgba(255,255,255,0.06);
    user-select: none;
    letter-spacing: -0.04em;
}
.phase-card-icon-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.6;
    color: white;
    position: relative;
    z-index: 1;
    margin-left: auto;
}
.phase-card:hover .phase-card-icon-svg { opacity: 1; }
.phase-card-top--orange .phase-card-icon-svg { color: #f97316; }
.phase-card-top--blue   .phase-card-icon-svg { color: #60a5fa; }
.phase-card-top--green  .phase-card-icon-svg { color: #4ade80; }

.phase-card-body {
    padding: 20px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.phase-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}
.phase-card-desc {
    font-size: 0.84rem;
    color: #78716c;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}
.phase-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 16px;
    gap: 12px;
}
.phase-card-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px;
}
.phase-card-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #a8a29e;
    white-space: nowrap;
    transition: color 0.15s;
    flex-shrink: 0;
}
.phase-card:hover .phase-card-cta { color: #ea580c; }
.phase-mini-bar {
    background: #f0efee;
    border-radius: 9999px;
    height: 5px;
    overflow: hidden;
    min-width: 80px;
}
.phase-mini-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* ============================
   ONBOARDING FORM
   ============================ */
.onboarding-input {
    width: 100%;
    border: 1.5px solid #e7e5e4;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1c1917;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}
.onboarding-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.onboarding-input::placeholder { color: #a8a29e; }
.onboarding-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #57534e;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.onboarding-hint {
    font-size: 0.75rem;
    color: #a8a29e;
    margin-top: 4px;
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
    background: #1c1917;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: #ea580c; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: transparent;
    color: #57534e;
    border: 1.5px solid #e7e5e4;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-secondary:hover { border-color: #1c1917; color: #1c1917; }

.btn-orange {
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-orange:hover { background: #c2410c; transform: translateY(-1px); }

/* ============================
   SECTION TRANSITIONS
   ============================ */
.view { display: none; }
.view.active {
    display: block;
    animation: fadeSlideIn 0.35s ease-out forwards;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   UTILITY
   ============================ */
.pill-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-bar-message {
    font-size: 0.78rem;
    font-weight: 600;
}

.section-title-bar {
    border-bottom: 1px solid #f0efee;
    padding-bottom: 24px;
    margin-bottom: 32px;
    padding-top: 4px;
}

.info-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
}

.insight-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.6;
    margin-top: 14px;
}

.warning-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #991b1b;
    line-height: 1.6;
    margin-top: 14px;
}

.success-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #15803d;
    line-height: 1.6;
    margin-top: 14px;
}

.step-block {
    margin-top: 12px;
}
.step-block ol { margin: 8px 0 0 0; padding-left: 20px; }
.step-block ol li { margin-bottom: 8px; font-size: 0.87rem; line-height: 1.65; color: #44403c; }
.step-block p { font-size: 0.87rem; line-height: 1.65; color: #44403c; margin: 8px 0; }
.step-block strong { color: #1c1917; }

.pro-tip {
    background: #1c1917;
    color: #d6d3d1;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.83rem;
    line-height: 1.65;
    margin-top: 16px;
}
.pro-tip strong { color: #f97316; }

.platform-url {
    display: inline-block;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 6px;
    padding: 3px 10px;
    font-family: monospace;
    font-size: 0.82rem;
    color: #44403c;
    margin: 6px 0 10px 0;
    text-decoration: none;
}
.platform-url:hover { border-color: #ea580c; color: #ea580c; }

/* ============================
   SCROLL FILTER ROW
   ============================ */
.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }

/* ============================
   VAULT EXAMPLE BLOCKS (inline in task cards)
   ============================ */
.vault-example-block {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    position: relative;
}
.vault-example-block-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.vault-example-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #f97316;
    font-style: italic;
    white-space: pre-wrap;
    word-break: break-word;
    padding-right: 64px;
}
.vault-example-empty {
    font-size: 0.82rem;
    color: #475569;
    font-style: italic;
}
.vault-example-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e293b;
    color: #64748b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.vault-example-copy-btn:hover { background: #334155; color: #f8fafc; }
.vault-example-copy-btn.copied { background: #15803d; color: #fff; border-color: #15803d; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .task-body-inner { padding-left: 18px; }
    .vault-block pre { padding-right: 0; }
    .copy-btn { position: relative; top: auto; right: auto; display: block; margin-top: 10px; width: 100%; text-align: center; }
    .vault-example-text { padding-right: 0; }
    .vault-example-copy-btn { position: relative; top: auto; right: auto; display: block; margin-top: 10px; width: 100%; text-align: center; }
}

/* ============================
   MOBILE NAV
   ============================ */
#mobile-nav { transition: max-height 0.3s ease; overflow: hidden; }
#mobile-nav.hidden { max-height: 0; }
#mobile-nav.open { max-height: 400px; }

/* ============================
   MAIN SHELL (layout wrapper)
   ============================ */
.main-shell {
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem 2rem;
}
.ob-active .main-shell {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ============================
   ONBOARDING LANDING PAGE
   ============================ */

/* — Hero — */
.ob-hero {
    background: #0c0a09;
    padding: 5.5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ob-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(234,88,12,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(234,88,12,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.ob-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 80%, transparent);
}
.ob-hero-inner {
    max-width: 52rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.ob-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #ea580c;
    background: rgba(234,88,12,0.1);
    border: 1px solid rgba(234,88,12,0.3);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    margin-bottom: 2rem;
}
.ob-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(234,88,12,0.6);
}
.ob-hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    font-weight: 800;
    color: #fafaf9;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    text-wrap: balance;
}
.ob-orange {
    color: #f97316;
    position: relative;
}
.ob-hero-sub {
    font-size: 1.08rem;
    color: #a8a29e;
    line-height: 1.8;
    max-width: 40rem;
    margin: 0 auto 2.25rem;
    letter-spacing: -0.005em;
}
.ob-hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    font-size: 0.8rem;
    color: #78716c;
    margin-bottom: 3rem;
}
.ob-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 1.25rem 2rem;
    max-width: 30rem;
    margin: 0 auto;
}
.ob-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.ob-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fafaf9;
    line-height: 1;
}
.ob-stat-label {
    font-size: 0.72rem;
    color: #78716c;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ob-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* — Shared section helpers — */
.ob-section-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.ob-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ea580c;
    margin-bottom: 0.85rem;
}
.ob-section-label--dark { color: rgba(234,88,12,0.85); }
.ob-section-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #1c1917;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
}
.ob-section-headline--light { color: #fafaf9; }

/* — Vision & Mission — */
.ob-mission {
    background: #fafaf9;
    border-top: 1px solid #e7e5e4;
    padding: 5rem 1.5rem;
    text-align: center;
}
.ob-mission-lead {
    font-size: 1.05rem;
    color: #57534e;
    line-height: 1.8;
    max-width: 44rem;
    margin: 0 auto 3.5rem;
}
.ob-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 56rem;
    margin: 0 auto;
}
.ob-pillar {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 1.125rem;
    padding: 1.75rem 1.75rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ob-pillar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ob-pillar-icon {
    width: 40px;
    height: 40px;
    background: rgba(234,88,12,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.ob-pillar h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
}
.ob-pillar p {
    font-size: 0.87rem;
    color: #78716c;
    line-height: 1.72;
    margin: 0;
}

/* — Three Phases — */
.ob-phases {
    background: #1c1917;
    padding: 5rem 1.5rem;
    text-align: center;
}
.ob-phase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    text-align: left;
    max-width: 56rem;
    margin: 2.5rem auto 0;
}
.ob-phase-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1rem;
    padding: 1.75rem;
}
.ob-phase-card--accent {
    background: #ea580c;
    border-color: #ea580c;
}
.ob-phase-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.ob-phase-num--light { color: rgba(255,255,255,0.35); }
.ob-phase-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fafaf9;
    margin: 0 0 0.6rem;
}
.ob-phase-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.ob-phase-card--accent p { color: rgba(255,255,255,0.8); }
.ob-phase-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
}
.ob-phase-tag--light {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
}

/* — Setup Form section — */
.ob-form-section {
    background: #f5f5f4;
    padding: 5rem 1.5rem 5rem;
    border-top: 1px solid #e7e5e4;
}

/* — Login CTA Button — */
.login-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ea580c;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.95rem 2.5rem;
    border-radius: 0.875rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 6px 24px rgba(234,88,12,0.4), 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}
.login-cta-btn:hover {
    background: #dc4a05;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(234,88,12,0.5), 0 2px 4px rgba(0,0,0,0.2);
}

/* — Responsive — */
@media (max-width: 640px) {
    .ob-hero { padding: 3.5rem 1.25rem 3rem; }
    .ob-stats { padding: 1rem 1.25rem; }
    .ob-stat-num { font-size: 1.5rem; }
    .ob-mission, .ob-phases, .ob-form-section { padding: 3.5rem 1.25rem; }
    .ob-pillars, .ob-phase-cards { grid-template-columns: 1fr; }
}

/* ============================
   CASE STUDY MODULE
   ============================ */

/* Add Button */
.cs-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1c1917;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: -0.01em;
}
.cs-add-btn:hover { background: #ea580c; transform: translateY(-1px); }

/* Form Card */
.cs-form-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Drop Zone */
.cs-drop-zone {
    border: 2px dashed #e7e5e4;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafaf9;
    position: relative;
}
.cs-drop-zone:hover, .cs-drop-zone.drag-over {
    border-color: #ea580c;
    background: rgba(234,88,12,0.03);
}
.cs-drop-zone.has-file {
    border-color: #22c55e;
    background: rgba(34,197,94,0.04);
    padding: 16px 20px;
    text-align: left;
}

/* Stats Bar */
.cs-stats-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    padding: 16px 24px;
}
.cs-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 20px;
}
.cs-stat-item:first-child { padding-left: 0; }
.cs-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1c1917;
    line-height: 1;
}
.cs-stat-label {
    font-size: 0.7rem;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    white-space: nowrap;
}
.cs-stat-divider {
    width: 1px;
    height: 36px;
    background: #f0efee;
    flex-shrink: 0;
}
.cs-count-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 20px;
}
.cs-cat-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 99px;
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
}

/* Empty State */
.cs-empty-state {
    text-align: center;
    padding: 80px 20px;
}

/* Case Study Cards */
.cs-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}
.cs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}
.cs-card-top {
    background: #1c1917;
    padding: 18px 20px 14px;
    position: relative;
    overflow: hidden;
}
.cs-card-top-ghost {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    user-select: none;
    line-height: 1;
    letter-spacing: -0.04em;
}
.cs-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.cs-card-status.analysed {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.2);
}
.cs-card-status.pending {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.2);
}
.cs-card-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.cs-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fafaf9;
    margin: 0;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
}
.cs-card-url {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-top: 3px;
    position: relative;
    z-index: 1;
}
.cs-card-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.cs-card-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 99px;
    background: #f5f5f4;
    color: #78716c;
    border: 1px solid #e7e5e4;
}
.cs-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(234,88,12,0.08);
    color: #ea580c;
    border: 1px solid rgba(234,88,12,0.2);
}
.cs-card-preview {
    font-size: 0.83rem;
    color: #78716c;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f4;
}
.cs-card-lessons-count {
    font-size: 0.72rem;
    color: #a8a29e;
}
.cs-card-arrow {
    font-size: 0.8rem;
    color: #d6d3d1;
    transition: color 0.15s, transform 0.15s;
}
.cs-card:hover .cs-card-arrow { color: #ea580c; transform: translateX(3px); }

/* Winning Points Chips */
.cs-win-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.cs-win-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid rgba(234,88,12,0.2);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail Panel */
.cs-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.cs-back-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #78716c;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.15s;
}
.cs-back-btn:hover { color: #1c1917; }
.cs-reanalyse-btn {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: #1c1917;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.cs-reanalyse-btn:hover { background: #ea580c; }
.cs-reanalyse-btn:disabled { background: #d6d3d1; cursor: not-allowed; }
.cs-delete-btn {
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.cs-delete-btn:hover { background: #fef2f2; }

/* Detail Content */
.cs-detail-hero {
    background: #1c1917;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.cs-detail-hero-ghost {
    position: absolute;
    right: 24px;
    bottom: -10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7rem;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    user-select: none;
    line-height: 1;
    letter-spacing: -0.04em;
}
.cs-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fafaf9;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.cs-detail-url {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.cs-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.cs-detail-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 99px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.cs-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .cs-analysis-grid { grid-template-columns: 1fr; }
}

.cs-analysis-block {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    padding: 20px;
}
.cs-analysis-block.full-width {
    grid-column: 1 / -1;
}
.cs-analysis-block-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ea580c;
    margin-bottom: 12px;
}
.cs-analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-analysis-list li {
    font-size: 0.85rem;
    color: #44403c;
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cs-analysis-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cs-analysis-list li::before {
    content: '▸';
    color: #ea580c;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-top: 3px;
}
.cs-analysis-text {
    font-size: 0.88rem;
    color: #44403c;
    line-height: 1.7;
    margin: 0;
}
.cs-score-ring {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
.cs-score-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(234,88,12,0.1);
    border: 3px solid #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ea580c;
    flex-shrink: 0;
}
.cs-score-label {
    font-size: 0.82rem;
    color: #78716c;
    line-height: 1.5;
}

/* Pending analysis state */
.cs-pending-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.87rem;
    color: #92400e;
}
.cs-pending-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(146,64,14,0.3);
    border-top-color: #92400e;
    border-radius: 50%;
    animation: cs-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* Analysing overlay on card */
.cs-analysing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28,25,23,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

/* ============================
   UPGRADE MODAL (Paystack)
   ============================ */
.upgrade-modal-card {
    background: #fff;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f5f5f4;
    border: none;
    color: #78716c;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 1;
}
.upgrade-modal-close:hover { background: #e7e5e4; color: #1c1917; }

.upgrade-modal-header {
    background: #1c1917;
    border-radius: 24px 24px 0 0;
    padding: 32px 32px 28px;
    text-align: center;
}
.upgrade-modal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.upgrade-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.upgrade-modal-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.upgrade-price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ea580c;
    line-height: 1;
}
.upgrade-price-note {
    font-size: 0.85rem;
    color: #a8a29e;
    font-weight: 500;
}
.upgrade-modal-sub {
    font-size: 0.84rem;
    color: #78716c;
    margin: 0;
    line-height: 1.5;
}

.upgrade-modal-includes {
    padding: 24px 32px;
    border-bottom: 1px solid #f5f5f4;
}
.upgrade-includes-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}
.upgrade-includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 480px) {
    .upgrade-includes-grid { grid-template-columns: 1fr; }
}
.upgrade-include-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #44403c;
    line-height: 1.45;
}
.upgrade-include-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.upgrade-modal-footer {
    padding: 24px 32px 28px;
    text-align: center;
}
.upgrade-cta-btn {
    width: 100%;
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.upgrade-cta-btn:hover:not(:disabled) { background: #c2410c; transform: translateY(-1px); }
.upgrade-cta-btn:active { transform: translateY(0); }
.upgrade-cta-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.upgrade-free-btn {
    background: transparent;
    border: none;
    color: #78716c;
    font-size: 0.84rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.15s;
    display: block;
    width: 100%;
    margin-bottom: 14px;
}
.upgrade-free-btn:hover { color: #1c1917; }

.upgrade-trust-line {
    font-size: 0.72rem;
    color: #a8a29e;
    margin: 0;
    line-height: 1.5;
}

.upgrade-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: upgrade-spin 0.7s linear infinite;
}
@keyframes upgrade-spin { to { transform: rotate(360deg); } }

/* ============================
   UPGRADE TOAST
   ============================ */
.upgrade-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #1c1917;
    color: #f5f5f4;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 320px;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border: 1px solid #292524;
    animation: toast-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.upgrade-toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.upgrade-toast strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ea580c;
    margin-bottom: 2px;
}
.upgrade-toast p {
    font-size: 0.82rem;
    color: #a8a29e;
    margin: 0;
}
.upgrade-toast-close {
    background: none;
    border: none;
    color: #78716c;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 4px;
}
.upgrade-toast-close:hover { color: #f5f5f4; }

/* ============================
   NAV QUANTUM BADGES
   ============================ */
.nav-quantum-badge-free {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}
.nav-quantum-badge-free:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-quantum-active-badge {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ============================
   SWIPE FILE VAULT MODULE
   ============================ */

/* Header */
.sf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.sf-header-left {}
.sf-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7c3aed;
    background: rgba(124,58,237,0.08);
    border-radius: 9999px;
    padding: 4px 12px;
    margin-bottom: 10px;
}
.sf-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 8px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.sf-subtitle {
    font-size: 0.92rem;
    color: #78716c;
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}
.sf-header-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 16px 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sf-stat { text-align: center; padding: 0 16px; }
.sf-stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1c1917;
    line-height: 1;
    margin-bottom: 2px;
}
.sf-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sf-stat-divider {
    width: 1px;
    height: 36px;
    background: #e7e5e4;
}

/* Product incomplete banner */
.sf-product-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #9a3412;
    flex-wrap: wrap;
}
.sf-product-banner-btn {
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.sf-product-banner-btn:hover { background: #c2410c; }

/* Category filter row */
.sf-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.sf-filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid #e7e5e4;
    background: #fafaf9;
    color: #78716c;
    white-space: nowrap;
}
.sf-filter-pill:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: rgba(124,58,237,0.05);
}
.sf-filter-pill.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.sf-filter-count {
    background: rgba(0,0,0,0.1);
    border-radius: 9999px;
    padding: 0 6px;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
}
.sf-filter-pill.active .sf-filter-count { background: rgba(255,255,255,0.25); }

/* Template grid */
.sf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 640px) {
    .sf-grid { grid-template-columns: 1fr; }
}

/* Template card */
.sf-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.sf-card:hover:not(.sf-card-locked) {
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border-color: #d6d3d1;
}
.sf-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f5f5f4;
}
.sf-card-category {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7c3aed;
    background: rgba(124,58,237,0.08);
    border-radius: 9999px;
    padding: 2px 8px;
    margin-bottom: 4px;
}
.sf-card-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1c1917;
    margin: 0;
    line-height: 1.4;
}

.sf-card-text {
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #44403c;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 14px 16px;
    background: #fafaf9;
    flex: 1;
    min-height: 60px;
}
.sf-card-text-blurred {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    color: #78716c;
}

.sf-copy-btn {
    background: #f5f5f4;
    color: #78716c;
    border: 1px solid #e7e5e4;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}
.sf-copy-btn:hover { background: #1c1917; color: #f5f5f4; border-color: #1c1917; }
.sf-copy-btn.copied { background: #15803d; color: #fff; border-color: #15803d; }

/* Locked card */
.sf-card-locked {
    border-color: #e7e5e4;
    border-style: dashed;
}
.sf-card-locked .sf-card-header { border-bottom-color: #f5f5f4; }
.sf-locked-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    border-radius: 9999px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sf-locked-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(250,250,249,0) 35%, rgba(250,250,249,0.97) 65%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
}
.sf-locked-unlock-btn {
    background: #1c1917;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Space Grotesk', sans-serif;
}
.sf-locked-unlock-btn:hover { background: #ea580c; }

/* Upgrade CTA block */
.sf-upgrade-cta-block {
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 20px;
    margin-bottom: 32px;
}
.sf-upgrade-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.sf-upgrade-cta-block h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1c1917;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.sf-upgrade-cta-block p {
    font-size: 0.9rem;
    color: #78716c;
    margin: 0 0 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.sf-upgrade-cta-btn {
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.sf-upgrade-cta-btn:hover { background: #c2410c; transform: translateY(-1px); }

/* ============================
   AI TOOLS — NAV DROPDOWN
   ============================ */
.ai-nav-dropdown {
    position: relative;
}
.ai-tools-trigger {
    position: relative;
}
.ai-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.ai-tools-trigger.open .ai-chevron {
    transform: rotate(180deg);
}
.ai-tools-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.05);
    min-width: 220px;
    padding: 6px;
    z-index: 300;
}
.ai-menu-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px !important;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.12s;
    font-size: 0.85rem !important;
}
.ai-menu-item:hover { background: rgba(234,88,12,0.05); }
.ai-menu-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.ai-menu-title {
    display: block;
    font-weight: 600;
    color: #1c1917;
    font-size: 0.83rem;
    line-height: 1.2;
    font-family: 'Space Grotesk', sans-serif;
}
.ai-menu-desc {
    display: block;
    font-size: 0.72rem;
    color: #a8a29e;
    line-height: 1.2;
    margin-top: 1px;
}

/* ============================
   AI TOOLS — VIEW SHARED STYLES
   ============================ */
.ai-view-header {
    margin-bottom: 28px;
}
.ai-view-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.ai-view-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #1c1917;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    line-height: 1.1;
}
.ai-view-subtitle {
    font-size: 0.95rem;
    color: #78716c;
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}
.ai-product-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.84rem;
    color: #9a3412;
    flex-wrap: wrap;
}
.ai-notice-btn {
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}
.ai-sample-banner {
    margin-bottom: 24px;
}
.ai-sample-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 14px 18px;
    flex-wrap: wrap;
}
.ai-sample-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.ai-sample-banner-inner > div {
    flex: 1;
    font-size: 0.84rem;
    color: #6b21a8;
    line-height: 1.6;
}
.ai-sample-upgrade-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.15s;
}
.ai-sample-upgrade-btn:hover { background: #6d28d9; }

.ai-action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.ai-run-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1c1917;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: -0.01em;
}
.ai-run-btn:hover { background: #ea580c; transform: translateY(-1px); }
.ai-run-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ai-run-btn:active { transform: translateY(0); }

.ai-loading-state {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #78716c;
}
.ai-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e7e5e4;
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: aiSpin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-error-msg {
    font-size: 0.82rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
}

.ai-input-card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ai-result-section {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.ai-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.ai-section-title--green { color: #15803d; }
.ai-section-title--red { color: #dc2626; }
.ai-section-desc {
    font-size: 0.82rem;
    color: #a8a29e;
    margin: 0 0 18px;
}
.ai-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 640px) { .ai-two-col { grid-template-columns: 1fr; } }

.ai-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-list li {
    font-size: 0.84rem;
    color: #44403c;
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}
.ai-list--green li::before { content: '✓'; position: absolute; left: 0; color: #15803d; font-weight: 700; }
.ai-list--red li::before { content: '↑'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.ai-copy-blocks { display: flex; flex-direction: column; gap: 14px; }
.ai-copy-block {
    background: #1c1917;
    border-radius: 10px;
    padding: 16px 50px 16px 18px;
    position: relative;
}
.ai-copy-block-label {
    font-size: 0.66rem;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.ai-copy-block-text {
    font-size: 0.88rem;
    color: #d6d3d1;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}
.ai-copy-block-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #292524;
    color: #a8a29e;
    border: 1px solid #44403c;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.ai-copy-block-btn:hover { background: #44403c; color: #f5f5f4; }
.ai-copy-block-btn.copied { background: #15803d; color: #fff; border-color: #15803d; }

.ai-lock-overlay {
    position: relative;
    pointer-events: none;
}
.ai-lock-overlay::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(245,245,244,0), rgba(245,245,244,0.95));
    z-index: 2;
    pointer-events: none;
}
.ai-lock-card {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    pointer-events: all;
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 24px rgba(124,58,237,0.08);
}
.ai-lock-icon { font-size: 2rem; margin-bottom: 12px; }
.ai-lock-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 10px;
}
.ai-lock-card p {
    font-size: 0.88rem;
    color: #78716c;
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.ai-lock-upgrade-btn {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}
.ai-lock-upgrade-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ============================
   HOOK GENERATOR SPECIFIC
   ============================ */
.hg-angle-group {
    margin-bottom: 24px;
}
.hg-angle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0efee;
}
.hg-angle-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1c1917;
    letter-spacing: -0.01em;
}
.hg-angle-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hg-angle-badge--curiosity    { background: #fef3c7; color: #92400e; }
.hg-angle-badge--outcome      { background: #d1fae5; color: #065f46; }
.hg-angle-badge--pain-point   { background: #fee2e2; color: #991b1b; }
.hg-angle-badge--contrarian   { background: #ede9fe; color: #5b21b6; }
.hg-angle-badge--ultra-specific { background: #e0f2fe; color: #0369a1; }

.hg-hooks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hg-hook-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafaf9;
    border: 1px solid #f0efee;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
}
.hg-hook-item:hover { background: #fff; border-color: #e7e5e4; }
.hg-hook-text {
    flex: 1;
    font-size: 0.88rem;
    color: #1c1917;
    line-height: 1.55;
}
.hg-hook-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}
.hg-hook-copy, .hg-hook-save {
    background: #fff;
    border: 1.5px solid #e7e5e4;
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #78716c;
    cursor: pointer;
    transition: all 0.12s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.hg-hook-copy:hover { border-color: #ea580c; color: #ea580c; }
.hg-hook-copy.copied { border-color: #15803d; color: #15803d; }
.hg-hook-save:hover { border-color: #7c3aed; color: #7c3aed; background: rgba(124,58,237,0.04); }

.hg-blurred-group {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

/* ============================
   PAGE GRADER SPECIFIC
   ============================ */
.pg-url-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.pg-grade-hero {
    background: #1c1917;
    border-radius: 16px;
    padding: 28px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pg-grade-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
}
.pg-grade-circle--A { border-color: #4ade80; background: rgba(74,222,128,0.12); }
.pg-grade-circle--B { border-color: #60a5fa; background: rgba(96,165,250,0.12); }
.pg-grade-circle--C { border-color: #fbbf24; background: rgba(251,191,36,0.12); }
.pg-grade-circle--D { border-color: #f87171; background: rgba(248,113,113,0.12); }
.pg-grade-circle--F { border-color: #dc2626; background: rgba(220,38,38,0.12); }
.pg-grade-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.pg-grade-meta { flex: 1; }
.pg-grade-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.pg-grade-url { font-size: 0.78rem; color: #78716c; margin-bottom: 6px; word-break: break-all; }
.pg-grade-hint { font-size: 0.75rem; color: #57534e; line-height: 1.5; margin: 0; }

.pg-categories-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pg-category-item {}
.pg-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}
.pg-cat-name { font-size: 0.84rem; font-weight: 600; color: #1c1917; }
.pg-cat-score { font-size: 0.82rem; font-weight: 700; color: #57534e; }
.pg-cat-bar-wrap {
    background: #f0efee;
    border-radius: 9999px;
    height: 7px;
    overflow: hidden;
    margin-bottom: 5px;
}
.pg-cat-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pg-cat-bar-fill--high   { background: linear-gradient(90deg, #4ade80, #22c55e); }
.pg-cat-bar-fill--mid    { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.pg-cat-bar-fill--low    { background: linear-gradient(90deg, #f87171, #ef4444); }
.pg-cat-note { font-size: 0.78rem; color: #78716c; line-height: 1.5; }

.pg-blurred-section {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

/* ============================
   COMPETITOR INTELLIGENCE
   ============================ */
.ci-ws-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}
.ci-ws-card {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 3px solid transparent;
    transition: box-shadow 0.15s;
}
.ci-ws-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.ci-ws-card--critical { border-left-color: #ef4444; }
.ci-ws-card--high     { border-left-color: #f97316; }
.ci-ws-card--medium   { border-left-color: #6366f1; }
.ci-ws-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.ci-ws-area {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1c1917;
    letter-spacing: -0.01em;
    flex: 1;
}
.ci-ws-urgency {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}
.ci-ws-urgency--critical { background: #fee2e2; color: #991b1b; }
.ci-ws-urgency--high     { background: #ffedd5; color: #9a3412; }
.ci-ws-urgency--medium   { background: #e0e7ff; color: #3730a3; }
.ci-ws-description {
    font-size: 0.84rem;
    color: #57534e;
    line-height: 1.65;
    margin-bottom: 10px;
}
.ci-ws-angle-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}
.ci-ws-angle-text {
    font-size: 0.82rem;
    color: #44403c;
    line-height: 1.55;
    font-style: italic;
}

.ci-blurred-card {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

/* User-fillable bracket highlights */
.sf-fill-bracket {
    background: rgba(234,88,12,0.1);
    color: #c2410c;
    border-radius: 3px;
    padding: 0 2px;
    font-style: normal;
    font-weight: 600;
}

/* ==============================================
   MISSION CONTROL
   ============================================== */

/* Empty / pre-plan state */
.mc-empty-state {
    text-align: center;
    max-width: 520px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.mc-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.mc-empty-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; color: #1c1917; margin-bottom: 0.75rem; }
.mc-empty-sub { font-size: 1rem; color: #78716c; line-height: 1.6; margin-bottom: 1.25rem; }
.mc-empty-bullets { list-style: none; padding: 0; margin: 0 0 2rem 0; text-align: left; display: inline-block; }
.mc-empty-bullets li { font-size: 0.92rem; color: #57534e; padding: 0.3rem 0; }
.mc-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(234,88,12,0.25);
}
.mc-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Stats row */
.mc-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
    .mc-stats-row { grid-template-columns: repeat(2, 1fr); }
}
.mc-stat-card {
    background: #fff;
    border: 1.5px solid #e7e5e4;
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
}
.mc-stat-card--pct { border-color: #fed7aa; background: #fff7ed; }
.mc-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1c1917;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.mc-stat-value--pct { color: #ea580c; }
.mc-stat-label { font-size: 0.75rem; color: #78716c; font-weight: 600; letter-spacing: 0.03em; }

/* Strip header */
.mc-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.mc-strip-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #a8a29e;
    text-transform: uppercase;
}
.mc-plan-meta { font-size: 0.78rem; color: #a8a29e; }

/* Day strip */
.mc-day-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: #e7e5e4 transparent;
}
.mc-day-strip::-webkit-scrollbar { height: 4px; }
.mc-day-strip::-webkit-scrollbar-thumb { background: #e7e5e4; border-radius: 2px; }

/* Day tile */
.mc-day-tile {
    flex-shrink: 0;
    width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 7px;
    border-radius: 12px;
    border: 2px solid #e7e5e4;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    position: relative;
}
.mc-day-tile:hover { border-color: #d6d3d1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.mc-day-tile--today {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
    animation: mc-pulse 2s infinite;
}
.mc-day-tile--completed {
    border-color: #86efac;
    background: #f0fdf4;
}
.mc-day-tile--selected {
    border-color: #1c1917;
    background: #fafaf9;
    box-shadow: 0 0 0 3px rgba(28,25,23,0.1);
}
.mc-tile-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1c1917;
    line-height: 1;
}
.mc-day-tile--completed .mc-tile-num { color: #16a34a; }
.mc-day-tile--today .mc-tile-num { color: #ea580c; }
.mc-tile-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #d6d3d1;
}
.mc-day-tile--completed .mc-tile-dot { background: #22c55e; }
.mc-day-tile--today .mc-tile-dot { background: #ea580c; }
.mc-tile-check { font-size: 0.9rem; line-height: 1; }
.mc-tile-date {
    font-size: 0.6rem;
    color: #a8a29e;
    text-align: center;
    line-height: 1.2;
}
.mc-day-tile--today .mc-tile-date { color: #ea580c; font-weight: 700; }

@keyframes mc-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(234,88,12,0.15); }
    50% { box-shadow: 0 0 0 6px rgba(234,88,12,0.08); }
}

/* Day card */
.mc-day-card-wrap {
    background: #fff;
    border: 1.5px solid #e7e5e4;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.mc-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f5f5f4;
    background: #fafaf9;
    gap: 1rem;
}
.mc-card-day-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f5f5f4;
    font-size: 0.75rem;
    font-weight: 700;
    color: #78716c;
    margin-bottom: 0.5rem;
}
.mc-card-day-badge--today { background: #fff7ed; color: #ea580c; }
.mc-card-day-badge--done { background: #f0fdf4; color: #16a34a; }
.mc-card-title-wrap { flex: 1; }
.mc-card-date-line { font-size: 0.8rem; color: #a8a29e; }
.mc-card-missions { font-size: 0.72rem; color: #a8a29e; margin-top: 2px; }
.mc-card-complete-btn {
    flex-shrink: 0;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    background: #1c1917;
    color: #fff;
}
.mc-card-complete-btn:hover { background: #ea580c; }
.mc-card-complete-btn--done { background: #f0fdf4; color: #16a34a; border: 1.5px solid #86efac; cursor: default; }

/* Mission items within day card */
.mc-missions-list { padding: 1rem 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.mc-review-mission {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 12px; padding: 1rem 1.25rem;
}
.mc-review-mission-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.mc-review-mission-body {}
.mc-review-mission-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; color: #92400e; margin-bottom: 0.35rem; }
.mc-review-mission-note { font-size: 0.83rem; color: #78350f; line-height: 1.6; }
.mc-mission-item {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    overflow: hidden;
}
.mc-mission-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
}
.mc-mission-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #f5f5f4;
    border: 1.5px solid #e7e5e4;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: #57534e;
    flex-shrink: 0;
}
.mc-mission-name {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1c1917;
}
.mc-mission-phase {
    font-size: 0.68rem;
    font-weight: 700;
    color: #a8a29e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mc-mission-expand { font-size: 0.7rem; color: #a8a29e; transition: transform 0.15s; }
.mc-mission-expand.open { transform: rotate(180deg); }
.mc-mission-body { padding: 0 1rem 1rem; display: none; }
.mc-mission-body.open { display: block; }
.mc-mission-meta { font-size: 0.82rem; color: #78716c; line-height: 1.6; margin-bottom: 0.75rem; }
.mc-mission-copy-examples { margin: 0.75rem 0; }
.mc-copy-examples-label { font-size: 0.75rem; font-weight: 600; color: #44403c; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.mc-mission-eta { font-size: 0.75rem; color: #a8a29e; margin-bottom: 0.75rem; }
.mc-mission-context-note {
    background: #fff7ed;
    border-left: 3px solid #ea580c;
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    color: #78716c;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.mc-mission-ai-briefing {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: #6b21a8;
    line-height: 1.7;
}
.mc-mission-ai-copy {
    background: #1c1917;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #d6d3d1;
    line-height: 1.7;
    white-space: pre-wrap;
    font-family: monospace;
}
.mc-mission-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mc-btn-view { padding: 0.4rem 0.85rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600; border: 1.5px solid #e7e5e4; background: #fff; color: #1c1917; cursor: pointer; transition: all 0.12s; }
.mc-btn-view:hover { border-color: #d6d3d1; background: #fafaf9; }
.mc-btn-ai { padding: 0.4rem 0.85rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600; border: none; background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; cursor: pointer; transition: opacity 0.12s; }
.mc-btn-ai:hover { opacity: 0.85; }
.mc-btn-ai:disabled { opacity: 0.4; cursor: not-allowed; }
.mc-btn-copy-ai { padding: 0.4rem 0.85rem; border-radius: 8px; font-size: 0.78rem; font-weight: 600; border: 1.5px solid #e9d5ff; background: #faf5ff; color: #7c3aed; cursor: pointer; transition: all 0.12s; }
.mc-btn-copy-ai:hover { background: #f3e8ff; }

/* Context note inside day card (day-level) */
.mc-day-context {
    margin: 0 1.5rem 1rem;
    padding: 0.65rem 0.85rem;
    background: #f5f5f4;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #57534e;
    line-height: 1.65;
}

/* Spinner */
.mc-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid #e7e5e4;
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: mc-spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* Mid-launch review section */
.mc-review-section {
    background: linear-gradient(135deg, #fdf4ff, #faf5ff);
    border: 1.5px solid #e9d5ff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-top: 0.5rem;
}
.mc-review-inner { display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.mc-review-left { display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; }
.mc-review-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.mc-review-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: #1c1917; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.mc-review-desc { font-size: 0.82rem; color: #78716c; line-height: 1.6; }
.mc-review-cta { padding: 0.55rem 1.2rem; border-radius: 10px; font-size: 0.82rem; font-weight: 700; border: none; background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; cursor: pointer; transition: opacity 0.12s; flex-shrink: 0; }
.mc-review-cta:hover { opacity: 0.85; }
.mc-review-form { margin-top: 1rem; border-top: 1px solid #e9d5ff; padding-top: 1rem; }
.mc-review-textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1.5px solid #e9d5ff; border-radius: 10px; font-size: 0.85rem; color: #1c1917; background: #fff; resize: vertical; font-family: inherit; line-height: 1.6; }
.mc-review-textarea:focus { outline: none; border-color: #a855f7; }
.mc-review-submit { padding: 0.55rem 1.2rem; border-radius: 10px; font-size: 0.82rem; font-weight: 700; border: none; background: #1c1917; color: #fff; cursor: pointer; transition: background 0.12s; }
.mc-review-submit:hover { background: #ea580c; }
.mc-review-cancel { padding: 0.55rem 1rem; border-radius: 10px; font-size: 0.82rem; font-weight: 600; border: 1.5px solid #e7e5e4; background: #fff; color: #78716c; cursor: pointer; }

/* Quantum inline badge */
.nav-quantum-badge-inline {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    background: linear-gradient(135deg,#7c3aed,#a855f7);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* ==============================================
   WIZARD MODAL
   ============================================== */
.mc-wizard-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    overflow: hidden;
    position: relative;
}
.mc-wizard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid #f5f5f4;
}
.mc-wizard-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ea580c;
    margin-bottom: 0.3rem;
}
.mc-wizard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1c1917;
}
.mc-wizard-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #a8a29e;
    padding: 0.25rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.12s;
}
.mc-wizard-close:hover { color: #1c1917; }
.mc-wizard-progress-wrap {
    padding: 0.75rem 1.5rem 0;
}
.mc-wizard-progress-bar {
    height: 6px;
    background: #e7e5e4;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.mc-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ea580c, #f97316);
    border-radius: 99px;
    transition: width 0.35s ease;
}
.mc-wizard-progress-label {
    font-size: 0.72rem;
    color: #a8a29e;
    font-weight: 500;
    text-align: right;
}
.mc-wizard-step { padding: 1.25rem 1.5rem 1.5rem; }
.mc-wz-q { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: #1c1917; margin-bottom: 0.4rem; }
.mc-wz-hint { font-size: 0.82rem; color: #78716c; line-height: 1.55; margin-bottom: 1rem; }
.mc-wz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.mc-wz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    text-align: left;
    transition: all 0.12s;
}
.mc-wz-option:hover { border-color: #d6d3d1; background: #fafaf9; }
.mc-wz-option.selected { border-color: #ea580c; background: #fff7ed; }
.mc-wz-opt-icon { font-size: 1.1rem; flex-shrink: 0; }
.mc-wz-opt-label { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; color: #1c1917; }
.mc-wz-opt-desc { font-size: 0.75rem; color: #78716c; }
.mc-wz-option { flex-direction: row; align-items: center; }
.mc-wz-option > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mc-wz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    gap: 0.75rem;
}
.mc-wz-back { background: none; border: 1.5px solid #e7e5e4; color: #78716c; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.12s; }
.mc-wz-back:hover { border-color: #d6d3d1; color: #1c1917; }
.mc-wz-next { padding: 0.55rem 1.35rem; border-radius: 10px; background: #1c1917; color: #fff; font-size: 0.85rem; font-weight: 700; border: none; cursor: pointer; transition: background 0.15s; }
.mc-wz-next:disabled { background: #d6d3d1; cursor: not-allowed; }
.mc-wz-next:not(:disabled):hover { background: #ea580c; }
.mc-wz-generate { padding: 0.65rem 1.75rem; border-radius: 12px; background: linear-gradient(135deg,#ea580c,#f97316); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; border: none; cursor: pointer; transition: opacity 0.15s; box-shadow: 0 4px 16px rgba(234,88,12,0.25); }
.mc-wz-generate:hover { opacity: 0.9; }
.mc-wz-date-wrap { margin-bottom: 0.5rem; }
.mc-wz-date-input { width: 100%; padding: 0.65rem 0.85rem; border: 2px solid #e7e5e4; border-radius: 10px; font-size: 0.9rem; color: #1c1917; background: #fff; font-family: inherit; }
.mc-wz-date-input:focus { outline: none; border-color: #ea580c; }
.mc-wz-date-skip { font-size: 0.8rem; color: #ea580c; cursor: pointer; margin-top: 0.5rem; text-decoration: underline; text-underline-offset: 2px; }
.mc-wz-date-skip:hover { opacity: 0.75; }
.mc-wz-review-summary {
    background: #fafaf9;
    border: 1.5px solid #e7e5e4;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.mc-wz-review-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.mc-wz-review-key { color: #78716c; font-weight: 600; }
.mc-wz-review-val { color: #1c1917; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }


/* Progress ring card */
.mc-stat-card--ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem 0.75rem;
    position: relative;
}
.mc-progress-ring { display: block; margin-bottom: 0.25rem; }

/* Fix completed tiles to orange (not green) */
.mc-day-tile--completed {
    border-color: #ea580c !important;
    background: #fff7ed !important;
}
.mc-day-tile--completed .mc-tile-num { color: #ea580c !important; }
.mc-day-tile--completed .mc-tile-dot { background: #ea580c !important; }

/* Missed day tile */
.mc-day-tile--missed {
    border-color: #fcd34d;
    background: #fffbeb;
}
.mc-day-tile--missed .mc-tile-num { color: #d97706; }

/* Badge for missed */
.mc-card-day-badge--missed { background: #fffbeb; color: #d97706; }

/* Missed-day notice */
.mc-missed-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 1.5rem 0;
    padding: 0.8rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    flex-wrap: wrap;
}
.mc-missed-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.mc-missed-text { flex: 1; font-size: 0.82rem; color: #78716c; line-height: 1.55; min-width: 160px; }
.mc-missed-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }
.mc-missed-skip { padding: 0.35rem 0.85rem; border-radius: 7px; font-size: 0.78rem; font-weight: 600; border: 1.5px solid #e7e5e4; background: #fff; color: #57534e; cursor: pointer; transition: all 0.12s; }
.mc-missed-skip:hover { background: #fafaf9; }
.mc-missed-carry { padding: 0.35rem 0.85rem; border-radius: 7px; font-size: 0.78rem; font-weight: 700; border: none; background: #ea580c; color: #fff; cursor: pointer; transition: opacity 0.12s; }
.mc-missed-carry:hover { opacity: 0.85; }
.mc-card-complete-btn--missed { background: #fef3c7; color: #d97706; border: 1.5px solid #fde68a !important; }
.mc-card-complete-btn--missed:hover { background: #ea580c !important; color: #fff !important; }

/* Toast notification */
.mc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1917;
    color: #f5f5f4;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    animation: mc-toast-in 0.25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
@keyframes mc-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Add missed-day tile strip class */
.mc-day-tile--missed:hover { border-color: #fbbf24; }

/* ==========================================
   AFFILIATE ARMY BUILDER (abb)
   ========================================== */

/* Vertical stepper connector lines */
#abb-steps-container {
    position: relative;
}
#abb-steps-container > .abb-step-card {
    position: relative;
}
#abb-steps-container > .abb-step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    bottom: -10px;
    width: 2px;
    height: 10px;
    background: #e7e5e4;
    z-index: 1;
}
#abb-steps-container > .abb-step-card.abb-step-completed:not(:last-child)::after {
    background: #22c55e;
}

.abb-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    border-radius: 14px;
    color: white;
}
.abb-header-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.abb-progress-wrap {
    margin-bottom: 8px;
    background: #f5f5f4;
    border-radius: 10px;
    padding: 14px 18px;
    border: 1px solid #e7e5e4;
}

/* Step card */
.abb-step-card {
    background: #ffffff;
    border: 1.5px solid #e7e5e4;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.abb-step-card:hover {
    border-color: #d6d3d1;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.abb-step-card.abb-step-completed {
    border-color: #22c55e;
    background: #f0fdf4;
}
.abb-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}
.abb-step-check-wrap {
    flex-shrink: 0;
}
.abb-step-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}
.abb-step-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.abb-step-num {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a8a29e;
}
.abb-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: #1c1917;
    line-height: 1.3;
}
.abb-title-done {
    color: #15803d;
}

/* Expanded body */
.abb-step-body {
    display: none;
    border-top: 1px solid #e7e5e4;
    padding: 20px 24px 24px;
    background: #fafaf9;
}
.abb-step-card.abb-expanded .abb-step-body {
    display: block;
}
.abb-step-card.abb-expanded .task-expand-icon {
    transform: rotate(180deg);
}

/* Locked cards in affiliate context */
.abb-locked-card {
    margin-bottom: 0;
}

/* Platform directory grid */
.abb-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.abb-platform-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1.5px solid #e7e5e4;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.abb-platform-card:hover {
    border-color: #ea580c;
    background: #fff7ed;
}
.abb-platform-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1c1917;
}
.abb-platform-desc {
    font-size: 0.73rem;
    color: #78716c;
    line-height: 1.4;
}

/* External links within steps */
.platform-url {
    color: #ea580c;
    text-decoration: underline;
    font-weight: 600;
}

/* Commission Calculator */
.abb-calculator {
    background: #ffffff;
    border: 1.5px solid #e7e5e4;
    border-radius: 10px;
    padding: 16px;
}
.abb-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.abb-calc-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}
.abb-calc-result {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-radius: 8px;
    border: 1.5px solid #fed7aa;
}
.abb-calc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
}
.abb-calc-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #c2410c;
}
.abb-calc-lbl {
    font-size: 0.68rem;
    color: #78716c;
    text-align: center;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.abb-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.abb-calc-table th {
    background: #fff7ed;
    color: #78716c;
    font-weight: 700;
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1.5px solid #fed7aa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.abb-calc-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #fde68a;
    color: #292524;
}
.abb-calc-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: #c2410c;
}

