/* NexoPlay V27 — estabilidad visual, modo oscuro y Centro Proveedor full-page */
:root{--nx27-dark:#071326;--nx27-dark2:#0b1930;--nx27-line:rgba(132,158,207,.18);--nx27-text:#eef5ff;--nx27-muted:#9aacc7}
body.nx27-provider-open{overflow:hidden!important}
.nx20-provider-bg{padding:0!important;align-items:stretch!important;justify-content:stretch!important;background:rgba(3,8,18,.94)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.nx20-provider-bg.open{display:block!important}
.nx20-provider-shell{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.nx20-provider-head{flex:0 0 auto;position:sticky;top:0;z-index:4}.nx20-provider-tabs{flex:0 0 auto;overflow-x:auto;scrollbar-width:none;white-space:nowrap;-webkit-overflow-scrolling:touch}.nx20-provider-tabs::-webkit-scrollbar{display:none}.nx20-provider-tabs button{min-height:42px;touch-action:manipulation}.nx20-provider-body{flex:1 1 auto;min-height:0;padding:18px clamp(12px,3vw,32px)!important}.nx20-grid-2{max-width:1380px;margin:0 auto;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)}
.nx20-btn,.nx20-provider-close,.nx22-order-actions button,.nx25-ticket-actions button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.nx20-btn:disabled{opacity:.5;cursor:not-allowed}
.nx27-upload{margin-top:8px}.nx27-upload .nx21-drop{min-height:132px}.nx27-upload .nx21-image-preview img{max-height:220px;object-fit:contain}

/* Soporte: contraste y controles */
body[data-nx-theme="dark"] .nx25-provider-chat,body[data-nx-theme="dark"] .nx25-support-grid .nx20-box,body[data-nx-theme="dark"] .nx20-ticket{background:#0b1930!important;color:#eef5ff!important;border-color:var(--nx27-line)!important}
body[data-nx-theme="dark"] .nx25-ticket-actions .nx20-btn,body[data-nx-theme="dark"] #supportModalBg button,body[data-nx-theme="dark"] .support-actions button{background:#132745!important;color:#eef5ff!important;border:1px solid rgba(139,164,211,.22)!important}
body[data-nx-theme="dark"] .nx25-ticket-actions .danger{background:rgba(239,68,68,.16)!important;color:#fecaca!important;border-color:rgba(239,68,68,.28)!important}
body[data-nx-theme="dark"] #nx20ProviderReply,body[data-nx-theme="dark"] .nx20-field input,body[data-nx-theme="dark"] .nx20-field textarea,body[data-nx-theme="dark"] .nx20-field select{background:#081528!important;color:#f2f7ff!important;border-color:rgba(139,164,211,.24)!important}
body[data-nx-theme="dark"] #nx20ProviderReply::placeholder,body[data-nx-theme="dark"] .nx20-field input::placeholder,body[data-nx-theme="dark"] .nx20-field textarea::placeholder{color:#788daa!important}

/* Dark mode: carrito, compras, perfil y wallet sin zonas blancas/grises ilegibles */
body[data-nx-theme="dark"] .cart-panel,body[data-nx-theme="dark"] .cart-item,body[data-nx-theme="dark"] .cart-extra,body[data-nx-theme="dark"] .cart-total-v2,body[data-nx-theme="dark"] .payment-box-v2,body[data-nx-theme="dark"] .payment-option,body[data-nx-theme="dark"] .wallet-modal,body[data-nx-theme="dark"] .wallet-panel,body[data-nx-theme="dark"] #purchasesModalBg .purchase-card,body[data-nx-theme="dark"] #purchasesModalBg .purchase-summary-item,body[data-nx-theme="dark"] #purchasesModalBg .pc-row,body[data-nx-theme="dark"] .nx5-profile-card,body[data-nx-theme="dark"] .nx5-stat,body[data-nx-theme="dark"] .nx5-info-card,body[data-nx-theme="dark"] .nx5-account-line{background:#0b1930!important;color:#eef5ff!important;border-color:rgba(135,160,207,.18)!important}
body[data-nx-theme="dark"] .cart-panel h3,body[data-nx-theme="dark"] .cart-item strong,body[data-nx-theme="dark"] .payment-option strong,body[data-nx-theme="dark"] #purchasesModalBg strong,body[data-nx-theme="dark"] #purchasesModalBg b,body[data-nx-theme="dark"] .nx5-profile-card h3,body[data-nx-theme="dark"] .nx5-profile-card h4{color:#f4f8ff!important}
body[data-nx-theme="dark"] .cart-item span,body[data-nx-theme="dark"] .cart-extra label,body[data-nx-theme="dark"] .payment-option span,body[data-nx-theme="dark"] #purchasesModalBg span,body[data-nx-theme="dark"] #purchasesModalBg small,body[data-nx-theme="dark"] .nx5-profile-card p,body[data-nx-theme="dark"] .nx5-profile-card small{color:#9eafc8!important}
body[data-nx-theme="dark"] .cart-panel input,body[data-nx-theme="dark"] .cart-panel textarea,body[data-nx-theme="dark"] .cart-panel select,body[data-nx-theme="dark"] .wallet-modal input,body[data-nx-theme="dark"] .wallet-modal select{background:#071427!important;color:#eef5ff!important;border-color:rgba(135,160,207,.22)!important}
body[data-nx-theme="dark"] .pc-copy,body[data-nx-theme="dark"] .purchase-help,body[data-nx-theme="dark"] .order-view-btn{color:#fff!important}

/* Nuevo panel comercial */
.nx27-commercial{display:grid;gap:14px}.nx27-commercial-note{padding:12px 14px;border-radius:14px;background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.16);font-size:10px;line-height:1.5}.nx27-rank-rule{display:grid;gap:12px}.nx27-rule-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.nx27-rule-head h4{margin:0 0 4px}.nx27-rule-head p{margin:0;font-size:10px;opacity:.7}.nx27-benefit-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.nx27-benefit-chips span{padding:6px 8px;border-radius:999px;background:rgba(99,102,241,.1);font-size:8px;font-weight:800}.nx27-rule-tools{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto;gap:8px}.nx27-rule-tools input{min-width:0;border:1px solid rgba(128,157,220,.2);border-radius:11px;padding:9px 10px;background:rgba(127,148,190,.06);color:inherit}.nx27-rule-tools button{border:0;border-radius:10px;padding:9px 11px;font-weight:850;cursor:pointer;background:rgba(127,148,190,.12);color:inherit}.nx27-rule-tools button.primary{background:linear-gradient(135deg,#6155ff,#16b5dc);color:#fff}.nx27-commercial-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:360px;overflow:auto;padding-right:4px}.nx27-commercial-row{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:12px;border:1px solid rgba(128,157,220,.13);background:rgba(127,148,190,.05);cursor:pointer}.nx27-commercial-row input{width:17px;height:17px;flex:0 0 auto}.nx27-commercial-row span{min-width:0;display:grid;gap:2px}.nx27-commercial-row b{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nx27-commercial-row small{font-size:7.5px;opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-nx-theme="dark"] .nx27-commercial-note,body[data-nx-theme="dark"] .nx27-rank-rule,body[data-nx-theme="dark"] .nx27-commercial-row{background:#0d1b33!important;color:#eef5ff!important;border-color:rgba(135,160,207,.17)!important}body[data-nx-theme="dark"] .nx27-rule-tools input,body[data-nx-theme="dark"] .nx27-rule-tools button{background:#10213d!important;color:#eef5ff!important;border-color:rgba(135,160,207,.2)!important}

/* Ofertas legacy no debe reaparecer aunque un archivo antiguo intente insertarla. */
a[href*="ofertas.html"],.category-chip[data-cat="offers"]{display:none!important}

@media(max-width:900px){.nx20-grid-2{grid-template-columns:1fr}.nx27-commercial-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.nx20-provider-body{padding:10px!important}.nx20-provider-head{padding:11px 12px!important}.nx20-provider-head p{display:none}.nx20-provider-tabs{padding:7px 9px!important}.nx20-provider-tabs button{padding:9px 10px!important}.nx20-box{padding:12px!important}.nx27-rule-head{display:grid}.nx27-benefit-chips{justify-content:flex-start}.nx27-rule-tools{grid-template-columns:1fr 1fr}.nx27-rule-tools input{grid-column:1/-1}.nx27-rule-tools button.primary{grid-column:1/-1}.nx27-commercial-products{grid-template-columns:1fr;max-height:330px}.nx22-provider-kpis{grid-template-columns:1fr 1fr!important}.nx20-provider-chat{min-height:calc(100dvh - 260px)!important}.nx25-provider-composer{position:sticky;bottom:0;background:inherit;padding-top:6px}}
@media(max-width:420px){.nx22-provider-kpis{grid-template-columns:1fr!important}.nx20-plan-main{grid-template-columns:minmax(0,1fr) 72px 58px 32px!important}.nx20-field input,.nx20-field textarea,.nx20-field select{font-size:16px!important}.nx27-upload .nx21-drop{min-height:116px}}
