/* ==========================================================================
   BACKDATA.CSS - Estilos Generales y Específicos para Superadmin & Suscripciones
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Contenedores y Estructura Principal de Pagos
   -------------------------------------------------------------------------- */
.pay-main-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    clear: both;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

.pay-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.pay-header-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* --------------------------------------------------------------------------
   2. Paso 1: Tarjetas Selectoras de Métodos de Pago
   -------------------------------------------------------------------------- */
.pay-card-option {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 7px 17px 9px 18px;
    margin-bottom: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.pay-card-option:hover {
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.pay-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pay-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-card-desc {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    line-height: 0.9;
}

.pay-badges-container {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* Badges e Insignias */
.pay-badge {
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pay-badge-visa {
    background: #00579f;
    color: #ffffff;
    font-style: italic;
    font-weight: 900;
    font-size: 12px;
    min-width: 44px;
    letter-spacing: 0.5px;
}

.pay-badge-mc {
    background: #141414;
    min-width: 44px;
    padding: 2px 6px;
}

.mc-circle-red {
    width: 14px;
    height: 14px;
    background: #eb001b;
    border-radius: 50%;
    display: inline-block;
    margin-right: -6px;
}

.mc-circle-yellow {
    width: 14px;
    height: 14px;
    background: #f79e1b;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.95;
}

.pay-badge-breb {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4c1d95;
    font-weight: 800;
    font-size: 11px;
}

.pay-badge-more {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.pay-tooltip-popover {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #18181b;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.pay-tooltip-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    border-width: 5px;
    border-style: solid;
    border-color: #18181b transparent transparent transparent;
}

.pay-badge-more:hover .pay-tooltip-popover {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 6px;
    align-items: center;
}

.tooltip-logo-pill {
    background: #27272a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-method-icon-generic {
    font-size: 20px;
    color: #4a5568;
}

/* --------------------------------------------------------------------------
   3. Paso 2: Vista Detalle del Método de Pago
   -------------------------------------------------------------------------- */
.step2-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    margin-bottom: 16px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.step2-back-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.step2-card-container {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    display: block;
    width: 100%;
    clear: both;
    overflow: hidden;
    box-sizing: border-box;
}

.step2-header-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.step2-method-title {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

.step2-method-subtitle {
    color: #64748b;
    font-size: 13px;
}

.step2-security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
}

.gateway-view-panel {
    width: 100%;
    clear: both;
    display: block;
}

/* --------------------------------------------------------------------------
   4. Formularios de Pasarelas y Campos Generales
   -------------------------------------------------------------------------- */
.superadmin-form-wrapper {
    width: 100%;
    clear: both;
}

.superadmin-payment-form {
    margin: 0 auto;
}

.bold-form-group {
    margin-bottom: 14px;
}

.bold-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    display: block;
}

.bold-form-control {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.bold-form-control-mono {
    font-family: monospace;
    letter-spacing: 1px;
}

.bold-form-control-center {
    text-align: center;
}

.bold-form-control-upper {
    text-transform: uppercase;
}

.bold-input-relative {
    position: relative;
}

.bold-input-icon-right {
    position: absolute;
    right: 12px;
    top: 14px;
    font-size: 16px;
}

.bold-input-icon-blue {
    color: #2563eb;
}

.bold-input-icon-gray {
    color: #94a3b8;
}

.bold-input-padding-right-40 {
    padding-right: 40px;
}

.bold-input-padding-right-36 {
    padding-right: 36px;
}

.bold-form-error {
    color: #dc2626;
    display: none;
    font-size: 11px;
    margin-top: 2px;
}

.bold-info-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.bold-btn-submit {
    height: 48px;
    border-radius: 8px;
    font-weight: 700;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bold-btn-submit:hover {
    background-color: #1e293b;
    color: #ffffff;
}

.bold-btn-nequi {
    background-color: #200020;
    border-color: #200020;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(32, 0, 32, 0.2);
}

.bold-btn-nequi:hover {
    background-color: #330033;
    color: #ffffff;
}

.pay-btn-paypal {
    background: #0070ba;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    transition: all 0.2s ease;
}

.pay-btn-paypal:hover {
    background: #005ea6;
    color: #ffffff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Estilos Específicos por Pasarela
   -------------------------------------------------------------------------- */
/* QR Bre-B Oficial Card */

.breb-title {
    font-size: 19px;
    font-weight: 600;
    color: #0b1a48;
    margin: 0 0 14px 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.breb-amount-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.breb-amount-label {
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}

.breb-amount-value {
    font-size: 16px;
    color: #15803d;
    font-weight: 800;
}

.breb-layout-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .breb-layout-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.breb-qr-box {
    padding: 12px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.breb-qr-image {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.breb-instructions-container {
    flex: 1;
    min-width: 0;
}

.breb-instructions-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0b1a48;
    margin: 0 0 16px 0;
}

.breb-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.breb-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.breb-step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.breb-step-text {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.breb-timer-note {
    font-size: 13px;
    color: #475569;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.breb-timer-note strong {
    color: #0b1a48;
    font-weight: 800;
}

/* Bold Embedded Modal / Button */
.bold-embedded-header {
    margin-bottom: 20px;
    text-align: center;
}

.bold-shield-avatar {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bold-shield-icon {
    font-size: 26px;
    color: #2563eb;
}

.bold-embedded-desc {
    color: #475569;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.bold-ui-kit-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Offline / Transferencia */
.pay-offline-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}

.pay-offline-header {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

/* PayPal */
.pay-paypal-logo {
    height: 38px;
    margin-bottom: 12px;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   6. Resumen de Suscripción (Panel Derecho)
   -------------------------------------------------------------------------- */
.pay-summary-credit-item {
    line-height: 1.35;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   7. Modal de Espera y Validación en Tiempo Real (Webhook)
   -------------------------------------------------------------------------- */
.pay-modal-dialog {
    max-width: 480px;
    margin: 100px auto;
}

.pay-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pay-modal-body {
    padding: 36px 24px;
    text-align: center;
}

.pay-modal-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pay-modal-icon-waiting {
    background-color: #eff6ff;
}

.pay-modal-icon-waiting i {
    font-size: 36px;
    color: #2563eb;
}

.pay-modal-icon-success {
    background-color: #f0fdf4;
}

.pay-modal-icon-success i {
    font-size: 42px;
    color: #16a34a;
}

.pay-modal-icon-declined {
    background-color: #fef2f2;
}

.pay-modal-icon-declined i {
    font-size: 42px;
    color: #dc2626;
}

.pay-modal-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.pay-modal-text {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pay-modal-text-lg {
    margin-bottom: 24px;
}

.pay-modal-progress {
    height: 6px;
    border-radius: 3px;
    background-color: #e2e8f0;
    margin-bottom: 0;
}

.pay-modal-progress-bar {
    width: 100%;
    background-color: #2563eb;
}

.pay-modal-btn {
    border-radius: 8px;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   8. Snackbar de Validación de Pago en Tiempo Real (No bloqueante)
   -------------------------------------------------------------------------- */
.pay-snackbar {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #fff;
    color: #000;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 9999;
    max-width: 440px;
    border: 1px solid #c4c4c4;
    animation: snackbarSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes snackbarSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pay-snackbar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pay-snackbar-success .pay-snackbar-icon {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

.pay-snackbar-declined .pay-snackbar-icon {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.pay-snackbar-content {
    flex: 1;
    min-width: 0;
}

.pay-snackbar-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #454545;
}

.pay-snackbar-desc {
    font-size: 12px;
    color: #4f4f4f;
    margin: 0;
    line-height: 1.35;
}

.pay-snackbar-timer {
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    margin-top: 4px;
    font-family: monospace;
}

.pay-snackbar-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.pay-snackbar-close:hover {
    color: #ffffff;
}