/* Shared theme, loaded after page styles. Product photography stays unchanged. */
.theme-search-stack{display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:8px;flex:none}
.header.has-theme-toggle{min-height:76px}
button.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:5px;border:1px solid var(--line);border-radius:50%;background:var(--ice);color:var(--blue);line-height:1;flex:none}
.theme-toggle svg{width:20px;height:20px}
.theme-search-stack .header-search{flex:none}
html[data-theme=dark],html[data-theme=dark] body{--page-surface:#0B1120;--card-surface:#172238;--blue:#63a9ff;--ink:#edf3ff;--muted:#a6b5ce;--line:#30415e;--ice:#1c3151;--danger:#ff8d9b;--card-shadow:0 10px 14px -6px #0009,0 3px 6px #0004;--raised-shadow:0 12px 20px -8px #0009;color-scheme:dark;background:var(--page-surface);color:var(--ink)}
html[data-theme=dark] :is(.header,.content-header,.news-card,.contest-card,.contest-form,.contest-admin-row,#contest-replay,#contest-roster,.draw-reel-card){background:var(--card-surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .reference-home :is(#store-grid>.product,#news-grid>.news-card,#software-home-grid>.software-home-card,#other-products-grid>.software-home-card){background:var(--card-surface);border-color:var(--line);box-shadow:var(--card-shadow)}
html[data-theme=dark] .reference-home :is(.brand-text,.icon-button,.section-head h1,.section-head h2,.top-categories a,.product h3){color:var(--ink)}
html[data-theme=dark] .reference-home #store{background:var(--page-surface)}
html[data-theme=dark] :is(.news-article-page,.news-card h3){color:var(--ink)}
html[data-theme=dark] :is(.news-card p,.news-card time,.draw-note,.draw-reel-card span,.contest-card-result>strong,.contest-roster-list span){color:var(--muted)}
html[data-theme=dark] .reference-home :is(.menu-trigger,.quantity-controls button,.favorite-button){background:var(--ice);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .favorite-button[aria-pressed=true]{color:#ff7586}
html[data-theme=dark] .reference-home :is(.section-head>a,.product>.price,.catalog-back){color:var(--blue)}
html[data-theme=dark] .reference-home :is(#catalog-search input){background:var(--card-surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.category-software,.category-comparisons,.contest-receipt,.contest-card-result,.draw-result,.draw-reel-stage){background:var(--ice);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .contest-note{background:#3b301b;color:#ffe0a1}
html[data-theme=dark] :is(.button.primary,button.primary,.site-footer){background:#1673ea;color:#fff;border-color:#1673ea}
html[data-theme=dark] #toast{background:var(--ice);color:var(--ink);border:1px solid var(--line)}
html[data-theme=dark] .mobix-mobile-nav{background:linear-gradient(145deg,#162238ed,#0c1424cc);border-color:#52709b80;box-shadow:0 8px 28px #0005,inset 0 1px 0 #adc9ff33}
html[data-theme=dark] .mobix-mobile-nav .mobix-liquid-marker{background:linear-gradient(135deg,#629de940,#629de910);border-color:#8cb9f355;box-shadow:inset 0 1px 0 #adc9ff33}
html[data-theme=dark] .mobix-mobile-nav :is(a,button){color:var(--muted)}
html[data-theme=dark] .mobix-mobile-nav .is-active{color:var(--blue)}
html[data-theme=dark] .mobix-mobile-nav .mobix-whatsapp{color:#69e6a0}

/* Pure-white light canvas on every page; keep the existing dark-mode choice.
   Presentation only: no dimensions, spacing, typography or scrolling changes. */
html:not([data-theme=dark]),
html:not([data-theme=dark]) body{
 --page-surface:#FFFFFF;
 background:#FFFFFF;
}
html:not([data-theme=dark]) body :is(main,.content,.article-page,.admin-page),
html:not([data-theme=dark]) body main section:not(.hero),
html:not([data-theme=dark]) .reference-home .content :is(#store,#news,#contests-home,#other-products){
 background:#FFFFFF;
}
/* Neutral water-glass tiles keep the independent colored 3D vector artwork. */
html:not([data-theme=dark]) .home-refresh .section-head .home-section-icon,
html:not([data-theme=dark]) .home-refresh #categories .top-categories .category-photo{
 background-color:#FFFFFF;
 background-image:radial-gradient(ellipse at 28% 16%,#FFFFFF 0%,#FFFFFF00 62%),linear-gradient(145deg,#FFFFFFE6,#FFFFFF66);
 background-size:auto;
 background-position:center;
 border-color:rgba(120,130,140,.16);
 box-shadow:inset 0 2px 3px #FFFFFF,inset 0 -3px 7px rgba(80,90,100,.08),0 4px 12px rgba(30,40,50,.10);
}

/* Neutral floating sections and cards. Keep border widths for identical geometry.
   Scoped to light mode; accent controls, artwork and focus outlines retain their colors.
   Important paint rules resolve legacy page/id selectors and their hover shadows. */
html:not([data-theme=dark]) body main section:not(.hero){
 background:#FFFFFF!important;
 border-color:transparent!important;
 box-shadow:0 2px 10px rgba(0,0,0,.025)!important;
}
html:not([data-theme=dark]) body :is(
 .product,.phone-card,.video-card,.news-card,.software-home-card,.contest-card,
 .comparison,.order-card,.article-page article,.contest-form,
 .contest-start,.contest-admission,#contest-replay,#contest-roster
){
 background:#FFFFFF!important;
 border-color:transparent!important;
 box-shadow:0 2px 8px rgba(0,0,0,.045)!important;
}

/* More visible neutral depth under display cards, without changing card geometry. */
html:not([data-theme=dark]) body :is(.product,.phone-card,.video-card,.news-card,.software-home-card,.contest-card){
 box-shadow:0 8px 16px -5px rgba(0,0,0,.18),0 2px 5px rgba(0,0,0,.07)!important;
}
/* Paint the row shadow after scroll clipping, without changing layout or spacing. */
html:not([data-theme=dark]) .reference-home:not(.catalog-page) :is(#store-grid,#news-grid,#other-products-grid,#contest-home-grid){
 filter:drop-shadow(0 5px 5px rgba(0,0,0,.10));
}

/* Match section navigation pills to the white cards, including hover paint.
   Keep the existing button geometry, blue label/arrow and keyboard focus ring. */
html:not([data-theme=dark]) body .section-head>a{
 background:#FFFFFF!important;
 border-color:transparent!important;
 box-shadow:0 8px 16px -5px rgba(0,0,0,.18),0 2px 5px rgba(0,0,0,.07)!important;
}

/* Dark surfaces only. Transparent borders retain the existing card geometry.
   Keep keyboard outlines and photograph pixels intact. */
html[data-theme=dark] :is(.content,.content>section,.home-news,.benefits,footer){
 background:var(--page-surface);border-color:transparent;box-shadow:none;
}
html[data-theme=dark] .reference-home :is(#store,#news,#categories,#videos,#contests-home,#software-home,#other-products){
 background:var(--page-surface);border-color:transparent;box-shadow:none;
}
html[data-theme=dark] :is(.product,.phone-card,.video-card,.news-card,.software-home-card,.contest-card,.order-card,.article-page article,.contest-form,.contest-admin-row,#contest-replay,#contest-roster,.draw-reel-card){
 background:var(--card-surface);color:var(--ink);border-color:transparent;box-shadow:var(--card-shadow);
}
html[data-theme=dark] .reference-home :is(#store-grid>.product,#news-grid>.news-card,#videos-grid>.video-card,#phones-grid>.phone-card,#software-home-grid>.software-home-card,#other-products-grid>.software-home-card,.contest-home-grid>.contest-card){
 background:var(--card-surface);color:var(--ink);border-color:transparent;box-shadow:var(--card-shadow);
}
html[data-theme=dark] :is(.header,.content-header,.section-head,.benefits>div,.hero,.category-photo,.contest-receipt,.contest-card-result,.draw-result,.draw-reel-stage,.draw-history-row,.contest-roster-list li){
 border-color:transparent;
}
html[data-theme=dark] .reference-home :is(.section-head,.category-photo){border-color:transparent}
html[data-theme=dark] :is(.news-card img,.news-card .news-card-gallery,#news-image,.thumbnail,.contest-media,.contest-detail-gallery img){
 background-color:var(--card-surface);
}
html[data-theme=dark] .reference-home :is(.product .store-gallery,.product .store-gallery img,.product .phone-placeholder,#news-grid .thumbnail,#videos-grid .thumbnail){
 background-color:var(--card-surface);
}
html[data-theme=dark] :is(.news-card h3,.software-home-card h3,.contest-info h3,.phone-card h3,.video-card h3){color:var(--ink)}
html[data-theme=dark] .reference-home :is(.brand-text small,.product .product-specs,.product .phone-placeholder,.software-home-card .product-specs,.product-old-price),
html[data-theme=dark] :is(#news-date,.news-card p,.news-card time){color:var(--muted)}
html[data-theme=dark] :is(.category-icon,.category-software,.category-comparisons,button.theme-toggle,.section-count),
html[data-theme=dark] .reference-home :is(.category-software,.category-comparisons,.menu-trigger,.favorite-button,.section-head>a){
 background:linear-gradient(145deg,#284467,#1a2b46);color:var(--blue);border-color:transparent;
 box-shadow:inset 0 1px 2px #ffffff0d,0 4px 8px -4px #0008;
}
html[data-theme=dark] .reference-home .favorite-button[aria-pressed=true]{color:#ff7586}
html[data-theme=dark] :is(.button.primary,button.primary){background:linear-gradient(155deg,#2584fb,#1265d5);color:#fff;border-color:transparent;box-shadow:0 5px 10px -5px #0008}
html[data-theme=dark] .site-footer{background:var(--page-surface);border-color:transparent}
html[data-theme=dark] :is(.mobix-mobile-nav,.mobix-mobile-nav .mobix-liquid-marker,.bottom-nav){border-color:transparent}

/* Production homepage skin: dark paint wins over the light glass artwork layers.
   Keep all measurements, focus rings and colored object illustrations. */
html[data-theme=dark] .home-refresh{--home-muted:var(--muted)}
html[data-theme=dark] .home-refresh .content>section:not(.hero){
 background:var(--page-surface)!important;border-color:transparent!important;box-shadow:none!important;
}
html[data-theme=dark] .home-refresh .section-head .home-section-icon,
html[data-theme=dark] .home-refresh #categories .top-categories .category-photo,
html[data-theme=dark] .home-refresh .section-head>a,
html[data-theme=dark] .home-refresh .section-head .section-count:not([hidden]){
 background:linear-gradient(145deg,#284467,#1a2b46);border-color:transparent;color:var(--blue);
 box-shadow:inset 0 1px 2px #ffffff0d,0 4px 8px -4px #0008;
}
html[data-theme=dark] .home-refresh :is(#store-grid,#news-grid,#other-products-grid,#contest-home-grid){
 filter:drop-shadow(0 5px 5px #0006);
}
html[data-theme=dark] :is(.comparison,.contest-start,.contest-admission){background:var(--card-surface);color:var(--ink);border-color:transparent;box-shadow:var(--card-shadow)}

/* Clear, bold pricing across product cards and details. */
html:not([data-theme=dark]) body :is(.price,#product-page-price){color:#111;font-weight:800}
html[data-theme=dark] body :is(.price,#product-page-price){color:#edf3ff;font-weight:800}
html body .price .product-new-price{color:inherit;font-weight:800}

/* Keep product photos white and the information panel softly gray. */
html:not([data-theme=dark]) :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card{background:#f7f7f7!important;border-color:#e5e5e5!important;box-shadow:none!important}
html:not([data-theme=dark]) .reference-home:not(.catalog-page) :is(#store-grid,#other-products-grid){filter:none}
html body.home-refresh #store .section-head>.store-show-all{display:inline-flex;align-items:center;flex:none;min-height:32px;padding:0;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;color:#2e7daf;font-size:13px;font-weight:700;white-space:nowrap}
html[data-theme=dark] body.home-refresh #store .section-head>.store-show-all{color:var(--blue)}

/* Extend the gray news information panel through the card's existing padding. */
html:not([data-theme=dark]) .reference-home:not(.catalog-page) #news-grid>.news-card>div:last-child{background:#f7f7f7;box-shadow:0 8px 0 8px #f7f7f7}
