/* STRENGTH STUDIO - the site's look. The palette is the Director's own
   (Config.Colors), so the page a customer pays on and the menu they open in
   game read as one product. @import stays first: CSS drops a late one. */
@import url('../fonts/fonts.css');

:root {
    --accent: #8b5cf6; --accent2: #a78bfa; --accentDeep: #6d28d9;
    --bg: #0b0714; --panel: #140c22; --card: #1a1030; --card2: #221541;
    --border: #2f2145; --borderHi: #45306a;
    --text: #f3efff; --faint: #a094c0; --dim: #7b6f99;
    --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444; --gold: #fbbf24;
    --accentDim: rgba(139, 92, 246, .14);
    --radius: 16px; --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg); color: var(--text);
    font-family: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
    line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
    background-image: radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
                      radial-gradient(900px 500px at -10% 110%, rgba(109, 40, 217, .14), transparent 60%);
    background-attachment: fixed;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #c4b5fd; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.1em; }
h3 svg, h4 svg { width: 18px; height: 18px; color: var(--accent2); flex: none; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--card2); padding: 2px 8px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }
.muted { color: var(--faint); }
.small { font-size: .85rem; }
.gold { color: var(--gold); }
.gold svg { width: 14px; height: 14px; vertical-align: -2px; }
[hidden] { display: none !important; }
* { scrollbar-color: var(--borderHi) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { height: 8px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--borderHi); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.wide { width: min(1400px, 100% - 32px); }
main.wrap { padding: 28px 0 60px; min-height: 70vh; }

/* ---------- header / footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 7, 20, .88); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .98rem; letter-spacing: .06em; direction: ltr; }
.brand:hover { color: var(--text); }
.brand b { color: var(--accent2); }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accentDeep)); color: #fff; }
.mark svg { width: 19px; height: 19px; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: var(--faint); padding: 7px 12px; border-radius: 9px; font-weight: 500; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--card); }
.top nav a.on { color: var(--text); background: var(--accentDim); }
.who { display: flex; align-items: center; gap: 10px; }
.who img { border-radius: 50%; border: 1px solid var(--border); }
.who form { margin: 0; }
.foot { border-top: 1px solid var(--border); color: var(--dim); font-size: .88rem; }
.foot .wrap { display: flex; gap: 22px; padding: 22px 0; }
.foot a { color: var(--dim); }
.topnote { background: linear-gradient(90deg, var(--accentDeep), var(--accent)); color: #fff; text-align: center; padding: 7px 16px; font-weight: 600; font-size: .92rem; display: flex; justify-content: center; gap: 8px; align-items: center; }
.topnote svg { width: 16px; height: 16px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px;
       padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); background: var(--card2); transition: .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accentDeep)); color: #fff; box-shadow: 0 8px 24px rgba(139, 92, 246, .3); }
.btn-accent:hover { color: #fff; box-shadow: 0 10px 30px rgba(139, 92, 246, .45); }
.btn-ghost { background: transparent; border-color: var(--borderHi); color: var(--text); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn.sm { padding: 6px 12px; font-size: .88rem; border-radius: 9px; }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; }
.btn.wide { width: 100%; }
.btn.danger, .link.danger { color: #fca5a5; }
.btn-danger { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.btn-danger:hover { background: rgba(239, 68, 68, .26); color: #fff; }
.danger-zone { margin-top: 16px; border: 1px solid rgba(239, 68, 68, .3); border-radius: 12px; padding: 10px 14px; background: rgba(239, 68, 68, .04); }
.danger-zone > summary { color: #fca5a5; }
.link { background: none; border: 0; color: var(--accent2); font: inherit; cursor: pointer; padding: 0; }
.link:hover { color: #c4b5fd; text-decoration: underline; }
.icon-btn { background: var(--card2); border: 1px solid var(--border); color: var(--faint); width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--borderHi); }
.icon-btn svg { width: 16px; height: 16px; }
.input { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; min-width: 0; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentDim); }
.input.sm { padding: 5px 10px; font-size: .9rem; width: 120px; }
select.input { padding-inline-end: 28px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; }
form.inline.grow { display: flex; }
form.inline.grow .input { flex: 1 1 180px; }
form.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--faint); font-size: .9rem; }
.form-grid label:has(input[type=checkbox]), .form-grid label:has(input[type=radio]) { flex-direction: row; align-items: center; color: var(--text); }

/* ---------- cards, pills, flash ---------- */
.card { background: linear-gradient(180deg, var(--card), var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--card2); color: var(--faint); white-space: nowrap; }
.pill.ok { background: rgba(34, 197, 94, .14); color: #86efac; }
.pill.warn { background: rgba(245, 158, 11, .14); color: #fcd34d; }
.pill.bad { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.pill.acc { background: var(--accentDim); color: var(--accent2); }
.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.flash.ok { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.flash.err { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.flash.warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); color: #fde68a; }
.flash.info { background: var(--accentDim); border-color: var(--borderHi); color: #ddd6fe; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.devnote { display: flex; gap: 10px; align-items: center; background: var(--accentDim); border: 1px dashed var(--borderHi); border-radius: 12px; padding: 12px 16px; margin: 18px 0; color: #ddd6fe; font-weight: 500; }
.devnote svg { width: 20px; height: 20px; flex: none; color: var(--accent2); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: start; color: var(--faint); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid rgba(47, 33, 69, .6); vertical-align: middle; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.tbl .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.tbl .thumb { width: 90px; }
.tbl .thumb img, .tbl .thumb .ph { width: 84px; height: 46px; object-fit: cover; border-radius: 8px; display: block; }
.tbl .flags label { display: block; white-space: nowrap; }

/* ---------- hero / home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 30px 0 20px; }
.kicker { display: inline-block; color: var(--accent2); background: var(--accentDim); border: 1px solid var(--borderHi); padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: .88rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.2; }
.grad { background: linear-gradient(90deg, #c4b5fd, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--faint); font-size: 1.1rem; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.facts { display: flex; gap: 26px; color: var(--faint); flex-wrap: wrap; }
.facts b { color: var(--text); font-size: 1.2rem; margin-inline-end: 4px; }
.hero-img { width: 100%; border-radius: 20px; border: 1px solid var(--borderHi); box-shadow: var(--shadow), 0 0 60px rgba(139, 92, 246, .25); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0; }
.steps > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.steps .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accentDim); color: var(--accent2); font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--faint); margin: 0; font-size: .93rem; }
.shelf { margin: 34px 0; }
.shelf-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.shelf-head h2, .shelf-head h3 { margin: 0; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.closing { text-align: center; padding: 40px 0 10px; }

/* ---------- product cards ---------- */
.pcard, .pick { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.pcard:hover { border-color: var(--borderHi); transform: translateY(-2px); }
.media { position: relative; aspect-ratio: 1.9 / 1; background: #0e0819; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-outfit .media img { object-fit: contain; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--dim); background: repeating-linear-gradient(135deg, #150d25 0 12px, #120a20 12px 24px); font-weight: 700; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(11, 7, 20, .85); border: 1px solid var(--borderHi); color: var(--text); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.badge.gold { color: var(--gold); border-color: rgba(251, 191, 36, .45); }
.badge svg { width: 13px; height: 13px; }
.pbody { padding: 12px 14px 14px; }
.pbody h4 { margin: 0 0 2px; }
.pcard.premium, .pick.premium { border-color: rgba(251, 191, 36, .28); }

/* ---------- pricing ---------- */
.head-block { text-align: center; margin: 10px 0 26px; }
.head-block p { max-width: 640px; margin: 0 auto 16px; }
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.toggle button, .toggle label span { border: 0; background: none; color: var(--faint); font: inherit; font-weight: 700; padding: 7px 18px; border-radius: 9px; cursor: pointer; display: block; }
.toggle button.on, .toggle label input:checked + span { background: var(--accent); color: #fff; }
.toggle label input { position: absolute; opacity: 0; pointer-events: none; }
.toggle.big label span { padding: 10px 28px; }
.toggle label.disabled span { opacity: .38; cursor: not-allowed; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: linear-gradient(180deg, var(--card), var(--panel)); border: 1px solid var(--border); border-radius: 20px; padding: 24px 20px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(139, 92, 246, .22); }
.ribbon { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%); background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; padding: 3px 14px; border-radius: 99px; white-space: nowrap; }
.price b { font-size: 2.4rem; font-weight: 800; direction: ltr; unicode-bidi: embed; }
.price small { color: var(--faint); margin-inline-start: 6px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 9px; color: #ddd6fe; font-size: .94rem; }
.plan li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 4px; }
/* what a plan does not include: a cross, and a colour that is not a promise */
.plan li.no { color: #fca5a5; }
.plan li.no svg { color: #f87171; }
.plan-opt .no-support { display: block; margin-top: 2px; font-size: 12px; color: #fca5a5; }
[data-cycle="month"] .p-week, [data-cycle="week"] .p-month { display: none; }
.pnote { display: block; color: var(--accent2); font-size: .82rem; margin-top: 3px; }
/* a plan announced, not sold */
.plan.soon { border-style: dashed; }
.plan.soon .price, .plan.soon ul { opacity: .8; }
.ribbon.soon { background: var(--card2); color: var(--accent2); border: 1px solid var(--borderHi); }
.mini-plan.soon { border-style: dashed; }
.mini-plan.soon .mp-price b { direction: rtl; font-size: 1.35rem; color: var(--accent2); }
.interest { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.interest ul.plain { list-style: none; padding: 0; margin: 0 0 14px; }
.interest ul.plain li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; color: #ddd6fe; }
.interest ul.plain li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 4px; }
.interest .wants { display: flex; gap: 10px; flex-wrap: wrap; }
.interest .wants label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.interest .wants label:has(input:checked) { border-color: var(--accent); background: var(--accentDim); }
.interest .stack-label { display: flex; flex-direction: column; gap: 6px; color: var(--faint); font-size: .9rem; }
.interest textarea.input { resize: vertical; }
/* the owner's announcement form on the overview */
.announce-card textarea.input { resize: vertical; min-height: 64px; width: 100%; box-sizing: border-box; }
/* the owner's custom subscription form: the note line takes the row */
.custom-card form > label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.custom-card form > label > .input { flex: 1; min-width: 220px; }
.announce-live { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--accentDim); margin-bottom: 10px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.head-block .pill { margin-bottom: 10px; }
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }

/* ---------- builder ---------- */
.builder { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.step h3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accentDim); color: var(--accent2); font-weight: 800; }
.plan-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plan-opt { border: 1px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: var(--panel); position: relative; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt:has(input:checked) { border-color: var(--accent); background: var(--accentDim); box-shadow: 0 0 0 1px var(--accent); }
.plan-opt .name { font-weight: 800; font-size: 1.05rem; }
.plan-opt .pr { font-weight: 800; font-size: 1.3rem; direction: ltr; text-align: end; }
.switch-row { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.switch-row img { width: 140px; border-radius: 10px; border: 1px solid var(--border); }
.switch-row > span { flex: 1; }
.switch { appearance: none; width: 50px; height: 28px; background: var(--card2); border: 1px solid var(--borderHi); border-radius: 99px; position: relative; cursor: pointer; flex: none; transition: .2s; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--faint); transition: .2s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { inset-inline-start: 25px; background: #fff; }
.slots { margin-inline-start: auto; font-size: .92rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; background: var(--accentDim); color: var(--accent2); }
.slots.full { background: rgba(245, 158, 11, .14); color: #fcd34d; }
/*  THE HUGE PICKS. Two packs are worth several ordinary ones - 581 pieces
    of clothing, some eighty cars - so they cost three slots and say so in
    sky blue, a colour nothing else on this page uses. The gold premium
    badge stays what it was; these sit a step above it. */
.badge.sky { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #04202e; border-color: #7dd3fc; }
.pick.huge, .pcard.huge { border-color: #38bdf8; box-shadow: 0 0 0 1px rgba(56, 189, 248, .35), 0 10px 30px -18px rgba(56, 189, 248, .9); }
.pick.huge:hover, .pcard.huge:hover { border-color: #7dd3fc; }
.pick.huge:has(input:checked) { border-color: #38bdf8; box-shadow: 0 0 0 2px #38bdf8, 0 10px 30px -14px rgba(56, 189, 248, .9); }
.pick.huge:has(input:checked) .tick { background: #0ea5e9; border-color: #38bdf8; }
.pick.huge .pbody h4, .pcard.huge .pbody h4 { color: #bae6fd; }

/* one out, one in: the line that says where the customer stands */
.swap-note { margin: 2px 0 12px; padding: 8px 12px; border-radius: var(--radius); border: 1px dashed var(--borderHi); background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 13px; }

.pick-group { margin-top: 20px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pick { cursor: pointer; position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick .tick { position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(11, 7, 20, .8); border: 2px solid var(--borderHi); display: grid; place-items: center; color: transparent; transition: .15s; }
.pick .tick svg { width: 16px; height: 16px; }
.pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pick:has(input:checked) .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick.blocked:not(:has(input:checked)) { opacity: .45; cursor: not-allowed; }
.pick.locked { cursor: default; }
.pick.locked .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.builder.all .pick .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.builder.all .pick { border-color: var(--borderHi); cursor: default; }
.sticky { position: sticky; top: 86px; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.sum dt { color: var(--faint); }
.sum dd { margin: 0; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.total b { font-size: 1.9rem; direction: ltr; }

/* ---------- pay ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.manual h4 { display: flex; gap: 8px; align-items: center; margin-top: 0; }
.manual h4 svg { width: 20px; height: 20px; color: var(--accent2); }
.mysr-form { direction: ltr; }
.result { text-align: center; max-width: 560px; margin: 40px auto; }
.big-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.result.good .big-ic { background: rgba(34, 197, 94, .15); color: var(--ok); }
.result.bad .big-ic { background: rgba(239, 68, 68, .15); color: var(--bad); }
.big-ic svg { width: 38px; height: 38px; }

/* ---------- dashboard ---------- */
.welcome { text-align: center; padding: 50px 22px; }
.sub-card h2 small { color: var(--faint); font-weight: 500; font-size: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.kpis > div, .kpi { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpis b { font-size: 1.2rem; }
.kpis small { color: var(--faint); }
.kpis.big b { font-size: 1.7rem; }
/* seven cards on the owner's overview: one row on a desktop, not six and an orphan */
.kpis.big { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.creds { display: grid; gap: 10px; margin: 12px 0; }
.cred { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.cred > .muted { min-width: 120px; }
.cred code { font-size: 1.15rem; letter-spacing: .08em; }
.howto { margin-top: 14px; color: var(--faint); }
.howto summary { cursor: pointer; display: flex; gap: 8px; align-items: center; color: var(--accent2); font-weight: 600; }
.howto summary svg { width: 16px; height: 16px; }
.howto ol { margin: 10px 0 0; padding-inline-start: 22px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 18px; }
.bar { height: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.perm-form { margin: 0; }
.perm { width: 100%; text-align: start; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.perm span { color: var(--faint); font-size: .82rem; }
.perm i { font-style: normal; font-size: .82rem; font-weight: 700; color: #fca5a5; }
.perm.on { border-color: rgba(34, 197, 94, .45); }
.perm.on i { color: #86efac; }
.perm:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 5px 12px 5px 5px; font-weight: 600; font-size: .92rem; }
.chip img, .chip .ph { width: 58px; height: 32px; object-fit: cover; border-radius: 8px; font-size: 0; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.admin-nav { position: sticky; top: 86px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; gap: 10px; align-items: center; color: var(--faint); padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.admin-nav a svg { width: 17px; height: 17px; }
.admin-nav a:hover { background: var(--panel); color: var(--text); }
.admin-nav a.on { background: var(--accentDim); color: var(--text); }
.core-line { margin: 12px 8px 6px; }
.admin-nav > .muted { margin: 0 8px 6px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bars .b i { width: 100%; background: linear-gradient(180deg, var(--accent2), var(--accentDeep)); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.bars .b span { font-size: .7rem; color: var(--dim); }
.who-big { display: flex; gap: 14px; align-items: center; }
.who-big img { border-radius: 50%; }
.who-big h1 { margin: 0; font-size: 1.5rem; }
.mini-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.mini-picks label { display: flex; gap: 8px; align-items: center; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip-link { padding: 5px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--faint); }
.chip-link.on { background: var(--accentDim); color: var(--text); border-color: var(--borderHi); }
details > summary { cursor: pointer; font-weight: 700; color: var(--accent2); margin: 6px 0; }

/* ---------- documents ---------- */
.doc { max-width: 820px; margin-inline: auto; }
.doc h3 { margin-top: 1.4em; }
.invoice { max-width: 760px; margin-inline: auto; }
.invoice header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 14px; }
@media print {
    body { background: #fff; color: #000; }
    .top, .foot, .noprint, .topnote { display: none !important; }
    .card { background: #fff; border-color: #ccc; }
    .muted, .tbl th { color: #555; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 1020px) {
    .plans { grid-template-columns: 1fr 1fr; }
    .builder, .pay-grid, .admin { grid-template-columns: 1fr; }
    .sticky, .admin-nav { position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
    h1 { font-size: 1.6rem; }
    .hero, .grid-2, .explain, .limits { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .plans { grid-template-columns: 1fr; }
    .top .wrap { gap: 10px; height: auto; padding: 10px 0; flex-wrap: wrap; }
    .top nav { order: 3; flex: 1 0 100%; overflow-x: auto; }   /* flex-basis, not width: `flex: 1` would squeeze it into the corner */
    .who span { display: none; }
    .cred { flex-wrap: wrap; }
    .cred > .muted { min-width: 0; width: 100%; }
}

/* =================================================================
   THE FRONT PAGE (body.home)
   ================================================================= */
.home .top { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; transition: background .25s, border-color .25s; }
.home .top.solid { background: rgba(11, 7, 20, .92); border-color: var(--border); }
.home main.wrap { padding-top: 10px; }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.hero2 { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-shots, .hero-film { position: absolute; inset: 0; z-index: -2; }
.hero-film { width: 100%; height: 100%; object-fit: cover; }
.hero-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
                  animation: heroFade 30s linear infinite both; }
@keyframes heroFade {
    0%   { opacity: 0; transform: scale(1.12); }
    3%   { opacity: 1; }
    20%  { opacity: 1; }
    24%  { opacity: 0; transform: scale(1.0); }
    100% { opacity: 0; transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-shots img { animation: none; }
    .hero-shots img:first-child { opacity: 1; }
}
.hero2-shade { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(270deg, rgba(11, 7, 20, .94) 0%, rgba(11, 7, 20, .78) 38%, rgba(11, 7, 20, .25) 75%, rgba(11, 7, 20, .35) 100%),
                linear-gradient(0deg, var(--bg) 0%, rgba(11, 7, 20, 0) 30%),
                radial-gradient(900px 500px at 90% 30%, rgba(139, 92, 246, .28), transparent 60%); }
.hero2-in { padding: 130px 0 120px; }
.hero2-in h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.15; margin: 16px 0 18px; max-width: 760px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero2-in p { font-size: 1.15rem; color: #d9d0f5; max-width: 590px; margin-bottom: 26px; }
.hero2-in .cta { margin: 0 0 22px; }
.hero2-trust { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: #cfc4f0; font-size: .95rem; }
.hero2-trust li { display: flex; align-items: center; gap: 6px; }
.hero2-trust svg { width: 16px; height: 16px; color: var(--ok); }
.hero2-down { position: absolute; bottom: 90px; inset-inline-start: 50%; transform: translateX(50%); color: rgba(255, 255, 255, .6); width: 40px; height: 40px;
              display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); animation: bob 2.4s ease-in-out infinite; }
.hero2-down svg { width: 20px; height: 20px; }
@keyframes bob { 50% { transform: translate(50%, 6px); } }

.stats { position: relative; z-index: 2; margin-top: -58px; display: grid; grid-template-columns: repeat(4, 1fr);
         background: rgba(26, 16, 48, .9); border: 1px solid var(--borderHi); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.stats > div { padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stats > div + div { border-inline-start: 1px solid var(--border); }
.stats b { font-size: 2rem; font-weight: 800; background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.stats span { color: var(--faint); font-size: .95rem; }

.sec { margin: 84px 0; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 4px 0 0; }
.eyebrow { color: var(--accent2); font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: linear-gradient(180deg, var(--card), var(--panel)); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: .2s; }
.feat:hover { border-color: var(--borderHi); transform: translateY(-3px); }
.feat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
           background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(109, 40, 217, .12)); color: #c4b5fd; border: 1px solid var(--borderHi); }
.feat-ic svg { width: 24px; height: 24px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--faint); margin: 0; font-size: .96rem; }

.tabs { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 4px; }
.tabs button { border: 0; background: none; color: var(--faint); font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tabs button small { font-size: .78rem; background: var(--card2); color: var(--faint); padding: 0 8px; border-radius: 99px; }
.tabs button.on { background: var(--accent); color: #fff; }
.tabs button.on small { background: rgba(255, 255, 255, .2); color: #fff; }
.show-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.soft-note { display: flex; gap: 8px; align-items: center; color: var(--faint); margin: 20px 0 0; font-size: .95rem; }
.soft-note svg { width: 18px; height: 18px; color: var(--accent2); flex: none; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow::before { content: ''; position: absolute; top: 25px; inset-inline: 12.5%; height: 2px; background: linear-gradient(90deg, var(--accentDeep), var(--accent2)); opacity: .5; }
.flow li { position: relative; text-align: center; padding: 0 8px; }
.flow li > span { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
                  background: var(--bg); border: 2px solid var(--accent); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 0 0 6px var(--bg); }
.flow p { color: var(--faint); font-size: .94rem; margin: 0; }

.mini-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mini-plan { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border);
             background: linear-gradient(180deg, var(--card), var(--panel)); color: var(--text); transition: .2s; }
.mini-plan:hover { color: var(--text); border-color: var(--borderHi); transform: translateY(-3px); }
.mini-plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(139, 92, 246, .2); }
.mp-name { font-weight: 800; font-size: 1.05rem; }
.mp-price { color: var(--faint); }
.mp-price b { font-size: 1.8rem; color: var(--text); direction: ltr; margin-inline-end: 4px; }

.finale { position: relative; border-radius: 24px; overflow: hidden; margin: 90px 0 30px; isolation: isolate; min-height: 300px; display: grid; place-items: center; text-align: center; }
.finale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 7, 20, .92), rgba(11, 7, 20, .55)), radial-gradient(600px 300px at 50% 100%, rgba(139, 92, 246, .35), transparent 70%); }
.finale-in { padding: 50px 20px; }
.finale h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.finale p { color: #d9d0f5; }

@media (max-width: 1020px) {
    .feats { grid-template-columns: 1fr 1fr; }
    .show-grid { grid-template-columns: repeat(3, 1fr); }
    .mini-plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .hero2 { min-height: min(88vh, 760px); }
    .hero2-in { padding: 120px 0 110px; }
    .hero2-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 7, 20, .82) 45%, rgba(11, 7, 20, .55) 100%); }
    .stats { grid-template-columns: 1fr 1fr; margin-top: -40px; }
    .stats > div:nth-child(3) { border-inline-start: 0; }
    .stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
    .feats, .show-grid, .mini-plans, .interest { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr 1fr; row-gap: 26px; }
    .flow::before { display: none; }
    .sec { margin: 60px 0; }
    .sec-head.row { flex-direction: column; align-items: flex-start; }
    .tabs { width: 100%; overflow-x: auto; }
    .hero2-down { display: none; }
}

/* ---- the Zbooni pay page (views/subscribe.js zbooniBox, js/zpay.js) ---- */
.zsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.zstep { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card2); opacity: .72; transition: opacity .25s, border-color .25s, box-shadow .25s; }
.zstep.on { opacity: 1; border-color: var(--borderHi); box-shadow: 0 0 0 3px var(--accentDim); background: var(--card); }
.zstep.done { opacity: .9; }
.zstep h3 { margin: 4px 0 8px; font-size: 1.12rem; }
.zstep p { margin: 0 0 6px; line-height: 1.75; }
.zn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--accentDim); color: var(--accent2); border: 1px solid var(--borderHi); }
.zstep.on .zn { background: linear-gradient(135deg, var(--accent), var(--accentDeep)); color: #fff; border-color: transparent; }
.zstep.done .zn { background: rgba(34, 197, 94, .16); color: #86efac; border-color: rgba(34, 197, 94, .35); }
.zstep .actions { align-items: center; }
.zstep .actions .btn svg { width: 18px; height: 18px; }
.znote { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px !important; font-size: .9rem; color: var(--faint); }
.znote svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--accent2); }
.order-no { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 8px 12px; border: 1px dashed var(--borderHi); border-radius: 12px; background: var(--accentDim); width: fit-content; }
.order-no code { font-size: 1.25rem; font-weight: 800; letter-spacing: .5px; color: #fff; }
.zwait { display: flex; gap: 10px; align-items: center; margin-top: 12px; color: #fde68a; font-weight: 600; }
.zwait .dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: zpulse 1.6s infinite; }
@keyframes zpulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.zdone { margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); }
.zdone b { display: flex; gap: 8px; align-items: center; color: #bbf7d0; font-size: 1.05rem; }
.zdone b svg { width: 20px; height: 20px; }
.zpop { position: fixed; inset: 0; z-index: 80; background: rgba(6, 3, 12, .78); display: grid; place-items: center; padding: 16px; }
.zpop[hidden] { display: none; }
.zpop-card { max-width: 440px; width: 100%; text-align: center; background: var(--card); border: 1px solid var(--borderHi); border-radius: 18px; padding: 26px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.zpop-card .actions { justify-content: center; }
.zpop-ic { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--accentDim); color: var(--accent2); }
.zpop-ic svg { width: 28px; height: 28px; }
.zshut { text-align: center; padding: 10px 6px; }
.zshut .big-ic { background: rgba(245, 158, 11, .14); color: #fcd34d; }
.actions.center { justify-content: center; }
.btn.off { opacity: .6; pointer-events: none; cursor: default; }
.doors-banner { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--accentDim); border: 1px solid var(--borderHi); color: #ddd6fe; font-weight: 500; }
.doors-banner svg { width: 18px; height: 18px; flex: none; color: #fcd34d; }
.doors-banner.shut { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); color: #fde68a; }
.card.doors .kpis { margin: 10px 0 6px; }
.card.doors form.inline { margin-top: 8px; }
@media (max-width: 560px) { .zstep { grid-template-columns: 1fr; } .zn { width: 38px; height: 38px; } }
code.cmd { direction: rtl; unicode-bidi: isolate; }
.input.url-in { min-width: 320px; width: 100%; }
/* an icon inside a pill is text-sized - an SVG with no size fills its box */
.pill svg { width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 3px; }
/* the builder's "included" pill is not the row's text: it must not stretch */
.switch-row > .pill { flex: none; }
/* the summary follows the scroll: its column must be as tall as the form,
   or a sticky card has nowhere to stick and slides under the header */
.builder-side { align-self: stretch; }
/* the owner panel on a phone: the side menu wraps inside the screen, and the
   30-day bars scroll on their own instead of widening the whole page */
@media (max-width: 900px) {
    .admin > * { min-width: 0; }
    .admin-nav > .muted, .admin-nav > .core-line { flex-basis: 100%; }
    .bars { overflow-x: auto; }
}

/* =================================================================
   «الشروحات» - the subscribers' videos and the export app
   ================================================================= */
.ghead { display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: 24px; align-items: end; margin: 6px 0 22px; }
.ghead h1 { margin-bottom: .2em; }
.ghead p { margin: 0; max-width: 62ch; }
.gprog { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.gprog .bar { margin-bottom: 0; }

.gsec { margin: 0 0 28px; }
.gsec-head { margin-bottom: 14px; }
.gsec-head h2 { margin-bottom: .15em; }
.gsec-head p { margin: 0; }
.gv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gv-feature .gv { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }

.gv { background: linear-gradient(180deg, var(--card), var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
      display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.gv:hover { border-color: var(--borderHi); }
.gv.playing { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accentDim); }
.gv-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.gv-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.gv-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.gv-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: opacity .2s, transform .35s; }
.gv-play:hover img { opacity: 1; transform: scale(1.03); }
.gv-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
          border-radius: 50%; display: grid; place-items: center; color: #fff;
          background: linear-gradient(135deg, var(--accent), var(--accentDeep)); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .2s; }
.gv-play:hover .gv-btn { transform: translate(-50%, -50%) scale(1.08); }
.gv-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.gv-n { position: absolute; top: 10px; inset-inline-start: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px;
        display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: rgba(11, 7, 20, .78); border: 1px solid var(--borderHi); }
.gv.big .gv-btn { width: 84px; height: 84px; }
.gv.big .gv-btn svg { width: 36px; height: 36px; }
.gv-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gv-body h3 { margin: 0; font-size: 1.05rem; }
.gv-body p { margin: 0; font-size: .92rem; }
.gv.big .gv-body { justify-content: center; padding: 26px; gap: 8px; }
.gv.big .gv-body h3 { font-size: 1.4rem; }
.gv.big .gv-body p { font-size: 1rem; }
.gv-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 12px; }
.gv-seen { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: 99px;
           color: var(--faint); font: inherit; font-size: .85rem; font-weight: 600; padding: 4px 12px 4px 10px; cursor: pointer; }
.gv-seen i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--borderHi); display: grid; place-items: center; }
.gv-seen i svg { width: 11px; height: 11px; opacity: 0; }
.gv-seen:hover { color: var(--text); border-color: var(--borderHi); }
.gv.seen .gv-seen { color: #86efac; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }
.gv.seen .gv-seen i { background: var(--ok); border-color: var(--ok); color: #06240f; }
.gv.seen .gv-seen i svg { opacity: 1; }
.gv.seen .gv-n { background: var(--ok); border-color: var(--ok); color: #06240f; }

.rec { display: grid; grid-template-columns: 64px 1fr; gap: 18px; margin-bottom: 28px; border-color: var(--borderHi);
       background: radial-gradient(600px 220px at 100% 0, rgba(139, 92, 246, .18), transparent 70%), linear-gradient(180deg, var(--card), var(--panel)); }
.rec-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accentDeep)); }
.rec-ic svg { width: 32px; height: 32px; }
.rec h2 { margin: 0; }
.rec h2 small { font-size: .85rem; color: var(--faint); font-weight: 600; margin-inline-start: 6px; }
.rec-body > p { margin: 8px 0 6px; }
.rec-steps { margin: 6px 0 10px; padding-inline-start: 22px; }
.rec-steps li { margin: 4px 0; }
.rec-note { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: .92rem; color: var(--faint); }
.rec-note b { color: var(--text); }
.nowrap { white-space: nowrap; color: var(--text); }
.rec .actions { align-items: center; }

.ghelp { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.ghelp-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: #5865f2; }
.ghelp-ic svg { width: 28px; height: 28px; }
.ghelp h2 { margin-bottom: .3em; }
.gdays { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.gdays span { background: var(--accentDim); border: 1px solid var(--borderHi); color: #ddd6fe; padding: 5px 14px; border-radius: 99px; font-weight: 700; }

.glock { text-align: center; padding: 56px 22px; max-width: 620px; margin: 30px auto; }
.glock-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--accentDim); color: var(--accent2); }
.glock-ic svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
    .ghead { grid-template-columns: 1fr; }
    .gv-feature .gv { grid-template-columns: 1fr; }
    .gv.big .gv-body { padding: 18px; }
}
@media (max-width: 560px) {
    .rec, .ghelp { grid-template-columns: 1fr; }
    .gv-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .gv-play img, .gv-btn { transition: none; }
}

/* ---- the showcase film in the home hero (views/public.js heroFilm) ---- */
.hero2-in.has-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero2-in.has-film h1 { font-size: clamp(2.1rem, 3.7vw, 3.4rem); }
.hero-film-card { position: relative; }
.hf-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000;
            border: 1px solid var(--borderHi); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(139, 92, 246, .12); }
.hf-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, opacity .3s; opacity: .9; }
.hf-frame:hover img { transform: scale(1.04); opacity: 1; }
.hf-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hf-play { position: absolute; inset-inline-start: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
           padding: 10px 20px 10px 16px; border-radius: 99px; color: #fff; font-size: 1.02rem;
           background: linear-gradient(135deg, var(--accent), var(--accentDeep));
           box-shadow: 0 0 0 6px rgba(139, 92, 246, .22), 0 14px 34px rgba(0, 0, 0, .55); transition: transform .2s; }
.hf-play svg { width: 22px; height: 22px; flex: none; }
.hf-frame:hover .hf-play { transform: scale(1.06); }
.hf-cap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; color: #d9d0f5; font-weight: 600; }
.hf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 4px rgba(167, 139, 250, .25); }
.hero-film-card.playing .hf-cap { visibility: hidden; }
@media (max-width: 1020px) {
    .hero2-in.has-film { grid-template-columns: 1fr; gap: 28px; }
    .hero2-in.has-film h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
}
@media (max-width: 760px) {
    .hf-play { inset-inline-start: 10px; bottom: 10px; padding: 8px 16px 8px 12px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { .hf-frame img, .hf-play { transition: none; } }

/* the maker's credit under a sector uniform pack (views/public.js creditLine) */
.pcredit { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: .78rem; line-height: 1.5; color: var(--faint); }
.pcredit a { display: inline-block; margin-top: 2px; color: var(--accent2); font-weight: 700; }
.pcredit a:hover { color: #c4b5fd; text-decoration: underline; }
.pcredit.wide { border-top: 0; padding-top: 0; margin: 6px 0 4px; font-size: .85rem; }
.pcredit:not(.wide) a { display: block; }
