/* Frontend Styles for Direct Recharge Client Connector - 100% White Label */

/* Contenedor Principal de Recarga */
.dr-id-checker-container {
    margin: 16px 0 20px 0;
    clear: both;
    width: 100%;
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Encabezado del Bloque */
.dr-header-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.dr-header-icon {
    font-size: 18px;
    color: #3b82f6;
}

.dr-header-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* Grupos de Entradas */
.dr-input-group {
    margin-bottom: 12px;
}

.dr-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
    font-size: 13px;
}

.dr-required {
    color: #ef4444;
    font-weight: bold;
}

.dr-player-id-field {
    width: 100%;
    max-width: 420px;
    padding: 9px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    display: block;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dr-player-id-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Botón de Verificación */
.dr-verify-actions {
    margin-top: 10px;
    margin-bottom: 8px;
}

.dr-verify-btn {
    height: 40px;
    padding: 0 20px;
    font-weight: 600;
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

.dr-verify-btn:hover:not(:disabled) {
    background-color: #0f172a !important;
}

.dr-verify-btn:disabled,
.dr-verify-btn.dr-loading {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* Badges de Estado */
.dr-status-msg {
    margin-top: 10px;
}

.dr-badge {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: block;
    line-height: 1.4;
}

.dr-badge-success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.dr-badge-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.dr-badge-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.dr-player-name-verified {
    font-weight: 700;
    color: #15803d;
    text-decoration: underline;
}

/* Bloqueo visual suave en botón de agregar al carrito */
button.single_add_to_cart_button.dr-blocked-cart {
    opacity: 0.55 !important;
    transition: opacity 0.2s ease !important;
}

/* =========================================================================
   Tarjeta de Jugador en Carrito y Checkout
   ========================================================================= */
.dr-player-inline-card {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 5px 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    margin-top: 4px !important;
}

.dr-player-inline-card:hover {
    border-color: #94a3b8 !important;
}

.dr-badge-status {
    width: 8px !important;
    height: 8px !important;
    background-color: #10b981 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.dr-player-inline-card .dr-player-name {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.dr-vertical-divider {
    width: 1px !important;
    height: 12px !important;
    background-color: #e2e8f0 !important;
    display: inline-block !important;
}

.dr-uid-group {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.dr-player-inline-card .dr-player-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
}

.dr-player-inline-card .dr-player-uid {
    font-family: monospace !important;
    font-size: 12px !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

/* =========================================================================
   On-Page Quick Checkout (⚡ Pagar Ahora)
   ========================================================================= */
.dr-quick-checkout-wrapper {
    margin-top: 14px;
    clear: both;
}

/* Modo Exclusivo: Ocultar Carrito y Cantidades en Recargas */
.dr-onpage-only-active .quantity,
.dr-onpage-only-active .single_add_to_cart_button,
form.cart.dr-onpage-only-active .quantity,
form.cart.dr-onpage-only-active .single_add_to_cart_button,
.dr-id-checker-container.dr-onpage-only-active ~ .single_add_to_cart_button,
.dr-id-checker-container.dr-onpage-only-active ~ .quantity {
    display: none !important;
}

/* Botón Destacado Pagar Ahora */
.dr-quick-checkout-btn {
    width: 100% !important;
    max-width: 420px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.dr-onpage-only-active .dr-quick-checkout-btn,
form.cart.dr-onpage-only-active .dr-quick-checkout-btn {
    max-width: 100% !important;
    height: 48px !important;
    font-size: 15px !important;
}

.dr-quick-checkout-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35) !important;
    transform: translateY(-1px) !important;
}

.dr-quick-checkout-btn:active:not(:disabled) {
    transform: translateY(0) !important;
}

.dr-quick-checkout-btn:disabled,
.dr-quick-checkout-btn.dr-loading {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
}

.dr-qc-btn-icon {
    font-size: 17px;
}

/* Acordeón Desplegable de Checkout */
.dr-quick-checkout-accordion {
    margin-top: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.dr-qc-loading {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.dr-qc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: dr-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes dr-spin {
    to { transform: rotate(360deg); }
}

/* Resumen del Pedido dentro del Acordeón */
.dr-qc-order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.dr-qc-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}

.dr-qc-summary-item:last-child {
    margin-bottom: 0;
}

.dr-qc-summary-label {
    font-weight: 500;
}

.dr-qc-summary-val {
    font-weight: 600;
    color: #0f172a;
}

.dr-qc-total-row {
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
    margin-top: 8px;
}

.dr-qc-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

/* Grupo de Email */
.dr-qc-email-group {
    margin-bottom: 16px;
}

.dr-qc-email-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
    font-size: 13px;
}

.dr-qc-input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 9px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.dr-qc-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Selector de Pasarelas de Pago */
.dr-qc-payment-gateways {
    margin-bottom: 18px;
}

.dr-qc-section-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.dr-qc-gateways-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dr-qc-gateway-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px !important;
    padding: 10px 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dr-qc-gateway-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dr-qc-gateway-item.active {
    border-color: #3b82f6;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #3b82f6;
}

.dr-qc-gateway-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: 100% !important;
}

.dr-qc-gateway-radio {
    margin: 0 !important;
    cursor: pointer !important;
    width: 16px !important;
    height: 16px !important;
}

.dr-qc-gateway-info {
    flex: 1;
}

.dr-qc-gateway-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dr-qc-gateway-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.dr-qc-gateway-icon img {
    max-height: 24px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.dr-qc-payment-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.dr-qc-payment-box p {
    margin: 0 0 6px 0;
}

/* Botón de Confirmar y Pagar */
.dr-qc-actions {
    margin-top: 16px;
}

.dr-qc-submit-btn {
    width: 100% !important;
    height: 46px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.dr-qc-submit-btn:hover:not(:disabled) {
    background: #059669 !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-1px) !important;
}

.dr-qc-submit-btn:active:not(:disabled) {
    transform: translateY(0) !important;
}

.dr-qc-submit-btn:disabled,
.dr-qc-submit-btn.dr-loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.dr-qc-submit-lock {
    font-size: 16px;
}

/* Mensajes de Checkout */
.dr-qc-messages {
    margin-top: 12px;
}

/* =========================================================================
   SHORTCODE 1: TOP JUGADORES POR DIAMANTES (Leaderboard Gamer)
   ========================================================================= */
.dr-leaderboard-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin: 20px 0;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dr-lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.dr-lb-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dr-lb-trophy {
    font-size: 28px;
    line-height: 1;
}

.dr-lb-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.dr-lb-subtitle {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

/* Tabs de Navegación */
.dr-lb-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 30px;
    gap: 4px;
}

.dr-lb-tab {
    background: transparent !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.dr-lb-tab:hover {
    color: #0f172a !important;
}

.dr-lb-tab.active {
    background: #1e293b !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
}

/* Lista de Jugadores */
.dr-lb-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dr-lb-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.dr-lb-item:hover {
    background-color: #f8fafc !important;
    transform: translateX(3px) !important;
}

/* Destacados del Podio */
.dr-lb-item.dr-rank-first {
    background: #fffdf5 !important;
    border-color: #fef3c7 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08) !important;
}

.dr-lb-item.dr-rank-second {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.dr-lb-item.dr-rank-third {
    background: #fffaf5 !important;
    border-color: #ffedd5 !important;
}

.dr-lb-col-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dr-lb-badge-rank {
    font-size: 16px;
    font-weight: 800;
    min-width: 28px;
    text-align: center;
    color: #64748b;
}

.dr-lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.dr-rank-first .dr-lb-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.dr-rank-second .dr-lb-avatar {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.dr-rank-third .dr-lb-avatar {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.dr-lb-player-info {
    display: flex;
    flex-direction: column;
}

.dr-lb-player-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.dr-lb-player-id {
    font-family: monospace;
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

/* Etiqueta de Diamantes */
.dr-lb-col-right {
    display: flex;
    align-items: center;
}

.dr-lb-diamonds-tag {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 20px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(4, 120, 87, 0.08);
}

.dr-lb-diamond-icon {
    font-size: 14px;
}

.dr-lb-diamond-num {
    font-weight: 800;
}

.dr-lb-diamond-label {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.9;
}

/* Estado Vacío */
.dr-lb-empty {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
}

.dr-lb-empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.8;
}

.dr-lb-empty-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

/* =========================================================================
   SHORTCODE 2: RECARGAS RECIENTES (Live Feed)
   ========================================================================= */
.dr-recent-recharges-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 20px 0;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dr-rr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.dr-rr-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dr-rr-icon {
    font-size: 20px;
    color: #eab308;
}

.dr-rr-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* Indicador En Vivo con Animación Pulso */
.dr-rr-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 14px;
}

.dr-rr-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: dr-live-pulse 1.6s infinite;
}

@keyframes dr-live-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.dr-rr-live-text {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista de Recargas Recientes */
.dr-rr-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dr-rr-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease !important;
}

.dr-rr-item:last-child {
    border-bottom: none !important;
}

.dr-rr-item:hover {
    background-color: #f8fafc !important;
    border-radius: 6px !important;
}

.dr-rr-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dr-rr-avatar {
    font-size: 18px;
}

.dr-rr-details {
    display: flex;
    flex-direction: column;
}

.dr-rr-user-line {
    font-size: 13px;
    color: #0f172a;
}

.dr-rr-username {
    font-weight: 700;
}

.dr-rr-playerid {
    font-family: monospace;
    font-size: 11px;
    color: #64748b;
    margin-left: 4px;
}

.dr-rr-product-line {
    font-size: 12px;
    color: #475569;
    margin-top: 1px;
}

.dr-rr-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.dr-rr-badge-delivered {
    font-size: 11px;
    font-weight: 600;
    color: #047857;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 12px;
}

.dr-rr-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Media Queries para Móviles */
@media (max-width: 600px) {
    .dr-lb-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dr-lb-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .dr-lb-tab {
        flex: 1;
        justify-content: center;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .dr-lb-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .dr-lb-col-right {
        align-self: flex-end;
    }

    .dr-rr-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
    }

    .dr-rr-item-meta {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
        margin-top: 4px;
    }
}


