/* ============================================================
   VIGORBOOKS — Banking & Reconciliation Page (banking.css)
   Extends sales.css. New classes are prefixed bk-
   Accent colour: Cyan/Sky-Blue  #0EA5E9  #0369A1
   ============================================================ */

/* ============================================================
   SECTION 0 — SHIMS FOR MISSING CLASSES
   banking.html uses these class names which are not in sales.css.
   These shims define them properly so the page renders correctly.
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   HERO — centered single-column layout for banking
   ──────────────────────────────────────────────────────────── */
.bk-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 24px 60px;
}

.sm-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.sm-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
}

.sm-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.15;
    margin: 0 0 20px;
    max-width: 720px;
}

@media (max-width: 700px) {
    .sm-hero-title { font-size: 36px; }
}

.sm-hero-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 600px;
    margin: 0 0 32px;
}

.sm-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.sm-hero-mockup {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* badge-dot — green pulse dot in pipeline header */
.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.3);
    animation: bkPulse 2s ease-in-out infinite;
}

@keyframes bkPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 0 5px rgba(16,185,129,0.12); }
}

/* Override sm-pipeline-title from sales.css to be flex for the dot */
.sm-pipeline-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    font-family: 'Space Grotesk', sans-serif;
}

/* Pipeline body — banking uses sm-pipe-row structure */
.sm-pipeline-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sm-pipe-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-pipe-label {
    font-size: 12px;
    color: var(--color-text-muted);
    width: 96px;
    flex-shrink: 0;
}

.sm-pipe-track {
    flex: 1;
    height: 8px;
    background: var(--bg-section);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Pipeline footer = banking's KPI row */
.sm-pipeline-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.sm-pipe-kpi {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}

/* ────────────────────────────────────────────────────────────
   FLOATING CARDS (positioned over pipeline card in hero)
   ──────────────────────────────────────────────────────────── */
.sm-float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 10;
    animation: bkFloat 3s ease-in-out infinite;
    pointer-events: none;
}

.sm-float-card--tl {
    top: -16px;
    left: -16px;
    animation-delay: 0s;
}

.sm-float-card--br {
    bottom: -16px;
    right: -16px;
    animation-delay: 1.5s;
}

@keyframes bkFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.sm-float-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-float-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-float-val {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text);
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
}

.sm-float-lbl {
    font-size: 10.5px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ────────────────────────────────────────────────────────────
   MODULE NAV WRAP
   ──────────────────────────────────────────────────────────── */
.sm-module-nav-wrap {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    transition: box-shadow 0.25s;
}

/* Override sm-module-nav for banking — nav sits inside the wrap */
.sm-module-nav-wrap .sm-module-nav {
    position: static; /* not sticky itself, wrap handles sticky */
    top: auto;
    border-bottom: none;
    box-shadow: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.sm-module-nav-wrap .sm-module-nav::-webkit-scrollbar { display: none; }

/* ────────────────────────────────────────────────────────────
   SECTION CONTAINERS & HEADERS
   ──────────────────────────────────────────────────────────── */
.sm-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sm-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .sm-stats-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .sm-stats-container { grid-template-columns: 1fr 1fr; }
}

.sm-modules-section {
    padding: 80px 0;
}

.sm-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.sm-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    margin: 12px 0 14px;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .sm-section-title { font-size: 28px; }
}

.sm-section-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* section-badge — cyan tinted for banking */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(14,165,233,0.1);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,0.25);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* ────────────────────────────────────────────────────────────
   STAT CARD — banking uses sm-stat-num / sm-stat-lbl
   (sales.css uses sm-stat-number / sm-stat-label)
   ──────────────────────────────────────────────────────────── */
.sm-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--color-text), #0EA5E9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sm-stat-lbl {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ────────────────────────────────────────────────────────────
   FEATURE SECTIONS (split layout) — banking uses sm-feature-*
   (sales.css uses sm-module-section / sm-split / sm-split-*)
   ──────────────────────────────────────────────────────────── */
.sm-feature-section {
    padding: 80px 0;
}

.sm-feature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sm-feature-content {
    display: flex;
    flex-direction: column;
}

.sm-feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    margin: 0 0 14px;
}

.sm-feature-desc {
    font-size: 15.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.sm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.sm-feature-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.sm-feature-list li::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(14,165,233,0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230369A1' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.sm-feature-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sm-feature-mockup {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Alt sections get subtle background (same as sm-alt from sales.css) */
.sm-feature-section.sm-alt {
    background: var(--bg-section);
}

@media (max-width: 900px) {
    .sm-feature-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .sm-feature-title {
        font-size: 26px;
    }
    /* In alt sections, mockup (which is first in HTML) goes below on mobile */
    .sm-feature-section.sm-alt .sm-feature-mockup {
        order: 1;
    }
    .sm-feature-section.sm-alt .sm-feature-content {
        order: 0;
    }
}

/* ────────────────────────────────────────────────────────────
   TESTIMONIALS — banking uses sm-testimonials-section / sm-tcard
   (sales.css uses sm-testimonial-section / sm-testimonial-card)
   ──────────────────────────────────────────────────────────── */
.sm-testimonials-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.sm-carousel-outer {
    overflow: hidden;
    position: relative;
}

/* Override sales.css .sm-carousel-wrap — in banking it IS the flex track */
.sm-carousel-outer .sm-carousel-wrap {
    display: flex;
    overflow: visible;
    gap: 20px;
    will-change: transform;
}

.sm-tcard {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.sm-tcard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.sm-tcard-stars {
    color: #F59E0B;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.sm-tcard-quote {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.sm-tcard-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.sm-tcard-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.sm-tcard-info span {
    font-size: 12.5px;
    color: var(--color-text-muted);
}

/* Avatar base class (without color modifier) */
.sm-av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(14,165,233,0.15);
    color: #0369A1;
}

/* Carousel dot — BEM modifier (sales.css uses .active class) */
.sm-carousel-dot--active,
.sm-carousel-dot.sm-carousel-dot--active {
    background: #0EA5E9 !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* ────────────────────────────────────────────────────────────
   CTA SECTION — banking uses sm-cta-container / sm-cta-content
   (sales.css uses .container / sm-cta-card)
   ──────────────────────────────────────────────────────────── */
.sm-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sm-cta-content {
    background: linear-gradient(135deg, #5B5FC7 0%, #7C87F0 50%, #4F53C4 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sm-cta-content::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.sm-cta-content::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.sm-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.sm-cta-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0 auto 36px;
    max-width: 520px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.sm-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Primary button inside banking CTA — white bg for contrast */
.sm-cta-content .btn-primary {
    background: #fff !important;
    color: #5B5FC7 !important;
    border-color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.sm-cta-content .btn-primary:hover {
    background: #f0f0ff !important;
    transform: translateY(-2px);
}

.sm-cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.sm-cta-note svg {
    stroke: #10B981;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .sm-cta-content { padding: 40px 24px; }
    .sm-cta-title { font-size: 26px; }
    .sm-cta-actions { flex-direction: column; align-items: stretch; }
}

/* ────────────────────────────────────────────────────────────
   FAQ — fallback styles (styles.css should define these,
   but adding shims in case they're missing)
   ──────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 4px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #0EA5E9;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--color-text-muted);
}

.faq-item.is-open .faq-chevron,
.faq-item[data-open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 4px 20px;
}

.faq-item.is-open .faq-answer,
.faq-item[data-open] .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 14.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ────────────────────────────────────────────────────────────
   FAQ SECTION padding (uses sm-faq-section from sales.css)
   sm-faq-section is defined in sales.css ✓
   ──────────────────────────────────────────────────────────── */

/* END OF SHIMS */

/* ────────────────────────────────────────────────────────────
   HERO — cyan accent override for banking
   ──────────────────────────────────────────────────────────── */
.bk-hero .gradient-orb-1 {
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
}

/* Pipeline card badge — cyan tint */
.sm-pipeline-badge.bk-badge--cyan {
    background: rgba(14,165,233,0.12);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,0.3);
}

/* Pipeline bars */
.sm-pipe-bar.bk-bar--cyan {
    background: linear-gradient(90deg, #0EA5E9, #38BDF8);
}

.sm-pipe-bar.bk-bar--green {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.sm-pipe-bar.bk-bar--amber {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.sm-pipe-bar.bk-bar--rose {
    background: linear-gradient(90deg, #F43F5E, #FB7185);
}

/* Pending count — amber */
.sm-pipe-count.bk-count--amber {
    color: #F59E0B;
}

/* KPI value — cyan */
.sm-kpi-val.bk-kpi-cyan {
    background: linear-gradient(135deg, #0EA5E9, #0369A1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ────────────────────────────────────────────────────────────
   HERO BADGE DOT — cyan override
   ──────────────────────────────────────────────────────────── */
.bk-hero .badge-dot {
    background: #0EA5E9 !important;
}

/* ────────────────────────────────────────────────────────────
   MODULES GRID — 5 cards centred layout
   ──────────────────────────────────────────────────────────── */
.bk-modules-grid {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px) {
    .bk-modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .bk-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bk-modules-grid {
        grid-template-columns: 1fr;
    }
}

/* ────────────────────────────────────────────────────────────
   STATS STRIP — cyan top-accent for banking
   ──────────────────────────────────────────────────────────── */
.bk-stats-accent .sm-stat-card {
    border-top: 3px solid rgba(14,165,233,0.3);
}

/* ────────────────────────────────────────────────────────────
   SECTION SCROLL MARGINS
   ──────────────────────────────────────────────────────────── */
#overview,
#import-transactions,
#bank-feeds,
#bank-rules,
#matching,
#reconciliation,
#how-it-works,
#banking-reports {
    scroll-margin-top: 130px;
}

/* ────────────────────────────────────────────────────────────
   SECTION BADGES — cyan tint on banking-specific sections
   ──────────────────────────────────────────────────────────── */
.bk-workflow-section .section-badge,
.bk-integrations-section .section-badge {
    background: rgba(14,165,233,0.1);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,0.25);
}

/* ────────────────────────────────────────────────────────────
   BUTTON SIZE MODIFIER — small (not defined in styles.css)
   Used throughout banking.html feature section CTAs
   ──────────────────────────────────────────────────────────── */
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    gap: 6px;
}

/* ────────────────────────────────────────────────────────────
   BUTTON VARIANT — cyan
   ──────────────────────────────────────────────────────────── */
.sm-mock-btn--cyan {
    background: rgba(14,165,233,0.12);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,0.3);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: default;
    font-family: inherit;
}

/* ────────────────────────────────────────────────────────────
   AVATAR VARIANT — cyan
   ──────────────────────────────────────────────────────────── */
.sm-av--cyan {
    background: rgba(14,165,233,0.15);
    color: #0369A1;
}

/* ────────────────────────────────────────────────────────────
   MOCK CARD SHARED SHIMS
   (Replicates sm-mock-* classes used in section mockups)
   ──────────────────────────────────────────────────────────── */
.sm-mock-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.sm-mock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.sm-mock-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.sm-mock-table {
    width: 100%;
}

.sm-mock-thead {
    display: grid;
    grid-template-columns: 60px 1fr 90px 80px;
    padding: 8px 16px;
    background: var(--color-surface-elevated, rgba(0,0,0,0.02));
    border-bottom: 1px solid var(--color-border);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sm-mock-trow {
    display: grid;
    grid-template-columns: 60px 1fr 90px 80px;
    padding: 9px 16px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
    font-size: 12px;
    color: var(--color-text-primary);
    transition: background 0.15s;
}

.sm-mock-trow:last-child {
    border-bottom: none;
}

.sm-mock-trow:hover {
    background: var(--color-surface-elevated, rgba(0,0,0,0.02));
}

.sm-mock-meta-row {
    display: flex;
    border-top: 1px solid var(--color-border);
}

.sm-mock-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    border-right: 1px solid var(--color-border);
    text-align: center;
}

.sm-mock-meta-item:last-child {
    border-right: none;
}

.sm-mock-meta-lbl {
    font-size: 10px;
    color: var(--color-text-tertiary);
    margin-bottom: 2px;
}

.sm-mock-meta-val {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text-primary);
}

.sm-mock-select {
    font-family: inherit;
    cursor: pointer;
}

/* Status chips */
.sm-status-chip {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.sm-status--green {
    background: rgba(16,185,129,0.1);
    color: #059669;
    border-color: rgba(16,185,129,0.25);
}

.sm-status--amber {
    background: rgba(245,158,11,0.1);
    color: #92400E;
    border-color: rgba(245,158,11,0.25);
}

.sm-status--rose {
    background: rgba(244,63,94,0.1);
    color: #BE123C;
    border-color: rgba(244,63,94,0.25);
}

/* VAT chip reuse */
.sm-vat-chip {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(14,165,233,0.1);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,0.25);
}

/* ────────────────────────────────────────────────────────────
   IMPORT SECTION — Upload Zone
   ──────────────────────────────────────────────────────────── */
.bk-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    margin: 12px 16px;
    border: 2px dashed rgba(14,165,233,0.35);
    border-radius: var(--radius-md, 10px);
    background: rgba(14,165,233,0.03);
    text-align: center;
    gap: 6px;
}

.bk-upload-zone p {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.bk-upload-zone span {
    font-size: 11px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
}

/* Credit / debit amount colours */
.bk-credit {
    color: #10B981;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
}

.bk-debit {
    color: #F43F5E;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
}

/* ────────────────────────────────────────────────────────────
   BANK FEEDS — Connected accounts list
   ──────────────────────────────────────────────────────────── */
.bk-banks-list {
    padding: 8px 0;
}

.bk-bank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}

.bk-bank-row:last-child {
    border-bottom: none;
}

.bk-bank-row:hover {
    background: var(--color-surface-elevated, rgba(0,0,0,0.02));
}

.bk-bank-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    font-family: 'Space Grotesk', sans-serif;
}

.bk-bank-logo--adcb {
    background: linear-gradient(135deg, #0EA5E9, #0369A1);
    color: #fff;
}

.bk-bank-logo--fab {
    background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
    color: #fff;
}

.bk-bank-logo--paypal {
    background: linear-gradient(135deg, #003087, #009CDE);
    color: #fff;
}

.bk-bank-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bk-bank-info strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.bk-bank-info span {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.bk-bank-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bk-sync-time {
    font-size: 10.5px;
    color: var(--color-text-tertiary);
}

.bk-feed-summary {
    display: flex;
    border-top: 1px solid var(--color-border);
}

.bk-fs-item {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-right: 1px solid var(--color-border);
}

.bk-fs-item:last-child {
    border-right: none;
}

.bk-fs-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.bk-fs-lbl {
    display: block;
    font-size: 10.5px;
    color: var(--color-text-tertiary);
}

/* ────────────────────────────────────────────────────────────
   BANK RULES LIST
   ──────────────────────────────────────────────────────────── */
.bk-rules-list {
    padding: 8px 0;
}

.bk-rule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s;
}

.bk-rule-row:last-child {
    border-bottom: none;
}

.bk-rule-row:hover {
    background: var(--color-surface-elevated, rgba(0,0,0,0.02));
}

.bk-rule-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-rule-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bk-rule-body strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.bk-rule-body span {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

/* ────────────────────────────────────────────────────────────
   TRANSACTION MATCHING UI
   ──────────────────────────────────────────────────────────── */
.bk-match-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
}

.bk-match-row:last-child {
    border-bottom: none;
}

.bk-match-row--done {
    background: rgba(16,185,129,0.03);
}

.bk-match-row--suggest {
    background: rgba(245,158,11,0.03);
}

.bk-match-row--pending {
    background: transparent;
    opacity: 0.75;
}

.bk-match-tx {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bk-match-date {
    font-size: 10.5px;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
    width: 38px;
}

.bk-match-desc {
    font-size: 11.5px;
    color: var(--color-text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-match-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.bk-match-doc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.bk-match-client {
    font-size: 10.5px;
    color: var(--color-text-tertiary);
}

/* ────────────────────────────────────────────────────────────
   RECONCILIATION PANEL
   ──────────────────────────────────────────────────────────── */
.bk-recon-panel {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.bk-recon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.bk-recon-row--total {
    padding-top: 10px;
}

.bk-recon-lbl {
    font-size: 12.5px;
    color: var(--color-text-secondary);
}

.bk-recon-val {
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text-primary);
}

.bk-recon-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

/* Reconciliation step checklist */
.bk-steps-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
}

.bk-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--color-text-secondary);
}

.bk-step--done {
    color: var(--color-text-primary);
}

.bk-recon-cta {
    padding: 12px 16px;
}

/* ────────────────────────────────────────────────────────────
   HOW IT WORKS — Numbered Steps Grid
   ──────────────────────────────────────────────────────────── */
.bk-workflow-section {
    padding: 80px 0;
}

.bk-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

/* Horizontal connector line between cards */
.bk-steps-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(25% - 20px);
    right: calc(25% - 20px);
    height: 2px;
    background: linear-gradient(90deg, rgba(14,165,233,0.3), rgba(3,105,161,0.15));
    pointer-events: none;
}

.bk-step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.bk-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bk-step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0EA5E9, #0369A1);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.bk-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.bk-step-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.bk-step-card p {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0 0 14px;
}

.bk-step-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.bk-step-chips span {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(14,165,233,0.08);
    color: #0369A1;
    border: 1px solid rgba(14,165,233,0.2);
}

@media (max-width: 900px) {
    .bk-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bk-steps-grid::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .bk-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ────────────────────────────────────────────────────────────
   CASH FLOW CHART
   ──────────────────────────────────────────────────────────── */
.bk-cf-chart-wrap {
    padding: 12px 16px 8px;
}

.bk-cf-chart-svg {
    width: 100%;
    height: 130px;
    display: block;
}

.bk-cf-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-top: 4px;
}

.bk-cf-labels span {
    font-size: 9.5px;
    color: var(--color-text-tertiary);
}

.bk-cf-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    justify-content: center;
}

.bk-cf-leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--color-text-secondary);
}

.bk-cf-leg-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    flex-shrink: 0;
}

.bk-cf-leg-line {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   INTEGRATION ICON HOVER + GRID OVERRIDE for banking
   banking uses sm-int-icon directly inside sm-int-grid (no sm-int-card)
   ──────────────────────────────────────────────────────────── */
.sm-int-icon {
    transition: transform 0.3s;
}

.sm-int-icon:hover {
    transform: translateY(-3px);
}

/* Banking integrations: 8 icon-only items — 4 columns layout */
.bk-integrations-section .sm-int-grid {
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bk-integrations-section .sm-int-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.bk-integrations-section .sm-int-icon:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    .bk-integrations-section .sm-int-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .bk-integrations-section .sm-int-icon {
        width: 52px;
        height: 52px;
    }
}

/* ────────────────────────────────────────────────────────────
   DARK THEME OVERRIDES
   ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .sm-pipeline-badge.bk-badge--cyan {
    background: rgba(14,165,233,0.15);
    border-color: rgba(14,165,233,0.35);
    color: #38BDF8;
}

[data-theme="dark"] .bk-step-chips span {
    background: rgba(14,165,233,0.12);
    color: #38BDF8;
    border-color: rgba(14,165,233,0.3);
}

[data-theme="dark"] .sm-av--cyan {
    background: rgba(14,165,233,0.2);
    color: #38BDF8;
}

[data-theme="dark"] .bk-upload-zone {
    background: rgba(14,165,233,0.05);
    border-color: rgba(14,165,233,0.25);
}

[data-theme="dark"] .bk-step-num {
    box-shadow: 0 0 0 3px var(--color-surface);
}
