/* === Lego bricks (showcase) === */
.onboard-bricks {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px;
    padding: 8px 20px;
    margin: 0 auto;
    justify-content: center;
}

.onboard-brick {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin-top: 12px;
    width: 84px;
    height: 54px;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    border-bottom: 4px solid color-mix(in srgb, currentColor 0%, var(--brick-shadow, #0005));
}

.onboard-brick::before,
.onboard-brick::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 25px;
    height: 11px;
    background: inherit;
    border-top: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px 4px 0 0;
}

.onboard-brick::before {
    left: 10%;
}

.onboard-brick::after {
    right: 10%;
}

.onboard-brick-wide {
    width: 75px;
}

/* Training brick */
.onboard-brick-training::before {
    background: #facc5a;
    animation: nub-bounce 1.4s ease-in-out infinite;
}

.onboard-brick-training::after {
    background: #ffbeaa;
    animation: nub-bounce 1.4s ease-in-out infinite;
    animation-delay: 0.2s;
}

@keyframes nub-bounce {

    0%,
    100% {
        transform: translateY(-2px);
    }

    40% {
        transform: translateY(6px);
    }
}

@keyframes march {
    0% {
        background-position: 0 0, 0 100%, 0 0, 100% 0, 0 0;
    }

    100% {
        background-position: 40px 0, -40px 100%, 0 -40px, 100% 40px, 0 0;
    }
}

.onboard-brick-training {
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 50%, transparent 50% 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 50%, transparent 50% 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0 50%, transparent 50% 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0 50%, transparent 50% 100%),
        linear-gradient(173deg, #fed867 0%, #e8921a 100%);
    background-size: 40px 0, 40px 3px, 0 40px, 0 40px, 100% 100%;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
    background-origin: border-box, border-box, border-box, border-box, padding-box;
    border-bottom: 4px solid rgb(202 88 88 / 72%);
    animation: march 1.6s linear infinite;
    color: #a14e4e
}

/* EU Upgrade Brick */
.onboard-bricks .brick-wrap {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    margin-top: 12px;
}

.onboard-bricks .brick-wrap .brick {
    position: relative;
    z-index: 1;
}

.onboard-bricks .brick-wrap .brick.onboard-brick::before,
.onboard-bricks .brick-wrap .brick.onboard-brick::after {
    display: none;
}

.onboard-bricks .brick-wrap .brick.onboard-brick {
    margin-top: 0;
}

.onboard-bricks .brick-wrap .nub {
    position: absolute;
    top: -11px;
    width: 25px;
    height: 12px;
    background: #43a047;
    border-top: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px 4px 0 0;
}

.onboard-bricks .brick-wrap .nub-left {
    left: 10%;
    transition: transform 0.2s ease;
}

.onboard-bricks .brick-wrap .nub-right {
    right: 10%;
}

.onboard-bricks .brick-wrap .eu-label {
    position: absolute;
    top: -12px;
    left: 8px;
    width: 18px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 2;
    transition: font-size 0.2s ease;
}

.onboard-bricks .brick-wrap .stars-ring {
    position: absolute;
    top: -30px;
    left: 8px;
    width: 18px;
    height: 18px;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.onboard-bricks .brick-wrap .ten-label {
    position: absolute;
    top: -8px;
    right: 9px;
    width: 18px;
    text-align: center;
    font-size: 6.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0);
    letter-spacing: 0.2px;
    pointer-events: none;
    transition: color 0.2s ease, font-size 0.2s ease, top 0.2s ease;
}

/* EU ON state */
.onboard-bricks .brick-wrap.on .nub-left {
    transform: translateY(8px);
}

.onboard-bricks .brick-wrap.on .eu-label {
    font-size: 12px;
    left: 12px;
    top: -15px;
}

.onboard-bricks .brick-wrap.on .stars-ring {
    opacity: 1;
    top: -35px;
    left: 11px;
}

.onboard-bricks .brick-wrap.on .ten-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    top: -21px;
}

/* Modules showcase section */
.modules-showcase {
    max-width: 800px;
    margin: 40px auto 20px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #1a3fa8 0%, #0d0d0d 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.modules-showcase h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: right;
}

/* === Onboarding Steps Guide === */
.onboarding-steps-guide {
    max-width: 800px;
    padding: 0 20px;
    margin: 40px auto 20px;
}

.onboarding-steps-guide h3 {
    text-align: right;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.step-guides-wrapper {
    display: flex;
    gap: 24px;
}

.step-guide {
    flex: 1;
}

@media (max-width: 768px) {
    .step-guides-wrapper {
        flex-direction: column;
    }
}

.step-guide {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-guide-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.step-guide-content {
    flex: 1;
    text-align: right;
}

.step-guide-content h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #fff;
}

.step-guide-content p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.step-screenshot-placeholder {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.step-screenshot-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

@media (min-width: 768px) {
    .step-screenshot-placeholder {
        max-height: 250px;
    }

    .step-screenshot-placeholder img {
        object-fit: cover;
    }

    .step-img-1 {
        object-position: center 3%;
    }

    .step-img-2 {
        object-position: center 100%;
    }

    .step-img-3 {
        object-position: center 85%;
    }

    .step-img-4 {
        object-position: center 51%;
    }
}

/* Mobile small bricks */
@media (max-width: 385px) {
    .onboard-brick {
        width: 74px;
        height: 46px;
        font-size: 10px;
    }
}

/* Mobile steps layout */
@media (max-width: 767px) {
    .step-guide {
        flex-direction: column;
        align-items: center;
    }
}