/* Button Styles */
.bnf-button-wrapper {
    margin: 40px 0;
    text-align: center;
}

.bnf-btn {
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    outline: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* Style: Modern Gradient */
.bnf-style-gradient .bnf-btn,
.bnf-btn.bnf-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    color: white;
    box-shadow: 0 10px 20px -10px rgba(118, 75, 162, 0.5);
}

.bnf-style-gradient .bnf-btn:hover,
.bnf-btn.bnf-style-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(118, 75, 162, 0.6);
}

/* Style: Minimal Flat */
.bnf-style-minimal .bnf-btn,
.bnf-btn.bnf-style-minimal {
    background: #333;
    border-radius: 4px;
    color: white;
    border: 2px solid transparent;
}

.bnf-style-minimal .bnf-btn:hover,
.bnf-btn.bnf-style-minimal:hover {
    background: transparent;
    color: #333;
    border-color: #333;
}

/* Style: Neumorphism */
.bnf-style-neumorphism,
.bnf-modal.bnf-style-neumorphism .bnf-modal-content {
    background: #e0e5ec;
}

.bnf-style-neumorphism .bnf-btn,
.bnf-btn.bnf-style-neumorphism {
    background: #e0e5ec;
    border-radius: 50px;
    color: #6d7f95;
    box-shadow: 9px 9px 16px rgb(163, 177, 198, 0.6), -9px -9px 16px rgba(255, 255, 255, 0.5);
}

.bnf-style-neumorphism .bnf-btn:hover,
.bnf-btn.bnf-style-neumorphism:hover {
    box-shadow: inset 6px 6px 10px 0 rgba(163, 177, 198, 0.7),
        inset -6px -6px 10px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(0);
}

/* Style: Glassmorphism */
.bnf-style-glass .bnf-btn,
.bnf-btn.bnf-style-glass {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #333;
    font-weight: 700;
}

.bnf-style-glass .bnf-btn:hover,
.bnf-btn.bnf-style-glass:hover {
    background: rgba(255, 255, 255, 0.4);
}


/* Modal Styles */
.bnf-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bnf-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 50px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: bnf-fadeInUp 0.5s ease out forwards;
}

.bnf-modal.bnf-style-neumorphism .bnf-modal-content {
    background: #e0e5ec;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
}

@keyframes bnf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bnf-close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.bnf-close:hover {
    color: #333;
}

/* Loader */
.bnf-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #764ba2;
    border-radius: 50%;
    animation: bnf-spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes bnf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bnf-loading-text {
    font-size: 20px;
    color: #555;
    font-weight: 500;
}

/* Result Step */
#bnf-step-result h2 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

#bnf-step-result p {
    color: #718096;
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.6;
}

.bnf-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bnf-btn-primary {
    /* Inherits base styles, adds implementation specific */
}

.bnf-btn-secondary {
    background: transparent;
    border: 2px solid #764ba2;
    color: #764ba2;
    background: transparent;
    box-shadow: none;
}

.bnf-btn-secondary:hover {
    background: #764ba2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .bnf-modal-content {
        margin: 20% auto;
        padding: 30px;
    }
}