/* هوية Panel مع بنية جدول IPTV Reseller وحقوله الأصلية. */
body[data-catalog=offers] .tool-page{max-width:1100px}
body[data-catalog=offers] .reseller-workspace{padding:18px}
body[data-catalog=offers] .reseller-source-note{font-size:12px;margin-bottom:12px;color:var(--muted)}
body[data-catalog=offers] .reseller-search-field{position:relative}
body[data-catalog=offers] .reseller-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:12px}
body[data-catalog=offers] .category-shortcuts{margin:0;gap:6px}
body[data-catalog=offers] .category-shortcuts button{min-height:40px;border-radius:12px;font-weight:600;transition:transform 200ms ease,box-shadow 200ms ease,background-color 200ms ease}
body[data-catalog=offers] .category-shortcuts button[aria-pressed=true]{border-color:#6bd9ff;box-shadow:inset 0 -2px #bcefff80,0 2px 6px #0003}
body[data-catalog=offers] .category-shortcuts button[aria-busy=true]{cursor:progress;opacity:.75}
/* العملة أعلى البحث وفي اليسار في الاتجاهين. */
body[data-catalog=offers] .reseller-search-options{display:flex;justify-content:flex-end;margin-block:8px 10px}
body[data-catalog=offers][dir=ltr] .reseller-search-options{justify-content:flex-start}
html[dir=ltr] body[data-catalog=offers] .reseller-search-options{justify-content:flex-start}
body[data-catalog=offers] .reseller-currency{display:flex;align-items:center;gap:7px;font-size:12px}
body[data-catalog=offers] .reseller-currency select{min-height:40px;width:auto;padding:6px 12px}
body[data-catalog=offers] #export-offers{min-height:40px;padding:7px 12px}
body[data-catalog=offers] .result-toolbar{border:0;padding:0;margin:14px 0 10px;font-size:13px}
body[data-catalog=offers] .reseller-table-wrap{max-height:520px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:var(--input-bg)}
body[data-catalog=offers] #services-table{margin:0;table-layout:fixed;min-width:0;width:100%}
body[data-catalog=offers] #services-table th:nth-child(1){width:38%}body[data-catalog=offers] #services-table th:nth-child(2){width:22%}body[data-catalog=offers] #services-table th:nth-child(3){width:16%}body[data-catalog=offers] #services-table th:nth-child(4){width:24%}
body[data-catalog=offers] #services-table thead th{position:sticky;top:0;z-index:1;background:#08243d}
body[data-catalog=offers] #services-table .service-row th,body[data-catalog=offers] #services-table .service-row td{padding:10px 9px;border-inline-end:0;overflow-wrap:anywhere;font-size:13px;text-align:center}
body[data-catalog=offers] #services-table .service-row .service-name{text-align:start;font-size:14px;font-weight:700}
body[data-catalog=offers] .service-raw-type{display:block;color:var(--muted);font-size:12px;direction:ltr}
body[data-catalog=offers] .service-price{color:var(--accent);font-weight:700}
body[data-catalog=offers] .reseller-row-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}
body[data-catalog=offers] .reseller-row-actions .row-button{min-width:50px;min-height:40px;border-radius:8px;padding:6px 10px}
body[data-catalog=offers] .order-btn{background:#123e3d;border-color:#358477;color:#c2fff0}body[data-catalog=offers] .wa-btn{background:#0c3654;border-color:#327ba5;color:#c5eeff}
body[data-catalog=offers] .service-row{transition:transform 200ms ease,box-shadow 200ms ease,background-color 200ms ease}
body[data-catalog=offers] #services-table .service-row.highlight-row,body[data-catalog=offers] #services-table .service-row.is-selected,body[data-catalog=offers] #services-table .service-row:focus-within{background:#0b3049;box-shadow:inset 3px 0 #5cafd0}
body[data-catalog=offers] #suggestions-list{position:absolute;top:100%;inset-inline:0;z-index:30;background:#092338;border:1px solid #285677;border-radius:10px;box-shadow:0 8px 16px #0005;max-height:240px;overflow-y:auto;padding:5px;margin-top:5px}
body[data-catalog=offers] .suggestion-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:start;background:transparent;border:0;border-radius:6px;padding:10px;color:var(--txt);min-height:44px}
body[data-catalog=offers] .suggestion-note{font-size:11px;color:var(--muted)}
/* قسم البرنامج مستقل بصرياً عن جدول البحث، مع فتح وإغلاق أصليين بلوحة المفاتيح. */
body[data-catalog=offers] .reseller-original-content{margin-block:24px}
body[data-catalog=offers] .reseller-program{border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 6px 18px #0002;overflow:hidden}
body[data-catalog=offers] .reseller-program-toggle{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;cursor:pointer;transition:background-color 180ms ease}
body[data-catalog=offers] .reseller-program-toggle::-webkit-details-marker{display:none}
body[data-catalog=offers] .reseller-program-preview{display:grid;gap:8px;min-width:0}
body[data-catalog=offers] .reseller-program-eyebrow{font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--accent)}
body[data-catalog=offers] #reseller-program-title{font-size:24px;line-height:1.4;color:var(--txt)}
body[data-catalog=offers] .reseller-program-caption{font-size:13px;line-height:1.9;color:var(--muted);max-width:610px}
body[data-catalog=offers] .reseller-program-action{display:flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:46px;padding:10px 16px;border:1px solid #388bb6;border-radius:10px;background:#0e3b59;color:#d5f3ff;font-size:13px;font-weight:700;box-shadow:inset 0 1px #ffffff12,0 3px 6px #0003;transition:transform 180ms ease,background-color 180ms ease}
body[data-catalog=offers] .program-open-label{display:none}
body[data-catalog=offers] .reseller-program[open]>.reseller-program-toggle{border-bottom:1px solid var(--line)}
body[data-catalog=offers] .reseller-program[open] .program-closed-label{display:none}
body[data-catalog=offers] .reseller-program[open] .program-open-label{display:inline}
body[data-catalog=offers] .reseller-program-action svg{transition:transform 180ms ease}
body[data-catalog=offers] .reseller-program[open] .reseller-program-action svg{transform:rotate(180deg)}
body[data-catalog=offers] .reseller-program-toggle:focus-visible,body[data-catalog=offers] .reseller-product-library summary:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
body[data-catalog=offers] .reseller-program-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:24px}
body[data-catalog=offers] .reseller-program-intro{grid-column:1/-1;padding-bottom:6px;max-width:800px}
body[data-catalog=offers] .reseller-program-intro h2{font-size:23px;line-height:1.6;margin:5px 0 8px}
body[data-catalog=offers] .reseller-original-lead{font-size:14px;color:var(--muted);line-height:1.95;margin:0}
body[data-catalog=offers] .reseller-source-section{padding:20px;border:1px solid var(--line);border-radius:11px;background:var(--input-bg);min-width:0}
body[data-catalog=offers] .reseller-source-section h3{font-size:17px;line-height:1.7;margin:0 0 10px;color:var(--accent)}
body[data-catalog=offers] .reseller-source-section h4{font-size:13px;margin:18px 0 8px;color:var(--txt)}
body[data-catalog=offers] .reseller-source-section p,body[data-catalog=offers] .reseller-source-section li{font-size:13px;line-height:1.95;color:var(--muted)}
body[data-catalog=offers] .reseller-source-section p{margin:0 0 10px}
body[data-catalog=offers] .reseller-source-section p:last-child{margin-bottom:0}
body[data-catalog=offers] .reseller-source-section ul{padding-inline-start:20px;margin:0}
body[data-catalog=offers] .reseller-source-section li+li{margin-top:9px}
body[data-catalog=offers] .reseller-source-section strong{color:var(--txt)}
body[data-catalog=offers] .pills{display:flex;flex-wrap:wrap;gap:7px;margin-block:14px 0}
body[data-catalog=offers] .pill{background:var(--panel);border:1px solid var(--line);padding:6px 10px;border-radius:7px;font-size:11px;line-height:1.5;max-width:100%;overflow-wrap:anywhere;unicode-bidi:plaintext}
body[data-catalog=offers] #servers,body[data-catalog=offers] #how-to-join,body[data-catalog=offers] .reseller-product-library{grid-column:1/-1}
body[data-catalog=offers] #satellite ul{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px}
body[data-catalog=offers] #satellite li+li{margin:0}
body[data-catalog=offers] #beinsport{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;column-gap:24px}
body[data-catalog=offers] #beinsport h3{grid-column:1;margin-bottom:4px}
body[data-catalog=offers] #beinsport p{grid-column:1;margin:0}
body[data-catalog=offers] #beinsport .pills{grid-column:2;grid-row:1/3;align-self:center;margin:0}
body[data-catalog=offers] #how-to-join ol{counter-reset:join-step;list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body[data-catalog=offers] #how-to-join li{position:relative;margin:0;padding-top:42px;counter-increment:join-step}
body[data-catalog=offers] #how-to-join li::before{content:counter(join-step,decimal-leading-zero);position:absolute;inset-inline-start:0;top:0;display:grid;place-items:center;width:30px;height:30px;border:1px solid #306483;border-radius:8px;background:#0c304a;color:#9cddfa;font-size:12px;font-weight:700}
body[data-catalog=offers] #how-to-join strong,body[data-catalog=offers] #how-to-join li>span{display:block}
body[data-catalog=offers] #how-to-join strong{margin-bottom:5px;font-size:14px}
body[data-catalog=offers] .reseller-product-library{padding:0;overflow:hidden}
body[data-catalog=offers] .reseller-product-library summary{padding:16px 20px;cursor:pointer;color:var(--txt);font-size:15px;font-weight:700}
body[data-catalog=offers] .reseller-product-library summary span{display:inline-block;margin-inline-start:10px;color:var(--muted);font-size:12px;font-weight:400}
body[data-catalog=offers] .reseller-product-descriptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px;padding:0 20px 12px}
body[data-catalog=offers] .reseller-product-description{border-top:1px solid var(--line);padding:14px 0;min-width:0}
body[data-catalog=offers] .reseller-product-description h3{font-size:13px;margin:0 0 5px;unicode-bidi:plaintext}
body[data-catalog=offers] .reseller-product-description p{font-size:12px;margin:0}
body[data-catalog=offers] .reseller-program-contact{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:8px}
body[data-catalog=offers] .reseller-program-contact h3{font-size:18px;margin:0 0 6px}
body[data-catalog=offers] .reseller-program-contact p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}
body[data-catalog=offers] .reseller-program-contact .btn{display:flex;gap:12px;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;white-space:nowrap}
body[data-catalog=offers] .reseller-program-credit{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;font-size:11px;color:var(--muted);margin:0;line-height:1.8}
@media(hover:hover){body[data-catalog=offers] .reseller-program-toggle:hover{background:#ffffff03}body[data-catalog=offers] .reseller-program-toggle:hover .reseller-program-action{background:#154964;transform:translateY(-1px)}body[data-catalog=offers] .reseller-product-library summary:hover{color:var(--accent)}}
body[data-catalog=offers] .reseller-program-toggle:active .reseller-program-action{transform:translateY(1px)}
@media(max-width:900px){body[data-catalog=offers] .reseller-program-toggle{gap:16px;padding:20px}body[data-catalog=offers] .reseller-program-body{padding:20px}body[data-catalog=offers] #how-to-join ol{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-catalog=offers] .reseller-product-descriptions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body[data-catalog=offers] .reseller-program-toggle{align-items:stretch;flex-direction:column;padding:18px;gap:16px}body[data-catalog=offers] #reseller-program-title{font-size:22px}body[data-catalog=offers] .reseller-program-action{width:100%}body[data-catalog=offers] .reseller-program-body{grid-template-columns:1fr;padding:14px;gap:12px}body[data-catalog=offers] .reseller-program-intro{padding:4px}body[data-catalog=offers] .reseller-program-intro h2{font-size:20px}body[data-catalog=offers] .reseller-source-section{padding:16px}body[data-catalog=offers] .reseller-source-section h3{font-size:16px}body[data-catalog=offers] #how-to-join ol{grid-template-columns:1fr}body[data-catalog=offers] #how-to-join li{padding-top:0;padding-inline-start:42px;min-height:34px}body[data-catalog=offers] .reseller-program-contact{flex-direction:column;align-items:stretch;padding:8px 4px}body[data-catalog=offers] .reseller-product-library{padding:0}body[data-catalog=offers] .reseller-product-library summary span{display:block;margin:4px 0 0}body[data-catalog=offers] .reseller-product-descriptions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-catalog=offers] .reseller-program-toggle,body[data-catalog=offers] .reseller-program-action,body[data-catalog=offers] .reseller-program-action svg{transition:none!important;transform:none!important}}
@media(max-width:600px){body[data-catalog=offers] #beinsport{grid-template-columns:1fr;gap:10px}body[data-catalog=offers] #beinsport .pills{grid-column:1;grid-row:auto}}

body[data-catalog=offers] .reseller-order-dialog{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:22px;background:#071a2b;color:var(--txt);border:1px solid #285677;border-radius:12px;box-shadow:0 18px 50px #0006}
body[data-catalog=offers] .reseller-order-dialog::backdrop{background:#020b16bd}
body[data-catalog=offers] .reseller-order-dialog h2{font-size:22px;color:var(--accent);padding-inline-end:44px}
body[data-catalog=offers] .reseller-dialog-close{position:absolute;inset-inline-end:12px;top:10px;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:22px}
body[data-catalog=offers] #order-form{display:grid;gap:10px;margin-top:14px}
body[data-catalog=offers] .reseller-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body[data-catalog=offers] .reseller-order-actions{display:flex;flex-wrap:wrap;gap:7px}
body[data-catalog=offers] .reseller-order-actions .btn{flex:1 1 140px;min-height:44px;padding:8px 10px}
body[data-catalog=offers] #order-feedback{font-size:13px;color:var(--accent);overflow-wrap:anywhere}
@media(hover:hover){body[data-catalog=offers] .service-row:hover{transform:translateY(-1px);background:#09283e;box-shadow:0 3px 6px #0003}body[data-catalog=offers] .suggestion-item:hover{background:#12354f}body[data-catalog=offers] .category-shortcuts button:hover,body[data-catalog=offers] .row-button:hover{transform:translateY(-1px);box-shadow:0 3px 6px #0003}}
@media(max-width:720px){body[data-catalog=offers] .reseller-workspace{padding:12px}body[data-catalog=offers] .reseller-controls{display:grid;grid-template-columns:1fr}body[data-catalog=offers] .category-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}body[data-catalog=offers] .category-shortcuts button{min-width:0;padding:6px;font-size:11px;min-height:44px}body[data-catalog=offers] #services-table thead{display:none}body[data-catalog=offers] #services-table .service-row{display:grid;grid-template-columns:1fr 1fr;padding:10px 8px;border-bottom:1px solid var(--line);gap:6px}body[data-catalog=offers] #services-table .service-row th,body[data-catalog=offers] #services-table .service-row td{display:block;width:auto!important;border:0;padding:3px;text-align:start}body[data-catalog=offers] #services-table .service-row .service-name,body[data-catalog=offers] #services-table .service-row .actions-cell{grid-column:1/-1}body[data-catalog=offers] .service-type::before,body[data-catalog=offers] .service-price::before{content:attr(data-label) ' : ';font-size:11px;color:var(--muted)}body[data-catalog=offers] .reseller-row-actions{justify-content:flex-start}body[data-catalog=offers] .reseller-row-actions .row-button{min-height:44px;flex:1}body[data-catalog=offers] .reseller-product-descriptions{grid-template-columns:1fr}body[data-catalog=offers] .reseller-order-dialog{padding:16px}body[data-catalog=offers] #order-form input,body[data-catalog=offers] #order-form textarea{font-size:16px}}
@media(max-width:380px){body[data-catalog=offers] .reseller-form-pair{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-catalog=offers] .service-row,body[data-catalog=offers] button{transition:none!important;transform:none!important}}
