/* ============================================================
   VIGORBOOKS — Sales Management Page (sales.css)
   Complements styles.css. All new classes are prefixed sm-
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.sm-hero {
    padding: 120px 0 60px;
    overflow: hidden;
}

.sm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.sm-hero-content {
    max-width: 580px;
}

/* Breadcrumb */
.sm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.sm-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.sm-breadcrumb a:hover {
    color: var(--color-primary);
}

.sm-breadcrumb svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* Module pills (hero) */
.sm-module-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.sm-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.sm-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.sm-pill--green  { background: rgba(16,185,129,0.1);  color: #059669; border-color: rgba(16,185,129,0.25); }
.sm-pill--amber  { background: rgba(245,158,11,0.1);  color: #D97706; border-color: rgba(245,158,11,0.25); }
.sm-pill--indigo { background: rgba(91,95,199,0.1);   color: #5B5FC7; border-color: rgba(91,95,199,0.25);  }
.sm-pill--cyan   { background: rgba(6,182,212,0.1);   color: #0891B2; border-color: rgba(6,182,212,0.25);  }
.sm-pill--violet { background: rgba(139,92,246,0.1);  color: #7C3AED; border-color: rgba(139,92,246,0.25); }
.sm-pill--rose   { background: rgba(244,63,94,0.1);   color: #E11D48; border-color: rgba(244,63,94,0.25);  }

/* Hero Visual — Pipeline Card */
.sm-hero-visual {
    position: relative;
}

.sm-pipeline-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
}

.sm-pipeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sm-pipeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    font-family: 'Space Grotesk', sans-serif;
}

.sm-pipeline-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.sm-pipeline-badge {
    background: rgba(16,185,129,0.12);
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16,185,129,0.3);
    letter-spacing: 0.5px;
}

/* Pipeline bars */
.sm-pipeline-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sm-pipe-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-pipe-bar-wrap {
    background: var(--bg-section);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.sm-pipe-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #7C87F0);
    border-radius: 4px;
    transition: width 1s ease;
}

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

.sm-pipe-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--color-text-muted);
}

.sm-pipe-count {
    font-weight: 600;
    color: var(--color-text);
}

.sm-pipe-count--green {
    color: #10B981;
}

/* Pipeline KPIs */
.sm-pipeline-kpis {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sm-kpi {
    flex: 1;
    text-align: center;
}

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

.sm-kpi-val--green {
    color: #10B981;
}

.sm-kpi-lbl {
    font-size: 10.5px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.sm-kpi-div {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Animate hero visual from left */
.animate-fade-in-left {
    animation: fadeInLeft 0.7s ease both;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ────────────────────────────────────────────────────────────
   STICKY MODULE NAV
   ──────────────────────────────────────────────────────────── */
.sm-module-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;           /* sits just below the main header */
    z-index: 90;
    transition: box-shadow 0.25s;
}

.sm-module-nav--sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sm-module-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.sm-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.sm-nav-tab:hover {
    color: var(--color-primary);
}

.sm-nav-tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ────────────────────────────────────────────────────────────
   STATS STRIP
   ──────────────────────────────────────────────────────────── */
.sm-stats-section {
    padding: 56px 0;
    background: var(--bg-section);
}

.sm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sm-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.sm-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.sm-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 6px;
}

.sm-stat-number span {
    font-size: 18px;
    color: var(--color-primary);
}

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

/* ────────────────────────────────────────────────────────────
   MODULES OVERVIEW GRID
   ──────────────────────────────────────────────────────────── */
.sm-overview-section {
    padding: 80px 0;
}

.sm-modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.sm-module-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.sm-module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(91,95,199,0.03));
    opacity: 0;
    transition: opacity 0.3s;
}

.sm-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(91,95,199,0.3);
}

.sm-module-card:hover::before {
    opacity: 1;
}

/* Remove distinct featured styling — all cards look the same */
.sm-module-card--featured {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.sm-module-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.sm-module-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.sm-module-card p {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex: 1;
    margin: 0;
}

.sm-module-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 4px;
    transition: gap 0.2s;
}

.sm-module-card:hover .sm-module-arrow {
    gap: 8px;
}

/* ────────────────────────────────────────────────────────────
   MODULE SECTIONS (split layout)
   ──────────────────────────────────────────────────────────── */
.sm-module-section {
    padding: 80px 0;
}

.sm-alt {
    background: var(--bg-section);
}

.sm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sm-split--rev {
    direction: rtl;
}

.sm-split--rev > * {
    direction: ltr;
}

/* Section badge */
.sm-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.sm-badge--green  { background: rgba(16,185,129,0.1);  color: #059669;  border: 1px solid rgba(16,185,129,0.2);  }
.sm-badge--amber  { background: rgba(245,158,11,0.1);  color: #D97706;  border: 1px solid rgba(245,158,11,0.2);  }
.sm-badge--indigo { background: rgba(91,95,199,0.1);   color: #5B5FC7;  border: 1px solid rgba(91,95,199,0.2);   }
.sm-badge--cyan   { background: rgba(6,182,212,0.1);   color: #0891B2;  border: 1px solid rgba(6,182,212,0.2);   }
.sm-badge--violet { background: rgba(139,92,246,0.1);  color: #7C3AED;  border: 1px solid rgba(139,92,246,0.2);  }
.sm-badge--rose   { background: rgba(244,63,94,0.1);   color: #E11D48;  border: 1px solid rgba(244,63,94,0.2);   }

.sm-split-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-split-desc {
    font-size: 15.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

/* Feature list */
.sm-feat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

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

.sm-feat-list strong {
    color: var(--color-text);
    font-weight: 600;
}

.sm-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.sm-check--green  { background: rgba(16,185,129,0.15); color: #059669; }
.sm-check--amber  { background: rgba(245,158,11,0.15);  color: #D97706; }
.sm-check--indigo { background: rgba(91,95,199,0.15);   color: #5B5FC7; }
.sm-check--cyan   { background: rgba(6,182,212,0.15);   color: #0891B2; }
.sm-check--violet { background: rgba(139,92,246,0.15);  color: #7C3AED; }
.sm-check--rose   { background: rgba(244,63,94,0.15);   color: #E11D48; }

/* CTA row */
.sm-split-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ────────────────────────────────────────────────────────────
   MOCKUP PANELS
   ──────────────────────────────────────────────────────────── */
.sm-split-visual {
    display: flex;
    justify-content: center;
}

.sm-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    width: 100%;
    max-width: 420px;
    font-size: 13px;
    overflow: hidden;
}

/* Mockup header */
.sm-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}

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

/* Mockup buttons */
.sm-mock-btn {
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    border: none;
    cursor: default;
    font-family: inherit;
}

.sm-mock-btn--green {
    background: var(--color-secondary);
    color: #fff;
}

.sm-mock-btn--outline {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--border-color);
}

/* Search bar */
.sm-mock-search {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 14px;
}

/* Meta row */
.sm-mock-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--bg-section);
    border-radius: 8px;
    font-size: 12px;
}

.sm-mock-meta > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-meta-k {
    font-size: 10.5px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Table */
.sm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.sm-table th {
    background: var(--bg-section);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 11px;
    text-align: left;
    padding: 7px 8px;
    letter-spacing: 0.3px;
}

.sm-table td {
    padding: 8px 8px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.sm-table--lined td {
    border-bottom: 1px solid var(--border-color);
}

.sm-table tr:last-child td {
    border-bottom: none;
}

/* Totals */
.sm-totals {
    border-top: 1px solid var(--border-color);
    padding: 10px 0 6px;
    margin-bottom: 14px;
}

.sm-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 4px 0;
}

.sm-total-row--bold {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--color-text);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
}

/* Footer bar */
.sm-mock-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 11.5px;
    color: var(--color-text-muted);
}

.sm-mock-link {
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
}

/* Actions row */
.sm-mock-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Tags */
.sm-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.sm-tag--green  { background: rgba(16,185,129,0.12); color: #059669;  }
.sm-tag--blue   { background: rgba(91,95,199,0.12);  color: #5B5FC7;  }
.sm-tag--amber  { background: rgba(245,158,11,0.12); color: #D97706;  }
.sm-tag--orange { background: rgba(249,115,22,0.12); color: #EA580C;  }
.sm-tag--red    { background: rgba(244,63,94,0.12);  color: #E11D48;  }
.sm-tag--cyan   { background: rgba(6,182,212,0.12);  color: #0891B2;  }
.sm-tag--violet { background: rgba(139,92,246,0.12); color: #7C3AED;  }
.sm-tag--gray   { background: rgba(100,116,139,0.12);color: #64748B;  }

/* Avatars */
.sm-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 9.5px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.sm-av--blue   { background: rgba(91,95,199,0.15);  color: #5B5FC7;  }
.sm-av--green  { background: rgba(16,185,129,0.15); color: #059669;  }
.sm-av--purple { background: rgba(139,92,246,0.15); color: #7C3AED;  }
.sm-av--amber  { background: rgba(245,158,11,0.15); color: #D97706;  }
.sm-av--cyan   { background: rgba(6,182,212,0.15);  color: #0891B2;  }
.sm-av--rose   { background: rgba(244,63,94,0.15);  color: #E11D48;  }

/* Numbers */
.sm-num {
    font-weight: 600;
    color: var(--color-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12.5px;
}

.sm-num--green { color: #10B981; }

/* VAT / special chips */
.sm-vat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(6,182,212,0.1);
    color: #0891B2;
    border: 1px solid rgba(6,182,212,0.25);
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* ────────────────────────────────────────────────────────────
   ORDER PIPELINE (Sales Orders mockup)
   ──────────────────────────────────────────────────────────── */
.sm-order-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 12px 0;
    overflow-x: auto;
}

.sm-pipe-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 68px;
}

.sm-pipe-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

.sm-pipe-step-dot--done {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.sm-pipe-step-dot--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(91,95,199,0.2);
}

.sm-pipe-step-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-align: center;
    font-weight: 500;
}

.sm-pipe-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    min-width: 16px;
    margin-top: -16px;
}

.sm-pipe-line--done {
    background: #10B981;
}

/* ────────────────────────────────────────────────────────────
   PAYMENT MODE CHIPS
   ──────────────────────────────────────────────────────────── */
.sm-pay-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.sm-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    color: var(--color-text-secondary);
}

.sm-pay-chip--active {
    background: rgba(91,95,199,0.1);
    border-color: rgba(91,95,199,0.3);
    color: var(--color-primary);
    font-weight: 600;
}

/* Credit Applied row */
.sm-credit-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(244,63,94,0.06);
    border: 1px dashed rgba(244,63,94,0.25);
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 10px;
}

.sm-credit-applied-label {
    color: #E11D48;
    font-weight: 600;
}

.sm-credit-applied-val {
    color: #E11D48;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

/* ────────────────────────────────────────────────────────────
   HOW IT WORKS — WORKFLOW
   ──────────────────────────────────────────────────────────── */
.sm-workflow-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.sm-workflow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 52px;
    position: relative;
}

.sm-workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.sm-wf-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.sm-workflow-step:hover .sm-wf-icon {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.sm-wf-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.sm-workflow-step h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
    font-family: 'Space Grotesk', sans-serif;
}

.sm-workflow-step p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}

.sm-wf-arrow {
    flex-shrink: 0;
    color: var(--color-text-muted);
    opacity: 0.4;
    padding-top: 20px;
    font-size: 20px;
}

/* ────────────────────────────────────────────────────────────
   SALES REPORTS SECTION (Mini bar chart)
   ──────────────────────────────────────────────────────────── */
.sm-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.sm-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.sm-bar-col {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--color-primary), #7C87F0);
    transition: height 0.8s ease;
    min-height: 4px;
}

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

.sm-bar-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-align: center;
    white-space: nowrap;
}

.sm-bar-val {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Report KPIs */
.sm-report-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.sm-rk {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

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

.sm-rk-lbl {
    font-size: 10.5px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.sm-period-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(91,95,199,0.1);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid rgba(91,95,199,0.2);
}

/* ────────────────────────────────────────────────────────────
   INTEGRATIONS
   ──────────────────────────────────────────────────────────── */
.sm-integrations-section {
    padding: 80px 0;
}

.sm-int-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.sm-int-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.sm-int-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-int-body h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 5px;
    font-family: 'Space Grotesk', sans-serif;
}

.sm-int-body p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ────────────────────────────────────────────────────────────
   TESTIMONIAL
   ──────────────────────────────────────────────────────────── */
.sm-testimonial-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.sm-testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.sm-test-quote-icon {
    position: absolute;
    top: 28px;
    left: 36px;
    font-size: 72px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}

.sm-testimonial-card blockquote {
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.65;
    margin: 0 0 28px;
    font-family: 'Space Grotesk', sans-serif;
}

.sm-test-stars {
    color: #F59E0B;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.sm-test-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.sm-test-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #7C87F0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

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

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

/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */
.sm-faq-section {
    padding: 80px 0;
}

.sm-faq-section .faq-grid {
    max-width: 760px;
    margin: 0 auto;
}

/* ────────────────────────────────────────────────────────────
   BOTTOM CTA
   ──────────────────────────────────────────────────────────── */
.sm-cta-section {
    padding: 80px 0;
    background: var(--bg-section);
}

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

.sm-cta-card::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-card::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-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.sm-cta-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}

.sm-cta-card p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.sm-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sm-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.sm-cta-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.sm-cta-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.sm-cta-trust-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ────────────────────────────────────────────────────────────
   DARK THEME
   ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .sm-pipeline-card,
[data-theme="dark"] .sm-mockup,
[data-theme="dark"] .sm-module-card,
[data-theme="dark"] .sm-stat-card,
[data-theme="dark"] .sm-int-card,
[data-theme="dark"] .sm-testimonial-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .sm-module-nav {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .sm-mock-search,
[data-theme="dark"] .sm-mock-meta {
    background: var(--bg-section);
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .sm-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-int-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .sm-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sm-hero-visual {
        display: none; /* hide on tablet / mobile */
    }

    .sm-hero {
        padding: 100px 0 48px;
    }

    .sm-split,
    .sm-split--rev {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 36px;
    }

    .sm-split--rev .sm-split-visual {
        order: -1;
    }

    .sm-split-title {
        font-size: 26px;
    }

    .sm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-workflow-steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .sm-wf-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .sm-report-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .sm-int-grid {
        grid-template-columns: 1fr;
    }

    .sm-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sm-testimonial-card {
        padding: 32px 24px;
    }

    .sm-testimonial-card blockquote {
        font-size: 15px;
    }

    .sm-cta-card {
        padding: 40px 24px;
    }

    .sm-cta-card h2 {
        font-size: 26px;
    }

    .sm-split-ctas {
        flex-direction: column;
    }

    .sm-split-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .sm-module-pills {
        gap: 6px;
    }

    .sm-workflow-section,
    .sm-overview-section,
    .sm-module-section,
    .sm-integrations-section,
    .sm-testimonial-section,
    .sm-faq-section,
    .sm-cta-section,
    .sm-stats-section {
        padding: 56px 0;
    }
}

/* ────────────────────────────────────────────────────────────
   ADDITIONAL UTILITY CLASSES
   ──────────────────────────────────────────────────────────── */

/* Split content wrapper */
.sm-split-content {
    display: flex;
    flex-direction: column;
}

/* Button colour variants */
.sm-mock-btn--cyan   { background: rgba(6,182,212,0.12);  color: #0891B2;  border: 1px solid rgba(6,182,212,0.3);  }
.sm-mock-btn--indigo { background: rgba(91,95,199,0.12);  color: #5B5FC7;  border: 1px solid rgba(91,95,199,0.3);  }
.sm-mock-btn--violet { background: rgba(139,92,246,0.12); color: #7C3AED;  border: 1px solid rgba(139,92,246,0.3); }

/* Number colour variants */
.sm-num--orange { color: #EA580C; }
.sm-num--rose   { color: #E11D48; }

/* Tag colour variants */
.sm-tag--rose { background: rgba(244,63,94,0.12); color: #E11D48; }

/* VAT chip variant */
.sm-vat-chip--rose {
    background: rgba(244,63,94,0.1);
    color: #E11D48;
    border-color: rgba(244,63,94,0.25);
}

/* Bar chart active state */
.sm-bar-col--active {
    background: linear-gradient(180deg, #10B981, #34D399);
}
.sm-bar-wrap--active .sm-bar-label {
    font-weight: 600;
    color: var(--color-text);
}

/* Report KPI change indicators */
.sm-rk-chg {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}
.sm-rk-up   { color: #10B981; }
.sm-rk-down { color: #F43F5E; }

/* Inline order pipeline (horizontal flow inside mockup) */
.sm-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 0;
    overflow-x: auto;
}

/* Pipe dot (standalone use) */
.sm-pipe-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Pipeline step states */
.sm-pipe-step--done .sm-pipe-step-dot,
.sm-pipe-step--done .sm-pipe-dot {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.sm-pipe-step--active .sm-pipe-step-dot,
.sm-pipe-step--active .sm-pipe-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(91,95,199,0.18);
}

.sm-pipe-step--active .sm-pipe-step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.sm-pipe-step--done .sm-pipe-step-label {
    color: #10B981;
}

/* ────────────────────────────────────────────────────────────
   INTEGRATION CARDS — equal height alignment fix
   ──────────────────────────────────────────────────────────── */
.sm-int-grid {
    align-items: stretch; /* all cards same height */
}

.sm-int-card {
    align-items: flex-start;
    min-height: 130px;
}

.sm-int-body {
    flex: 1;
    min-width: 0;
}

.sm-int-body h4 {
    white-space: normal; /* allow wrapping but keep alignment consistent */
    word-break: break-word;
}

/* ────────────────────────────────────────────────────────────
   TESTIMONIAL CAROUSEL
   ──────────────────────────────────────────────────────────── */
.sm-testimonial-section .section-header {
    margin-bottom: 48px;
}

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

.sm-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Each testimonial card in carousel — widths set by JS */
.sm-carousel-track .sm-testimonial-card {
    flex-shrink: 0;
    margin: 0;
    text-align: left;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.sm-carousel-track .sm-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.sm-carousel-track .sm-test-quote-icon {
    display: none; /* hidden in carousel layout */
}

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

.sm-carousel-track .sm-test-stars {
    color: #F59E0B;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.sm-carousel-track .sm-test-author {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.sm-carousel-track .sm-test-info strong {
    font-size: 14px;
}

.sm-carousel-track .sm-test-info span {
    font-size: 12.5px;
}

/* Carousel controls */
.sm-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.sm-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.sm-carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
}

.sm-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sm-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    padding: 0;
}

.sm-carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* ────────────────────────────────────────────────────────────
   CTA SECTION — visibility fixes & enhancements
   ──────────────────────────────────────────────────────────── */

/* Eyebrow — SVG icon aligned */
.sm-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 24px;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

/* Highlighted text in CTA heading — white with underline accent */
.sm-cta-highlight {
    color: #fff;
    display: inline-block;
    border-bottom: 3px solid rgba(255,255,255,0.45);
    padding-bottom: 2px;
}

/* Primary button in CTA — white bg with dark text for maximum contrast */
.sm-cta-primary-btn.btn.btn-primary {
    background: #fff !important;
    color: var(--color-primary) !important;
    border-color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.sm-cta-primary-btn.btn.btn-primary:hover {
    background: #f0f0ff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* Book a Demo ghost button — clean white outline style */
.sm-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.sm-cta-ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Trust row — better visibility */
.sm-cta-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-top: 28px;
}

.sm-cta-trust-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* ────────────────────────────────────────────────────────────
   WORKFLOW ARROW — SVG version
   ──────────────────────────────────────────────────────────── */
.sm-wf-arrow {
    flex-shrink: 0;
    color: var(--color-text-muted);
    opacity: 0.35;
    padding-top: 18px;
    display: flex;
    align-items: flex-start;
}

/* ────────────────────────────────────────────────────────────
   OVERALL ENHANCEMENTS
   ──────────────────────────────────────────────────────────── */

/* Stat cards — count-up text animation */
.sm-stat-number {
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Module card — subtle left-border on hover */
.sm-module-card:hover {
    border-left: 3px solid var(--color-primary);
    padding-left: 19px;
}

/* Section transitions — smooth anchor scroll offset fix */
.sm-module-section,
.sm-alt,
.sm-overview-section,
.sm-workflow-section,
.sm-integrations-section,
.sm-testimonial-section,
.sm-faq-section,
.sm-cta-section {
    scroll-margin-top: 130px;
}

/* Pill hover — sharper */
.sm-pill:hover {
    transform: translateY(-2px) scale(1.03);
}

/* Mockup panels — card glow on hover */
.sm-split-visual:hover .sm-mockup {
    box-shadow: 0 20px 60px rgba(91,95,199,0.15);
    border-color: rgba(91,95,199,0.2);
    transition: box-shadow 0.3s, border-color 0.3s;
}

/* Integration cards — icon scale on hover */
.sm-int-card:hover .sm-int-icon {
    transform: scale(1.1) rotate(-3deg);
    transition: transform 0.3s;
}

/* KPI numbers in pipeline card — gradient accent */
.sm-kpi-val {
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sm-kpi-val--green {
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAQ section — slightly more generous spacing */
.sm-faq-section .faq-item {
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.sm-faq-section .faq-item:hover {
    background: var(--bg-section);
}

/* Dark theme — carousel cards */
[data-theme="dark"] .sm-carousel-btn {
    background: var(--bg-card);
}

[data-theme="dark"] .sm-carousel-dot {
    background: rgba(255,255,255,0.15);
}

/* Mobile CTA adjustments */
@media (max-width: 640px) {
    .sm-cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .sm-cta-primary-btn,
    .sm-cta-ghost {
        width: 100%;
        justify-content: center;
    }

    .sm-cta-trust-row {
        gap: 14px;
        font-size: 12.5px;
    }
}
