* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Garante que o conteúdo empurre o rodapé para baixo */
.container, .coupons-container {
    flex: 1;
}

/* ================= HEADER GLOBAL ================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: #000000;
    border-bottom: 1px solid #27272A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: #A1A1AA;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item:hover i {
    color: #FF6600;
}

.search-bar {
    position: relative;
    width: 400px;
    margin: 0 40px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #3F3F46;
    background-color: #27272A;
    color: #fff;
    outline: none;
    font-size: 15px;
}

.search-bar input:focus {
    border-color: #FF6600;
}

.search-bar .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #A1A1AA;
}

/* Botões do Header */
.btn-login {
    background-color: #FF6600;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    background-color: #E65C00;
}

.btn-logout-orange {
    background-color: #FF6600;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-logout-orange:hover {
    background-color: #E65C00;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* ================= MODAIS GLOBAIS DE AUTENTICAÇÃO ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1200;
    display: none;
    justify-content: center;
    align-items: center;
}

.auth-box {
    background-color: #18181B;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #3F3F46;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.auth-title {
    margin-top: 0;
    color: #fff;
    margin-bottom: 10px;
    font-size: 20px;
}

.auth-subtitle {
    color: #A1A1AA;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.btn-google {
    background-color: #ffffff;
    color: #000000;
}

.btn-google:hover {
    background-color: #f1f5f9;
}

.btn-microsoft {
    background-color: #27272A;
    color: #ffffff;
    border-color: #3F3F46;
}

.btn-microsoft:hover {
    background-color: #3F3F46;
}

.social-icon {
    font-size: 18px;
}

.btn-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #A1A1AA;
    z-index: 60;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
    transform: scale(1.08);
}

/* ================= TOAST GLOBAL ================= */
#toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10B981;
    color: white;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 99999;
    text-align: center;
    max-width: 90vw;
    box-sizing: border-box;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#toast.toast-error {
    background-color: #EF4444;
}

/* ================= MEGA MENU ================= */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px; 
    background: transparent;
    z-index: 999;
}

.has-dropdown:not(.force-closed):hover .mega-menu,
.has-dropdown.is-open .mega-menu,
.mega-menu.mega-menu-mobile-open {
    display: flex;
}

.has-dropdown .arrow {
    transition: transform 0.25s ease;
}

.has-dropdown.is-open .arrow {
    transform: rotate(180deg);
}

.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: -220px;
    width: 850px;
    max-width: calc(100vw - 40px);
    background-color: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    z-index: 1000;
    min-height: 420px;
    overflow: hidden;
}

.menu-column {
    padding: 25px;
}

.left-column {
    width: 35%;
    background-color: #121212;
    border-right: 1px solid #27272A;
}

.right-column {
    width: 65%;
    display: flex;
    flex-direction: column;
    background-color: #18181B;
}

.menu-header {
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid #27272A;
    padding-bottom: 10px;
}

.category-list {
    list-style: none;
}

.category-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #A1A1AA;
    transition: 0.2s;
    margin-bottom: 5px;
    font-weight: 500;
}

.cat-label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-item:hover,
.category-item.active {
    background-color: #27272A;
    color: #FF6600;
}

.category-item.active .arrow-icon,
.category-item:hover .arrow-icon,
.category-item.active .cat-label i,
.category-item:hover .cat-label i {
    color: #FF6600;
}

.subcategory-panel {
    display: none;
    flex-grow: 1;
    animation: fadeIn 0.3s ease;
}

.subcategory-panel.active {
    display: block;
}

.sub-header-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 25px;
}

.sub-header-panel h4 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.sub-header-panel .view-all {
    color: #FF6600;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

.sub-header-panel .view-all:hover {
    text-decoration: underline;
    color: #E65C00;
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sub-item {
    background-color: #27272A;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #E5E7EB;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.sub-item i {
    font-size: 18px;
    color: #A1A1AA;
}

.sub-item:hover {
    background-color: #3F3F46;
    border-color: #FF6600;
    color: #FF6600;
    transform: translateY(-2px);
}

.sub-item:hover i {
    color: #FF6600;
}

.wpp-category-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121212;
    border: 1px solid #3F3F46;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.wpp-category-alert span {
    color: #A1A1AA;
    font-size: 13px;
}

.wpp-category-alert span strong {
    color: #fff;
}

.btn-wpp-alert {
    background-color: #10B981;
    color: #ffffff !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-wpp-alert i {
    color: #ffffff !important;
}

.btn-wpp-alert:hover {
    background-color: #059669;
}

/* ================= GRID DE LOJAS ================= */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.store-btn {
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    background-color: #27272A;
}

.store-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.store-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-fallback {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    display: none; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= HERO SECTION CUPONS ================= */
.cupons-hero {
    background: radial-gradient(circle at 50% 0%, rgba(255, 102, 0, 0.15) 0%, rgba(24, 24, 27, 0.85) 55%, #09090B 100%);
    border-bottom: 1px solid #27272A;
    padding: 42px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cupons-hero-content {
    max-width: 1050px;
    margin: 0 auto;
}

.cupons-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 102, 0, 0.12);
    border: 1px solid rgba(255, 102, 0, 0.35);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #FF8533;
    margin-bottom: 16px;
}

.badge-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 6px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

.cupons-hero h1 {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.cupons-hero p {
    color: #A1A1AA;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 26px;
    line-height: 1.5;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stat-card {
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 12px;
    padding: 12px 22px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.hero-stat-card .stat-number {
    font-size: 22px;
    font-weight: 900;
    color: #FF6600;
}

.hero-stat-card .stat-label {
    font-size: 11px;
    color: #71717A;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ================= LAYOUT PÁGINA DE CUPONS ================= */
.coupons-container {
    width: 100%;
    max-width: 1300px;
    margin: 32px auto 50px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-sizing: border-box;
}

.coupons-main-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Toolbar & Quick Store Pills */
.cupons-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717A;
    font-size: 14px;
}

.search-box-wrapper input {
    width: 100%;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 10px;
    padding: 12px 38px 12px 40px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-box-wrapper input:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.search-box-wrapper #btnClearSearch {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #A1A1AA;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: #A1A1AA;
}

.sort-wrapper select {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.sort-wrapper select option {
    background: #18181B;
    color: #FFFFFF;
}

/* Store Quick Pills */
.quick-store-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.quick-store-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 30px;
    padding: 7px 14px;
    color: #A1A1AA;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

.quick-store-pill:hover {
    border-color: #3F3F46;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.quick-store-pill.active {
    background: rgba(255, 102, 0, 0.15);
    border-color: #FF6600;
    color: #FF8533;
    font-weight: 700;
}

.quick-store-pill .pill-logo {
    width: 20px;
    height: 20px;
    object-fit: cover;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.quick-store-pill .pill-count {
    background: #27272A;
    color: #E4E4E7;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 700;
}

.quick-store-pill.active .pill-count {
    background: #FF6600;
    color: #FFFFFF;
}

/* Sidebar Styling */
.filters-sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    background-color: #18181B;
    padding: 22px 18px;
    border-radius: 12px;
    border: 1px solid #27272A;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-sizing: border-box;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #27272A;
    padding-bottom: 12px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 15px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-filters {
    background: none;
    border: none;
    color: #FF6600;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-filters:hover {
    background: rgba(255, 102, 0, 0.1);
}

.filter-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group h4 {
    color: #FAFAFA;
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 700;
}

.filter-store-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #A1A1AA;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.filter-store-label:hover {
    background: #27272A;
    color: #FFFFFF;
}

.filter-store-label input[type="checkbox"] {
    accent-color: #FF6600;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.sidebar-store-icon {
    width: 22px;
    height: 22px;
    object-fit: cover;
    background: transparent;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.store-name-text {
    flex: 1;
    font-weight: 500;
}

.store-badge-count {
    background: #27272A;
    color: #A1A1AA;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.sidebar-help-card {
    background: rgba(255, 102, 0, 0.05);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-top: 20px;
}

.sidebar-help-card h4 {
    margin: 0 0 8px;
    font-size: 12.5px;
    color: #FF8533;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-help-card ol {
    margin: 0;
    padding-left: 18px;
    color: #A1A1AA;
    font-size: 11.5px;
    line-height: 1.5;
}

.sidebar-help-card li {
    margin-bottom: 4px;
}

/* ================= GRID DE CUPONS & CARDS ================= */
.coupons-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-content: start;
}

.coupon-card {
    background-color: #18181B;
    border: 1px solid #27272A;
    border-radius: 16px;
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-card:hover {
    transform: translateY(-4px);
    border-color: #FF6600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 102, 0, 0.25);
}

/* Side notches (recortes de ticket) */
.ticket-notch {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #09090B;
    border-radius: 50%;
    top: 135px;
    z-index: 1;
}
.ticket-notch.left { left: -7px; border-right: 1px solid #27272A; }
.ticket-notch.right { right: -7px; border-left: 1px solid #27272A; }

.coupon-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    gap: 8px;
}

/* Store Capsule */
.store-capsule {
    background: transparent;
    border-radius: 6px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.store-capsule:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
}

.store-capsule img {
    height: 30px;
    width: auto;
    max-width: 105px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    image-rendering: -webkit-optimize-contrast;
}

.store-capsule-fallback {
    color: #F4F4F5;
    background: #27272A;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #3F3F46;
}

/* Timestamp badge */
.time-badge {
    font-size: 11px;
    color: #A1A1AA;
    background: #27272A;
    border: 1px solid #3F3F46;
    padding: 3px 8px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.time-badge.recent {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Discount info */
.discount-value {
    font-size: 22px;
    font-weight: 900;
    color: #FF6600;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.coupon-content p {
    color: #E4E4E7;
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0 0 8px;
    min-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.coupon-rules-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.coupon-rule-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #D4D4D8;
}

.coupon-rule-pill i {
    color: #FF8533;
    font-size: 10px;
}

/* Perforation Divider */
.ticket-divider {
    width: 100%;
    border-top: 1px dashed #3F3F46;
    margin: 4px 0 12px;
}

/* Action Area */
.coupon-action-box {
    width: 100%;
    margin-top: auto;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-pill-row {
    background: #121214;
    border: 1px dashed #3F3F46;
    border-radius: 8px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-pill-row code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-icon-copy {
    background: none;
    border: none;
    color: #A1A1AA;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    transition: color 0.2s;
}

.btn-icon-copy:hover {
    color: #FF6600;
}

.btn-copiar-e-ir {
    width: 100%;
    background: linear-gradient(135deg, #FF6600 0%, #EA580C 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
    box-sizing: border-box;
}

.btn-copiar-e-ir:hover {
    background: linear-gradient(135deg, #FF771A 0%, #F97316 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.35);
}

.btn-copiar-e-ir.copied {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Validação Comunitária */
.coupon-validation {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #27272A;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.validation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: #A1A1AA;
}

.vote-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.btn-vote {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #27272A;
    color: #A1A1AA;
    border: 1px solid #3F3F46;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-vote:hover {
    background-color: #3F3F46;
    color: #FFFFFF;
}

.btn-vote.active-up {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
    color: #10B981;
}

.btn-vote.active-down {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
    color: #EF4444;
}

.badge-eficacia {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-eficacia.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-eficacia.warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-eficacia.neutral {
    background-color: rgba(161, 161, 170, 0.1);
    color: #A1A1AA;
    border: 1px solid #3F3F46;
}

.coupon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #71717A;
    margin-top: 6px;
}

.coupon-footer .audit-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #10B981;
}

/* Modal de Cupom - Botões de votação compactos */
.modal-cupom-vote {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-vote-mini {
    background: #27272A;
    border: 1px solid #3F3F46;
    color: #A1A1AA;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-vote-mini:hover {
    color: #FFF;
    background: #3F3F46;
}

.btn-vote-mini.active-up {
    color: #10B981;
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.btn-vote-mini.active-down {
    color: #EF4444;
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 1024px) {
    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: clip;
        max-width: 100%;
    }
    .cupons-hero {
        padding: 22px 14px 18px;
    }
    .cupons-hero h1 {
        font-size: 22px;
        line-height: 1.2;
    }
    .cupons-hero p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .hero-stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .hero-stat-card {
        min-width: 0;
        padding: 10px 8px;
    }
    .hero-stat-card .stat-number {
        font-size: 18px;
    }
    .coupons-container {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 12px;
        margin: 12px auto 24px;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    .coupons-main-column {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        order: 1;
    }
    .filters-sidebar {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        position: static;
        order: 2;
        box-sizing: border-box;
    }
    .cupons-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .search-box-wrapper {
        min-width: 0;
        width: 100%;
    }
    .sort-wrapper {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .quick-store-pills {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .quick-store-pills::-webkit-scrollbar {
        display: none;
    }
    .coupons-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 100%;
        gap: 14px;
    }
    .coupon-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 16px 14px 14px;
    }
    .ticket-notch {
        display: none;
    }
    .main-footer {
        padding: 22px 14px;
        margin-top: 32px;
    }
}

/* ================= RODAPÉ MINIMALISTA ================= */
.main-footer {
    background-color: #000000;
    border-top: 1px solid #27272A;
    padding: 30px 40px;
    margin-top: 60px; /* Garante distância segura do último grid */
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left p {
    color: #71717A;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 10px 22px;
}

.footer-links a {
    color: #A1A1AA;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FF6600;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #A1A1AA;
    font-size: 20px;
    transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    color: #FF6600;
    transform: translateY(-2px);
}

/* ================= BANNER DE DESTAQUES ================= */
.banner-destaques {
    width: 100%;
    height: 130px; /* Trava a altura para não ficar "largão" */
    object-fit: cover; /* Preenche a faixa sem amassar a imagem */
    object-position: center; /* Mantém o texto centralizado sempre visível */
    border-radius: 8px;
    border: 1px solid #27272A;
    margin-top: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: block;
}

/* ==========================================================================
   NOVA ERA QUANTOPAGAR: VIP CHANNELS, STORIES, PROVA SOCIAL, PARCELAMENTO & SHARE
   ========================================================================== */

/* 1. BANNER VIP CHANNELS (WHATSAPP & TELEGRAM) */
.vip-channels-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(34, 158, 217, 0.08) 50%, rgba(24, 24, 27, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.vip-channels-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #10B981, #229ED9, #FF6600);
}
.vip-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.vip-icon-pulse {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(34, 158, 217, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #10B981;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}
.vip-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.vip-banner-text strong {
    font-size: 13.5px;
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vip-banner-text span {
    font-size: 12px;
    color: #A1A1AA;
}
.vip-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}
.vip-btn-wpp {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
}
.vip-btn-wpp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    color: #FFFFFF;
}
.vip-btn-tlg {
    background: linear-gradient(135deg, #229ED9 0%, #1783B8 100%);
    color: #FFFFFF;
}
.vip-btn-tlg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.45);
    color: #FFFFFF;
}

/* 2. FLOATING VIP CHANNELS WIDGET (FAB) */
.floating-vip-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.fab-main-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 0 0 rgba(16, 185, 129, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fabPulse 2.5s infinite;
}
@keyframes fabPulse {
    0% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 0 0 rgba(16, 185, 129, 0); }
}
.fab-main-btn:hover {
    transform: scale(1.08) rotate(5deg);
}
.fab-badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121212;
}
.fab-card-popover {
    display: none;
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 290px;
    background: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    animation: fadeInSlideUp 0.25s ease-out forwards;
}
.fab-card-popover.active {
    display: block;
}
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.fab-card-header h4 {
    margin: 0;
    font-size: 13.5px;
    color: #FFFFFF;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fab-card-header .btn-close-fab {
    background: transparent;
    border: none;
    color: #71717A;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}
.fab-card-header .btn-close-fab:hover { color: #FFFFFF; }
.fab-card-desc {
    font-size: 11.5px;
    color: #A1A1AA;
    line-height: 1.4;
    margin: 0 0 12px 0;
}
.fab-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fab-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: #FFFFFF;
    transition: 0.2s;
}
.fab-card-btn.wpp {
    background: #10B981;
}
.fab-card-btn.wpp:hover { background: #059669; }
.fab-card-btn.tlg {
    background: #229ED9;
}
.fab-card-btn.tlg:hover { background: #1783B8; }

/* 3. STORIES BAR / DESTAQUES RÁPIDOS */
.stories-wrapper {
    margin-bottom: 22px;
    position: relative;
}
.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.stories-header-title {
    font-size: 12px;
    font-weight: 700;
    color: #A1A1AA;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stories-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    padding-top: 2px;
    scrollbar-width: none;
}
.stories-track::-webkit-scrollbar {
    display: none;
}
.story-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.2s ease;
}
.story-node:hover {
    transform: translateY(-2px);
}
.story-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #FF6600 0%, #FF3366 50%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.story-node.active .story-ring {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
    transform: scale(1.05);
}
.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #18181B;
    border: 2px solid #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFFFFF;
    overflow: hidden;
}
.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-caption {
    font-size: 11px;
    font-weight: 600;
    color: #D1D5DB;
    text-align: center;
    max-width: 68px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.story-node.active .story-caption {
    color: #10B981;
    font-weight: 800;
}

/* 4. PREÇOS, PIX & PARCELAMENTO NOS CARDS */
.price-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
}
.price-main-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.payment-terms {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #71717A;
    flex-wrap: wrap;
}
.pix-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    font-weight: 800;
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.2px;
}
.installment-text {
    font-size: 11px;
    color: #A1A1AA;
}

/* 5. GATILHOS DE PROVA SOCIAL & ESCASSEZ */
.social-proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.social-proof-pill.hot {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.social-proof-pill.coupon {
    background: rgba(250, 204, 21, 0.12);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.25);
}
.social-proof-pill.views {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* 6. BARRA STICKY DE FILTROS & ORDENAÇÃO */
.sticky-filter-toolbar {
    position: sticky;
    top: 76px;
    z-index: 35;
    background: rgba(18, 18, 20, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
}
.sticky-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 250px;
}
.sticky-filter-pills::-webkit-scrollbar { display: none; }
.sticky-pill {
    background: #27272A;
    color: #A1A1AA;
    border: 1px solid #3F3F46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.sticky-pill:hover {
    background: #3F3F46;
    color: #FFFFFF;
}
.sticky-pill.active {
    background: #FF6600;
    color: #FFFFFF;
    border-color: #FF6600;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.35);
}
.sticky-sort-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.sticky-sort-select {
    background: #27272A;
    border: 1px solid #3F3F46;
    color: #E5E7EB;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.sticky-sort-select:focus {
    border-color: #FF6600;
}

/* 7. BOTÃO E MODAL DE COMPARTILHAMENTO */
.share-btn {
    color: #71717A;
    transition: color 0.2s, transform 0.2s;
}
.share-btn:hover {
    color: #38BDF8 !important;
    transform: scale(1.15);
}
.share-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.share-modal-card {
    background: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 14px;
    padding: 24px;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    text-align: center;
}
.share-links-row {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}
.share-action-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #27272A;
    border: 1px solid #3F3F46;
    border-radius: 10px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.share-action-box:hover {
    background: #3F3F46;
    border-color: #71717A;
    transform: translateY(-2px);
}
.share-action-box.wpp:hover {
    border-color: #10B981;
    color: #10B981;
}
.share-action-box.tlg:hover {
    border-color: #229ED9;
    color: #229ED9;
}
.share-copy-input-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.share-copy-input {
    flex: 1;
    background: #121214;
    border: 1px solid #3F3F46;
    border-radius: 6px;
    padding: 8px 12px;
    color: #A1A1AA;
    font-size: 12px;
    font-family: monospace;
    outline: none;
}
.share-copy-btn {
    background: #FF6600;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.share-copy-btn:hover { background: #E65C00; }

/* 8. MOBILE DRAWER & BOTTOM BAR (OCULTOS NO DESKTOP) */
.mobile-menu-btn,
.qp-bottom-bar {
    display: none;
}

.qp-drawer:not([open]) {
    display: none;
}

.qp-drawer {
    --drawer-width: min(21rem, 84dvw, 100dvw - 24px);
    --drawer-backdrop: 0;
    inset: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    z-index: 2000;
}

.qp-drawer::backdrop {
    background: #000000;
    opacity: calc(var(--drawer-backdrop) * 0.72);
}

.qp-drawer-scroller {
    position: relative;
    display: grid;
    grid-template-columns: var(--drawer-width) 100%;
    width: 100%;
    height: 100svh;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.qp-drawer-scroller::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .qp-drawer-scroller {
        scroll-behavior: smooth;
    }
}

.qp-drawer-scroller::after {
    content: '';
    grid-row: 1;
    grid-column: 2;
    scroll-snap-align: end;
    scroll-initial-target: nearest;
}

.qp-drawer-sheet {
    grid-row: 1;
    grid-column: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100svh;
    background: #141417;
    color: #F4F4F5;
    border-right: 1px solid #27272A;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-align: start;
    scrollbar-width: none;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.75);
}

.qp-drawer-sheet::-webkit-scrollbar {
    display: none;
}

@supports (animation-timeline: scroll()) {
    .qp-drawer {
        timeline-scope: --qp-drawer-fade;
        animation: qpFadeDrawerBackdrop linear both;
        animation-timeline: --qp-drawer-fade;
    }

    .qp-drawer-scroller {
        scroll-timeline: --qp-drawer-fade x;
    }

    @property --drawer-backdrop {
        syntax: '<number>';
        inherits: true;
        initial-value: 0;
    }

    @keyframes qpFadeDrawerBackdrop {
        0% { --drawer-backdrop: 1; }
        100% { --drawer-backdrop: 0; }
    }
}

.qp-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(12px, env(safe-area-inset-top, 0px)) 14px 12px max(16px, env(safe-area-inset-left, 0px));
    background: #09090B;
    border-bottom: 1px solid #27272A;
    position: sticky;
    top: 0;
    z-index: 2;
}

.qp-drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #18181B;
    border: 1px solid #3F3F46;
    color: #F4F4F5;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qp-drawer-body {
    padding: 12px 14px max(24px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-wrap: break-word;
}

.qp-drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #A1A1AA;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.qp-drawer-links,
.qp-drawer-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qp-drawer-links a,
.qp-drawer-link-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #18181B;
    border: 1px solid #27272A;
    color: #F4F4F5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.qp-drawer-links a:active,
.qp-drawer-link-btn:active {
    background: #27272A;
    border-color: #FF6600;
}

.qp-drawer-cat-trigger {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #18181B;
    border: 1px solid #27272A;
    color: #E4E4E7;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
}

.qp-drawer-cat-trigger[aria-expanded="true"] {
    background: #27272A;
    border-color: #FF6600;
    color: #FFFFFF;
}

.qp-drawer-cat-trigger[aria-expanded="true"] .qp-drawer-cat-chevron {
    transform: rotate(180deg);
    color: #FF6600;
}

.qp-drawer-cat-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.qp-drawer-cat-label i {
    color: #FF6600;
    width: 16px;
    text-align: center;
}

.qp-drawer-cat-chevron {
    font-size: 12px;
    color: #A1A1AA;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.qp-drawer-sublist {
    padding: 8px 6px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qp-drawer-sublist[hidden] {
    display: none;
}

.qp-drawer-view-all {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(255, 102, 0, 0.14);
    border: 1px solid rgba(255, 102, 0, 0.4);
    color: #FF8533;
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.qp-drawer-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.qp-drawer-subitem {
    min-height: 40px;
    padding: 7px 8px;
    border-radius: 7px;
    background: #1F1F23;
    border: 1px solid #2E2E35;
    color: #D4D4D8;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    line-height: 1.2;
}

.qp-drawer-subitem i {
    color: #A1A1AA;
    font-size: 12px;
    flex-shrink: 0;
}

.qp-drawer-store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.qp-drawer-store-btn {
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #27272A;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qp-drawer-store-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qp-drawer-vip-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.qp-drawer-vip-btn {
    min-height: 44px;
    border-radius: 9px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.qp-drawer-vip-btn.wpp {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.qp-drawer-vip-btn.tlg {
    background: linear-gradient(135deg, #229ED9 0%, #1783B8 100%);
}

@media (max-width: 1024px) {
    .main-header {
        padding: 12px 20px;
    }
    .search-bar {
        width: auto;
        flex: 1;
        max-width: 320px;
        margin: 0 15px;
    }
    .main-nav {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }
    .main-header {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
        transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: #18181B;
        border: 1px solid #27272A;
        color: #F4F4F5;
        font-size: 18px;
        cursor: pointer;
        order: 1;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-menu-btn:active {
        background: #27272A;
        border-color: #FF6600;
    }
    .main-header .logo {
        order: 2;
    }
    .header-actions {
        order: 3;
        margin-left: auto;
        gap: 6px;
    }
    .header-greeting {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px !important;
    }
    .header-alertas-btn {
        display: none !important;
    }
    .btn-login,
    .btn-logout-orange {
        padding: 7px 12px !important;
        font-size: 12px !important;
        min-height: 36px;
        border-radius: 18px !important;
    }
    .search-bar {
        order: 4;
        width: 100% !important;
        margin: 2px 0 0 0 !important;
        min-width: 100%;
    }
    .search-bar input {
        min-height: 40px;
        font-size: 14px;
        padding: 8px 38px 8px 14px;
        border-radius: 10px;
    }
    .main-nav {
        display: none !important;
    }
    .floating-vip-fab {
        display: none !important;
    }
    .qp-bottom-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        background: rgba(12, 12, 14, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(63, 63, 70, 0.7);
        padding: 4px max(4px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
        transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .qp-bottom-tab {
        position: relative;
        min-height: 48px;
        background: transparent;
        border: none;
        color: #A1A1AA;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10.5px;
        font-weight: 600;
        cursor: pointer;
        padding: 4px 2px;
        -webkit-tap-highlight-color: transparent;
    }
    .qp-bottom-tab i {
        font-size: 16px;
    }
    .qp-bottom-tab[aria-current="page"] {
        color: #FFFFFF;
        font-weight: 800;
    }
    .qp-bottom-tab[aria-current="page"] i {
        color: #FF6600;
    }
    .qp-bottom-tab[aria-current="page"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 24%;
        right: 24%;
        height: 3px;
        border-radius: 0 0 3px 3px;
        background: #FF6600;
    }
    .qp-bottom-tab:active {
        transform: scale(0.95);
    }
    body:has(#modalProduto[style*="flex"]) .qp-bottom-bar,
    body:has(#modalLoginGlobal[style*="flex"]) .qp-bottom-bar,
    body.modal-open .qp-bottom-bar {
        display: none !important;
    }
    @supports (container-type: scroll-state) {
        html {
            container-type: scroll-state;
        }
        @container scroll-state((scrolled: bottom) and (scrollable: top)) {
            .main-header:not(:focus-within) {
                transform: translateY(-100%);
            }
            .qp-bottom-bar {
                transform: translateY(100%);
            }
        }
    }
    .main-header.qp-mobile-scroll-hidden:not(:focus-within) {
        transform: translateY(-100%);
    }
    .qp-bottom-bar.qp-mobile-scroll-hidden {
        transform: translateY(100%);
    }
    /* MEGA MENU MOBILE TOUCH & EXPANSION */
    .has-dropdown {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .has-dropdown:hover .mega-menu {
        display: none;
    }
    .has-dropdown.is-open {
        color: #FF6600 !important;
    }
    .has-dropdown.is-open .mega-menu,
    .mega-menu.mega-menu-mobile-open {
        display: flex !important;
    }
    .mega-menu {
        position: fixed !important;
        top: 128px;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(82vh - 110px) !important;
        min-height: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 999999 !important;
        border-radius: 14px !important;
        border: 1px solid #FF6600 !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95) !important;
        background-color: #18181B !important;
        flex-direction: column !important;
    }
    .mega-menu .left-column {
        width: 100% !important;
        flex-shrink: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #27272A !important;
        padding: 10px 12px !important;
        background-color: #121212 !important;
    }
    .mega-menu .left-column .menu-header {
        display: none !important;
    }
    .mega-menu .left-column .category-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .mega-menu .left-column .category-list::-webkit-scrollbar {
        display: none !important;
    }
    .mega-menu .left-column .category-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 7px 12px !important;
        margin: 0 !important;
        font-size: 12px !important;
        border: 1px solid #27272A !important;
        border-radius: 20px !important;
        background-color: #1C1C1F !important;
    }
    .mega-menu .left-column .category-item .arrow-icon {
        display: none !important;
    }
    .mega-menu .left-column .category-item.active {
        background-color: #FF6600 !important;
        color: #ffffff !important;
        border-color: #FF6600 !important;
    }
    .mega-menu .left-column .category-item.active .cat-label i {
        color: #ffffff !important;
    }
    .mega-menu .right-column {
        width: 100% !important;
        flex-shrink: 0 !important;
        display: block !important;
        padding: 12px 14px !important;
        max-height: 55vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background-color: #18181B !important;
    }
    .mega-menu .sub-header-panel {
        margin-bottom: 12px !important;
    }
    .mega-menu .sub-header-panel h4 {
        font-size: 15px !important;
    }
    .mega-menu .wpp-category-alert {
        padding: 8px 10px !important;
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }
    .mega-menu .sub-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .mega-menu .sub-item {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        gap: 6px !important;
    }
    .mega-menu .sub-item i {
        font-size: 13px !important;
    }
    .mega-menu .store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    .mega-menu .store-btn {
        height: 44px !important;
    }
    .logo img {
        height: 32px !important;
    }
    .vip-channels-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }
    .vip-banner-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .vip-btn {
        justify-content: center;
    }
    .story-ring {
        width: 52px;
        height: 52px;
    }
    .story-caption {
        font-size: 10px;
        max-width: 58px;
    }
    .sticky-filter-toolbar {
        top: 65px;
        padding: 8px 10px;
    }
}

/* ===================================================================
   INDICADORES VISUAIS DE CARREGAMENTO (SPINNER / RADAR PULSE)
   =================================================================== */
@keyframes qpSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes qpSpinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes qpPulseGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.qp-spinner-glow {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
}

.qp-spinner-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3.5px solid rgba(255, 102, 0, 0.15);
    border-top-color: #FF6600;
    border-radius: 50%;
    animation: qpSpin 0.8s linear infinite;
}

.qp-spinner-glow::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 2.5px solid rgba(56, 189, 248, 0.15);
    border-bottom-color: #38BDF8;
    border-radius: 50%;
    animation: qpSpinReverse 1.2s linear infinite;
}

.loading-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: #FF6600;
    font-weight: 700;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    animation: qpPulseGlow 1.8s ease-in-out infinite;
}