/**
 * Chat Welcome + How it Works component
 * Use with partial: homepage.partials.chat-welcome-how-it-works
 */

/* ----- Welcome section (icon removed; title + text + button) ----- */
.bdl-chat-welcome {
    text-align: center;
    padding: 30px 32px 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bdl-chat-welcome-title {
    font-size: 26px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.bdl-chat-welcome-tagline {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin: 0 auto 12px auto;
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 420px;
}

/* ----- Secondary button row ----- */
.bdl-chat-welcome-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

/* ----- Welcome description ----- */
.bdl-chat-welcome-desc {
    max-width: 860px;
    margin: 14px auto 0 auto;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #64748b;
    text-align: center;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----- Primary CTA row (Neural Search + Get Code) ----- */
.bdl-chat-welcome-primary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 0 8px;
}

.bdl-chat-welcome-primary-actions-label {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
}

.bdl-chat-welcome-primary-actions-label--connector {
    font-size: 16px;
}

.bdl-chat-welcome-primary-actions .bdl-feature-btn {
    min-width: 170px;
}

.bdl-feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
    line-height: 1;
    box-sizing: border-box;
    min-height: 48px;
}
.bdl-feature-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}
.bdl-feature-btn:focus,
.bdl-feature-btn:visited {
    color: #fff;
    text-decoration: none;
}
.bdl-feature-btn--neural {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #06b6d4 100%);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.4);
}
.bdl-feature-btn--neural:hover {
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.5);
}
.bdl-feature-btn--getcode {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #f59e0b 100%);
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.4);
}
.bdl-feature-btn--getcode:hover {
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
}

@media (max-width: 768px) {
    .bdl-chat-welcome-primary-actions {
        gap: 8px;
    }

    .bdl-chat-welcome-primary-actions-label {
        font-size: 14px;
    }

    .bdl-chat-welcome-primary-actions-label--intro {
        flex-basis: 100%;
        text-align: center;
    }

    .bdl-chat-welcome-primary-actions-label--connector {
        font-size: 14px;
    }

    .bdl-chat-welcome-primary-actions .bdl-feature-btn {
        min-width: 148px;
    }
}

@media (max-width: 480px) {
    .bdl-chat-welcome-primary-actions {
        gap: 6px 8px;
    }

    .bdl-chat-welcome-primary-actions-label {
        font-size: 13px;
    }

    .bdl-chat-welcome-primary-actions .bdl-feature-btn {
        min-width: 138px;
        padding: 11px 16px;
        font-size: 13px;
    }

    .bdl-chat-welcome-primary-actions-label--connector {
        flex-basis: auto;
        font-size: 13px;
    }
}

/* ----- Secondary pills ----- */
.bdl-what-is-bdl-btn,
.bdl-how-it-works-btn,
.bdl-product-visuals-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #6b7280;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    line-height: 1.2;
}

.bdl-what-is-bdl-btn {
    white-space: nowrap;
}
.bdl-what-is-bdl-btn:hover {
    transform: translateY(-1px);
    color: #4b5563;
    background: #f8fafc;
    border-color: #d1d5db;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}
.bdl-what-is-bdl-btn:focus,
.bdl-what-is-bdl-btn:visited {
    text-decoration: none;
    color: #6b7280;
}

.bdl-how-it-works-btn {
    white-space: nowrap;
}
.bdl-how-it-works-btn:hover {
    transform: translateY(-1px);
    color: #4b5563;
    background: #f8fafc;
    border-color: #d1d5db;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}
.bdl-how-it-works-btn:active {
    transform: translateY(0);
}

.bdl-product-visuals-btn:hover {
    transform: translateY(-1px);
    color: #4b5563;
    background: #f8fafc;
    border-color: #d1d5db;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.bdl-how-it-works-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}
.bdl-how-it-works-btn-icon svg {
    width: 100%;
    height: 100%;
}


/* ----- Modal overlay ----- */
.how-it-works-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: auto;
}
.how-it-works-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* What-is modal overlay (scoped to bdl-what-is-modal-*) */
.bdl-what-is-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    /* Must exceed mobile sidebar + fixed header */
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: auto;
}
.bdl-what-is-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   Mobile orientation gate (Rotate phone hint)
   - Enabled only via JS class `bdl-rotate-phone--active`
   - Modal content is hidden until the user rotates to landscape
   ========================================================= */
.bdl-rotate-phone-hint {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: #fff;
    text-align: center;
    max-width: 420px;
}

.bdl-rotate-phone-icon {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    animation: bdlPhoneRotateHint 1s ease-in-out infinite alternate;
}

.bdl-rotate-phone-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.bdl-rotate-phone-sub {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 320px;
}

.bdl-rotate-phone-dismiss {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bdl-rotate-phone-dismiss:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.32);
}

@keyframes bdlPhoneRotateHint {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(90deg) scale(1.06); }
}

.how-it-works-overlay.bdl-rotate-phone--active .bdl-rotate-phone-hint,
.bdl-what-is-modal-overlay.bdl-rotate-phone--active .bdl-rotate-phone-hint,
#product-visuals-modal-overlay.bdl-pv-modal-overlay.bdl-rotate-phone--active .bdl-rotate-phone-hint {
    display: flex;
}

.how-it-works-overlay.bdl-rotate-phone--active .how-it-works-modal,
.bdl-what-is-modal-overlay.bdl-rotate-phone--active .bdl-what-is-modal,
#product-visuals-modal-overlay.bdl-pv-modal-overlay.bdl-rotate-phone--active #product-visuals-modal {
    display: none;
}

/* ----- Modal box (animated) ----- */
.how-it-works-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 50001;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.how-it-works-overlay.is-open .how-it-works-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* What-is modal box (animated) */
.bdl-what-is-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.bdl-what-is-modal-overlay.is-open .bdl-what-is-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Mobile: ensure modal sits above header/sidebar and is fully tappable */
@media (max-width: 768px) {
    .bdl-what-is-modal-overlay {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: calc(var(--fixed-module-header-height, 78px) + 18px);
        padding-left: 44px; /* collapsed sidebar rail */
        padding-right: 14px;
    }
    .bdl-what-is-modal {
        border-radius: 16px;
        max-width: 100%;
        max-height: calc(100vh - var(--fixed-module-header-height, 78px) - 36px);
    }
}

@media (max-width: 480px) {
    .bdl-what-is-modal-overlay {
        padding-left: 48px; /* narrow phones rail */
        padding-top: calc(var(--fixed-module-header-height, 78px) + 14px);
        padding-right: 10px;
    }
}

/* Landscape mobile/tablet: viewport width may be >768px so the <=768px rule won't apply.
   Force the overlay to start below the fixed header and avoid the (collapsed) sidebar rail. */
@media (orientation: landscape) and (max-width: 1024px) {
    .bdl-what-is-modal-overlay {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        padding-top: calc(var(--fixed-module-header-height, 62px) + 18px);
        padding-left: 64px; /* collapsed sidebar rail (matches desktop default) */
        padding-right: 14px;
    }
    .bdl-what-is-modal {
        max-height: calc(100vh - var(--fixed-module-header-height, 62px) - 30px);
        max-width: 95%;
    }
}

.how-it-works-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.how-it-works-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.how-it-works-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}
.how-it-works-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.how-it-works-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.how-it-works-modal-body {
    /* padding: 24px; */
    overflow-y: auto;
}
.how-it-works-steps {
    margin: 0 0 20px 0;
    padding-left: 1.35em;
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
}
.how-it-works-step {
    margin-bottom: 14px;
}
.how-it-works-step:last-child {
    margin-bottom: 0;
}
.how-it-works-step strong {
    color: #0f172a;
}
.how-it-works-footer {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* ----- Modal with Supply Chain (reduced size, no full screen) ----- */
.how-it-works-modal.how-it-works-modal--supply-chain {
    max-width: min(880px, 90vw);
    width: 100%;
}
.how-it-works-modal--supply-chain .how-it-works-modal-body {
    /* padding: 10px; */
    overflow-x: auto;
    overflow-y: auto;
}
/* ========== Supply Chain animation (scoped: only inside .how-it-works-supply-chain) ========== */
.how-it-works-supply-chain {
    --sc-bg: #ffffff;
    --sc-text-primary: #0F1C36;
    --sc-text-secondary: #5f6368;
    --sc-core-blue: #1a73e8;
    --sc-accent: #FF5722;
    --sc-card-border: #e0e0e0;
    --sc-active-bg: #e8f0fe;
    --sc-shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--sc-text-primary);
}
.how-it-works-supply-chain * {
    box-sizing: border-box;
}
.how-it-works-supply-chain .sc-container {
    width: 100%;
    min-width: 640px;
    height: 480px;
    display: flex;
    flex-direction: column;
    background-color: var(--sc-bg);
    background-size: 30px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid var(--sc-card-border);
}
.how-it-works-supply-chain .sc-container-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    background: #fff !important;
}
.how-it-works-supply-chain .sc-container-close:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.how-it-works-supply-chain .sc-header {
    flex-shrink: 0;
    text-align: center;
    /* margin-top: 16px; */
    margin-bottom: 12px;
    z-index: 10;
    position: relative;
    padding: 0 40px;
}
.how-it-works-supply-chain .sc-header-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sc-text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.how-it-works-supply-chain .sc-sub {
    font-size: 0.85rem;
    color: var(--sc-text-secondary);
    max-width: 100%;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.35;
}
.how-it-works-supply-chain .svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.how-it-works-supply-chain .flow-line {
    fill: none;
    stroke: #d0d0d0;
    stroke-width: 2;
    stroke-dasharray: 8, 8;
    opacity: 0.3;
    transition: all 0.5s;
}
.how-it-works-supply-chain .active-flow {
    stroke: var(--sc-core-blue);
    opacity: 1;
    stroke-width: 3;
    animation: scDashMove 1s linear infinite;
}
@keyframes scDashMove {
    to { stroke-dashoffset: -16; }
}
.how-it-works-supply-chain .layout-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    margin-top: 0;
    gap: 12px;
    min-width: 0;
    flex: 1;
    min-height: 0;
}
.how-it-works-supply-chain .sc-col-header {
    flex-shrink: 0;
    padding: 6px 12px;
    margin-bottom: 10px;
    /* background: #f1f5f9; */
    /* border: 1px solid var(--sc-card-border); */
    /* border-radius: 10px; */
    font-size: 1.2rem;
    /* font-weight: 700; */
    color: var(--sc-text-primary);
    text-align: center;
}
.how-it-works-supply-chain .col-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 170px;
    min-width: 0;
    max-width: 170px;
    flex: 0 0 170px;
}
.how-it-works-supply-chain .col-users .sc-col-header {
    margin-bottom: 8px;
}
.how-it-works-supply-chain .user-card {
    background: #fff;
    border: 1px solid var(--sc-card-border);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: visible;
}
.how-it-works-supply-chain .user-card.active {
    border-color: var(--sc-core-blue);
    background: var(--sc-active-bg);
    transform: none;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
}
.how-it-works-supply-chain .user-icon {
    font-size: 1.2rem;
    min-width: 26px;
    flex-shrink: 0;
}
/* Override global .user-info { display: none } from homepage so card text is visible */
.how-it-works-supply-chain .user-info {
    display: block !important;
    min-width: 0;
    flex: 1;
    visibility: visible !important;
    opacity: 1 !important;
}
.how-it-works-supply-chain .user-info strong {
    display: block !important;
    color: #0F1C36 !important;
    font-size: 1rem;
    margin-bottom: 3px;
    line-height: 1.2;
    font-weight: 700;
    visibility: visible !important;
}
.how-it-works-supply-chain .rotating-text {
    display: block !important;
    visibility: visible !important;
    font-size: 0.9rem;
    color: #5f6368 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    min-height: 1.2em;
    line-height: 1.2;
}
.how-it-works-supply-chain .col-modules {
    display: flex;
    flex-direction: column;
    width: 130px;
    min-width: 0;
    max-width: 130px;
    flex: 0 0 130px;
}
.how-it-works-supply-chain .sc-modules-inner {
    position: relative;
    flex: 1;
    min-height: 320px;
}
.how-it-works-supply-chain .sc-modules-inner .module-node {
    position: absolute;
    background: #fff;
    border: 2px solid var(--sc-card-border);
    color: var(--sc-text-secondary);
    padding: 8px 0;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 5;
}

/* Mobile: make supply-chain user cards smaller */
@media (max-width: 768px) and (orientation: portrait) {
  .how-it-works-supply-chain .user-card {
    padding: 8px 10px;
    border-radius: 10px;
    gap: 8px;
    font-size: 0.75rem;
  }
  .how-it-works-supply-chain .user-icon {
    font-size: 1.05rem;
    min-width: 22px;
  }
  .how-it-works-supply-chain .user-info strong {
    font-size: 0.86rem;
    margin-bottom: 2px;
  }
  .how-it-works-supply-chain .rotating-text {
    font-size: 0.78rem;
    max-width: 96px;
  }
}

/* Mobile Landscape: avoid clipping the Value to Users panel */
@media (max-width: 768px) and (orientation: landscape) {
  .how-it-works-overlay {
    /* Start below fixed header and avoid floating sidebar rail */
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: calc(var(--fixed-module-header-height, 78px) + 18px);
    padding-left: 44px;
    padding-right: 14px;
  }

  .how-it-works-modal {
    /* Give the modal more usable vertical room in landscape */
    max-height: 100dvh;
  }

  .how-it-works-modal-inner {
    max-height: 100dvh;
  }

  .how-it-works-modal--supply-chain .how-it-works-modal-body {
    /* Ensure the inner sc-container has enough vertical space */
    max-height: 100dvh;
  }

  .how-it-works-supply-chain .sc-container {
    /* sc-container is fixed-height (480px) by default; in landscape it's clipped by viewport height */
    height: min(480px, calc(100dvh - 140px));
  }

  .how-it-works-supply-chain .col-output-panel {
    /* Let the panel use more space before internal scrolling */
    max-height: 280px !important;
  }
}

/* Landscape mobile/tablet (viewport may be >768px): keep overlay/modal above header/sidebar */
@media (orientation: landscape) and (max-width: 1024px) {
  .how-it-works-overlay {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    padding-top: calc(var(--fixed-module-header-height, 62px) + 18px);
    padding-left: 64px; /* matches collapsed sidebar rail default outside <=768 */
    padding-right: 14px;
  }
  .how-it-works-modal {
    max-height: calc(100vh - var(--fixed-module-header-height, 62px) - 30px);
  }
}
.how-it-works-supply-chain .module-node.active {
    border-color: var(--sc-core-blue);
    background: var(--sc-core-blue);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.3);
    z-index: 10;
}
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-jobs { top: 0%; }
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-train { top: 14%; }
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-tele { top: 28%; }
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-code { top: 42%; }
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-data { top: 56%; }
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-gigs { top: 70%; }
.how-it-works-supply-chain .sc-modules-inner #how-it-works-mod-vendor { top: 84%; }
.how-it-works-supply-chain .col-core {
    width: 100px;
    min-width: 0;
    max-width: 100px;
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}
.how-it-works-supply-chain .sc-core-inner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    width: 100%;
}
.how-it-works-supply-chain .neural-engine {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #1a73e8, #0d47a1);
    border-radius: 50%;
    border: 4px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 24px rgba(26, 115, 232, 0.25);
    z-index: 20;
    transition: transform 0.2s;
    color: #fff;
}
.how-it-works-supply-chain .neural-engine.pulse {
    /* animation: scCorePulse 0.8s infinite alternate; */
    animation: none;
}
@keyframes scCorePulse {
    from { box-shadow: 0 0 16px rgba(26, 115, 232, 0.35); transform: scale(1); }
    to { box-shadow: 0 0 36px rgba(26, 115, 232, 0.5); transform: scale(1.02); }
}
.how-it-works-supply-chain .core-icon {
    position: relative;
    z-index: 2;
    font-size: 1.75rem;
    margin-bottom: 2px;
    color: #fff !important;
}
.how-it-works-supply-chain .core-text {
    position: relative;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.1;
    color: #fff !important;
}
.how-it-works-supply-chain .col-output {
    width: 200px;
    min-width: 0;
    max-width: 200px;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 15;
}
.how-it-works-supply-chain .col-output .sc-col-header {
    margin-bottom: 8px;
}
.how-it-works-supply-chain .col-output-panel {
    flex: 0 0 auto;
    max-height: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 14px;
    border: 1px solid var(--sc-card-border);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
    box-shadow: var(--sc-shadow-soft);
    border-top: 4px solid var(--sc-accent);
    overflow-y: auto;
}
.how-it-works-supply-chain .col-output-panel.show {
    opacity: 1;
    transform: translateY(0);
}
.how-it-works-supply-chain .impact-title {
    color: var(--sc-core-blue);
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.how-it-works-supply-chain .impact-desc {
    color: #555;
    font-size: 1.0rem;
    line-height: 1.5;
    margin-bottom: 16px;
}
.how-it-works-supply-chain .cta-btn {
    background: var(--sc-core-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
    transition: transform 0.2s;
    font-size: 0.9rem;
}
.how-it-works-supply-chain .cta-btn:hover {
    transform: scale(1.05);
    background: #1557b0;
    color: #fff;
}
.how-it-works-supply-chain .cta-btn.cta-btn--no-link {
    pointer-events: none;
    cursor: default;
}
.how-it-works-supply-chain .cta-btn.cta-btn--no-link:hover {
    transform: none;
    background: var(--sc-core-blue);
}
.how-it-works-supply-chain .controls-wrapper {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
}
.how-it-works-supply-chain .hover-hint {
    font-size: 0.8rem;
    color: #777;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
}
.how-it-works-supply-chain .play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sc-core-blue);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
/* Hide "Play / Pause" hint when using pill button */
.how-it-works-supply-chain .controls-wrapper .hover-hint {
    display: none;
}
/* Pill-style Pause/Resume button (same design as What is BigDataLogin modal) */
.how-it-works-supply-chain .play-btn.how-it-works-play-pill {
    width: auto;
    height: auto;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #1a73e8;
    border: 1px solid #dbeafe;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.18);
    font-family: inherit;
}
.how-it-works-supply-chain .play-btn.how-it-works-play-pill:hover {
    transform: translateY(-1px);
    background: #f0f7ff;
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.25);
}
.how-it-works-supply-chain .play-btn:hover {
    transform: scale(1.1);
    background: #1557b0;
}
