:root {
    /* ===== LEGACY VARIABLES (for backward compatibility) ===== */
    /* These are ONLY for the floating button and other non-modal elements */
    --beneficiate-primary-color: #6E4EFF;
    --beneficiate-secondary-color: #2E3192;
    --beneficiate-text-color: #212529;
    --beneficiate-background-color: #f8f9fa;
    --beneficiate-button-color: #6E4EFF;
    --beneficiate-primary-text-color: #ffffff;
    --beneficiate-secondary-text-color: #333333;
}

/* ===== MODAL-SCOPED THEME TOKENS ===== */
/* These tokens are ONLY applied to .beneficiate-modal and its children */
/* This prevents contamination of the WooCommerce site theme */
.beneficiate-modal {
    /* ===== NEW SEMANTIC TOKENS (Theme Engine) ===== */
    /* These will be set dynamically by beneficiate-theme.js */
    /* Defaults here are fallbacks only */
    
    /* Base colors */
    --bf-bg: #ffffff;
    --bf-surface-1: #f5f5f5;
    --bf-surface-2: #eeeeee;
    --bf-border: #e0e0e0;
    
    /* Text colors */
    --bf-text: #000000;
    --bf-text-muted: #666666;
    --bf-on-surface-1: #000000;
    --bf-on-surface-2: #000000;
    
    /* Primary (CTA) */
    --bf-primary: #6E4EFF;
    --bf-on-primary: #ffffff;
    --bf-primary-hover: #5835e6;
    
    /* Secondary */
    --bf-secondary: #2E3192;
    --bf-on-secondary: #ffffff;
    
    /* Interactive */
    --bf-link: #6E4EFF;
    --bf-focus: #6E4EFF;
    
    /* States */
    --bf-disabled-bg: #e0e0e0;
    --bf-disabled-text: #9e9e9e;
    
    /* Image overlays (for text over images) */
    --bf-image-overlay: rgba(0, 0, 0, 0.5);
    --bf-on-image: #ffffff;
}

/* ===== LOADER STYLES (Applied immediately) ===== */
.beneficiate-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    border-radius: 20px;
}

.beneficiate-loader.hidden {
    display: none !important;
}

.beneficiate-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--beneficiate-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.beneficiate-loader-text {
    margin-top: 20px;
    font-size: 16px;
    color: var(--bf-text-muted);
    font-weight: 500;
}

/* ===== CONTENT HIDDEN WHILE LOADING ===== */
.beneficiate-content-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.beneficiate-content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@-webkit-keyframes breathing {
    0% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  
    100% {
      -webkit-transform: scale(1.1);
      transform: scale(1.1);
    }
  }

/* Floating button */

.beneficiate-floating-button{
    position: fixed;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    z-index: 9999;
}

.beneficiate-floating-button.hidden{
    transform: scale(0);
}

#beneficiate-logout{
    all: unset;
    width: 25px;
    padding: 0;
    height: 25px;
    position: absolute;
    right: 25px;
    cursor: pointer;
}

.beneficiate-floating-button .actioner{
    background-color: var(--beneficiate-button-color);
    border-radius: 100px;
    height: 70px;
    width: 70px;
}

.beneficiate-floating-button.not-logged .actioner{
    -webkit-animation: breathing 1s infinite alternate;
    animation: breathing 1s infinite alternate;
}

.beneficiate-floating-button .actioner img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.beneficiate-floating-button .floating-banner{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px 1px #cfcfcf;
    font-weight: bold;
}

.beneficiate-floating-button .floating-banner .close-button{
    all: unset;
    width: 15px;
    height: 15px;
    position: absolute;
    top: -10px;
    left: -25px;
    border-radius: 100px;
    background-color: var(--beneficiate-primary-color);
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.beneficiate-floating-button .floating-banner .close-button svg{
    width: 10px;
    height: 10px;
}

.beneficiate-floating-button .notification-badge{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #FF0404;
    width: 25px;
    border-radius: 100px;
    height: 25px;
    text-align: center;
    color: white;
    vertical-align: middle;
}

.beneficiate-floating .connection-line{
    position: absolute;
    width: 190px;
    height: 12px;
    top: calc(50% + 20px);
    translate: 0px -50%;
    left: 0;
    background-color: white;
}

.beneficiate-floating-button .notification-badge.active{
    display: block;
}

/* Modal */

.beneficiate-modal{
    width: 420px;
    height: fit-content;
    max-height: 90vh;
    background-color: var(--bf-bg);
    position: fixed;
    bottom: 72px;
    right: 10px;
    border-radius: 20px;
    box-shadow: 0px 2px 4px 3px rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default */
    /* Position relative for loader positioning */
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: var(--bf-text);
    height: 70vh;
    transition: all 0.3s ease-in-out;
    z-index: 999999;
}

.beneficiate-modal .beneficiate-page{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.beneficiate-modal .beneficiate-page::-webkit-scrollbar {
    width: 8px;
}
  
/* Track */
.beneficiate-modal .beneficiate-page::-webkit-scrollbar-track {
    background: var(--bf-surface-1);
    border-radius: 20px;
}
  
/* Handle */
.beneficiate-modal .beneficiate-page::-webkit-scrollbar-thumb {
    background-color: var(--bf-border);
    border-radius: 20px;
}
  
/* Handle on hover */
.beneficiate-modal .beneficiate-page::-webkit-scrollbar-thumb:hover {
    background: var(--bf-text-muted);
}

/* Header - always at top, fixed */
.beneficiate-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bf-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bf-border);
}

.ben-header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ben-header-logo img {
    max-height: 50px;
    width: auto;
}

/* Hide back button in home page */
#beneficiate-home .ben-header-back-button {
    display: none !important;
}

/* Page content - scrollable area with padding for header and footer */
.beneficiate-modal .beneficiate-page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.beneficiate-modal .beneficiate-page-content::-webkit-scrollbar {
    width: 8px;
}

.beneficiate-modal .beneficiate-page-content::-webkit-scrollbar-track {
    background: var(--bf-surface-1);
    border-radius: 20px;
}

.beneficiate-modal .beneficiate-page-content::-webkit-scrollbar-thumb {
    background-color: var(--bf-border);
    border-radius: 20px;
}

.beneficiate-modal .beneficiate-page-content::-webkit-scrollbar-thumb:hover {
    background: var(--bf-text-muted);
}

/* Modal footer - always at bottom, fixed */
.beneficiate-modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #d5ced2;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 0 0 20px 20px;
}

.ben-footer-text {
    font-size: 12px;
    color: var(--bf-text-muted);
    margin: 0;
}

.ben-footer-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ben-footer-logo:hover {
    opacity: 0.8;
}

.ben-footer-brand {
    font-size: 12px;
    color: #10215c;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ben-footer-brand:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.beneficiate-modal.active{
    display: flex; /* Show modal when active */
}

.beneficiate-modal .modal-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.beneficiate-modal a{
    color: var(--beneficiate-secondary-color) !important;
    text-decoration: none !important;
}

.beneficiate-modal .modal-header{
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: background-color 0.3s;
    background-color: var(--beneficiate-primary-color);
}

.beneficiate-modal .modal-header.success{
    background-color: #3abf38ba;
}

.beneficiate-modal .modal-header.error{
    background-color: #FB6A6Aba;
}

.beneficiate-modal .modal-header .action-button{
    height: 40px;
    transition: transform 0.15s ease-out;
    display: flex;
}

.beneficiate-modal .modal-header .action-button:hover{
    cursor: pointer;
    transform: scale(1.05);
}

.beneficiate-modal .modal-header .action-button img{
    width: 40px;
    height: 40px;
    padding: 5px;
    background-color: white;
    border-radius: 100px;
    object-fit: contain;
}

.beneficiate-modal .modal-header .action-button svg{
    fill: var(--beneficiate-secondary-color);
    width: 20px;
}

.beneficiate-modal .modal-header .action-button.back-button{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.beneficiate-modal .modal-footer, .beneficiate-modal .modal-header, .beneficiate-modal .modal-content{
    z-index: 1;
}

.beneficiate-modal .modal-content{
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.beneficiate-modal .beneficiate-bg-pattern{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s;
}

.beneficiate-modal .beneficiate-header .beneficiate-bg-pattern{
    opacity: 1;
}

.beneficiate-modal .beneficiate-bg-pattern.hide{
    opacity: 0;
}

.beneficiate-modal .beneficiate-header{
    width: 100%;
    padding-top: 50px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    clip-path: circle(100% at 50% -20%);
}

.beneficiate-modal .beneficiate-header.simple{
    clip-path: unset;
}

.beneficiate-modal .beneficiate-header *, .beneficiate-modal .beneficiate-profile-header *{
    z-index: 1;
}

.beneficiate-modal .beneficiate-header .hero-image{
    width: 80%;
}

.beneficiate-modal .beneficiate-header.simple .hero-image{
    width: 50%;
}

.beneficiate-modal .beneficiate-header:not(.simple)::before, .beneficiate-modal .beneficiate-profile-header::before{
    content: '';
    background-color: var(--beneficiate-primary-color);
    width: 100%;
    position: absolute;
    height: 100%;
    top: 0;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.beneficiate-modal .modal-content h2{
    all: unset;
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5rem;
    margin-bottom: 0.75rem;
}

.beneficiate-modal .modal-content p{
    all: unset;
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4rem;  
    margin-bottom: 0.4rem;
}

.beneficiate-modal .modal-content button:not(.ben-header-back-button):not(.ben-header-close-button):not(.password-toggle){
    all: unset;
    background-color: var(--bf-primary);
    color: var(--bf-on-primary);
    padding: 10px 40px;
    border-radius: 10px;
    text-align: center;
    display: block;
    margin-top: 1rem;
    transition: transform 0.15s ease-out, background-color 0.2s ease;
    font-size: 14px;
    font-weight: 300;
}

.beneficiate-modal .modal-content button.secondary:not(.ben-header-back-button):not(.ben-header-close-button):not(.password-toggle){
    background-color: var(--bf-secondary);
    color: var(--bf-on-secondary);
}

.beneficiate-modal .modal-content button:hover:not(.ben-header-back-button):not(.ben-header-close-button):not(.password-toggle):not(:disabled){
    background-color: var(--bf-primary-hover);
    transform: scale(1.05);
    cursor: pointer;
}

.beneficiate-modal .modal-content button.fullwidth:not(.ben-header-back-button):not(.ben-header-close-button):not(.password-toggle){
    width: -webkit-fill-available;
    padding: 10px 0px;
    margin: 0;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Header buttons - solo SVG, sin fondo ni padding */
.beneficiate-modal-header .ben-header-back-button,
.beneficiate-modal-header .ben-header-close-button {
    all: unset;
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.beneficiate-modal-header .ben-header-back-button svg,
.beneficiate-modal-header .ben-header-close-button svg {
    display: block;
}

.beneficiate-modal .modal-content .auxiliar{
    display: block;
    text-align: center;
    margin: auto;
    margin-top: 0.75rem;
    background: none;
    color: var(--beneficiate-secondary-color);
    padding: 0;
    font-size: 14px;
    font-weight: 300;
}

.beneficiate-modal .modal-content .auxiliar .auxiliar{
    display: inline-block;
    margin-left: 5px;
    margin-right: 5px;
}

.beneficiate-modal .modal-content .steps-indicator-container{
    margin: auto;
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.beneficiate-modal .modal-content .steps-indicator-container .step{
    width: 12px;
    height: 12px;
    background-color: var(--beneficiate-primary-color);
    border-radius: 100%;
}

.beneficiate-modal .modal-content .steps-indicator-container .step.current{
    width: 40px;
    border-radius: 20px;
    background-color: var(--beneficiate-secondary-color);
}

.beneficiate-modal .modal-content .input-field{
    all: unset;
    border-radius: 12px;
    width: -webkit-fill-available;
    padding: 10px 14px;
    color: var(--bf-on-surface-2);
    box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--bf-border);
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 0.75rem;
    background-color: var(--bf-surface-2);
}

.beneficiate-modal .modal-content .input-field.phone{
    padding-left: 85px;
}

.beneficiate-modal .modal-content .input-field::placeholder{
    color: var(--bf-text-muted);
}

.beneficiate-modal .modal-content .password-container {
    position: relative;
    width: 100%;
}

.beneficiate-modal .modal-content .phone-container {
    position: relative;
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Country code selector */
.beneficiate-modal .modal-content .country-code-select {
    all: unset;
    border-radius: 12px;
    padding: 10px 8px;
    color: var(--beneficiate-secondary-color);
    box-shadow: 0px 3px 9px 0px #c7c7c7 !important;
    font-size: 14px;
    font-weight: 300;
    background-color: white;
    cursor: pointer;
    min-width: 90px;
    max-width: 110px;
    display: flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 28px;
}

.beneficiate-modal .modal-content .country-code-select:hover {
    box-shadow: 0px 4px 12px 0px #b0b0b0 !important;
}

.beneficiate-modal .modal-content .country-code-select:focus {
    outline: 2px solid var(--bf-focus);
    outline-offset: 2px;
}

/* Phone input adjusted */
.beneficiate-modal .modal-content .phone-input {
    flex: 1;
    margin-bottom: 0 !important;
}

/* ===== FOCUS STATES (Accessibility) ===== */
.beneficiate-modal .input-field:focus,
.beneficiate-modal input:focus,
.beneficiate-modal select:focus,
.beneficiate-modal textarea:focus {
    outline: 2px solid var(--bf-focus);
    outline-offset: 2px;
}

.beneficiate-modal button:focus-visible {
    outline: 2px solid var(--bf-focus);
    outline-offset: 2px;
}

.beneficiate-modal .modal-content .password-toggle {
    all: unset;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: calc(50% - 0.5rem);
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beneficiate-secondary-color);
    width: auto;
    height: auto;
}

.beneficiate-modal .modal-content .phone-identifier{
    position: absolute;
    top: calc(50% - 0.5rem);
    left: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--beneficiate-secondary-color);
}

.beneficiate-modal .modal-content .phone-identifier img{
    height: 25px;
}

.beneficiate-modal .modal-content .country-select-container{
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 0.5rem));
    opacity: 0;
}

.beneficiate-modal .modal-content .country-select-container select{
    padding: 6px !important;
}

.beneficiate-modal .modal-content .password-container .icon{
    display: none;
}

.beneficiate-modal .modal-content .password-container.visible .visible{
    display: block;
}
.beneficiate-modal .modal-content .password-container:not(.visible) .invisible{
    display: block;
}

.beneficiate-modal .modal-content .password-toggle img,
.beneficiate-modal .modal-content .password-toggle svg{
    width: 20px;
    height: 20px;
    color: var(--beneficiate-secondary-color);
}

.beneficiate-modal .modal-content .password-toggle svg path,
.beneficiate-modal .modal-content .password-toggle svg circle{
    stroke: var(--beneficiate-secondary-color);
}

.beneficiate-modal .modal-content label{
    display: flex ;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: 300;
}

.beneficiate-modal .modal-content .input-container{
    position: relative;
    margin-bottom: 1.5rem;
}

.beneficiate-modal .modal-content .input-field:valid + label{
    top: -15px;
    left: 0;
    color: var(--beneficiate-text-color);
    font-size: 0.8rem;
}

.beneficiate-modal .modal-content .input-container label{
    position: absolute;
    left: 20px;
    top: calc(50% - 0.5rem);
    pointer-events: none;
    transition: 0.2s;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

.beneficiate-modal .modal-content .section-header{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    color: var(--beneficiate-text-color);
    font-weight: bold;
}

.beneficiate-modal .modal-content .section-header img{
    width: 30px;
}

.beneficiate-modal .modal-content .faq-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #D9D9D9;
    border-radius: 30px;
    color: var(--beneficiate-text-color);
    padding: 20px;
    line-height: 2rem;
    padding: 5px 20px;
    cursor: pointer;
}

.beneficiate-modal .modal-content .section-container{
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 2rem;
}

.beneficiate-modal .modal-content .faq-item span{
    text-align: center;
    font-weight: bold;
}

.beneficiate-modal .modal-content .faq-item p{
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.5rem;
    transition: all 0.5s;
    height: 0px;
    margin: 0px;
}

.beneficiate-modal .modal-content .profile-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.beneficiate-modal .modal-content .profile-container .profile-badge{
    width: 50px;
    height: 50px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    text-transform: uppercase;
    min-width: 50px;
}

.beneficiate-modal .modal-content .profile-container .profile-badge img{
    width: 70px;
}

.beneficiate-modal .modal-content .profile-container .profile-info{
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    color: white;
}

.beneficiate-modal .modal-content .profile-container .profile-name{
    font-size: 1.7rem;
    line-height: 1.5rem;
}

.beneficiate-modal .modal-content .profile-container .greetings{
    font-size: 0.9rem;
    line-height: 1rem;
}

.beneficiate-modal .modal-content .beneficiate-profile-header{
    width: 100%;
    padding-top: 80px;
    display: flex;
    justify-content: center;
    clip-path: circle(200% at 50% -235%);
    margin-bottom: 70px;
}

.beneficiate-modal .modal-content #beneficiate-profile .beneficiate-profile-header{
    margin-bottom: 50px;
}

.beneficiate-modal .modal-content .points-container{
    display: flex;
    gap: 20px;
    margin-top: -50px;
    color: white;
}

.beneficiate-modal .modal-content .points-container .points-badge{
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.beneficiate-modal .modal-content .points-container .points-badge img{
    height: 100%;
    object-fit: cover;
}

.beneficiate-modal .modal-content .points-container .points-indicator{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.5rem;
}

.beneficiate-modal .modal-content .points-container .points-value{
    font-size: 2rem;
}

.beneficiate-modal .modal-content .points-container .level-container{
    display: flex;
    align-content: end;
    align-items: flex-end;
}

.beneficiate-modal .modal-content .section-arrow{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.beneficiate-modal .modal-content .home-section{
    position: relative;
    overflow: hidden;
    padding: 20px;
    color: white;
    z-index: 1;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.beneficiate-modal .modal-content .home-section:before{
    content: '';
    background-color: var(--beneficiate-primary-color);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.8;
}

.beneficiate-modal .modal-content .home-section *{
    z-index: 1;
    position: relative;
}

.beneficiate-modal .modal-content .home-section .toggle-container{
    display: flex;
}

.beneficiate-modal .modal-content .home-section .toggle-container span{
    width: 100%;
    text-align: center;
}

.beneficiate-modal .modal-content .home-subsection-container{
    display: flex;
    justify-content: space-between;
}

.beneficiate-modal .modal-content .home-section-header{
    display: flex;
}

.beneficiate-modal .modal-content .home-section-header{
    font-size: 1rem;
}

.beneficiate-modal .modal-content .home-section-header .referrals{
    font-size: 0.7rem;
    display: block;
}

.beneficiate-modal .modal-content .home-section p{
    text-align: left;
    line-height: 1rem;
    font-size: 0.7rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.beneficiate-modal .modal-content .referral-code-container{
    display: flex;
    border: 2px solid white;
    border-radius: 15px;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
}

.beneficiate-modal .modal-content .referral-code-container .copy-btn{
    all: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    cursor: pointer;
}

.beneficiate-modal .modal-content .referral-code-container .copy-btn svg{
    height: 20px;
}

.beneficiate-modal .modal-content .referral-code-container .referral-code{
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
}

.beneficiate-modal .modal-content .share-code-container{
    display: flex;
    align-items: stretch;
    gap: 20px;
    font-size: 0.9rem;
}

.beneficiate-modal .modal-content .share-code-container .share-item{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: transform 0.3s;
    cursor: pointer;
    margin-top: 5px;
}

.beneficiate-modal .modal-content .share-code-container .share-item img{
    height: 25px;
    object-fit: scale-down;
}

.beneficiate-modal .modal-content .share-code-container .share-item:hover{
    transform: scale(1.1);
}

.beneficiate-modal .modal-content .redeem-container p{
    text-align: center;
    line-height: 1.5rem;
    font-size: 1.2rem;
    margin: 0;
}

.beneficiate-modal .modal-content .redeem-container input{
    all: unset;
    margin: auto;
    display: block;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
    font-size: 4rem;
    width: 100%;
}

.beneficiate-modal .modal-content .redeem-container input::placeholder{
    color: white;
    opacity: 0;
}

.beneficiate-modal .modal-content .redeem-container .notice{
    text-align: center;
    margin: 0;
    margin-bottom: 0.5rem;
}

.beneficiate-modal .modal-content button:disabled{
    background-color: var(--bf-disabled-bg) !important;
    color: var(--bf-disabled-text) !important;
    cursor: not-allowed;
    transform: scale(0.95) !important;
    opacity: 0.6;
}

.beneficiate-modal .modal-content button.fullwidth:disabled{
    background-color: var(--bf-disabled-bg) !important;
    color: var(--bf-disabled-text) !important;
}

.beneficiate-modal .modal-content .redeem-container input::-webkit-outer-spin-button,
.beneficiate-modal .modal-content .redeem-container input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.beneficiate-modal .modal-content .redeem-container input[type=number] {
  -moz-appearance: textfield;
}

.beneficiate-modal .modal-content .redeem-container .content{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.beneficiate-modal .modal-content .redeem-container.active .content{
    max-height: 1000px;
}

/* .beneficiate-modal .modal-content .redeem-container .toggle-container{
    max-height: 1000px;
    transition: max-height 0.3s;
    overflow: hidden;
}

.beneficiate-modal .modal-content .redeem-container.active .toggle-container{
    max-height: 0;
} */


.beneficiate-modal .modal-content .security-code-container{
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 20px;
    margin-bottom: 2rem;
}

.beneficiate-modal .modal-content .security-code-container input{
    all: unset;
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    border: 2px solid #dedede;
    border-radius: 10px;
    font-size: 1.5rem;
}

.beneficiate-modal .profile-progress{
    width: 100%;
    position: relative;
    height: 270px;
}

.beneficiate-modal .profile-level{
    position: absolute;
    left: 50%;
    translate: -50%;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    z-index: 2;
}

.beneficiate-modal .profile-level .profile-badge img {
    width: 100px;
}

.beneficiate-modal .profile-level .middle-point{
    margin-top: 15px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.beneficiate-modal .profile-level .middle-point div{
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border: 2px solid white;
    background-color: #DDBA64;
}

.beneficiate-modal .profile-level .points-indicator{
    margin-top: 15px;
    margin-bottom: 15px;
}

.beneficiate-modal .profile-level .level-indicator, .beneficiate-modal .profile-level .level-description{
    font-size: 12px;
    line-height: 12px;
}

.beneficiate-modal .profile-level.inactive{
    translate: unset;
    left: unset;
    right: unset;
}

.beneficiate-modal .profile-level.after{
    right: -10%;
}

.beneficiate-modal .profile-level.before{
    left: -10%;
}

.beneficiate-modal .profile-level.inactive .profile-badge, .beneficiate-modal .profile-level.inactive .level-name,
.beneficiate-modal .profile-level.inactive .points-indicator, .beneficiate-modal .profile-level.inactive .level-indicator,  
.beneficiate-modal .profile-level.inactive .level-description{
    scale: 0.7;
    translate: 0px -35px;
    filter: blur(2px);
}

.beneficiate-modal .connection-line{
    position: absolute;
    top: calc(50% + 20px);
    translate: 0px -50%;
    height: 10px;
    width: 190px;
    background-color: white;
}

.beneficiate-modal .connection-line.before{
    left: 0;
}

.beneficiate-modal .connection-line.after{
    right: 0;
}

.beneficiate-modal .connection-line.after_after{
    right: -50%;
}

.beneficiate-modal .connection-line.before_before{
    left: -50%;
}

.beneficiate-modal .connection-line div{
    background-color: wheat;
    height: 100%;
    width: 0;
}

.beneficiate-modal .connection-line.before_before div, .beneficiate-modal .connection-line.before div{
    width: 100%;
}

.beneficiate-modal .profile-level.inactive .profile-badge{
    translate: 0px 25px;
    filter: blur(3px);
}

.beneficiate-modal .profile-level.inactive .points-indicator{
    translate: 0px -20px;
}

.beneficiate-modal .profile-level.inactive .level-name{
    translate: 0px 0px;
}  

#beneficiate-profile .beneficiate-profile-header{
    clip-path: circle(200% at 50% -100%);
}

.beneficiate-modal .modal-content .security-code-container input::-webkit-outer-spin-button,
.beneficiate-modal .modal-content .security-code-container input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.beneficiate-modal .modal-content .security-code-container input {
  -moz-appearance: textfield;
}


.beneficiate-modal .modal-content .options-container .option{
    display: flex;
    gap: 20px;
    border-bottom: 1.5px solid white;
    padding: 10px;
}

.beneficiate-modal .modal-content .options-container .option img{
    width: 20px;
}

.beneficiate-modal .modal-content .options-container .option .content{
    display: flex;
    flex-direction: column;
}

.beneficiate-modal .modal-content .options-container .option .content .description{
    color: var(--beneficiate-text-color);
    line-height: 1rem;
    font-weight: bold;
}

.beneficiate-modal .modal-content .beneficiate-banner{
    overflow: hidden;
    border-radius: 20px;
}

.beneficiate-modal .modal-content .beneficiate-banner img{
    width: 100%;
}

@media (min-width: 1024px) and (max-height: 1024px) {
    .beneficiate-modal{
        height: calc(100vh - 120px);
    }
}

@media (max-width: 1024px) {
    .beneficiate-modal{
        height: 100vh;
        top: 50px;
        left: 0;
        max-height: calc(100vh - 150px);
        width: 87vw !important;
        margin: auto;
    }

    .beneficiate-modal .modal-content .beneficiate-profile-header{
        clip-path: circle(200% at 50% -200%);
    }
}

.beneficiate-modal .horizontal-arrow{
    padding-right: 25px !important;
    padding-left: 15px !important;
}

.beneficiate-modal .horizontal-arrow .section-arrow{
    position: absolute;
    top: 50%;
    transform: translate(0px, -50%);
    right: 10px;
}

.beneficiate-modal .clickable, #beneficiate-logout{
    cursor: pointer;
    transition: transform 0.3s;
}

.beneficiate-modal .clickable:hover, #beneficiate-logout:hover{
    transform: scale(1.05);
}

/* Welcome Landing Styles */
.beneficiate-welcome-register {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 80px;
}

.beneficiate-welcome-banner {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
}

.beneficiate-welcome-banner.is-hidden {
    display: none;
}

.beneficiate-welcome-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.beneficiate-welcome-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 10px;
}

.beneficiate-welcome-tag {
    all: unset;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--beneficiate-secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

#beneficiate-benefit-title {
    all: unset;
    display: block;
    text-align: center;
    font-size: 2.4rem;
    line-height: 3rem;
    font-weight: bold;
    color: var(--bf-text);
    margin-bottom: 1rem;
}

.beneficiate-benefit-subtitle {
    all: unset;
    display: block;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8rem;
    color: var(--beneficiate-text-color);
    margin-bottom: 2rem;
}

.beneficiate-primary-button {
    all: unset;
    background-color: var(--beneficiate-button-color);
    color: white;
    padding: 16px 60px;
    border-radius: 12px;
    text-align: center;
    margin: auto;
    display: block;
    margin-top: 0;
    margin-bottom: 1rem;
    transition: transform 0.15s ease-out;
    font-weight: 600;
    cursor: pointer;
    width: calc(100% - 40px);
    max-width: 300px;
}

.beneficiate-primary-button:hover {
    transform: scale(1.05);
}

.beneficiate-link-button {
    all: unset;
    display: block;
    text-align: center;
    margin: auto;
    margin-top: 0.5rem;
    background: none;
    color: var(--bf-link);
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.15s ease-out;
}

.beneficiate-link-button:hover {
    opacity: 0.8;
}

/* Login page buttons */
.beneficiate-cancel-btn {
    all: unset;
    background-color: var(--bf-surface-1);
    color: var(--bf-on-surface-1);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--bf-border);
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.beneficiate-cancel-btn:hover {
    background-color: var(--bf-surface-2);
}

.beneficiate-confirm-btn {
    all: unset;
    background-color: var(--bf-primary);
    color: var(--bf-on-primary);
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.beneficiate-confirm-btn:hover {
    background-color: var(--bf-primary-hover);
    opacity: 0.9;
}

.beneficiate-google-btn {
    all: unset;
    background-color: var(--bf-surface-1);
    color: var(--bf-on-surface-1);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--bf-border);
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.beneficiate-google-btn:hover {
    background-color: #e8e8e8;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .beneficiate-welcome-register {
        flex-direction: column;
        padding-top: 60px;
    }
    
    .beneficiate-welcome-banner {
        margin-bottom: 1.5rem;
        order: 1;
    }
    
    .beneficiate-welcome-content {
        order: 2;
    }
    
    #beneficiate-benefit-title {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    .beneficiate-benefit-subtitle {
        font-size: 1rem;
        line-height: 1.6rem;
    }
    
    .beneficiate-primary-button {
        width: calc(100% - 20px);
    }
}

/* New Home Styles (based on widget.js) */
.beneficiate-page .ben-user-section {
    border-radius: 12px;
    padding: 20px;
    margin: 0 16px 16px 16px;
    text-align: left;
}

.beneficiate-page .ben-user-greeting {
    font-size: 23px;
    font-weight: bold;
    color: #333;
    margin: 0 0 4px 0;
}

.beneficiate-page .ben-user-subtitle {
    font-size: 14px;
    color: var(--bf-text-muted);
    margin: 0;
}

.beneficiate-page .ben-points-section {
    background: var(--beneficiate-primary-color);
    border-radius: 12px;
    padding: 20px 20px 20px 53px;
    margin: 0 16px 16px 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beneficiate-page .ben-points-content {
    flex: 1;
}

.beneficiate-page .ben-points-number {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0 0 4px 0;
    display: block;
}

.beneficiate-page .ben-points-label {
    font-size: 24px;
    color: white;
    margin: 0;
}

.beneficiate-page .ben-points-icon {
    font-size: 32px;
    color: #ffd700;
    align-self: center;
}

.beneficiate-page .ben-canjear-btn {
    background: #e0bf8a;
    color: black;
    border: none;
    padding: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    width: calc(100% - 32px);
    height: 42px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0 16px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.beneficiate-page .ben-canjear-btn:hover {
    background: #d4b07a;
}

.beneficiate-page .ben-canjear-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.beneficiate-page .ben-cupones-btn {
    background: white;
    color: black;
    border: 2px solid #333;
    padding: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    width: calc(100% - 32px);
    height: 42px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 16px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.beneficiate-page .ben-cupones-btn:hover {
    background: #f5f5f5;
    border-color: #000;
}

.beneficiate-page .ben-cupones-btn:disabled {
    background: #f0f0f0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Banner styles */
.beneficiate-page .ben-banner-container {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 0;
    overflow: hidden;
}

.beneficiate-page .ben-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0;
    transition: opacity 0.5s ease-in-out;
}

.beneficiate-page .ben-banner.fade-out {
    opacity: 0;
}

.beneficiate-page .ben-banner.fade-in {
    opacity: 1;
}

/* Cursor pointer utility */
.ben-cursor-pointer {
    cursor: pointer !important;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .beneficiate-page .ben-user-section {
        padding: 15px;
        margin: 0 12px 12px 12px;
    }
    
    .beneficiate-page .ben-points-section {
        padding: 15px 15px 15px 40px;
        margin: 0 12px 12px 12px;
    }
    
    .beneficiate-page .ben-canjear-btn,
    .beneficiate-page .ben-cupones-btn {
        width: calc(100% - 24px);
        margin: 0 12px 12px 12px;
    }
    
    .beneficiate-page .ben-banner {
        width: 100%;
        height: 100px;
        margin: 0 0;
    }
    
    .beneficiate-page .ben-banner-container {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .beneficiate-page .ben-user-greeting {
        font-size: 20px;
    }
    
    .beneficiate-page .ben-points-number {
        font-size: 20px;
    }
    
    .beneficiate-page .ben-points-label {
        font-size: 20px;
    }
    
    .beneficiate-page .ben-banner {
        height: 80px;
    }
    
    .beneficiate-page .ben-banner-container {
        height: 80px;
    }
}

.beneficiate-page .ben-banner {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 0 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.beneficiate-page .ben-banner.is-hidden {
    display: none;
}

/* ===== TEXT OVER IMAGES (Overlay for legibility) ===== */
/* Use these classes when you need to display text over banner images */
.ben-image-overlay {
    position: relative;
}

.ben-image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bf-image-overlay);
    pointer-events: none;
    border-radius: inherit;
}

.ben-text-over-image {
    position: relative;
    z-index: 1;
    color: var(--bf-on-image) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Modal header logo (for home view) */
.beneficiate-modal .modal-header .ben-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto;
}

.beneficiate-modal .modal-header.main-view {
    justify-content: center;
}

.beneficiate-modal .modal-header.main-view .ben-logo {
    width: 120px;
    height: 60px;
    margin: 0;
}