/* AI Process Steps v2 - a506ec1d */

.aps-a506ec1d-wrapper {
    background-color: #050505;
    padding: 60px 20px;
    font-family: inherit;
    overflow: hidden;
}

/* ===== HEADER ===== */
.aps-a506ec1d-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.aps-a506ec1d-subtitle {
    color: #f5c518;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.aps-a506ec1d-title {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
}

.aps-a506ec1d-highlight {
    color: #f5c518;
}

.aps-a506ec1d-header-desc {
    color: #8a8a8a;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ===== STEPS CONTAINER ===== */
.aps-a506ec1d-steps {
    position: relative;
    max-width: 1450px;
    margin: 0 auto;
}

/* ===== CONNECTOR LINE ===== */
.aps-a506ec1d-connector-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f5c518 0%, #3b82f6 40%, #3b82f6 60%, #f5c518 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* ===== STEP ROW ===== */
.aps-a506ec1d-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 28px;
    z-index: 1;
}

.aps-a506ec1d-step:last-child {
    margin-bottom: 0;
}

.aps-a506ec1d-step--left {
    flex-direction: row-reverse;
}

.aps-a506ec1d-step--left .aps-a506ec1d-card {
    margin-right: 36px;
    text-align: left;
}

.aps-a506ec1d-step--right .aps-a506ec1d-card {
    margin-left: 36px;
    text-align: left;
}

/* ===== NODE ===== */
.aps-a506ec1d-node {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
    position: relative;
    z-index: 2;
}

.aps-a506ec1d-node-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
    transition: box-shadow 0.3s ease;
}

.aps-a506ec1d-node-circle--ai {
    width: 66px;
    height: 66px;
    border-color: #f5c518;
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.3), 0 0 60px rgba(245, 197, 24, 0.1);
    background: radial-gradient(circle at center, #1a1400 0%, #0a0a0a 70%);
}

.aps-a506ec1d-node-icon {
    color: #3b82f6;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aps-a506ec1d-node-icon svg {
    width: 24px;
    height: 24px;
    fill: #3b82f6;
}

.aps-a506ec1d-node-circle--ai .aps-a506ec1d-node-icon {
    color: #f5c518;
}

.aps-a506ec1d-node-circle--ai .aps-a506ec1d-node-icon svg {
    fill: #f5c518;
}

/* ===== CARD (Glassmorphism) ===== */
.aps-a506ec1d-card {
    flex: 1;
    max-width: calc(50% - 50px);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 32px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.aps-a506ec1d-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.06);
}

.aps-a506ec1d-card--gen {
    border-color: rgba(245, 197, 24, 0.12);
}

.aps-a506ec1d-card--gen:hover {
    border-color: rgba(245, 197, 24, 0.25);
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.06);
}

.aps-a506ec1d-card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.aps-a506ec1d-card-desc {
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ===== STEP 1: EMAIL CARD ===== */
.aps-a506ec1d-email-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 4px;
}

.aps-a506ec1d-email-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aps-a506ec1d-email-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.aps-a506ec1d-email-meta {
    flex: 1;
    min-width: 0;
}

.aps-a506ec1d-email-sender {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.aps-a506ec1d-email-subject {
    color: #6a6a6a;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}

.aps-a506ec1d-email-body {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.65;
}

/* ===== STEP 2: CAPABILITY GRID ===== */
.aps-a506ec1d-cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.aps-a506ec1d-cap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 8px 12px;
}

/* ===== STEP 3: SOURCE LIST ===== */
.aps-a506ec1d-source-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aps-a506ec1d-source-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 8px 12px;
}

.aps-a506ec1d-source-item .aps-a506ec1d-sub-text {
    flex: 1;
}

.aps-a506ec1d-source-check {
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.aps-a506ec1d-source-check svg {
    width: 16px;
    height: 16px;
    fill: #3b82f6;
}

/* ===== STEP 4: GENERATED OUTPUT ===== */
.aps-a506ec1d-gen-output {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 197, 24, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.aps-a506ec1d-gen-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aps-a506ec1d-gen-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5c518;
    opacity: 0.6;
}

.aps-a506ec1d-gen-dot--1 { animation: aps-a506ec1d-pulse 1.4s ease-in-out infinite; }
.aps-a506ec1d-gen-dot--2 { animation: aps-a506ec1d-pulse 1.4s ease-in-out 0.2s infinite; }
.aps-a506ec1d-gen-dot--3 { animation: aps-a506ec1d-pulse 1.4s ease-in-out 0.4s infinite; }

@keyframes aps-a506ec1d-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.1); }
}

.aps-a506ec1d-gen-label {
    color: #f5c518;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.aps-a506ec1d-gen-body {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.65;
}

.aps-a506ec1d-gen-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #f5c518;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: aps-a506ec1d-blink 1s step-end infinite;
}

@keyframes aps-a506ec1d-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.aps-a506ec1d-gen-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aps-a506ec1d-gen-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 197, 24, 0.08);
    border: 1px solid rgba(245, 197, 24, 0.15);
    border-radius: 20px;
    padding: 4px 12px;
    color: #f5c518;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.aps-a506ec1d-gen-badge i,
.aps-a506ec1d-gen-badge svg {
    font-size: 11px;
    width: 11px;
    height: 11px;
}

/* ===== STEP 5: HANDOFF GRID ===== */
.aps-a506ec1d-handoff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.aps-a506ec1d-handoff-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 8px 12px;
}

/* ===== SHARED SUB ICON / TEXT ===== */
.aps-a506ec1d-sub-icon {
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.aps-a506ec1d-sub-icon svg {
    width: 16px;
    height: 16px;
    fill: #3b82f6;
}

.aps-a506ec1d-sub-text {
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.35;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .aps-a506ec1d-steps {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .aps-a506ec1d-wrapper {
        padding: 48px 16px;
    }

    .aps-a506ec1d-header {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .aps-a506ec1d-title {
        font-size: 24px;
    }

    .aps-a506ec1d-steps {
        max-width: 100%;
    }

    .aps-a506ec1d-connector-line {
        left: 30px;
    }

    .aps-a506ec1d-step,
    .aps-a506ec1d-step--left {
        flex-direction: row !important;
    }

    .aps-a506ec1d-step--left .aps-a506ec1d-card,
    .aps-a506ec1d-step--right .aps-a506ec1d-card {
        margin-left: 20px;
        margin-right: 0;
        max-width: calc(100% - 84px);
    }

    .aps-a506ec1d-node {
        width: 52px;
    }

    .aps-a506ec1d-node-circle {
        width: 48px;
        height: 48px;
    }

    .aps-a506ec1d-node-circle--ai {
        width: 54px;
        height: 54px;
    }

    .aps-a506ec1d-card {
        padding: 20px;
        border-radius: 16px;
    }

    .aps-a506ec1d-card-title {
        font-size: 17px;
    }

    .aps-a506ec1d-cap-grid,
    .aps-a506ec1d-handoff-grid {
        grid-template-columns: 1fr;
    }

    .aps-a506ec1d-step {
        margin-bottom: 32px;
    }
}
