/**
 * B2 Credit Guardian - Frontend Styles
 */
.b2cg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2cg-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.b2cg-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: b2cgFadeIn 0.2s ease-out;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes b2cgFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.b2cg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.b2cg-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.b2cg-modal-title svg {
    color: #3b82f6;
}

.b2cg-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.b2cg-modal-close:hover {
    color: #0f172a;
}

.b2cg-modal-body {
    padding: 20px;
    text-align: center;
}

.b2cg-modal-tip {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.b2cg-turnstile-box {
    display: flex;
    justify-content: center;
    min-height: 65px;
    margin-bottom: 12px;
}

.b2cg-status-msg {
    font-size: 13px;
    min-height: 20px;
}

.b2cg-status-msg.b2cg-success {
    color: #10b981;
    font-weight: 500;
}

.b2cg-status-msg.b2cg-error {
    color: #ef4444;
    font-weight: 500;
}
