/* Publish flow: same look as the home «ثلاثة أنشطة» section (2026-11-16).
   Coloured number per step, a coloured glow per card on hover, buttons in the card's own colour. Additive only. */
.obf{--pc-1:#d63d55;--pc-2:#14b39a;--pc-3:#ec7a26;--pc-4:#7c5cff;--pc-5:#1d7fd8}
[data-theme=dark] .obf,html[data-theme=dark] body.obf{--pc-1:#f0899b;--pc-2:#5fdcc6;--pc-3:#f6a063;--pc-4:#ab97ff;--pc-5:#84b8f5}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) body.obf{--pc-1:#f0899b;--pc-2:#5fdcc6;--pc-3:#f6a063;--pc-4:#ab97ff;--pc-5:#84b8f5}}

/* step rail: rb.css already gives each step its own coloured icon; add the home-style glow on the current step */
html.rb body.obf .obf-rail li.on{box-shadow:0 8px 22px color-mix(in srgb,var(--rb-k) 30%,transparent)}
html.rb body.obf .obf-rail li:not(.on):hover{background:color-mix(in srgb,var(--rb-k) 8%,transparent)}

/* cards: hosting packages, templates, designs, generic cards */
.obf-plan-card:nth-child(4n+1),.obh-pkg:nth-child(4n+1),.obf-card:nth-child(4n+1),.obf-tpl:nth-child(4n+1),.ox-card:nth-child(4n+1){--pc:var(--pc-2)}
.obf-plan-card:nth-child(4n+2),.obh-pkg:nth-child(4n+2),.obf-card:nth-child(4n+2),.obf-tpl:nth-child(4n+2),.ox-card:nth-child(4n+2){--pc:var(--pc-3)}
.obf-plan-card:nth-child(4n+3),.obh-pkg:nth-child(4n+3),.obf-card:nth-child(4n+3),.obf-tpl:nth-child(4n+3),.ox-card:nth-child(4n+3){--pc:var(--pc-1)}
.obf-plan-card:nth-child(4n+4),.obh-pkg:nth-child(4n+4),.obf-card:nth-child(4n+4),.obf-tpl:nth-child(4n+4),.ox-card:nth-child(4n+4){--pc:var(--pc-4)}
.obf-plan-card,.obh-pkg,.obf-card,.obf-tpl,.ox-card{position:relative;isolation:isolate;transition:transform .25s,box-shadow .25s,border-color .25s}
.obf-plan-card::before,.obh-pkg::before,.obf-card::before,.obf-tpl::before,.ox-card::before{content:"";position:absolute;inset:20% 8% -6%;z-index:-1;border-radius:28px;pointer-events:none;background:radial-gradient(60% 60% at 50% 60%,color-mix(in srgb,var(--pc) 55%,transparent),transparent 72%);filter:blur(24px);opacity:0;transition:opacity .35s}
.obf-plan-card:hover,.obh-pkg:hover,.obh-pkg:focus-within,.obf-card:hover,.obf-tpl:hover,.ox-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--pc) 45%,transparent);box-shadow:0 22px 44px color-mix(in srgb,var(--pc) 18%,transparent)}
.obf-plan-card:hover::before,.obh-pkg:hover::before,.obh-pkg:focus-within::before,.obf-card:hover::before,.obf-tpl:hover::before,.ox-card:hover::before{opacity:.7}
.obh-pkg.sel{border-color:var(--pc);box-shadow:inset 0 0 0 2px var(--pc),0 18px 36px color-mix(in srgb,var(--pc) 18%,transparent)}
.obh-pkg.rec{border-color:color-mix(in srgb,var(--pc) 55%,var(--obh-line,transparent))}
html.rb body.obf .obh-pkg .obh-rec{background:var(--pc);color:#fff}
html.rb[data-theme=dark] body.obf .obh-pkg .obh-rec{color:#141416}
.obh-pkg .obh-chip.sm{transition:transform .3s,box-shadow .3s}
.obh-pkg:hover .obh-chip.sm{transform:rotate(-6deg) scale(1.06);box-shadow:0 8px 18px color-mix(in srgb,var(--pc) 35%,transparent)}
.obh-pkg .obh-incl{color:var(--pc)}
/* the pick button takes the card colour; selected = filled gradient */
html.rb body.obf .obh-pkg .btn.obh-pick{border-radius:11px;font-weight:700;color:var(--pc) !important;border-color:color-mix(in srgb,var(--pc) 45%,transparent) !important}
html.rb body.obf .obh-pkg .btn.obh-pick:hover{background:color-mix(in srgb,var(--pc) 10%,transparent) !important}
html.rb body.obf .obh-pkg.sel .btn.obh-pick,html.rb body.obf .obh-pkg .btn.obh-pick[aria-pressed=true]{color:#fff !important;border-color:transparent !important;background:linear-gradient(135deg,color-mix(in srgb,var(--pc) 80%,#000 10%),var(--pc)) !important;box-shadow:0 6px 16px color-mix(in srgb,var(--pc) 30%,transparent) !important}
html.rb[data-theme=dark] body.obf .obh-pkg.sel .btn.obh-pick,html.rb[data-theme=dark] body.obf .obh-pkg .btn.obh-pick[aria-pressed=true]{color:#141416 !important}

/* design and plan cards: main button in the card's own colour, second button tinted */
html.rb body.obf .ox-card .pick,html.rb body.obf .ox-card .btn.brand,html.rb body.obf .obf-plan-card .btn.brand{color:#fff !important;border-color:transparent !important;background:linear-gradient(135deg,color-mix(in srgb,var(--pc) 80%,#000 10%),var(--pc)) !important;box-shadow:0 6px 16px color-mix(in srgb,var(--pc) 28%,transparent) !important;border-radius:11px}
html.rb[data-theme=dark] body.obf .ox-card .pick,html.rb[data-theme=dark] body.obf .ox-card .btn.brand,html.rb[data-theme=dark] body.obf .obf-plan-card .btn.brand{color:#141416 !important}
html.rb body.obf .ox-card .look,html.rb body.obf .ox-card .btn.ghost,html.rb body.obf .obf-plan-card .btn.ghost{color:var(--pc) !important;border-color:color-mix(in srgb,var(--pc) 45%,transparent) !important;border-radius:11px}

/* publish sheet («انشر نظامي»): same soft card, coloured top line */
.obf-gp-card{border-top:4px solid transparent;background-image:linear-gradient(canvas,canvas),linear-gradient(90deg,var(--pc-1),var(--pc-2),var(--pc-3));background-origin:border-box;background-clip:padding-box,border-box}
.obf-gp-methods .btn{transition:transform .2s,box-shadow .2s}
.obf-gp-methods .btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px color-mix(in srgb,var(--pc-2) 25%,transparent)}
@media (prefers-reduced-motion:reduce){.obh-pkg,.obf-card,.obf-tpl,.ox-card,.obh-pkg::before,.obf-card::before,.obf-tpl::before,.ox-card::before,.obf-rail li .n{transition:none}}
