/* Cashback Pro V35 — foreground/background seasonal animation + navigation refinements. */
:root{--v35-motion:1}
.app-header{position:sticky!important;top:0;z-index:1000!important;display:flex;align-items:center;gap:12px;isolation:isolate}
.header-left{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;min-width:0}
.brand{min-width:0}
.brand-icon{width:48px!important;height:48px!important;display:grid!important;place-items:center!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;flex:none}
.brand-icon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 12px rgba(137,113,255,.72))}
.theme-picker{display:none!important}
.theme-gallery-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid rgba(170,190,255,.42);border-radius:999px;padding:9px 14px;background:linear-gradient(120deg,rgba(89,61,190,.42),rgba(23,126,184,.30));color:#f6f4ff;font-weight:800;cursor:pointer;box-shadow:0 5px 18px rgba(28,18,78,.28);transition:transform .2s,box-shadow .2s}
.theme-gallery-toggle:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(102,126,255,.38)}
.theme-gallery-backdrop{position:fixed;inset:0;z-index:10019;background:rgba(2,5,18,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.seasonal-theme-gallery{display:none!important}
.seasonal-theme-gallery.is-open{display:block!important;position:fixed!important;z-index:10020!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:min(920px,calc(100vw - 28px))!important;max-height:min(82vh,760px)!important;overflow:auto!important;margin:0!important;padding:clamp(14px,2vw,24px)!important;box-shadow:0 28px 100px rgba(0,0,0,.62),0 0 55px var(--cinema-glow)!important;overscroll-behavior:contain}
.theme-gallery-heading-actions{display:flex;align-items:center;gap:10px}
.theme-gallery-close{width:38px;height:38px;flex:none;border:1px solid #ffffff45;border-radius:12px;background:#ffffff16;color:#fff;font-size:18px;cursor:pointer}
/* Remove explanatory cards from the right rail; retain only AI support. */
.seasonal-right{display:flex!important;flex-direction:column!important;gap:12px!important}
.seasonal-right .ai-promo{width:100%}
/* Persistent dashboard navigation on wide layouts even after entering a tab. */
.seasonal-sidebar{position:sticky!important;top:calc(var(--v35-header-height,82px) + 14px)!important;align-self:start;z-index:12!important;max-height:calc(100vh - 110px);overflow-y:auto}
.seasonal-dashboard.dashboard-away{display:grid!important;grid-template-columns:clamp(160px,16vw,220px) minmax(0,1fr)!important;min-height:0!important;margin-bottom:14px!important}
.seasonal-dashboard.dashboard-away .seasonal-main,.seasonal-dashboard.dashboard-away .seasonal-right{display:none!important}
/* Mobile: menu button is the first item at the upper-left, drawer remains open while switching sections. */
.mobile-menu-toggle{display:none;border:1px solid rgba(178,198,255,.42)!important;background:linear-gradient(135deg,rgba(73,64,153,.85),rgba(16,79,124,.82))!important;color:#fff!important;border-radius:12px!important;padding:9px 11px!important;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.24)}
.tabs-nav{scrollbar-width:thin}
.tabs-nav .tab-btn{flex:none}
#mobile-menu-backdrop{z-index:10001!important}
@media(min-width:761px){.seasonal-dashboard.dashboard-away .seasonal-sidebar{grid-column:1;grid-row:1}.seasonal-dashboard.dashboard-away{position:sticky;top:var(--v35-header-height,82px);z-index:40;pointer-events:none}.seasonal-dashboard.dashboard-away .seasonal-sidebar{pointer-events:auto}.seasonal-dashboard.dashboard-away+.tabs-nav{margin-top:0}}
@media(max-width:760px){
 .app-header{position:sticky!important;top:0!important;z-index:1000!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;padding:8px 10px!important;gap:8px!important}
 .header-left{width:100%;display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important}
 .mobile-menu-toggle{display:inline-flex!important;align-items:center;gap:6px;order:0;flex:none;font-size:12px;padding:9px 10px!important}
 .header-left>.brand{order:1;flex:1;min-width:0;display:flex;align-items:center;gap:7px}
 .brand-icon{width:42px!important;height:42px!important}
 .brand-title{font-size:15px!important;white-space:nowrap}
 .brand-sub{display:none}
 .theme-gallery-toggle{order:2;font-size:11px;padding:8px 10px}
 .header-controls{width:100%;display:flex;justify-content:flex-end}
 .tabs-nav{position:fixed!important;z-index:10002!important;top:0!important;left:0!important;bottom:0!important;width:min(82vw,330px)!important;max-width:330px!important;padding:calc(78px + env(safe-area-inset-top)) 14px 24px!important;background:linear-gradient(160deg,rgba(8,18,48,.98),rgba(20,12,49,.98))!important;border-right:1px solid rgba(160,194,255,.42)!important;box-shadow:18px 0 55px rgba(0,0,0,.55)!important;transform:translateX(-112%)!important;transition:transform .26s cubic-bezier(.2,.8,.2,1)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;overflow-y:auto!important;overscroll-behavior:contain}
 .tabs-nav.mobile-open{transform:translateX(0)!important}
 .tabs-nav .tab-btn{width:100%!important;min-height:48px!important;justify-content:flex-start!important;text-align:left!important;padding:13px 14px!important;border-radius:12px!important;white-space:normal!important;font-size:14px!important}
 .mobile-menu-backdrop.visible{display:block!important;position:fixed!important;inset:0!important;z-index:10001!important;background:rgba(0,0,0,.56)!important}
 .seasonal-sidebar{display:none!important}
 .seasonal-dashboard.dashboard-away{display:none!important}
 .seasonal-theme-gallery.is-open{width:calc(100vw - 20px)!important;max-height:82dvh!important;border-radius:18px!important}
 .theme-gallery-heading{align-items:flex-start!important}
 .theme-gallery-heading-actions{gap:6px}
 .theme-gallery-badge{font-size:9px;padding:6px 8px}
 .seasonal-theme-options{grid-template-columns:1fr!important}
 .theme-option{min-height:88px!important}
 .theme-gallery-toggle{margin-left:auto}
}
/* Seasonal controls get a matching trim/glow on each theme. */
body.theme-halloween .side-link.active,body.theme-halloween .tab-btn.active{border-color:#d49aff!important;box-shadow:0 0 18px #a855f755}
body.theme-halloween .theme-gallery-toggle{background:linear-gradient(120deg,#55227c,#9b4dcc);border-color:#d49aff}
body.theme-winter .side-link.active,body.theme-winter .tab-btn.active{border-color:#9ee4ff!important;box-shadow:0 0 18px #38bdf855}
body.theme-winter .theme-gallery-toggle{background:linear-gradient(120deg,#13528a,#1687b5);border-color:#9ee4ff}
body.theme-ocean .side-link.active,body.theme-ocean .tab-btn.active{border-color:#7cf5ee!important;box-shadow:0 0 18px #2dd4bf55}
body.theme-ocean .theme-gallery-toggle{background:linear-gradient(120deg,#075b70,#078f98);border-color:#7cf5ee}
/* Front layer is deliberately above glass panels to create depth; it never captures input. */
#cinematic-particles-front{position:fixed;inset:0;width:100%;height:100%;z-index:24;pointer-events:none;opacity:.82}
#seasonal-creature-layer{position:fixed;inset:0;z-index:26;overflow:hidden;pointer-events:none;contain:layout paint}
.seasonal-creature{position:absolute;left:-14vw;top:var(--creature-y,40vh);font-size:clamp(34px,5vw,66px);line-height:1;filter:drop-shadow(0 5px 12px rgba(0,0,0,.55)) drop-shadow(0 0 12px var(--creature-glow,#8bdcff));white-space:nowrap;will-change:transform;animation:creature-cross var(--creature-duration,13s) linear forwards}
.seasonal-creature.reverse{left:auto;right:-14vw;animation-name:creature-cross-reverse}
.seasonal-creature.small{font-size:clamp(26px,3.4vw,44px)}
.seasonal-creature.spider{left:var(--spider-x,75vw);top:-10px;animation:spider-drop 7s ease-in-out forwards;font-size:36px}
.seasonal-creature.spider:before{content:"";position:absolute;left:50%;top:-100vh;height:100vh;width:1px;background:linear-gradient(#c7b8dc66,#c7b8dc);}
@keyframes creature-cross{from{transform:translate3d(0,0,0) rotate(-4deg)}to{transform:translate3d(125vw,-4vh,0) rotate(5deg)}}
@keyframes creature-cross-reverse{from{transform:translate3d(0,0,0) scaleX(-1)}to{transform:translate3d(-125vw,3vh,0) scaleX(-1)}}
@keyframes spider-drop{0%{transform:translateY(-10vh);opacity:0}15%,75%{opacity:1}100%{transform:translateY(110vh);opacity:0}}
body.theme-halloween{--creature-glow:#d59aff}body.theme-winter{--creature-glow:#9be7ff}body.theme-ocean{--creature-glow:#65f2e8}
body.theme-halloween .seasonal-shortcuts button,body.theme-halloween .dashboard-refresh{border-color:#c98cff66}
body.theme-winter .seasonal-shortcuts button,body.theme-winter .dashboard-refresh{border-color:#8bdcff77}
body.theme-ocean .seasonal-shortcuts button,body.theme-ocean .dashboard-refresh{border-color:#5ce8df77}
@media(max-width:760px){#cinematic-particles-front{opacity:.55}.seasonal-creature{font-size:34px}.seasonal-creature.spider{font-size:28px}}
@media(prefers-reduced-motion:reduce){#cinematic-particles-front,#seasonal-creature-layer{display:none!important}.theme-gallery-toggle,.seasonal-theme-gallery{transition:none!important}.seasonal-creature{animation:none!important}}
@media(min-width:761px){
 body.dashboard-tab-mode .main-container{padding-left:clamp(220px,19vw,250px)!important}
 .seasonal-dashboard.dashboard-away{display:block!important;position:static!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;pointer-events:none!important}
 .seasonal-dashboard.dashboard-away .seasonal-sidebar{position:fixed!important;left:14px!important;top:calc(var(--v35-header-height,82px) + 14px)!important;bottom:14px!important;width:clamp(180px,16vw,220px)!important;max-height:none!important;z-index:990!important;pointer-events:auto!important;overflow-y:auto!important}
}
@media(max-width:760px){body.dashboard-tab-mode .main-container{padding-left:10px!important}.seasonal-dashboard.dashboard-away{display:none!important}}
