/* ============================================================
   ComBack - App Cliente (userapp) - CSS base
   Externalizado desde base.html. Cache-busted con ?v=asset_version.
   Bloques: 1) sistema de color + componentes  2) modal notif  3) modal cashback
   ============================================================ */

        /* ===== COMBACK COLOR SYSTEM ===== */
        :root {
            /* Brand - Morado ComBack */
            /* T37: paleta refrescada. Morado dominante (var(--cb-primary)) + magenta acento.
               El azul antiguo (var(--cb-support)) queda reservado para soporte/support. */
            /* Alias para compatibilidad con codigo viejo que usa --cb-orange */
            /* Color reservado para indicadores de soporte */

            /* Light theme (default) - T5: fondo mas oscuro/gris para que las
               cards blancas resalten con mejor contraste */
            --bg-primary: #E8E8EE;
            --bg-secondary: #FFFFFF;
            --bg-tertiary: #DEDEE5;
            --card-bg: #FFFFFF;
            --text-primary: #1D1D1F;
            --text-secondary: #717BA2;
            --text-tertiary: #B5B5BD;
            --border-color: #C8CADE;
            --nav-bg: #FFFFFF;
            --nav-border: #C8CADE;
            --nav-inactive: #717BA2;
            --shadow-sm: 0 1px 6px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
            --input-bg: #FFFFFF;
            --input-border: #C8CADE;
            --header-gradient-start: var(--cb-magenta-dark);
            --header-gradient-end: #9C27B0;
        }

        /* ===== DARK MODE =====
           T5: cards mas claras que el fondo negro para mejor diferenciacion
           en pantallas de baja calidad / mucha luz ambiental. */
        [data-theme="dark"] {
            --bg-primary: #000000;
            --bg-secondary: #2A2A2D;
            --bg-tertiary: #3A3A3D;
            --card-bg: #2A2A2D;
            --text-primary: #F5F5F7;
            --text-secondary: #B0B0B5;
            --text-tertiary: #7C7C82;
            --border-color: #4A4A4D;
            --nav-bg: #1C1C1E;
            --nav-border: #4A4A4D;
            --nav-inactive: #8A8A90;
            --shadow-sm: 0 1px 6px rgba(0,0,0,0.4);
            --shadow-md: 0 4px 20px rgba(0,0,0,0.55);
            --input-bg: #3A3A3D;
            --input-border: #4A4A4D;
            --header-gradient-start: #2a1840;
            --header-gradient-end: #4a1d6e;
        }

        /* Auto dark mode (sigue la preferencia del sistema) */
        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
                --bg-primary: #000000;
                --bg-secondary: #2A2A2D;
                --bg-tertiary: #3A3A3D;
                --card-bg: #2A2A2D;
                --text-primary: #F5F5F7;
                --text-secondary: #B0B0B5;
                --text-tertiary: #7C7C82;
                --border-color: #4A4A4D;
                --nav-bg: #1C1C1E;
                --nav-border: #4A4A4D;
                --nav-inactive: #8A8A90;
                --shadow-sm: 0 1px 6px rgba(0,0,0,0.4);
                --shadow-md: 0 4px 20px rgba(0,0,0,0.55);
                --input-bg: #3A3A3D;
                --input-border: #4A4A4D;
                --header-gradient-start: #2a1840;
                --header-gradient-end: #4a1d6e;
            }
        }

        * { margin:0; padding:0; box-sizing:border-box; }
        body {
            font-family: 'Inter', -apple-system, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            -webkit-font-smoothing: antialiased;
            padding-bottom: 70px;
            min-height: 100vh;
            transition: background 0.3s, color 0.3s;
        }
        /* Paginas de autenticacion: sin bottom-nav -> quitamos su espacio reservado */
        body.cb-auth-page { padding-bottom: 0; }
        @media (min-width: 769px) {
            body.cb-auth-page { padding-top: 0; }
        }

        /* ===== DRAG-SCROLL CONTAINERS ===== */
        .bubbles-scroll,
        .filters-scroll,
        .banners-scroll,
        .promo-scroll,
        .carousel-track,
        .cat-pills {
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        .bubbles-scroll::-webkit-scrollbar,
        .filters-scroll::-webkit-scrollbar,
        .banners-scroll::-webkit-scrollbar,
        .promo-scroll::-webkit-scrollbar,
        .carousel-track::-webkit-scrollbar,
        .cat-pills::-webkit-scrollbar { display: none; }

        /* ===== BOTTOM NAV (mobile) ===== */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--nav-bg);
            border-top: 1px solid var(--nav-border);
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 65px;
            z-index: 1000;
            padding-bottom: env(safe-area-inset-bottom, 0);
            transition: background 0.3s;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--nav-inactive);
            font-size: 0.6rem;
            font-weight: 600;
            gap: 3px;
            padding: 6px 8px;
            transition: color 0.2s;
            position: relative;
        }
        .nav-item i { font-size: 1.15rem; transition: transform 0.18s ease; }
        .nav-item.active { color: var(--cb-orange); }
        .nav-item.active i { transform: translateY(-2px); }
        .nav-item:hover { color: var(--cb-orange); text-decoration: none; }

        /* Pestana central destacada (Acumular/Redimir): mas grande, color magenta */
        .nav-item.nav-qr {
            position: relative;
            top: -10px;
        }
        .nav-qr-circle {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--cb-magenta) 0%, var(--cb-magenta-dark) 50%, #9C27B0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.35rem;
            box-shadow: 0 6px 20px rgba(216,27,96,0.5);
            transition: transform 0.2s, box-shadow 0.2s;
            border: 3px solid var(--nav-bg);
        }
        .nav-item.nav-qr:hover .nav-qr-circle,
        .nav-item.nav-qr.active .nav-qr-circle {
            transform: scale(1.1);
            box-shadow: 0 8px 28px rgba(216,27,96,0.65);
        }
        .nav-item.nav-qr span {
            margin-top: 6px;
            color: var(--cb-magenta-dark);
            font-weight: 800;
            font-size: 0.65rem;
            letter-spacing: 0.2px;
        }

        /* ===== BOTON CTA "INGRESAR" PALPITANTE =====
           Aparece en el bottom-nav cuando el usuario NO esta logueado.
           Color magenta de marca + animacion para invitarlo a registrarse. */
        .nav-item.nav-cta-pulse {
            position: relative;
            background: linear-gradient(135deg, var(--cb-magenta) 0%, var(--cb-magenta-dark) 50%, #9C27B0 100%);
            color: #fff !important;
            border-radius: 14px;
            padding: 8px 16px !important;
            margin: 6px 4px;
            box-shadow: 0 4px 14px rgba(216,27,96,0.5);
            animation: navCtaPulse 1.6s ease-in-out infinite;
            font-weight: 800 !important;
            transform-origin: center center;
        }
        .nav-item.nav-cta-pulse i,
        .nav-item.nav-cta-pulse span { color: #fff !important; }
        .nav-item.nav-cta-pulse i { font-size: 1.05rem !important; }
        .nav-item.nav-cta-pulse span { font-size: 0.7rem !important; font-weight: 800 !important; letter-spacing: 0.3px; }
        .nav-item.nav-cta-pulse:hover {
            background: linear-gradient(135deg, #C2185B 0%, #AD1457 50%, #6A1B9A 100%);
            color: #fff !important;
            text-decoration: none;
        }
        @keyframes navCtaPulse {
            0%   { box-shadow: 0 4px 14px rgba(216,27,96,0.5), 0 0 0 0 rgba(255,45,146,0.55); transform: scale(1); }
            50%  { box-shadow: 0 6px 22px rgba(216,27,96,0.65), 0 0 0 10px rgba(255,45,146,0); transform: scale(1.04); }
            100% { box-shadow: 0 4px 14px rgba(216,27,96,0.5), 0 0 0 0 rgba(255,45,146,0); transform: scale(1); }
        }

        /* ===== BOTON CTA "INGRESAR" FLOTANTE ARRIBA-DERECHA =====
           Estado base: icono circular compacto (no estorba).
           Cada ~8 segundos se expande suavemente y muestra el texto
           "Ingresa ya!" para invitar al usuario a registrarse. */
        .top-cta-ingresar {
            position: fixed;
            top: calc(env(safe-area-inset-top, 0px) + 12px);
            right: 14px;
            z-index: 99998; /* mayor a cualquier cover/banner del contenido */
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0;
            width: 44px;
            height: 44px;
            padding: 0;
            background: linear-gradient(135deg, var(--cb-magenta) 0%, var(--cb-magenta-dark) 50%, #9C27B0 100%);
            color: #fff;
            border-radius: 24px;
            font-size: 0.9rem;
            font-weight: 800;
            text-decoration: none;
            /* Sombra mas oscura + ring blanco solido para contraste sobre
               imagenes de cover de cualquier color */
            box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.95);
            border: none;
            letter-spacing: 0.3px;
            overflow: hidden;
            white-space: nowrap;
            animation: topCtaCycle 8s ease-in-out infinite;
            isolation: isolate; /* evita que filtros/transforms del padre afecten */
        }
        .top-cta-ingresar:hover, .top-cta-ingresar:focus {
            color: #fff;
            text-decoration: none;
            background: linear-gradient(135deg, #C2185B 0%, #AD1457 50%, #6A1B9A 100%);
        }
        .top-cta-ingresar i {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }
        .top-cta-ingresar span {
            display: inline-block;
            opacity: 0;
            max-width: 0;
            padding-right: 0;
            transition: opacity 0.3s ease;
            overflow: hidden;
        }
        /* Ciclo: 8s totales
           0-10%   reposo (icono solo, halo discreto)
           10-15%  expansion suave
           15-35%  texto visible "Ingresa ya!"
           35-45%  colapso
           45-100% reposo */
        @keyframes topCtaCycle {
            0%, 10% {
                width: 44px;
                box-shadow: 0 6px 18px rgba(216,27,96,0.5), 0 0 0 0 rgba(255,45,146,0.4);
            }
            12% {
                width: 44px;
                box-shadow: 0 6px 18px rgba(216,27,96,0.5), 0 0 0 12px rgba(255,45,146,0);
            }
            18%, 35% {
                width: 165px;
                box-shadow: 0 8px 26px rgba(216,27,96,0.65), 0 0 0 0 rgba(255,45,146,0);
            }
            45%, 100% {
                width: 44px;
                box-shadow: 0 6px 18px rgba(216,27,96,0.5);
            }
        }
        /* El span se sincroniza con la animacion del padre */
        @keyframes topCtaText {
            0%, 14%   { opacity: 0; max-width: 0; padding-right: 0; }
            18%, 35%  { opacity: 1; max-width: 130px; padding-right: 14px; }
            42%, 100% { opacity: 0; max-width: 0; padding-right: 0; }
        }
        .top-cta-ingresar span {
            animation: topCtaText 8s ease-in-out infinite;
        }
        /* Halo continuo discreto (siempre, no estorba) */
        .top-cta-ingresar::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 24px;
            box-shadow: 0 0 0 0 rgba(255,45,146,0.55);
            animation: topCtaHalo 2s ease-in-out infinite;
            pointer-events: none;
        }
        @keyframes topCtaHalo {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,146,0.55); }
            50%      { box-shadow: 0 0 0 10px rgba(255,45,146,0); }
        }
        @media (min-width: 769px) {
            /* Desktop: el nav-cta-pulse "Ingresar" vive en el top-nav.
               El flotante se mueve a la esquina inferior-derecha (estilo chat
               bubble) para complementar sin competir con el nav. */
            .top-cta-ingresar {
                top: auto;
                bottom: 24px;
                right: 24px;
                width: 56px;
                height: 56px;
                font-size: 0.98rem;
            }
            .top-cta-ingresar i {
                width: 56px;
                height: 56px;
                font-size: 1.35rem;
            }
            /* Ciclo desktop: igual logica pero con la pildora un poco mas larga
               para acomodar el texto sin quedar apretado. */
            @keyframes topCtaCycle {
                0%, 10%   { width: 56px; box-shadow: 0 6px 20px rgba(216,27,96,0.5), 0 0 0 0 rgba(255,45,146,0.4); }
                12%       { width: 56px; box-shadow: 0 6px 20px rgba(216,27,96,0.5), 0 0 0 14px rgba(255,45,146,0); }
                18%, 35%  { width: 200px; box-shadow: 0 8px 28px rgba(216,27,96,0.65); }
                45%, 100% { width: 56px; box-shadow: 0 6px 20px rgba(216,27,96,0.5); }
            }
            @keyframes topCtaText {
                0%, 14%   { opacity: 0; max-width: 0; padding-right: 0; }
                18%, 35%  { opacity: 1; max-width: 150px; padding-right: 16px; }
                42%, 100% { opacity: 0; max-width: 0; padding-right: 0; }
            }
        }
        /* Mobile: ambos botones de "Ingresar" visibles (top flotante + bottom-nav)
           para maximizar la conversion de usuarios anonimos. Es intencional. */
        @media (prefers-reduced-motion: reduce) {
            .nav-item.nav-cta-pulse, .top-cta-ingresar, .top-cta-ingresar::after, .top-cta-ingresar span { animation: none; }
            .top-cta-ingresar { width: auto; padding: 0 14px 0 0; }
            .top-cta-ingresar span { opacity: 1; max-width: 130px; padding-right: 4px; }
        }

        /* ===== DESKTOP: top nav ===== */
        @media (min-width: 769px) {
            body { padding-bottom: 0; padding-top: 56px; }
            .bottom-nav {
                position: fixed;
                top: 0;
                bottom: auto;
                border-top: none;
                border-bottom: 1px solid var(--nav-border);
                height: 56px;
                justify-content: center;
                gap: 32px;
                box-shadow: var(--shadow-sm);
            }
            .nav-item {
                flex-direction: row;
                font-size: 0.82rem;
                gap: 8px;
            }
            .nav-item.nav-qr { top: 0; }
            .nav-qr-circle {
                width: 34px; height: 34px;
                font-size: 1rem;
            }
            .nav-brand {
                position: absolute;
                left: 24px;
                font-weight: 800;
                font-size: 1.1rem;
                color: var(--text-primary);
                text-decoration: none;
            }
            .nav-brand span { color: var(--cb-orange); }
            .nav-brand img { height: 26px; width: auto; display: block; }
        }
        /* Logo ComBack (PNG blanco): en tema claro se invierte a oscuro para que
           sea visible sobre el nav blanco; en tema oscuro se deja tal cual (blanco). */
        :root:not([data-theme="dark"]) .nav-brand img { filter: invert(1) brightness(0.12); }
        [data-theme="dark"] .nav-brand img { filter: none; }
        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) .nav-brand img { filter: none; }
        }

        /* ===== COMMON ===== */
        .page-content {
            max-width: 600px;
            margin: 0 auto;
            padding: 0;
        }
        @media (min-width: 769px) {
            .page-content { max-width: 960px; padding: 0 20px; }
        }

        /* ===== GLOBAL DARK MODE UTILITIES ===== */
        /* Cards, inputs, buttons que usen colores hardcodeados
           en templates hijos pueden usar estas clases */
        .card-base {
            background: var(--card-bg);
            box-shadow: var(--shadow-sm);
            border-radius: 16px;
        }

        /* ===== T4: Barra de carga durante navegacion =====
           Aparece arriba al hacer click en un link/pestana, da feedback
           visual de que la app esta cargando (no se quedo congelada). */
        .cb-nav-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            width: 0;
            z-index: 99999;
            background: linear-gradient(90deg, var(--cb-magenta), var(--cb-magenta-dark), #9C27B0);
            box-shadow: 0 0 8px rgba(216,27,96,0.6);
            transition: width 0.25s ease, opacity 0.25s ease;
            opacity: 0;
            pointer-events: none;
        }
        .cb-nav-progress.active { opacity: 1; }
        .cb-nav-progress.fast {
            transition: width 0.15s ease, opacity 0.15s ease;
        }

        /* ===== Overlay global "Cargando…" con moneda girando =====
           Feedback claro al navegar en toda la app (mismo que el menu). ===== */
        .cb-loading-overlay {
            position: fixed;
            inset: 0;
            /* Fondo OPACO (color de pagina segun tema) para tapar por completo el
               contenido detras mientras carga. */
            background: var(--bg-primary, #000);
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
        }
        .cb-loading-overlay.active { display: flex; animation: cbLoadFade 0.15s ease-out; }
        /* Desvanecido suave al terminar la carga (landing se funde para revelar
           la pagina ya cargada detras). */
        .cb-loading-overlay { transition: opacity 0.4s ease; }
        .cb-loading-overlay.cb-fade-out { opacity: 0; pointer-events: none; }
        @keyframes cbLoadFade { from { opacity: 0; } to { opacity: 1; } }
        .cb-loading-box {
            background: var(--card-bg, #fff);
            border-radius: 18px;
            padding: 26px 32px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        }
        .cb-loading-spinner {
            position: relative;
            width: 54px; height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cb-loading-spinner .cb-loading-ring {
            position: absolute;
            inset: 0;
            border: 4px solid var(--border-color, #e0e0e0);
            border-top-color: var(--cb-primary);
            border-radius: 50%;
            animation: cbLoadSpin 0.8s linear infinite;
        }
        @keyframes cbLoadSpin { to { transform: rotate(360deg); } }
        .cb-loading-spinner .cb-loading-coin {
            width: 28px; height: 28px;
            border-radius: 50%;
            background: radial-gradient(circle at 32% 28%, #FFE9A8, #FFC107 58%, #E67E00 100%);
            box-shadow:
                inset 0 -2px 4px rgba(0,0,0,0.30),
                inset 0 2px 2px rgba(255,255,255,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--cb-primary);
            font-weight: 900;
            font-family: Arial, sans-serif;
            font-size: 17px;
            animation: cbLoadCoinSpin 2.6s ease-in-out infinite;
        }
        .cb-loading-spinner .cb-loading-coin::before { content: '$'; line-height: 1; }
        @keyframes cbLoadCoinSpin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
        @media (prefers-reduced-motion: reduce) {
            .cb-loading-spinner .cb-loading-ring,
            .cb-loading-spinner .cb-loading-coin { animation: none; }
        }

/* ===== T56c: Modal de instrucciones para desbloquear notificaciones ===== */
        /* T56c: Modal de instrucciones para desbloquear notificaciones */
        .cb-notif-modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(4px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: cbModalFadeIn 0.18s ease-out;
        }
        .cb-notif-modal.show { display: flex !important; }
        @keyframes cbModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
        .cb-notif-modal-content {
            position: relative;
            background: var(--card-bg, #fff);
            color: var(--text-primary, #1D1D1F);
            border-radius: 22px;
            padding: 28px 24px 22px;
            max-width: 380px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            animation: cbModalSlideIn 0.22s ease-out;
        }
        @keyframes cbModalSlideIn {
            from { transform: translateY(20px) scale(0.96); opacity: 0; }
            to   { transform: translateY(0) scale(1); opacity: 1; }
        }
        .cb-notif-modal-close {
            position: absolute;
            top: 10px; right: 14px;
            background: transparent;
            border: 0;
            font-size: 1.6rem;
            line-height: 1;
            color: var(--text-tertiary, #999);
            cursor: pointer;
            padding: 4px 8px;
        }
        .cb-notif-modal-close:hover { color: var(--text-primary, #1D1D1F); }
        .cb-notif-modal-icon {
            width: 64px; height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, #FFD54F, #FFC107);
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 14px;
            font-size: 1.7rem;
            color: #5D4037;
            box-shadow: 0 6px 16px rgba(255,193,7,0.4);
        }
        .cb-notif-modal-content h3 {
            text-align: center;
            font-size: 1.15rem;
            font-weight: 800;
            margin-bottom: 8px;
        }
        .cb-notif-modal-intro {
            text-align: center;
            font-size: 0.88rem;
            color: var(--text-secondary, #666);
            margin-bottom: 18px;
            line-height: 1.4;
        }
        .cb-notif-modal-steps {
            list-style: none;
            padding: 0;
            margin: 0 0 16px;
        }
        .cb-notif-modal-steps li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color, #eee);
            font-size: 0.9rem;
            line-height: 1.4;
        }
        .cb-notif-modal-steps li:last-child { border-bottom: none; }
        .cb-notif-step-num {
            flex: 0 0 auto;
            width: 26px; height: 26px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--cb-primary), var(--cb-magenta));
            color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800;
            font-size: 0.78rem;
            box-shadow: 0 2px 6px rgba(111,66,193,0.35);
        }
        .cb-notif-modal-foot {
            text-align: center;
            font-size: 0.82rem;
            color: var(--text-secondary, #666);
            margin-bottom: 14px;
            font-style: italic;
        }
        .cb-notif-modal-btn {
            display: block;
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, var(--cb-primary), var(--cb-magenta));
            color: #fff;
            border: 0;
            border-radius: 14px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .cb-notif-modal-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(111,66,193,0.35);
        }

/* ===== T62: Modal celebracion cashback (lluvia de moneditas) ===== */
        .cb-cashback-modal {
            position: fixed; inset: 0;
            z-index: 99999;
            overflow: hidden;
            pointer-events: auto;
        }
        .cb-cashback-overlay {
            position: absolute; inset: 0;
            background: radial-gradient(ellipse at center top,
                rgba(111,66,193,0.85), rgba(0,0,0,0.92));
            backdrop-filter: blur(8px);
        }
        /* El "piso" donde se acumulan las moneditas */
        .cb-cashback-floor {
            position: absolute; left: 0; right: 0; bottom: 0;
            height: 80px;
            background: linear-gradient(180deg, transparent, rgba(255,180,0,0.15));
            pointer-events: none;
        }
        .cb-cashback-coins-stack {
            position: absolute; left: 0; right: 0; bottom: 0;
            height: 200px;
            pointer-events: none;
            z-index: 2;
        }
        .cb-cashback-coin {
            position: absolute;
            width: 38px; height: 38px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #FFE082, #FFB300 60%, #E65100 100%);
            box-shadow:
                inset 0 -4px 6px rgba(0,0,0,0.35),
                inset 0 3px 4px rgba(255,255,255,0.4),
                0 4px 10px rgba(0,0,0,0.45);
            display: flex; align-items: center; justify-content: center;
            color: var(--cb-primary);
            font-weight: 900;
            font-family: Arial, sans-serif;
            font-size: 1.1rem;
            text-shadow: 0 1px 0 rgba(255,255,255,0.4);
            will-change: transform;
            top: -60px;
        }
        .cb-cashback-coin::before {
            content: '$';
            line-height: 1;
        }
        @keyframes cbCoinDrop {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            10% { opacity: 1; }
            85% {
                transform: translateY(var(--target-y)) rotate(var(--target-rot));
            }
            95% {
                transform: translateY(calc(var(--target-y) - 12px)) rotate(var(--target-rot));
            }
            100% {
                transform: translateY(var(--target-y)) rotate(var(--target-rot));
                opacity: 1;
            }
        }
        /* Tarjeta central con monto */
        .cb-cashback-card {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: #fff;
            z-index: 3;
            max-width: 320px;
            width: 90%;
            padding: 24px 20px 20px;
            background: linear-gradient(135deg, rgba(111,66,193,0.95) 60%, rgba(255,45,146,0.95));
            border-radius: 28px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: cbCardPop 0.6s cubic-bezier(.18,1.04,.4,1.0) 0.3s both;
        }
        @keyframes cbCardPop {
            0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
            70%  { transform: translate(-50%, -50%) scale(1.06); }
            100% { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
        }
        .cb-cashback-coin-big {
            width: 72px; height: 72px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #FFE082, #FFB300 60%, #E65100 100%);
            box-shadow:
                inset 0 -6px 12px rgba(0,0,0,0.35),
                inset 0 4px 8px rgba(255,255,255,0.45),
                0 8px 24px rgba(255,180,0,0.5);
            margin: 0 auto 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 2rem;
            color: var(--cb-primary);
            animation: cbBigCoinSpin 2s ease-out infinite;
        }
        @keyframes cbBigCoinSpin {
            0%, 100% { transform: rotate(0deg) scale(1); }
            50%      { transform: rotate(360deg) scale(1.08); }
        }
        .cb-cashback-title {
            font-size: 0.92rem;
            opacity: 0.85;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .cb-cashback-amount {
            font-size: 2.5rem;
            font-weight: 900;
            margin: 6px 0 10px;
            text-shadow: 0 4px 12px rgba(0,0,0,0.4);
        }
        .cb-cashback-merchant {
            font-size: 1rem;
            opacity: 0.92;
            font-weight: 600;
            margin-bottom: 4px;
        }
        .cb-cashback-balance {
            font-size: 0.82rem;
            opacity: 0.78;
            margin-bottom: 6px;
        }
        .cb-cashback-date {
            font-size: 0.72rem;
            opacity: 0.65;
            margin-bottom: 18px;
            font-weight: 500;
        }
        /* T62d: Boton de encuesta - destacado con gradiente amarillo */
        .cb-cashback-survey-btn {
            display: block;
            background: linear-gradient(135deg, #FFB300, #FF8F00);
            color: #fff;
            text-decoration: none;
            padding: 12px 22px;
            border-radius: 24px;
            font-weight: 800;
            font-size: 0.88rem;
            margin-bottom: 10px;
            box-shadow: 0 6px 18px rgba(255,180,0,0.45);
            transition: transform 0.15s, box-shadow 0.15s;
            border: 0;
        }
        .cb-cashback-survey-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(255,180,0,0.55);
            color: #fff;
            text-decoration: none;
        }
        .cb-cashback-survey-btn i { margin-right: 6px; }
        .cb-cashback-close {
            background: rgba(255,255,255,0.18);
            color: #fff;
            border: 1.5px solid rgba(255,255,255,0.4);
            padding: 10px 28px;
            border-radius: 24px;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.15s;
        }
        .cb-cashback-close:hover { background: rgba(255,255,255,0.28); }
        .cb-cashback-close i { margin-right: 4px; }
