/* ============================================ */
/* TRADING PLATFORMS BUTTON IMPLEMENTATIONS */
/* Custom CSS for Implementation B */
/* ============================================ */

/* Main container for Implementation B */
.trading-options-container-b {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    flex-direction: column;
}

/* Trading section wrapper for Implementation B */
.trading-section-b {
    width: 100%;
}

/* Stack of platform groups in Implementation B */
.buttons-stack-b {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each platform group container in Implementation B */
.platform-group-b {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(14px, 1vw, 20px);
    border-radius: clamp(12px, 0.8vw, 20px);
    background: rgba(250, 250, 250, 0.03);
    border: 1px solid rgba(234, 234, 236, 0.1);
}

/* Crypto container when used as platform group - matches support section width */
.hero-banner .hero-wrapper .hero-main-block .crypto-container {
    max-width: 600px !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Make crypto-container visible on mobile */
@media (max-width: 490px) {
    .hero-banner .hero-wrapper .hero-main-block .crypto-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* Platform title row in Implementation B */
.platform-title-b {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon in platform title for Implementation B */
.icon-b {
    font-size: clamp(20px, 1.4vw, 28px);
}

/* Label text in platform title for Implementation B */
.label-b {
    font-size: clamp(13px, 0.85vw, 17px);
    font-weight: 600;
    color: #FAFAFA;
    letter-spacing: 0.5px;
}

/* Action buttons container in Implementation B */
.action-buttons-b {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(250, 250, 250, 0.05);
    border-radius: clamp(24px, 2vw, 56px);
    padding: 4px;
    max-width: 500px;
}

/* Individual action button in Implementation B */
.action-btn-b {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(11px, 0.65vw, 14px);
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    line-height: 120%;
    padding: clamp(10px, 0.6vw, 14px) clamp(20px, 1.2vw, 32px);
    text-decoration: none;
    border-radius: clamp(20px, 1.8vw, 48px);
    border: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Login button styling */
.login-btn-b {
    background: #FAFAFA;
    color: #0C0C0D;
}

/* Register button styling */
.register-btn-b {
    background: transparent;
    color: #FAFAFA;
}

/* Button spans for hover effect */
.action-btn-b span:first-child {
    position: relative;
    transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 10;
}

.action-btn-b span:last-child {
    color: #FAFAFA;
    display: block;
    position: absolute;
    bottom: 0;
    transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 100;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translateY(225%) translateX(-50%);
    height: 14px;
    line-height: 13px;
    width: 100%;
    text-align: center;
}

.action-btn-b:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #005ED3;
    border: 0;
    transform-origin: bottom center;
    transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
    transform: skewY(9.3deg) scaleY(0);
    z-index: 50;
}

.action-btn-b:hover:after {
    transform-origin: bottom center;
    transform: skewY(6.3deg) scaleY(2);
}

.action-btn-b:hover span:last-child {
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
    transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}

/* Divider between buttons in Implementation B */
.divider-b {
    /* ============================================ */
    /* TRADING PLATFORMS BUTTON IMPLEMENTATIONS */
    /* Custom CSS for Implementation B */
    /* ============================================ */

    /* Main container for Implementation B */
    .trading-options-container-b {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
        flex-direction: column;
    }

    /* Trading section wrapper for Implementation B */
    .trading-section-b {
        width: 100%;
    }

    /* Stack of platform groups in Implementation B */
    .buttons-stack-b {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Each platform group container in Implementation B */
    .platform-group-b {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: clamp(14px, 1vw, 20px);
        border-radius: clamp(12px, 0.8vw, 20px);
        background: rgba(250, 250, 250, 0.03);
        border: 1px solid rgba(234, 234, 236, 0.1);
    }

    /* Crypto container when used as platform group - matches support section width */
    .hero-banner .hero-wrapper .hero-main-block .crypto-container {
        max-width: 600px !important;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Make crypto-container visible on mobile */
    @media (max-width: 490px) {
        .hero-banner .hero-wrapper .hero-main-block .crypto-container {
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
        }
    }

    /* Platform title row in Implementation B */
    .platform-title-b {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Icon in platform title for Implementation B */
    .icon-b {
        font-size: clamp(20px, 1.4vw, 28px);
    }

    /* Label text in platform title for Implementation B */
    .label-b {
        font-size: clamp(13px, 0.85vw, 17px);
        font-weight: 600;
        color: #FAFAFA;
        letter-spacing: 0.5px;
    }

    /* Action buttons container in Implementation B */
    .action-buttons-b {
        display: flex;
        align-items: center;
        gap: 4px;
        background: rgba(250, 250, 250, 0.05);
        border-radius: clamp(24px, 2vw, 56px);
        padding: 4px;
        max-width: 500px;
    }

    /* Individual action button in Implementation B */
    .action-btn-b {
        position: relative;
        overflow: hidden;
        flex: 1;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-size: clamp(11px, 0.65vw, 14px);
        font-family: "Outfit", sans-serif;
        font-weight: 500;
        line-height: 120%;
        padding: clamp(10px, 0.6vw, 14px) clamp(20px, 1.2vw, 32px);
        text-decoration: none;
        border-radius: clamp(20px, 1.8vw, 48px);
        border: 0;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    /* Login button styling */
    .login-btn-b {
        background: #FAFAFA;
        color: #0C0C0D;
    }

    /* Register button styling */
    .register-btn-b {
        background: transparent;
        color: #FAFAFA;
    }

    /* Button spans for hover effect */
    .action-btn-b span:first-child {
        position: relative;
        transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
        z-index: 10;
    }

    .action-btn-b span:last-child {
        color: #FAFAFA;
        display: block;
        position: absolute;
        bottom: 0;
        transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
        z-index: 100;
        opacity: 0;
        top: 50%;
        left: 50%;
        transform: translateY(225%) translateX(-50%);
        height: 14px;
        line-height: 13px;
        width: 100%;
        text-align: center;
    }

    .action-btn-b:after {
        content: "";
        position: absolute;
        bottom: -50%;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #005ED3;
        border: 0;
        transform-origin: bottom center;
        transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
        transform: skewY(9.3deg) scaleY(0);
        z-index: 50;
    }

    .action-btn-b:hover:after {
        transform-origin: bottom center;
        transform: skewY(6.3deg) scaleY(2);
    }

    .action-btn-b:hover span:last-child {
        transform: translateX(-50%) translateY(-50%);
        opacity: 1;
        transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
    }

    /* Divider between buttons in Implementation B */
    .divider-b {
        width: 1px;
        height: 24px;
        background: rgba(250, 250, 250, 0.2);
    }

    /* Mobile responsiveness for Implementation B */
    @media (max-width: 576px) {
        .platform-group-b {
            padding: 12px;
        }

        .action-buttons-b {
            flex-direction: row;
            /* keep buttons side-by-side on mobile */
            gap: 8px;
            padding: 8px;
        }

        .divider-b {
            display: none;
        }
    }