:root{--offers-navy:#071f49;--offers-blue:#0b62b5;--offers-red:#b51f2a;--offers-line:#d3dfe9;--cairo:"Cairo","Noto Sans Arabic Local","Noto Sans Arabic","Segoe UI",Arial,sans-serif}
html{scroll-behavior:smooth;scroll-snap-type:y mandatory}.offers-page{margin:0;min-width:320px;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:#f1f5f9;color:#17395f;font-family:var(--cairo);overflow-x:hidden}.offers-page button,.offers-page a,.offers-page input{font-family:var(--cairo)}
.offers-header{position:sticky;z-index:80;top:0;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:linear-gradient(180deg,#071f49,#0b3a78);color:#fff;border-bottom:2px solid #d6a51d;box-shadow:0 4px 14px #071f4930}.offers-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(52%,220px);display:grid;justify-items:center;text-align:center;pointer-events:none;line-height:1.2}.offers-brand strong{font-size:.76rem;direction:ltr;unicode-bidi:isolate}.offers-brand span{font-size:.63rem;color:#e4edf8;font-weight:700}.offers-header-mark{position:relative;z-index:2;flex:0 0 auto;border:1px solid #ffffff70;border-radius:999px;padding:5px 8px;font-size:.56rem;font-weight:800;white-space:nowrap}
.offers-back{position:relative;z-index:2;flex:0 0 58px;min-width:58px;height:50px;display:grid;grid-template-rows:26px 15px;place-items:center;align-content:center;border:1px solid #ffffff5e;border-radius:13px;background:#0d62b5;color:#fff;text-decoration:none;box-shadow:0 3px 9px #0002;line-height:1;overflow:hidden}.offers-back__arrow{display:block;font-family:Arial,sans-serif;font-size:1.55rem;font-weight:900;line-height:24px;transform:translateY(1px)}.offers-back__label{display:block;font-size:.55rem;font-weight:800;line-height:12px;transform:translateY(-1px)}
.offers-shell{flex:1 0 auto;width:min(calc(100% - 18px),760px);margin:0 auto;display:flex;flex-direction:column;padding:10px 0 18px}.offers-hero-copy{text-align:center;padding:2px 8px 4px}.offers-kicker{margin:0;color:#a31924;font-size:.62rem;font-weight:800;letter-spacing:.06em;direction:ltr;unicode-bidi:isolate}.offers-hero-copy h1{margin:0;color:var(--offers-navy);font-size:clamp(1.28rem,5.7vw,1.72rem);line-height:1.25;font-weight:800}
.offers-filters{position:sticky;z-index:70;top:64px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:5px 0 3px;padding:5px;border:1px solid #d7e1eb;border-radius:15px;background:#f7fbffed;box-shadow:0 5px 15px #071f4918;backdrop-filter:blur(9px)}.offer-filter{min-width:0;min-height:47px;padding:3px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #cbd8e6;border-radius:11px;background:#fff;color:#315b84;font:inherit;font-size:.68rem;font-weight:800;line-height:1.08;cursor:pointer}.offer-filter__label,.offer-filter__count{display:block;max-width:100%}.offer-filter__count{font-size:.54rem;opacity:.75}.offer-filter.is-active{background:#0b3a78;color:#fff;border-color:#0b3a78}.offer-filter.is-active .offer-filter__count{opacity:.94}
.offers-status{min-height:20px;margin:1px 0;text-align:center;color:#526881;font-size:.69rem;font-weight:700;line-height:1.4}.offers-status:empty{min-height:0;margin:0}.offers-status[data-type="warning"]{color:#7b5200}.offers-status[data-type="error"]{color:#9d1d28}
.offers-list{display:grid;gap:18px;align-items:start;padding-bottom:120px}.offer-card{position:relative;width:min(100%,var(--offer-card-width,326px));margin-inline:auto;background:#fff;border:1px solid var(--offers-line);border-radius:18px;overflow:visible;box-shadow:0 10px 26px #071f4915;scroll-snap-align:center;scroll-snap-stop:normal;transform:translateX(12px)}.featured-media{position:relative;width:100%;aspect-ratio:4/5;background:#eef3f8;display:grid;place-items:center;overflow:hidden;border-radius:17px 17px 0 0}.featured-media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#fff}.featured-badge{position:absolute;z-index:3;left:-28px;top:50%;width:24px;height:min(52%,180px);min-height:108px;box-sizing:border-box;display:grid;place-items:center;border-radius:999px;background:#a31924;color:#fff;padding:7px 3px;font-size:.48rem;font-weight:800;line-height:1;letter-spacing:.035em;white-space:nowrap;text-align:center;direction:ltr;writing-mode:vertical-rl;text-orientation:mixed;transform:translateY(-50%) rotate(180deg);box-shadow:0 4px 10px #071f4925}.featured-info{padding:9px 11px 11px;display:grid;gap:5px;border-radius:0 0 17px 17px;background:#fff}.featured-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.featured-heading>div{min-width:0}.category-label{margin:0;color:#8b5d00;font-size:.58rem;font-weight:800}.featured-heading h2{margin:0;color:#071f49;font-size:.9rem;line-height:1.3;font-weight:800;overflow-wrap:anywhere}.position-label{flex:0 0 auto;border-radius:999px;background:#eef4fa;color:#315b84;padding:3px 7px;font-size:.52rem;font-weight:800;white-space:nowrap}.featured-details{margin:0;color:#526881;font-size:.63rem;line-height:1.42;white-space:pre-line}.featured-pricing{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;text-align:center}.price-old{color:#8c959e;text-decoration:line-through;font-size:.57rem}.price-new{color:#a31924;font-size:.86rem;font-weight:800}.minimum-pill{width:100%;color:#315b84;font-size:.59rem;font-weight:800}.featured-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:stretch}.featured-actions>*:only-child{grid-column:1/-1}.primary-order-button,.video-button,.terminal-order button,.invoice-bar button{border:0;border-radius:11px;min-height:42px;padding:7px 9px;font:inherit;font-size:.67rem;font-weight:800;cursor:pointer}.primary-order-button{background:linear-gradient(180deg,#168bd2,#0f6fb6);color:#fff}.video-button{background:#edf4fb;color:#0b477e;border:1px solid #cad8e7}.offer-stepper{min-height:42px;display:grid;grid-template-columns:38px 1fr 38px;gap:5px;align-items:center;border:1px solid #c8d6e4;border-radius:11px;padding:3px;background:#f8fbfe;direction:ltr}.offer-stepper__button{position:relative;height:34px;border:0;border-radius:9px;background:#0b3a78;color:#fff;font-size:0;font-weight:800;cursor:pointer;display:grid;place-items:center}.offer-stepper__button::before{content:"";position:absolute;left:50%;top:50%;width:14px;height:2.4px;border-radius:999px;background:#fff;transform:translate(-50%,-50%)}.offer-stepper__button[aria-label="زيادة العدد"]::after{content:"";position:absolute;left:50%;top:50%;width:2.4px;height:14px;border-radius:999px;background:#fff;transform:translate(-50%,-50%)}.offer-stepper__count{text-align:center;color:#071f49;font-size:.84rem}
.terminal-order{width:min(100%,326px);margin:14px auto 0;padding:11px;display:grid;gap:7px;text-align:center;border:1px solid #d3dfe9;border-radius:16px;background:#fff;box-shadow:0 8px 20px #071f4912}.terminal-order strong{font-size:.75rem;color:#071f49}.terminal-order button{background:linear-gradient(180deg,#d92a35,#a31924);color:#fff}.terminal-order[hidden]{display:none!important}
.offers-empty{margin:auto 0;display:grid;place-items:center;text-align:center;gap:4px;padding:28px 16px;border:1px solid var(--offers-line);border-radius:20px;background:#fff;box-shadow:0 10px 24px #092a5110}.offers-empty[hidden]{display:none!important}.offers-empty h2{margin:4px 0;color:#071f49;font-size:1.08rem}.offers-empty p{margin:0;color:#63778c;font-size:.72rem}.empty-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#edf4fb;color:#0c67bc;font-size:1.35rem;font-weight:800}.offers-empty--error .empty-icon{background:#fdebed;color:#b51f2a}.offers-empty__closing{color:#a31924!important;font-weight:800}.offers-empty__closing[hidden]{display:none!important}
.offers-rights{margin-top:auto;flex:0 0 auto}.offers-page .project-rights-bar span{font-family:var(--cairo)}
.invoice-bar{position:fixed;z-index:90;right:max(10px,env(safe-area-inset-right));left:max(10px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:auto minmax(160px,1fr);gap:8px;align-items:center;width:min(calc(100% - 20px),520px);margin:auto;padding:7px 7px 7px 11px;border:1px solid #ffffff80;border-radius:17px;background:#071f49f2;color:#fff;box-shadow:0 14px 35px #071f4955;backdrop-filter:blur(12px)}.invoice-bar[hidden]{display:none!important}.invoice-summary{display:grid;gap:1px;white-space:nowrap}.invoice-summary span{display:flex;align-items:baseline;gap:4px;font-size:.56rem;color:#dce8f5;line-height:1.25}.invoice-summary strong{font-size:.76rem;color:#fff}.invoice-bar button{background:linear-gradient(180deg,#e32835,#a31924);color:#fff}.invoice-bar button:disabled,.terminal-order button:disabled{opacity:.7;cursor:wait}
.video-dialog{box-sizing:border-box;width:min(calc(100% - 12px),900px);max-width:none;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));border:0;border-radius:21px;padding:0;background:#071627;box-shadow:0 28px 80px #0008}.video-dialog::backdrop{background:#06162ccc;backdrop-filter:blur(4px)}.video-dialog-card{box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));padding:8px}.video-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:2px 3px 7px;color:#fff}.video-head>div{display:grid}.video-head span{font-size:.62rem;color:#aac2da}.video-head strong{font-size:.82rem}.video-head button{position:relative;z-index:2;flex:0 0 42px;width:42px;height:42px;border:1px solid #ffffff55;border-radius:50%;background:#a31924;color:#fff;font:inherit;font-size:0;cursor:pointer}.video-head button::before,.video-head button::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:2.8px;border-radius:999px;background:#fff;transform-origin:center}.video-head button::before{transform:translate(-50%,-50%) rotate(45deg)}.video-head button::after{transform:translate(-50%,-50%) rotate(-45deg)}.video-wrap{--toe-video-max-height:calc(100dvh - 82px - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));width:100%;height:auto;max-height:var(--toe-video-max-height);min-height:0;aspect-ratio:16/9;margin-inline:auto;border-radius:13px;overflow:hidden;background:#000;display:grid;place-items:stretch}.video-wrap iframe{width:100%;height:100%;min-width:0;min-height:0;border:0;display:block;background:#000}.video-wrap--youtube{aspect-ratio:16/9}.video-wrap--telegram{--toe-video-aspect:9/16;--toe-video-ratio:.5625;width:min(100%,calc(var(--toe-video-max-height) * var(--toe-video-ratio)));aspect-ratio:var(--toe-video-aspect);background:#17212b}.video-wrap--telegram[data-video-orientation="landscape"]{width:100%}.video-wrap--telegram[data-video-orientation="square"]{width:min(100%,var(--toe-video-max-height))}.video-error{margin:7px 0 2px;color:#fff;text-align:center;font-size:.75rem}.video-dialog:not([open]){display:none}@media(orientation:landscape) and (max-height:600px){.video-dialog{width:min(calc(100% - 12px),980px)}.video-dialog-card{padding:6px}.video-head{padding-bottom:4px}.video-head button{width:38px;height:38px;flex-basis:38px}.video-wrap{--toe-video-max-height:calc(100dvh - 64px - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));max-height:var(--toe-video-max-height);min-height:0}}
@media(min-width:650px){.offer-card{width:min(100%,390px)}.featured-actions{grid-template-columns:1fr 1fr}}
@media(max-width:360px){.offers-shell{width:min(100% - 12px,760px)}.offers-header{padding-inline:7px}.offers-header-mark{padding-inline:6px;font-size:.52rem}.offers-back{flex-basis:54px;min-width:54px}.offer-filter{font-size:.62rem;padding-inline:1px}.offer-card{max-width:306px}.featured-info{padding:8px 9px 9px}.featured-actions{gap:5px}}
@media(max-height:800px) and (max-width:440px){.offers-header{min-height:58px}.offers-filters{top:58px}.offers-shell{padding-top:6px}.offers-hero-copy h1{font-size:1.2rem}.offer-filter{min-height:42px}.offer-card{max-width:300px}.featured-info{gap:3px;padding-block:7px}.featured-details{font-size:.6rem;line-height:1.35}.featured-actions>*{min-height:39px}.offer-stepper{min-height:39px}.offer-stepper__button{height:31px}}
@media(max-height:750px) and (max-width:440px){.offer-card{max-width:292px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.offers-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Owner Review Consolidated Corrections 2026-09-01 — ORC-006 only. */
.offers-header-mark{
  background:linear-gradient(180deg,#c82d38 0%,#a31924 100%)!important;
  border-color:#f17b83!important;
  color:#fff!important;
  box-shadow:0 3px 9px rgba(110,12,22,.24)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
}
.offers-back{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  padding:0!important;
}
.offers-back__arrow{
  width:29px!important;
  height:23px!important;
  display:grid!important;
  place-items:center!important;
  line-height:0!important;
  margin:0!important;
}
.offers-back__arrow img{display:block;width:100%;height:100%;object-fit:contain;transform:rotate(180deg)}
.offers-back__label{
  line-height:11px!important;
  transform:none!important;
  margin:0!important;
}
.offer-filter{gap:3px!important}
@media(max-width:360px){.offer-filter{gap:2px!important}}


/* GM V4.1-002 — Back arrow + label are one centered visual group. */
.offers-back{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
.offers-back__group{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;height:100%;line-height:1}
.offers-back__arrow{width:30px!important;height:22px!important;display:grid!important;place-items:center!important;margin:0!important;line-height:0!important;transform:none!important}
.offers-back__arrow img{display:block;width:100%!important;height:100%!important;object-fit:contain;transform:rotate(180deg)!important;transform-origin:center}
.offers-back__label{display:block;margin:0!important;font-size:.55rem;font-weight:800;line-height:1.05!important;transform:none!important}

/* V6.4 Failure Recovery R2 — Owner F09 vertical side rail; zero vertical-flow height. */
@media(max-width:350px){.offer-card{transform:translateX(13px)}.featured-badge{left:-25px;width:22px;min-height:96px;font-size:.43rem}}

/* R2 Owner Review ORC-R2-006 — locked vertical Special Offer refinement only. */
.featured-badge{left:-30px;width:26px;height:min(56%,190px);min-height:116px;padding:8px 3px;font-size:.54rem;font-weight:900;letter-spacing:.045em}
@media(max-width:350px){.offer-card{transform:translateX(14px)}.featured-badge{left:-27px;width:24px;min-height:102px;font-size:.48rem}}

/* RDR2-003 — center the vertical Special Offer rail in the available side white space. */
.featured-badge{left:-37px;width:30px;font-size:.64rem;font-weight:900;letter-spacing:.035em}
@media(max-width:390px){.offer-card{transform:translateX(14px)}}
@media(max-width:350px){.offer-card{max-width:288px;transform:translateX(14px)}.featured-badge{left:-29px;width:24px;font-size:.58rem}}
@media(min-width:400px){.featured-badge{left:-43px}}
@media(min-width:420px){.featured-badge{left:-47px}}

/* R3-002 — visibly move the vertical Special Offer rail into the left white gutter
   and increase legibility without changing card height/content/business data. */
.featured-badge{left:-40px;font-size:.75rem;font-weight:900;letter-spacing:.04em}
@media(max-width:380px){.featured-badge{left:-38px}}
@media(max-width:365px){.featured-badge{left:-40px}}
@media(max-width:350px){.featured-badge{left:-31px;width:24px;font-size:.70rem}}
@media(min-width:400px){.featured-badge{left:-46px}}
@media(min-width:420px){.featured-badge{left:-49px}}


/* R3R2-005 — native, touch-preserving centered settling for every Offer. */
.offer-card{scroll-snap-align:center;scroll-snap-stop:normal}

/* R3R2-004 — badge center anchors come from measured media/gutter geometry. */
.featured-badge{
  left:var(--toe-special-center-x,-18px)!important;
  top:var(--toe-special-center-y,50%)!important;
  width:clamp(28px,7.2vw,32px)!important;
  font-size:clamp(.82rem,3.3vw,.88rem)!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  transform:translate(-50%,-50%) rotate(180deg)!important;
}
@media(max-width:350px){.featured-badge{width:24px!important;font-size:.82rem!important}}


/* R3R2-006 — YouTube player geometry follows persisted source orientation metadata. */
.video-wrap--youtube[data-video-orientation="landscape"]{width:100%;aspect-ratio:16/9}
.video-wrap--youtube[data-video-orientation="portrait"]{--toe-video-aspect:9/16;--toe-video-ratio:.5625;width:min(100%,calc(var(--toe-video-max-height) * var(--toe-video-ratio)));aspect-ratio:var(--toe-video-aspect)}
