/* ==========================================================================
   TIER-1 BACKUP CODES: VAULT TABLE & FULL GLASSMORPHIC MODAL
   ========================================================================== */

.mcb-backup-codes-page-container {
    width: 100% !important;
}

/* 1. Header Navigation */
.mcb-codes-nav-header {
    margin-bottom: 18px !important;
}

.mcb-codes-nav-header a.mcb-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #7c3aed !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.mcb-codes-nav-header a.mcb-back-link:hover {
    text-decoration: underline !important;
}

/* 2. Hero Vault Card */
.mcb-codes-hero-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 24px 26px !important;
    background: transparent !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

.mcb-codes-hero-left h3 {
    margin: 0 0 4px 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: inherit !important;
}

.mcb-codes-hero-left p {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.mcb-btn-go-generate {
    border-radius: 50px !important;
    background: #7c3aed !important;
    border: 1px solid #7c3aed !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 11px 22px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: inherit !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.mcb-btn-go-generate:hover {
    background: #6d28d9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45) !important;
}

.mcb-btn-go-generate svg {
    stroke: #ffffff !important;
}

/* 3. Tier-1 Backup Codes Table Card */
.mcb-vault-table-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 22px 24px !important;
    background: transparent !important;
    margin-bottom: 28px !important;
    box-sizing: border-box !important;
}

.mcb-vt-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
}

.mcb-vt-header h4 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: inherit !important;
}

.mcb-vault-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: transparent !important;
}

/* Purple Scrollbar */
.mcb-vault-table-wrapper::-webkit-scrollbar {
    height: 8px !important;
}

.mcb-vault-table-wrapper::-webkit-scrollbar-thumb {
    background: #7c3aed !important;
    border-radius: 8px !important;
}

table.mcb-vault-table {
    width: 100% !important;
    min-width: 820px !important;
    border-collapse: collapse !important;
    background: transparent !important;
    margin: 0 !important;
}

.mcb-vault-table th {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
    padding: 14px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-align: left !important;
    border: none !important;
}

.mcb-vault-table th:last-child {
    text-align: right !important;
}

.mcb-vault-table td {
    padding: 16px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    color: inherit !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.mcb-vault-table tr:last-child td {
    border-bottom: none !important;
}

/* Status Badges */
.mcb-badge-vault-active {
    background: #ecfdf5 !important;
    color: #047857 !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

.mcb-badge-vault-revoked {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

/* 4. TIER-1 FULL GLASSMORPHIC CONFIRMATION MODAL */
.mcb-sec-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(11, 15, 25, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 100000000 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.mcb-sec-modal-overlay.open {
    display: flex !important;
}

.mcb-sec-modal-box {
    background: #ffffff !important;
    border-radius: 18px !important;
    max-width: 460px !important;
    width: 100% !important;
    padding: 32px 28px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    position: relative !important;
    animation: mcbModalZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

@keyframes mcbModalZoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Circular Close Cross (X) in Top Right */
.mcb-modal-close-circle {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.mcb-modal-close-circle:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.mcb-modal-close-circle svg {
    stroke: currentColor !important;
}

/* Warning Icon Circle Badge */
.mcb-modal-icon-badge {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
}

.mcb-modal-icon-badge svg {
    stroke: #ef4444 !important;
}

.mcb-sec-modal-box h4 {
    margin: 0 0 8px 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.mcb-sec-modal-box p {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 0 24px 0 !important;
}

.mcb-modal-actions-row {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
}

.mcb-btn-modal-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    padding: 11px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: background 0.15s ease !important;
}

.mcb-btn-modal-cancel:hover {
    background: #e2e8f0 !important;
}

.mcb-btn-modal-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: background 0.15s ease !important;
}

.mcb-btn-modal-danger:hover {
    background: #dc2626 !important;
}

/* Toast */
.mcb-toast-notification {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
    z-index: 100000000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    transform: translateY(-30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mcb-toast-notification.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Mobile */
@media screen and (max-width: 850px) {
    .mcb-codes-hero-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mcb-btn-go-generate {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}