:root {
    /* Brand AJUSTADO DIEGO*/
    --color-primary: #254bff;
    --color-primary-dark: #00c0ea;
    --color-primary-light: #E8F0FE;

    --color-secondary: #048335;
    --color-secondary-dark: #013c19;
    --color-secondary-light: #04f46f;

    /* Status */
    --color-success: #16A34A;
    --color-warning: #F59E0B;
    --color-danger: #DC2626;

    /* Accent (scanner / destaque) */
    --color-accent: #FACC15;

    /* Base UI */
    --color-bg: #F5F6FA;
    --color-card: #FFFFFF;

    /* Texto */
    --color-text: #1F2937;
    --color-muted: #6B7280;
    --color-inverse: #FFFFFF;

    /* Bordas / divisores */
    --color-border: #E5E7EB;

    --gradient-card: linear-gradient(135deg, #254bff 0%, #00c0ea 100%);
    --gradient-card-reverse: linear-gradient(135deg, #00c0ea 0%, #254bff 100%);
}

.btn-primary {
    --bs-btn-color: var(--color-inverse);
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);

    --bs-btn-hover-color: var(--color-inverse);
    --bs-btn-hover-bg: var(--color-primary-dark);
    --bs-btn-hover-border-color: var(--color-primary-dark);

    --bs-btn-focus-shadow-rgb: 28, 105, 229;

    --bs-btn-active-color: var(--color-inverse);
    --bs-btn-active-bg: var(--color-primary-dark);
    --bs-btn-active-border-color: var(--color-primary-dark);

    --bs-btn-disabled-color: var(--color-inverse);
    --bs-btn-disabled-bg: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-primary);
    --bs-btn-hover-border-color: var(--color-primary);

    --bs-btn-active-bg: var(--color-primary-dark);
    --bs-btn-active-border-color: var(--color-primary-dark);

    --bs-btn-disabled-color: var(--color-primary);
    --bs-btn-disabled-border-color: var(--color-primary);
}

.btn-outline-secondary {
    --bs-btn-color: var(--color-secondary);
    --bs-btn-border-color: var(--color-secondary);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--color-secondary);
    --bs-btn-hover-border-color: var(--color-secondary);

    --bs-btn-active-bg: var(--color-secondary-dark);
    --bs-btn-active-border-color: var(--color-secondary-dark);

    --bs-btn-disabled-color: var(--color-secondary);
    --bs-btn-disabled-border-color: var(--color-secondary);
}

body.cashback-app {
    background-color: var(--color-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);

}

.maskLoader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #00000096;
    top: 0;
    display: none;
    left: 0;
    z-index: 400000;
}

.loader {
    width: 50px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-primary);
    --_m:
        conic-gradient(#0000 10%, #000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -25px;
    margin-top: -25px;
}

@keyframes l3 {
    to {
        transform: rotate(1turn)
    }
}

/* HTML: <div class="loaderInfo"></div> */
.loaderInfo {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    color: #0000;
    background: linear-gradient(90deg, #000 25%, #8A9B0F 0 50%, #C02942 0 75%, #00A0B0 0) 0 0/400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: l10 5s infinite cubic-bezier(0.3, 1, 0, 1);
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -90px;
    margin-top: -25px;
}

.loaderInfo:before {
    content: "Aguarde..."
}

@keyframes l10 {
    25% {
        background-position: calc(1*100%/3) 0
    }

    50% {
        background-position: calc(2*100%/3) 0
    }

    75% {
        background-position: calc(3*100%/3) 0
    }

    100% {
        background-position: calc(4*100%/3) 0
    }
}

.alertModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300000;
}

.alertModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.cashback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 1rem;
    animation: modalUp .2s ease;
}

@keyframes modalUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h5 {
    margin: 0;
    font-weight: 600;
}

.modal-info {
    display: flex;
    gap: .75rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: .75rem;
    border-radius: 12px;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.modal-info i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
}

.modal-body .form-group {
    margin-bottom: .75rem;
}

.modal-footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Área principal */
.cashback-content {
    padding: 0.500rem 1rem;
}

/* ===== MOBILE SIMULATION ===== */
.mobile-wrapper {
    max-width: 430px;
    /* iPhone Pro Max / Pixel */
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--color-bg);
    position: relative;

    /* Sombra no desktop para lembrar app */
    box-shadow: 0 0 0 1px #e5e7eb, 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Em telas grandes, centraliza */
@media (min-width: 768px) {
    body.cashback-app {
        background-color: #e5e7eb;
    }
}

/* Espaço para footer fixo */
.pb-footer {
    padding-bottom: 80px;
}



.header-bar {
    position: relative;
    min-height: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--color-primary-light);
}

.notification-btn {
    position: relative;
}

.cashback-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Zuck.js Premium Styles */
.storiesWrapper {
    height: 90px;
    padding: 5px 0;
}

.stories.snapgram .story>.item {
    border-width: 2px !important;
    border-color: var(--color-primary) !important;
    background: #fff;
}

.stories.snapgram .story>.item>.img {
    border: 2px solid #fff !important;
    object-fit: contain !important;
    background: #fff !important;
}

.stories.snapgram .story>.item>.img img {
    object-fit: contain !important;
}

.stories.snapgram .story>.link .name {
    color: var(--color-text) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

.btn-notification {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
}


.btn-notification {
    background: none;
    border: none;
    color: var(--color-inverse);
    font-size: 1.2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.section-header h6 {
    margin: 0;
    font-size: .9rem;
}

.section-header .btn-link {
    font-size: .75rem;
    text-decoration: none;
}


/* HOME BANNER */
#homeBanner {
    padding: 1rem;
    margin-top: -20px;
}

#homeBanner {
    text-align: center;
}

/* WALLET DRAWS */
#walletDrawsCarousel {
    margin-top: .5rem;
}

#walletDrawsCarousel .carousel-card {
    background: #fff;
    color: var(--color-text);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

#walletDrawsCarousel .draw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

#walletDrawsCarousel .draw-status {
    background: #eef2ff;
    color: var(--color-primary);
    font-size: .65rem;
    font-weight: 600;
}

#walletDrawsCarousel .carousel-indicators {
    margin-top: .5rem;
}

#walletDrawsCarousel .carousel-indicators [data-bs-target] {
    background-color: #d1d5db;
    width: 6px;
    height: 6px;
    opacity: .5;
}

#walletDrawsCarousel .carousel-indicators .active {
    background-color: var(--color-primary);
    opacity: 1;
}


/* HEADER WALLET */
.header-wallet {
    padding: 1.25rem;
}

.wallet-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-balance {
    margin-top: 1rem;
}

.balance-row {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
}

.wallet-actions {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 0.5rem;
}

/* GRID */
.wallet-stats-grid {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
}

.wallet-stats-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.wallet-stats-grid.one {
    grid-template-columns: 1fr;
}

/* CARD */
.wallet-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wallet-stat-card.clickable {
    cursor: pointer;
}

.wallet-stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.piggybank-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: .75rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.piggybank-header {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    color: var(--color-text);
}

.piggybank-header i {
    color: var(--color-primary);
}

.piggybank-main {
    margin-top: .4rem;
}

.piggybank-main small {
    display: block;
    font-size: .75rem;
    color: var(--color-text);
}

.piggybank-values {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-top: .4rem;
}

.piggybank-values .current {
    font-size: 1.1rem;
    font-weight: 700;
}

.piggybank-values .target {
    font-size: .75rem;
    color: var(--color-text);
}

.piggybank-progress {
    margin-top: .5rem;
}

.piggybank-progress small {
    display: block;
    font-size: .7rem;
    color: var(--color-text);
}

.piggybank-actions {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .75rem;
}

.life-bar {
    width: 100%;
    height: 10px;
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.life-bar-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: width .4s ease;
    border-radius: 999px;
}

.life-bar-fill.bg-success {
    background: var(--color-success);
}

.life-bar-fill.bg-primary {
    background: var(--color-primary);
}

.life-bar-fill.bg-warning {
    background: var(--color-warning);
}

.life-bar-fill.bg-danger {
    background: var(--color-danger);
}


/* ÍCONE */
.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1rem;
}

/* TEXTO */
.stat-info small {
    display: block;
    font-size: .7rem;
    color: var(--color-text);
}

.stat-info strong {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-text);
}

.wallet-stats-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.wallet-stats-grid.one {
    grid-template-columns: 1fr;
}

/* CARD DO SORTEIO */
.wallet-draw-card {
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    margin: 0 .25rem 1rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

/* Header */
.draw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-edition {
    background: rgba(124, 58, 237, .1);
    color: var(--color-text);
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
}

.draw-status {
    background: #f3f4f6;
    color: var(--color-text);
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 600;
}

.draw-status.ativo {
    background: #ecfeff;
    color: var(--color-text);
}

/* Corpo */
.draw-main {
    display: flex;
    gap: .75rem;
    margin-top: .75rem;
    align-items: center;
}

.draw-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draw-icon.finalizado {
    background: #fef3c7;
    color: var(--color-text);
}

.draw-icon.ativo {
    background: #ede9fe;
    color: var(--color-text);
}

.draw-info small {
    display: block;
    font-size: .7rem;
    color: var(--color-text);
}

/* Divider */
.draw-divider {
    border-top: 1px dashed #e5e7eb;
    margin: .75rem 0;
}

/* Footer */
.draw-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-prize small {
    display: block;
    font-size: .7rem;
    color: var(--color-text);
}

.draw-actions {
    display: flex;
    gap: .4rem;
}

/* Indicadores do carrossel */
.carousel-indicators {
    position: static;
    margin-top: .15rem;
    margin-bottom: 0rem;
}

.carousel-indicators [data-bs-target] {
    background-color: #c7d2fe;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: #7c3aed;
}

.movement-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-radius: 14px;
    padding: .75rem;
    margin-bottom: .5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.movement-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-icon.in {
    background: #e8f7ee;
    color: var(--color-text);
}

.movement-icon.out {
    background: #fdecec;
    color: var(--color-text);
}

.movement-info {
    flex: 1;
}

.movement-info small {
    display: block;
    color: var(--color-text);
    font-size: .7rem;
}

.movement-meta {
    text-align: right;
    font-size: .75rem;
}

/* Logo */
.cashback-logo {
    max-height: 120px;
}

/* Banner */
.cashback-banner {
    background-color: var(--color-primary-dark);
    padding: 1rem;
}

.cashback-helper-modal .helper-item {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
}

.cashback-helper-modal .helper-item i {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.cashback-helper-modal .helper-item p {
    margin: 0;
    font-size: .8rem;
    color: var(--color-text);
}


.banner-item {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.banner-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.banner-item p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Indicadores */
.carousel-indicators [data-bs-target] {
    background-color: #fff;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}

/* Seções
.cashback-section {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
} */

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

/* Cards */
.cashback-card {
    border-radius: 14px;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

/* Publicidade */
.ad-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-inverse);
}

/* Better spacing for mobile
@media (max-width: 480px) {
    .cashback-section {
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }
} */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced section spacing */
.cashback-content {
    padding-top: 0;
}

/* Remove duplicate borders */
.cashback-header + .cashback-content .cashback-section:first-child {
    margin-top: 0;
}

/* Badge animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification-btn .badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Inputs */
.form-control {
    border-radius: 12px;
}

/* Botão principal */
.btn-primary {
    /* background-color: var(--color-primary); */
    background: var(--gradient-card);
    border: none;
}

.btn-primary:hover {
    background-color: var(--gradient-card);
    color: var(--color-accent);
}

.opacity-50 {
    opacity: 0.5;
}

/* Footer flutuante */
.cashback-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;

    background-color: var(--color-card);
    border-top: 1px solid #e5e7eb;

    display: flex;
    justify-content: space-around;
    align-items: center;

    z-index: 1000;
}

/* Item padrão */
.footer-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 0.75rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.footer-item i {
    font-size: 1.3rem;
}

/* Ativo */
.footer-item.active {
    color: var(--color-primary);
}

/* Scanner (CTA central) */
.footer-scan {
    margin-top: -25px;
}

.footer-scan i {
    background: var(--gradient-card);
    color: var(--color-inverse);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(28, 105, 229, .35);
}

.footer-scan span {
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--color-muted);
}


.scanner-ad-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-ad-content {
    text-align: center;
    color: var(--color-text);
    padding: 1.5rem;
}

.scanner-ad-content img {
    max-width: 90%;
    border-radius: 16px;
    margin: 1rem 0;
}

.ad-label {
    opacity: .6;
    font-size: .75rem;
}

#scannerAdDescription {
    color: var(--color-primary-light);
}

.ad-timer {
    margin-top: 1rem;
    font-size: .85rem;
    opacity: .8;
    color: var(--color-primary-light);
}


.scanner-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-modal-content {
    background: #fff;
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#qr-reader-modal {
    flex: 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#qr-reader-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}

.qr-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Região de scan (frame) */
.qr-overlay::before {
    content: '';
    position: absolute;
    width: 70%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--color-accent);
    border-radius: 16px;
}

#activeLotteries .card-body {
    height: 100px
}


.lottery-hidden {
    display: none;
}

.lottery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Featured Image Layout */
.lottery-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.lottery-featured-image img {
    height: 250px;
    object-fit: cover;
    object-position: 0px -31px;
    transition: transform 0.3s ease;
}

.lottery-item:hover .lottery-featured-image img {
    transform: scale(1.05);
}

/* Countdown Timer */
.lottery-countdown {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #dee2e6;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
    display: block;
}

.countdown-label {
    font-size: 0.65rem;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-muted);
    margin: 0 0.25rem;
}

/* Card Title */
.card-title {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* Action Buttons */
.lottery-actions {
    margin-top: 1rem;
}

.lottery-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 75, 255, 0.3);
}

.lottery-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 75, 255, 0.4);
}

.lottery-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lottery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.lottery-content h6 {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--color-text);
}

.lottery-content .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.6em;
    font-weight: 500;
}

/* Cofrinhos Modal */
.cofrinhos-modal-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.cofrinho-card-modal {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cofrinho-card-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cofrinho-header-modal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.cofrinho-header-modal i {
    font-size: 2rem;
    color: var(--color-primary);
    background: rgba(37, 75, 255, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cofrinho-header-modal h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.cofrinho-header-modal small {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.cofrinho-values-modal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.current-value {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.target-value {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.progress-info {
    text-align: center;
}

.percent-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* Responsive for cofrinhos modal */
@media (max-width: 768px) {
    .cofrinhos-modal-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem;
    }

    .cofrinho-card-modal {
        padding: 1rem;
    }

    .cofrinho-header-modal {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .cofrinho-header-modal i {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .cofrinho-header-modal h6 {
        font-size: 1rem;
    }
}

.lottery-date-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    text-align: center;
}

.date-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.date-range i {
    color: var(--color-primary);
}

.ended-info {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.ended-info i {
    color: var(--color-success);
}

/* Better responsive design for lottery cards */
@media (max-width: 480px) {
    .lottery-thumb {
        width: 50px;
        height: 50px;
    }

    .lottery-thumb img {
        width: 50px;
        height: 50px;
    }

    .lottery-content h6 {
        font-size: 0.85rem;
    }

    .lottery-content .badge {
        font-size: 0.65rem;
        padding: 0.3em 0.5em;
    }

    /* Responsive for new card layout */
    .lottery-featured-image img {
        height: 210px;
        object-fit: cover;
        object-position: 0px -31px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .countdown-number {
        font-size: 1.2rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    .lottery-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

#winnerLightbox .modal-content {
    background: rgba(0, 0, 0, 0.85);
}

#winnerLightbox img {
    max-height: 80vh;
    object-fit: contain;
}

.section-title .badge {
    font-size: 0.65rem;
    padding: 0.35em 0.55em;
    background: var(--color-primary);
}

.ad-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

#scannerAdLink {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #eee;
    border-top: 4px solid #1C69E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

.piggybank-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}

.piggybank-logo-placeholder {
    font-size: 24px;
    color: #aaa;
}

.ticket-row {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Conteúdo principal */
.ticket-main {
    flex: 1;
}

.ticket-store {
    font-size: 0.95rem;
    display: block;
}

.ticket-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.ticket-amount {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Ações */
.ticket-actions {
    text-align: right;
}

.ticket-badge {
    background: #0d6efd;
    color: #fff;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 6px;
}

.ticket-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: #0d6efd;
    cursor: pointer;
}

/* 🔽 Detalhe expandido */
.ticket-details {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    border: 1px dashed #dee2e6;
}

.ticket-details-header {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 8px;
}

/* Grid dos números */
.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.number-pill {
    background: #e9f2ff;
    color: #0d6efd;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ticket-details {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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




#homeBanner h5 {
    font-size: 0.695rem !important;
    line-height: 0px;
    padding: 0px;
    margin: 0px;

}

#homeBanner small {
    font-size: 0.495rem !important;
    padding: 0px;
    line-height: 0px;
    margin: 0px;
}

.invite-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.invite-info strong {
    display: block;
    font-size: 0.9rem;
}

.invite-info small {
    font-size: 0.75rem;
    color: #6c757d;
}

.invite-date {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.cashback-helper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cashback-helper-list li {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.cashback-helper-list strong {
    display: block;
    margin-bottom: 4px;
}

.cashback-helper-list small {
    color: #6c757d;
    font-size: 0.85rem;
}

.header-wallet {
    padding: 20px;
    background: #f8f9fa;
}

/* Card de Saldo Principal */
.wallet-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.balance-amount {
    font-size: 2.2rem;
    font-weight: 700;
}

/* Botões de Ações Rápidas */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.action-item {
    text-align: center;
    text-decoration: none;
    color: #444;
    font-size: 0.8rem;
}

.action-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    font-size: 1.4rem;
    transition: transform 0.2s;
}

.action-btn.active {
    background: #f1c40f;
    /* Cor dourada para o Sacar */
    color: #000;
    border: none;
}

/* Card de Progresso (Sorteio) */
.progress-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.input-group-text {
    background: #f8f9fa;
    color: #6c757d;
    min-width: 44px;
    justify-content: center;
}

.input-group-text i {
    font-size: 1.1rem;
}

.notification-btn {
    width: 44px;
    height: 44px;
    transition: all 0.25s ease;
    color: inherit;
}

/* 🔹 Hover branco */
.notification-btn.hover-white {
    color: var(--color-text);
}

.notification-btn.hover-white:hover {
    color: var(--color-primary-light);
}

.notification-btn.hover-white:active {
    border-color: transparent;
}

/* 🔹 Hover azul */
.notification-btn.hover-blue {
    color: var(--color-text);
}

.notification-btn.hover-blue:hover {
    color: var(--color-primary);
}

.notification-btn.hover-blue:active {
    border-color: transparent;
}

/* ícone acompanha a cor */
.notification-btn i {
    transition: color 0.25s ease;
}

/* Badge não sofre hover */
.notification-btn:hover .badge {
    transform: translate(-50%, -50%);
}

.shake {
    animation: shake-animation 4.72s ease infinite;
    /* When the animation is finished, start again */
    animation-iteration-count: infinite;
}

@keyframes shake-animation {
    0% {
        transform: translate(0, 0)
    }

    1.78571% {
        transform: translate(5px, 0)
    }

    3.57143% {
        transform: translate(0, 0)
    }

    5.35714% {
        transform: translate(5px, 0)
    }

    7.14286% {
        transform: translate(0, 0)
    }

    8.92857% {
        transform: translate(5px, 0)
    }

    10.71429% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(0, 0)
    }
}

.cashback-text {
    line-height: 0.8rem;
}
