/* Atalhos do cabeçalho */
.black-bar.rf-has-nav { height: auto; padding: 8px 12px 26px; }
.rf-quicknav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 576px; margin: 0 auto; }
.rf-quicknav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 6px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; background: #0b0b0b; color: #fff !important; font-size: 12px; font-weight: 600; }
.rf-quicknav a i { font-size: 16px; line-height: 1; color: #bcd9ff; }
.rf-quicknav a.is-active { border-color: #9fd0ff; }

/* Menu */
.rf-menu .modal-content { background: #060606; color: #fff; }
.rf-menu-top { display: flex; align-items: center; justify-content: center; position: relative; min-height: 70px; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.rf-menu-top img { max-height: 54px; max-width: 170px; }
.rf-menu-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: #1a1a1a; color: #fff; font-size: 16px; line-height: 1; }
.rf-menu-body { max-width: 600px; width: 100%; margin: 0 auto; padding: 16px 14px 24px; }
.rf-menu-card { margin-bottom: 18px; padding: 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: #111; }
.rf-menu-card h2 { margin: 0 0 4px; color: #fff; font-size: 15px; font-weight: 600; }
.rf-menu-card p { margin: 0 0 12px; color: #aaa; font-size: 13px; }
.rf-menu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-menu-actions a, .rf-menu-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: transparent; color: #fff !important; font-size: 13px; font-weight: 600; }
.rf-menu-actions .is-primary { border-color: #eee; background: #eee; color: #111 !important; }
.rf-menu-user { display: flex; align-items: center; gap: 10px; }
.rf-menu-user img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rf-menu-user h2 { margin: 0; overflow-wrap: anywhere; }
.rf-menu-user a { margin-left: auto; color: #ccc !important; font-size: 20px; }
.rf-menu-label { margin: 16px 2px 6px; color: #666; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rf-menu-list { margin: 0; padding: 0; list-style: none; }
.rf-menu-list li { margin-bottom: 6px; }
.rf-menu-list a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #111; color: #fff !important; font-size: 14px; font-weight: 500; }
.rf-menu-list i { width: 18px; font-size: 16px; text-align: center; }

/* Títulos de seção */
.rf-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.rf-heading h1 { margin: 0; color: #444; font-size: 19px; font-weight: 600; }
.rf-heading small { color: #666; font-size: 13px; }
.rf-heading > i { color: #f97316; font-size: 18px; }
.rf-search-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: #000; color: #fff !important; font-size: 14px; font-weight: 600; }
.rf-search { display: none; width: 100%; min-height: 40px; margin-bottom: 8px; padding: 0 12px; border: 1px solid #ccc; border-radius: 10px; font-size: 14px; }
.rf-search.is-open { display: block; }

/* Abas */
.rf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; padding: 5px; border-radius: 12px; background: #fff; }
.rf-tabs a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; border-radius: 9px; color: #333 !important; font-size: 13px; font-weight: 500; }
.rf-tabs a.is-active { background: #000; color: #fff !important; font-weight: 600; }

/* Cartões de campanha */
.rf-badge { display: inline-block; padding: 3px 7px; border-radius: 99px; background: #198754; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; }
.rf-badge.is-ending { background: rgba(25, 135, 84, .75); }
.rf-badge.blink, .badge.blink { animation: rf-pulse 2s ease infinite !important; }
.badge.badge-status-1 { background: rgba(25, 135, 84, .75) !important; color: #fff !important; border-radius: 10px; }
@keyframes rf-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rf-badge.blink, .badge.blink { animation: none !important; } }
.rf-badge.is-done { background: #0d6efd; }
.rf-badge.is-soon { background: #6c757d; }
.rf-row { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 4px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); color: #222 !important; }
.rf-row-image { flex: none; width: 90px; height: 90px; border-radius: 10px; overflow: hidden; background: #ddd; }
.rf-row-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rf-row-info { flex: 1; min-width: 0; }
.rf-row-info h2 { margin: 0; color: #222; font-size: 16px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.rf-row-info p { margin: 2px 0 4px; color: #666; font-size: 11.5px; line-height: 1.25; }
.rf-row-date { position: absolute; right: 8px; bottom: 6px; color: #444; font-size: 11.5px; }
.rf-empty { padding: 14px; border-radius: 10px; background: #fff; color: #555; font-size: 14px; text-align: center; }
.rf-hero { display: block; margin-bottom: 8px; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); color: #222 !important; }
.rf-hero-image { position: relative; aspect-ratio: 3 / 2; background: #ddd; }
.rf-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rf-hero-image .rf-badge { position: absolute; left: 10px; bottom: 10px; }
.rf-hero-body { padding: 10px 8px 8px; }
.rf-hero-body h2 { margin: 0; color: #222; font-size: 17px; font-weight: 500; line-height: 1.25; }
.rf-hero-body p { margin: 2px 0 8px; color: #666; font-size: 12px; }
.rf-cta { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 14px; border-radius: 12px; background: #198754; color: #fff; }
.rf-cta > i { font-size: 22px; }
.rf-cta strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.rf-cta small { display: block; font-size: 11px; font-weight: 600; opacity: .85; }

/* Ganhadores */
.rf-winners-nav { margin-left: auto; display: flex; gap: 6px; }
.rf-winners-nav button { width: 34px; height: 32px; border: 0; border-radius: 7px; background: #f6f6f6; color: #222; }
.rf-winners { display: flex; gap: 8px; margin-bottom: 12px; padding-bottom: 4px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.rf-winners::-webkit-scrollbar { display: none; }
.rf-winner { flex: 0 0 280px; display: flex; gap: 10px; padding: 8px; border-left: 3px solid #b8860b; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); color: #222 !important; }
.rf-winner-photo { position: relative; flex: none; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; background: #333; }
.rf-winner-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); }
.rf-winner-photo span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; font-weight: 700; }
.rf-winner-info { min-width: 0; font-size: 12px; }
.rf-winner-info strong { display: block; overflow: hidden; color: #222; font-size: 14px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.rf-winner-info strong i { color: #b8860b; }
.rf-winner-product { display: block; overflow: hidden; margin: 2px 0 4px; white-space: nowrap; text-overflow: ellipsis; }
.rf-winner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: #666; font-size: 11px; }
.rf-winner-meta b { padding: 2px 6px; border-radius: 5px; background: #f0f0f0; color: #222; font-size: 12px; font-weight: 700; }

/* Meus títulos */
.rf-alert { position: relative; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #c59a64; border-left-width: 4px; border-radius: 12px; background: #f4ebe1; color: #4a4036; font-size: 13px; }
.rf-alert h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #7a5a30; font-size: 14px; font-weight: 700; }
.rf-alert h2 i { padding: 4px 6px; border-radius: 6px; background: #e4d7c6; }
.rf-alert ul { margin: 0; padding: 0; list-style: none; }
.rf-alert li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rf-alert p { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #d9cab7; font-size: 12px; }
.rf-order { position: relative; display: flex; margin-bottom: 14px; border: 1px solid #c8c8c8; border-left: 5px solid #198754; border-radius: 12px; background: #ececec; overflow: hidden; color: #222; }
.rf-order.is-pending { border-left-color: #f0a818; }
.rf-order.is-canceled { border-left-color: #dc3545; }
.rf-order-main { flex: 1; min-width: 0; }
.rf-order-body { padding: 8px 10px; }
.rf-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rf-order-status { flex: none; white-space: nowrap; padding: 3px 7px; border-radius: 5px; background: #198754; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.is-pending .rf-order-status { background: #f0a818; color: #2b2000; }
.is-canceled .rf-order-status { background: #dc3545; }
.rf-order-date { color: #666; font-size: 11px; white-space: nowrap; }
.rf-order-content { display: flex; gap: 10px; }
.rf-order-image { flex: none; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: #ccc; }
.rf-order-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rf-order-info { flex: 1; min-width: 0; }
.rf-order-info h2 { margin: 0 0 4px; color: #222; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 12px; }
.rf-chips span { padding: 2px 7px; border-radius: 5px; background: #198754; color: #fff; font-size: 11.5px; font-weight: 700; }
.rf-chips small { color: #666; font-size: 12px; }
.rf-order-note { color: #666; font-size: 11.5px; }
.rf-order-action { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-top: 1px solid #cfcfcf; color: #333 !important; font-size: 13px; font-weight: 500; }
.rf-order-more { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 44px; border-left: 1px solid #cfcfcf; background: #dfdfdf; color: #555 !important; font-size: 12px; }
.rf-order-more span { writing-mode: vertical-rl; transform: rotate(180deg); }

/* Promoção nas páginas de campanha: medidas originais, sem cartão branco. */
.rf-promo .app-title h1 i { margin-right: 6px; color: #198754; }
.rf-promo .app-card { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.rf-promo .card-body { padding: 0 !important; }
.rf-promo .row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 !important; }
.rf-promo .row > div { flex: 0 0 auto; width: auto; max-width: 100%; margin: 0 !important; padding: 0 !important; }
.rf-promo .row button { border-radius: 6px; transition: none; }

/* Botões flutuantes da campanha: Suporte, Grupo e Instagram empilhados no canto. */
html body .sorteio_sorteioShare__247_t { bottom: 24px; right: 12px; width: 110px; }
html body .sorteio_sorteioShare__247_t > a { display: block; text-decoration: none; }
html body .sorteio_sorteioShare__247_t > a:has(.suporte) { order: -1; }
html body .sorteio_sorteioShare__247_t .btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%; height: 31px; margin: 4px 0 0 !important; padding: 0 8px;
    border-radius: 6px; font-size: 14px; font-weight: 600; color: #fff !important;
}
html body .sorteio_sorteioShare__247_t .suporte .btn { background: #dc3545 !important; border: 1px solid #dc3545 !important; }
html body .sorteio_sorteioShare__247_t .whatsapp-grupo .btn { background: #25d366 !important; border: 1px solid #25d366 !important; }
html body .sorteio_sorteioShare__247_t .instagram-grupo .btn { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) !important; border: 1px solid #d62976 !important; }

/* Janela Buscar compras */
.rf-search-dialog { max-width: 418px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.rf-search-dialog .modal-content { border: 0; border-radius: 22px; background: #fff; }
.rf-search-box { position: relative; padding: 28px; color: #222; font-family: Montserrat, Arial, sans-serif; }
.rf-search-close { position: absolute; top: 22px; right: 24px; padding: 0; border: 0; background: transparent; color: #555; font-size: 15px; line-height: 1; }
.rf-search-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; background: #000; color: #fff; font-size: 22px; }
.rf-search-title { margin: 0 0 8px; color: #333; font-size: 23px; font-weight: 600; line-height: 1.2; }
.rf-search-text { margin: 0 0 22px; color: #555; font-size: 14px; line-height: 1.4; }
.rf-search-label { display: block; margin-bottom: 8px; color: #333; font-size: 13px; font-weight: 600; }
.rf-search-input { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1px solid #bdbdbd; border-radius: 10px; background: #fff; color: #777; }
.rf-search-input input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; outline: 0; background: transparent; color: #222; font-size: 15px; }
.rf-search-input:focus-within { border-color: #222; }
.rf-search-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 22px; border: 0; border-radius: 10px; background: #000; color: #fff; font-size: 15px; font-weight: 700; }

/* Suporte */
.rf-contact-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 10px; background: #000; color: #fff; font-size: 22px; }
.rf-contact h1 { margin: 0 0 6px; color: #333; font-size: 24px; font-weight: 600; }
.rf-contact > p { margin: 0 0 18px; color: #555; font-size: 14px; }
.rf-contact-card { padding: 20px 24px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.rf-contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rf-contact-head > i { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: #ececec; color: #111; font-size: 19px; }
.rf-contact-head h2 { margin: 0; color: #111; font-size: 16px; font-weight: 600; }
.rf-contact-head small { color: #555; font-size: 12px; }
.rf-field { margin-bottom: 14px; }
.rf-field label, .rf-field summary { display: block; margin-bottom: 5px; color: #111; font-size: 13px; font-weight: 600; }
.rf-field label small { color: #555; font-weight: 400; }
.rf-field .form-control { min-height: 46px; border: 1px solid #bdbdbd; border-radius: 10px; color: #222; font-size: 15px; }
.rf-field select.form-control { appearance: auto; background: #fff; }
.rf-field details { margin-top: 6px; color: #555; font-size: 12px; }
.rf-field details summary { display: list-item; margin: 0; color: #555; font-size: 12px; font-weight: 400; cursor: pointer; }
.rf-field details .form-control { margin-top: 6px; }
.rf-counter { display: flex; justify-content: space-between; margin-top: 3px; color: #555; font-size: 11.5px; }
.rf-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 10px; background: #000; color: #fff; font-size: 15px; font-weight: 700; }
.rf-form-status { display: none; margin-top: 10px; padding: 10px; border-radius: 8px; font-size: 13px; text-align: center; }
.rf-form-status.is-ok { display: block; background: #d1e7dd; color: #0f5132; }
.rf-form-status.is-error { display: block; background: #f8d7da; color: #842029; }
@media (max-width: 420px) {
    .rf-contact-card { padding: 16px; }
    .rf-order-date { font-size: 10.5px; }
    .rf-winner { flex-basis: 260px; }
}
