/* تحسين بصري محصور بأدوات IPTV وPanel؛ القيم والنتائج وسلوك البحث لا تتغير. */
html[data-theme] body[data-catalog=offers] .reseller-controls{justify-content:center;gap:10px;}
html[data-theme] body[data-catalog=offers] .reseller-controls>.category-shortcuts{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;width:100%;margin:0;}
html[data-theme] body[data-catalog=offers] .category-shortcuts button{
 display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border-radius:12px;font-weight:600;line-height:1.5;box-shadow:var(--ui-inset),0 2px 4px #0000000a;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
}
html[data-theme] body[data-catalog=offers] .category-shortcuts button::before{
 content:'';display:block;flex:0 0 18px;width:18px;height:18px;background:currentColor;-webkit-mask:var(--catalog-filter-icon) center/contain no-repeat;mask:var(--catalog-filter-icon) center/contain no-repeat;opacity:.88;
}
html[data-theme] body[data-catalog=offers] .category-shortcuts [data-category=""]{--catalog-filter-icon:url('../icons/catalog/grid.svg');}
html[data-theme] body[data-catalog=offers] .category-shortcuts [data-category=iptv]{--catalog-filter-icon:url('../icons/catalog/tv.svg');}
html[data-theme] body[data-catalog=offers] .category-shortcuts [data-category=application]{--catalog-filter-icon:url('../icons/catalog/android.svg');}
html[data-theme] body[data-catalog=offers] .category-shortcuts [data-category=satellite]{--catalog-filter-icon:url('../icons/catalog/satellite.svg');}
html[data-theme] body[data-catalog=offers] .category-shortcuts [data-category=beinsport]{--catalog-filter-icon:url('../icons/catalog/sport.svg');}
html[data-theme] body[data-catalog=offers] .category-shortcuts [data-category=mango]::before{background:transparent url('../icons/catalog/mango.png') left center/auto 100% no-repeat;-webkit-mask:none;mask:none;opacity:1;}
html[data-theme] body[data-catalog=offers] .reseller-currency{
 gap:12px;padding:5px 6px 5px 14px;border:1px solid var(--ui-line);border-radius:12px;background:linear-gradient(145deg,var(--ui-panel),var(--ui-raised));box-shadow:var(--ui-inset),0 3px 8px #0000000d;color:var(--ui-soft);font-size:12px;font-weight:600;transition:border-color 160ms ease,box-shadow 160ms ease;
}
html[data-theme] body[data-catalog=offers] .reseller-currency:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-selected),var(--ui-inset);}
html[data-theme] body[data-catalog=offers] .reseller-currency #currency-select{
 min-width:100px;min-height:42px;width:auto;padding:7px 12px;border:1px solid var(--ui-line-soft);border-radius:8px;background:var(--ui-selected);color:var(--ui-accent);font-size:13px;font-weight:700;line-height:1.5;direction:ltr;cursor:pointer;box-shadow:inset 0 1px #ffffff18;transition:border-color 160ms ease,background-color 160ms ease;
}
html[data-theme] body[data-catalog=offers] #currency-select:is(:hover,:open){border-color:var(--ui-accent);}
html[data-theme] body[data-catalog=offers] #currency-select:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px;}
/* القائمة الأصلية تظل مالكة الاختيار ولوحة المفاتيح، مع تحسين تدريجي للمتصفحات الداعمة. */
@supports(appearance:base-select){
 html[data-theme] body[data-catalog=offers] #currency-select{appearance:base-select;}
 html[data-theme] body[data-catalog=offers] #currency-select::picker(select){appearance:base-select;min-width:110px;padding:5px;margin-block:6px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-panel);color:var(--ui-text);box-shadow:var(--ui-shadow);opacity:0;transform:translateY(-3px);transition:opacity 160ms ease,transform 160ms ease,display 160ms allow-discrete,overlay 160ms allow-discrete;}
 html[data-theme] body[data-catalog=offers] #currency-select:open::picker(select){opacity:1;transform:none;}
 html[data-theme] body[data-catalog=offers] #currency-select::picker-icon{color:var(--ui-accent);transition:transform 160ms ease;}
 html[data-theme] body[data-catalog=offers] #currency-select:open::picker-icon{transform:rotate(180deg);}
 html[data-theme] body[data-catalog=offers] #currency-select option{padding:8px 10px;border-radius:6px;font-size:13px;}
 html[data-theme] body[data-catalog=offers] #currency-select option:is(:hover,:focus,:checked){background:var(--ui-selected);color:var(--ui-accent);}
 @starting-style{html[data-theme] body[data-catalog=offers] #currency-select:open::picker(select){opacity:0;transform:translateY(-3px);}}
}

html[data-theme] body[data-catalog=panels] .search-header{justify-content:center;}
html[data-theme] body[data-catalog=panels] .search-header .search-mode{
 display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;margin-inline:auto;padding:4px;border:1px solid var(--ui-line-soft);border-radius:12px;background:var(--ui-raised);box-shadow:var(--ui-inset);
}
html[data-theme] body[data-catalog=panels] .search-mode label{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:5px 12px;border:1px solid transparent;border-radius:8px;font-size:12px;line-height:1.5;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;}
html[data-theme] body[data-catalog=panels] .search-mode label:has(input:checked){background:var(--ui-panel);border-color:var(--ui-line);color:var(--ui-accent);box-shadow:var(--ui-inset),0 1px 3px #00000010;}
html[data-theme] body[data-catalog=panels] .search-mode label:has(input:focus-visible){outline:2px solid var(--ui-accent);outline-offset:2px;}
html[data-theme] body[data-catalog=panels] .panel-filter-controls{justify-content:center;gap:10px 14px;}
html[data-theme] body[data-catalog=panels] .panel-filter-controls .category-shortcuts{justify-content:center;gap:8px;}
html[data-theme] body[data-catalog=panels] .panel-filter-controls button{min-height:42px;border-radius:12px;box-shadow:var(--ui-inset),0 2px 4px #0000000a;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease;}
html[data-theme] body[data-catalog=panels] .panel-filter-actions{justify-content:center;}
html[data-theme] body[data-catalog=panels] .catalog-fields #search-input{
 border-color:var(--ui-line);border-radius:11px;background:linear-gradient(180deg,var(--ui-input),var(--ui-raised));box-shadow:inset 0 2px 4px #00000008;transition:border-color 160ms ease,box-shadow 160ms ease,background-color 160ms ease;
}
html[data-theme] body[data-catalog=panels] .catalog-fields #search-input:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px;border-color:var(--ui-accent);box-shadow:inset 0 1px 3px #00000008,0 0 0 4px var(--ui-selected);}
html[data-theme] body:is([data-catalog=offers],[data-catalog=panels]) .category-shortcuts button[aria-pressed=true]{box-shadow:var(--ui-inset),inset 0 -2px var(--ui-accent),0 2px 5px #0000000c;}
html[data-theme] body:is([data-catalog=offers],[data-catalog=panels]) .category-shortcuts button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px;}
@media(hover:hover){
 html[data-theme] body[data-catalog=panels] .search-mode label:hover{background:var(--ui-hover);color:var(--ui-accent);}
 html[data-theme] body[data-catalog=panels] .catalog-fields #search-input:hover{border-color:var(--ui-accent);}
 html[data-theme] body:is([data-catalog=offers],[data-catalog=panels]) .category-shortcuts button:not(:disabled):hover{transform:none;border-color:var(--ui-accent);background:var(--ui-selected);color:var(--ui-accent);box-shadow:var(--ui-inset),0 3px 7px #00000012;}
}
@media(max-width:600px){
 html[data-theme] body[data-catalog=offers] .reseller-controls>.category-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
 html[data-theme] body[data-catalog=offers] .category-shortcuts button{min-width:0;min-height:44px;padding:7px 5px;gap:5px;font-size:10px;border-radius:11px;white-space:nowrap;}
 html[data-theme] body[data-catalog=offers] .category-shortcuts button::before{flex-basis:16px;width:16px;height:16px;}
 html[data-theme] body[data-catalog=panels] .panel-filter-controls .category-shortcuts{gap:5px;}
 html[data-theme] body[data-catalog=panels] .panel-filter-controls .category-shortcuts button{min-width:0;padding:6px 4px;font-size:10px;line-height:1.5;}
 html[data-theme] body[data-catalog=panels] .panel-filter-controls button{min-height:44px;}
 html[data-theme] body[data-catalog=panels] .search-header .search-mode{gap:3px;}
 html[data-theme] body[data-catalog=panels] .search-mode label{min-height:38px;padding:6px 10px;}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] body[data-catalog=offers] :is(.category-shortcuts button,.reseller-currency,#currency-select),html[data-theme] body[data-catalog=panels] :is(.search-mode label,.panel-filter-controls button,.catalog-fields #search-input){transition:none!important;}
 @supports(appearance:base-select){
  html[data-theme] body[data-catalog=offers] #currency-select::picker(select){transition:none!important;}
  html[data-theme] body[data-catalog=offers] #currency-select::picker-icon{transition:none!important;}
 }
}
