
.main-content { max-width: 1400px; margin: 0 auto; padding: 3rem clamp(1.5rem, 5vw, 2rem); overflow-x: hidden; }


.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: 'Crimson Pro', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #ff6b4a; margin-bottom: 1rem; }
.page-header p { color: #68717f; font-size: 1.1rem; max-width: 800px; margin: 0 auto; }

.stats-bar { background: white; border-radius: var(--r-md); padding: 1.5rem 2rem; margin-bottom: 2rem; display: flex; justify-content: space-around; align-items: center; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-1); }
.stat-item { text-align: center; }
.stat-value { font-family: 'Crimson Pro', serif; font-size: 2rem; font-weight: 700; color: #ff6b4a; display: block; }
.stat-label { color: #68717f; font-size: 0.9rem; margin-top: 0.25rem; }

.info-box { background: white; border-left: 4px solid #a3611a; border-radius: var(--r-md); padding: 1.5rem 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-1); }
.info-box h2 { font-family: 'Crimson Pro', serif; font-size: 1.4rem; color: #354052; margin-bottom: 0.75rem; }
.info-box p { color: #48536a; line-height: 1.8; margin: 0 0 1rem 0; }
.info-box p:last-child { margin-bottom: 0; }

.variance-callout { background: rgba(163, 97, 26,0.08); border: 2px solid rgba(163, 97, 26,0.35); border-radius: var(--r-md); padding: 1rem 1.25rem; margin-top: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.variance-icon { font-size: 1.5rem; flex-shrink: 0; }
.variance-content { color: #48536a; font-size: 0.95rem; line-height: 1.7; }
.variance-content strong { color: #7d4a12; display: block; margin-bottom: 0.35rem; }

.filter-panel { background: white; border: 1px solid #e3ddd3; border-radius: var(--r-md); padding: 1.5rem 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-1); }
.filter-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.filter-panel-title { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #99a2b0; }
.filter-active-badge { display: none; align-items: center; gap: 0.75rem; }
.filter-active-badge.visible { display: flex; }
.filter-count { background: #ff6b4a; color: white; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--r-md); }
.filter-clear { background: none; border: none; color: #68717f; font-size: 0.85rem; cursor: pointer; font-family: 'Work Sans', sans-serif; text-decoration: underline; padding: 0; }
.filter-clear:hover { color: #ff6b4a; }
.filter-row { display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 0.5rem; }
.filter-label { font-size: 0.82rem; font-weight: 600; color: #48536a; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-select { background: white; color: #48536a; border: 2px solid #e3ddd3; border-radius: var(--r-md); padding: 0.5rem 2rem 0.5rem 0.85rem; font-family: 'Work Sans', sans-serif; font-size: 0.9rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
.filter-select:focus { outline: none; border-color: #ff6b4a; }

.group-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.group-chip { display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: var(--r-md); border: 2px solid #e3ddd3; background: white; color: #48536a; font-family: 'Work Sans', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.group-chip:hover { border-color: #c4cad4; background: #f8f5f0; }
.group-chip.selected { background: #1a2332; border-color: #1a2332; color: white; }
.group-chip.excluded { background: #f2ddd8; border-color: #e0b3ab; color: #932e22; text-decoration: line-through; }
.group-mode-toggle { display: none; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.group-mode-toggle.visible { display: flex; }
.mode-btn { padding: 0.3rem 0.85rem; border-radius: var(--r-md); border: 2px solid #e3ddd3; background: white; color: #68717f; font-family: 'Work Sans', sans-serif; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.mode-btn.active { background: #1a2332; border-color: #1a2332; color: white; }
.mode-btn.active.exclude { background: #932e22; border-color: #932e22; }

.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.5rem; margin-bottom: 3rem; }

.offer-card { background: white; border-radius: var(--r-md); border: 1px solid #e3ddd3; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-1); cursor: pointer; }
.offer-card:hover { transform: translateY(-4px); border-color: #a3611a; box-shadow: var(--shadow-2); }
.offer-card.hidden { display: none !important; }
.hide-gubbed-btn { display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: var(--r-md); border: 2px solid #e3ddd3; background: white; color: #48536a; font-family: 'Work Sans', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.hide-gubbed-btn:hover { border-color: #c4cad4; background: #f8f5f0; }
.hide-gubbed-btn.active { background: #1a2332; border-color: #1a2332; color: white; }
.gub-tooltip-wrap { position: relative; display: inline-flex; align-items: center; }
.gub-tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #e3ddd3; color: #68717f; font-size: 0.65rem; font-weight: 700; cursor: default; margin-left: 6px; flex-shrink: 0; }
.gub-tooltip-icon:hover + .gub-tooltip-text, .gub-tooltip-icon:focus + .gub-tooltip-text, .gub-tooltip-text:hover { opacity: 1; pointer-events: auto; }
.gub-tooltip-text { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1a2332; color: white; font-size: 0.75rem; line-height: 1.4; padding: 0.5rem 0.75rem; border-radius: var(--r-md); white-space: normal; width: 220px; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; z-index: 100; }
.gub-tooltip-text::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #1a2332; }
.gub-tooltip-link { display: block; margin-top: 0.4rem; color: #93c5fd; text-decoration: underline; }
.gub-tooltip-link:hover { color: white; }

.offer-header { background: #a3611a; padding: 1.5rem; text-align: center; min-height: 110px; display: flex; flex-direction: column; justify-content: center; }
.offer-card[data-risk="high-risk"] .offer-header { background: #932e22; }
.casino-name { font-family: 'Crimson Pro', serif; font-size: 1.75rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.offer-title { color: rgba(255,255,255,0.95); font-size: 0.95rem; font-weight: 500; }

/* Locked header placeholder - hidden until JS applies .gated-locked */
.locked-header-placeholder { display: none; flex-direction: column; align-items: center; gap: 0.4rem; }
.locked-icon { font-size: 1.75rem; }
.locked-label { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
/* Applied by JS to [data-gated] cards when user is not a subscriber */
.offer-card.gated-locked { cursor: pointer; }
.offer-card.gated-locked:hover { transform: translateY(-4px); border-color: #68717f; box-shadow: var(--shadow-2); }
.offer-card.gated-locked .offer-header { background: #48536a; }
.offer-card.gated-locked .casino-name,
.offer-card.gated-locked .offer-title { display: none; }
.offer-card.gated-locked .locked-header-placeholder { display: flex; }
.offer-card.gated-locked .offer-details .detail-row:nth-child(n+3) { display: none; }
.offer-card.gated-locked .cta-button { background: #48536a; }
.offer-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.risk-badge { display: inline-block; background: #a3611a; color: white; padding: 0.4rem 1rem; border-radius: var(--r-md); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }
.risk-badge.high-risk { background: #932e22; }
.offer-details { margin-bottom: 1.5rem; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f2ede5; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: #68717f; font-size: 0.9rem; }
.detail-value { color: #354052; font-weight: 600; font-size: 0.95rem; }
.ev-highlight { background: #1f7a5c; padding: 1rem; border-radius: var(--r-md); text-align: center; margin-bottom: 1.5rem; }
.ev-label { color: rgba(255,255,255,0.9); font-size: 0.85rem; margin-bottom: 0.25rem; }
.ev-value { font-family: 'Crimson Pro', serif; font-size: 1.75rem; font-weight: 700; color: white; }
.cta-button { display: block; width: 100%; padding: 1rem; background: #ff6b4a; color: white; text-decoration: none; text-align: center; border-radius: var(--r-md); font-weight: 600; font-size: 1rem; transition: all 0.3s ease; margin-top: auto; box-sizing: border-box; }
.cta-button:hover { transform: scale(1.02); box-shadow: var(--shadow-2); }

.offer-status-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border: 2px solid; border-radius: var(--r-md); font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 0.82rem; cursor: pointer; transition: all 0.2s ease; background: transparent; }
.status-not-started { border-color: #c4cad4; color: #68717f; }
.status-not-started:hover { border-color: #ff6b4a; color: #ff6b4a; }
.status-in-progress { border-color: #a3611a; color: #a3611a; }
.status-complete { border-color: #1f7a5c; color: #1f7a5c; }

.empty-scaffold { grid-column: 1/-1; text-align: center; padding: 3.5rem 2rem; background: white; border-radius: var(--r-md); border: 2px dashed #e3ddd3; }
.empty-scaffold-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-scaffold h3 { font-family: 'Crimson Pro', serif; font-size: 1.5rem; color: #354052; margin-bottom: 0.5rem; }
.empty-scaffold p { color: #68717f; max-width: 520px; margin: 0 auto 1.5rem; line-height: 1.7; }
.empty-scaffold a { color: #ff6b4a; text-decoration: none; font-weight: 600; }
.empty-scaffold a:hover { text-decoration: underline; }

.no-results { grid-column: 1/-1; text-align: center; padding: 3rem; color: #99a2b0; background: white; border-radius: var(--r-md); border: 1px solid #e3ddd3; }
.no-results-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.sticky-filter-bar { position: sticky; top: 80px; z-index: 40; background: white; border: 1px solid #e3ddd3; border-radius: var(--r-md); box-shadow: var(--shadow-1); margin-bottom: 1.5rem; }
.filter-row-main { display: flex; gap: 1.25rem; align-items: flex-end; padding: 0.875rem 1.25rem 0.6rem; flex-wrap: wrap; }
.filter-bar-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.filter-row-groups { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.35rem 1.25rem 0.875rem; flex-wrap: wrap; border-top: 1px solid #f2ede5; }
.filter-row-groups-label { flex-shrink: 0; font-family: 'Work Sans', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #99a2b0; margin-top: 0.45rem; }
.group-chips-scroll-wrap { flex: 1; min-width: 200px; }
.group-chips-scroll { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.group-chip { flex-shrink: 0; padding: 0.3rem 0.85rem; border-radius: var(--r-pill); background: #f2ede5; border: 1.5px solid #e3ddd3; color: #48536a; font-family: 'Work Sans', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.15s ease; line-height: 1.4; }
.group-chip:hover { background: #e9ebef; border-color: #c4cad4; }
.group-chip.selected { background: #1a2332; color: white; border-color: #1a2332; }
.group-chip.excluded { background: #f2ddd8; color: #7d271d; border-color: #e0b3ab; }
.group-mode-wrap { flex-shrink: 0; display: none; align-items: center; background: #f2ede5; border: 1.5px solid #e3ddd3; border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.group-mode-wrap.visible { display: flex; }
.mode-btn { padding: 0.25rem 0.7rem; border: none; background: transparent; border-radius: var(--r-pill); font-family: 'Work Sans', sans-serif; font-size: 0.8rem; font-weight: 600; color: #68717f; cursor: pointer; white-space: nowrap; transition: all 0.15s ease; }
.mode-btn.active { background: #1a2332; color: white; }
.mode-btn.exclude.active { background: #7d271d; color: white; }

.section-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-tab { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: var(--r-md); background: #f2ede5; border: 1px solid #e3ddd3; color: #48536a; text-decoration: none; font-weight: 600; font-size: 0.85rem; font-family: 'Work Sans', sans-serif; transition: all 0.2s ease; white-space: nowrap; }
.section-tab:hover { background: #e3ddd3; }
.section-tab.active { background: #1a2332; color: white; border-color: #1a2332; }
.section-tab.warning { background: rgba(163, 97, 26,0.12); color: #7d4a12; border-color: rgba(163, 97, 26,0.3); }
.section-tab.warning:hover { background: rgba(163, 97, 26,0.22); }
.section-tab-count { background: rgba(0,0,0,0.12); font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: var(--r-pill); flex-shrink: 0; }
.section-tab.active .section-tab-count { background: rgba(255,255,255,0.25); }
#main-offers-section, #spins-wagering-section, #bingo-offers-section { scroll-margin-top: 180px; }

@media (max-width: 640px) {
    .filter-row-main { gap: 0.75rem; }
    .filter-bar-right { margin-left: 0; }
    .filter-row-groups-label { display: none; }
}

.spins-wagering-badge { display: inline-block; background: rgba(163, 97, 26,0.15); color: #7d4a12; border: 1px solid rgba(163, 97, 26,0.4); padding: 0.3rem 0.75rem; border-radius: var(--r-md); font-size: 0.78rem; font-weight: 600; margin-bottom: 1rem; }

.spins-wagering-details { margin-top: 1rem; }
.spins-wagering-summary { cursor: pointer; list-style: none; user-select: none; font-family: 'Crimson Pro', serif; font-size: 1.1rem; font-weight: 700; color: #7d4a12; padding: 1rem 1.25rem; background: rgba(163, 97, 26,0.08); border: 1px solid rgba(163, 97, 26,0.3); border-radius: var(--r-md); margin-bottom: 1rem; }
.spins-wagering-summary::-webkit-details-marker { display: none; }
.spins-wagering-summary::before { content: '▸'; display: inline-block; margin-right: 0.5rem; transition: transform 0.2s ease; }
.spins-wagering-details[open] .spins-wagering-summary::before { transform: rotate(90deg); }
.spins-wagering-count { background: rgba(163, 97, 26,0.25); color: #7d4a12; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: var(--r-pill); margin-left: 0.4rem; }
.spins-wagering-note { color: #68717f; font-size: 0.92rem; line-height: 1.7; margin: 0 0 1.25rem; padding: 0 0.25rem; }

@media (max-width: 768px) {
    .stats-bar { padding: 1rem; }
    .stat-value { font-size: 1.5rem; }
    .offers-grid { grid-template-columns: 1fr; }
    .filter-row { gap: 1.5rem; }

    .offer-status-btn { padding: 0.6rem 1rem; font-size: 0.875rem; min-height: 44px; }
    .filter-clear { min-height: 44px; padding: 0.5rem 0.75rem; font-size: 0.9rem; }
    .mode-btn { padding: 0.5rem 1rem; min-height: 44px; font-size: 0.875rem; }
    .group-chip { padding: 0.55rem 1rem; min-height: 44px; font-size: 0.9rem; }
    .filter-label { font-size: 0.875rem; }
    .filter-select { min-height: 44px; font-size: 0.9rem; padding: 0.6rem 2rem 0.6rem 0.85rem; }
}
