.xaf-normal-button {
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5a9b80;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
    /* Hacer que TODOS los iconos dentro del boton sean blancos */
    .xaf-normal-button img,
    .xaf-normal-button .xaf-toolbar-item-icon,
    .xaf-normal-button .dxbl-image {
        filter: brightness(0) invert(1) !important;
    }
    /* Efecto de waves al hacer focus/hover */
    .xaf-normal-button:hover,
    .xaf-normal-button:focus {
        box-shadow: 0 0 0 2px rgba(90, 155, 128, 0.4), 0 0 20px rgba(90, 155, 128, 0.3);
        animation: wave-pulse 2s infinite;
    }

@keyframes wave-pulse {
    0% {
        box-shadow: 0 0 0 2px rgba(90, 155, 128, 0.4), 0 0 20px rgba(90, 155, 128, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(90, 155, 128, 0.2), 0 0 30px rgba(90, 155, 128, 0.5);
    }

    100% {
        box-shadow: 0 0 0 2px rgba(90, 155, 128, 0.4), 0 0 20px rgba(90, 155, 128, 0.3);
    }
}

/* ── Stripe Membership Action Buttons ── */
/* Override DX CSS variables for ALL states (rest, hover, focus, pressed) */
.stripe-membership-btn {
    --dxds-color-surface-primary-default-rest: #2d7a56 !important;
    --dxds-color-surface-primary-default-hovered: #3a9b6e !important;
    --dxds-color-surface-primary-default-pressed: #256b4a !important;
    --dxds-color-surface-primary-default-focused: #2d7a56 !important;
    --dxds-color-content-onAccent-default-rest: #ffffff !important;
    --dxbl-btn-bg: #2d7a56 !important;
    --dxbl-btn-color: #ffffff !important;
    --dxbl-btn-border-color: transparent !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #2d7a56 0%, #3a9b6e 50%, #2d7a56 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(45, 122, 86, 0.30), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.stripe-membership-btn .dxbl-btn-caption,
.stripe-membership-btn span {
    color: #ffffff !important;
}

.stripe-membership-btn img,
.stripe-membership-btn .xaf-toolbar-item-icon,
.stripe-membership-btn .dxbl-image {
    filter: brightness(0) invert(1) !important;
}

/* Shimmer sweep effect */
.stripe-membership-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    ) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.stripe-membership-btn:hover::before {
    left: 100% !important;
}

.stripe-membership-btn:hover,
.stripe-membership-btn:focus,
.stripe-membership-btn:focus-visible {
    --dxbl-btn-bg: #3a9b6e !important;
    --dxbl-btn-color: #ffffff !important;
    --dxbl-btn-border-color: transparent !important;
    background: linear-gradient(135deg, #2d7a56 0%, #3a9b6e 50%, #2d7a56 100%) !important;
    background-position: 100% 50% !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(45, 122, 86, 0.40), 0 4px 10px rgba(0, 0, 0, 0.10) !important;
    outline: none !important;
}

.stripe-membership-btn:active {
    --dxbl-btn-bg: #256b4a !important;
    background: linear-gradient(135deg, #256b4a, #2d7a56) !important;
    color: #ffffff !important;
    transform: translateY(0px) !important;
    box-shadow: 0 2px 8px rgba(45, 122, 86, 0.30) !important;
    transition: all 0.1s ease !important;
}

/* Portal button variant */
.stripe-portal-btn {
    --dxds-color-surface-primary-default-rest: #4a5568 !important;
    --dxds-color-surface-primary-default-hovered: #5a6a80 !important;
    --dxds-color-surface-primary-default-pressed: #3d4758 !important;
    --dxds-color-surface-primary-default-focused: #4a5568 !important;
    --dxds-color-content-onAccent-default-rest: #ffffff !important;
    --dxbl-btn-bg: #4a5568 !important;
    --dxbl-btn-color: #ffffff !important;
    --dxbl-btn-border-color: transparent !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #4a5568 0%, #5a6a80 50%, #4a5568 100%) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.30), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.stripe-portal-btn .dxbl-btn-caption,
.stripe-portal-btn span {
    color: #ffffff !important;
}

.stripe-portal-btn img,
.stripe-portal-btn .xaf-toolbar-item-icon,
.stripe-portal-btn .dxbl-image {
    filter: brightness(0) invert(1) !important;
}

.stripe-portal-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    ) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.stripe-portal-btn:hover::before {
    left: 100% !important;
}

.stripe-portal-btn:hover,
.stripe-portal-btn:focus,
.stripe-portal-btn:focus-visible {
    --dxbl-btn-bg: #5a6a80 !important;
    --dxbl-btn-color: #ffffff !important;
    --dxbl-btn-border-color: transparent !important;
    background: linear-gradient(135deg, #4a5568 0%, #5a6a80 50%, #4a5568 100%) !important;
    background-position: 100% 50% !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.40), 0 4px 10px rgba(0, 0, 0, 0.10) !important;
    outline: none !important;
}

.stripe-portal-btn:active {
    --dxbl-btn-bg: #3d4758 !important;
    background: linear-gradient(135deg, #3d4758, #4a5568) !important;
    color: #ffffff !important;
    transform: translateY(0px) !important;
    box-shadow: 0 2px 8px rgba(74, 85, 104, 0.30) !important;
    transition: all 0.1s ease !important;
}

/* Mobile labels for membership actions (XAF CustomCSSClassName) */
@media (max-width: 768px) {
    .stripe-membership-btn,
    .stripe-portal-btn {
        min-width: 96px !important;
        min-height: 58px !important;
        height: auto !important;
        padding: 6px 8px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .stripe-membership-btn .dxbl-btn-caption,
    .stripe-portal-btn .dxbl-btn-caption {
        display: none !important;
    }

    .stripe-membership-btn::after,
    .stripe-portal-btn::after {
        display: block;
        width: 100%;
        white-space: pre-line;
        line-height: 1.05;
        text-align: center;
        font-size: 10px;
        font-weight: 700;
        color: #ffffff !important;
        z-index: 2;
    }

    .stripe-membership-btn .dxbl-image,
    .stripe-membership-btn img,
    .stripe-portal-btn .dxbl-image,
    .stripe-portal-btn img {
        position: relative;
        z-index: 2;
    }

    /* Default labels (ES) */
    .stripe-membership-500::after {
        content: "500 mensajes";
    }

    .stripe-membership-1500::after {
        content: "1500 mensajes";
    }

    .stripe-membership-3000::after {
        content: "3000 mensajes";
    }

    .stripe-membership-chat::after {
        content: "Chat Empresarial";
    }

    .stripe-membership-payments::after {
        content: "Consultar Pagos";
    }

    /* English labels when UI language is EN */
    html[lang^="en"] .stripe-membership-500::after,
    body[lang^="en"] .stripe-membership-500::after {
        content: "500 messages";
    }

    html[lang^="en"] .stripe-membership-1500::after,
    body[lang^="en"] .stripe-membership-1500::after {
        content: "1500 messages";
    }

    html[lang^="en"] .stripe-membership-3000::after,
    body[lang^="en"] .stripe-membership-3000::after {
        content: "3000 messages";
    }

    html[lang^="en"] .stripe-membership-chat::after,
    body[lang^="en"] .stripe-membership-chat::after {
        content: "Enterprise Chat";
    }

    html[lang^="en"] .stripe-membership-payments::after,
    body[lang^="en"] .stripe-membership-payments::after {
        content: "Check Payments";
    }
}

.xaf-premium-button {
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D4AF37;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}
    /* Iconos dentro del boton premium */
    .xaf-premium-button img,
    .xaf-premium-button .xaf-toolbar-item-icon,
    .xaf-premium-button .dxbl-image {
    }
    /* Efecto waves premium */
    .xaf-premium-button:hover,
    .xaf-premium-button:focus {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.6);
        animation: premium-wave-pulse 2s infinite;
    }

@keyframes premium-wave-pulse {
    0% {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.6);
    }
}
