﻿.bc-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: bcFadeIn 0.3s ease;
    padding: 24px;
    box-sizing: border-box;
}

.bc-modal {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 460px;
    height: auto;
    max-height: 90vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: bcPopup 0.3s ease;
}

/* ===== Header ===== */
.bc-header {
    background: #0d6dbf;
    color: #fff;
    padding: 12px 24px;
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.bc-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-header-title {
    font-size: 15px;
    font-weight: 600;
}

.bc-close-icon-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

    .bc-close-icon-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* ===== Step indicator ===== */
.bc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.bc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bc-step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-step.active .bc-step-circle {
    background: #ffb020;
    color: #1a1a1a;
}

.bc-step.done .bc-step-circle {
    background: #ffffff;
    color: #0d6dbf;
}

.bc-step-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.bc-step.active .bc-step-label,
.bc-step.done .bc-step-label {
    color: #fff;
}

.bc-step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: -16px;
}

/* ===== Body ===== */
.bc-body {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.bc-check-circle {
    margin-bottom: 14px;
}

.bc-title {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.bc-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
}

.bc-ref-card {
    width: 100%;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-sizing: border-box;
}

.bc-ref-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.bc-ref-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #0d6dbf;
    margin-bottom: 10px;
}

.bc-email-note {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.bc-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.bc-close-btn {
    flex: 1;
    padding: 11px;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .bc-close-btn:hover {
        background: #f1f2f4;
    }

.bc-download-btn {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #0d6dbf;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .bc-download-btn:hover {
        opacity: 0.9;
    }

@keyframes bcFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bcPopup {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
