/* جمرة AI — نظام التصميم: ليل بابلي (أوبسيديان + لازورد + ذهب العنبر). من اليمين لليسار، يبدأ من الهاتف ثم يتسع للتابلت والحاسوب. */
:root {
  --bg: #0b0f19; --bg-2: #0e1424; --surface: #111827; --surface-2: #172033; --surface-3: #1d2940;
  --glass: rgba(17, 24, 39, .72); --line: rgba(148, 163, 184, .16); --line-2: rgba(148, 163, 184, .28);
  --text: #eef2f9; --muted: #93a1b8;
  --lapis: #1e5fb8; --blue: #0284c7; --sky: #38bdf8; --gold: #f59e0b; --amber: #fbbf24; --ink: #1a1204;
  --brand: var(--gold); --brand-2: var(--amber); --brand-ink: var(--ink);
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 12px 32px rgba(2, 6, 18, .45);
  --glow-gold: 0 0 0 1px rgba(251, 191, 36, .35), 0 10px 36px rgba(245, 158, 11, .32), 0 0 70px rgba(56, 189, 248, .14);
  --glow-sky: 0 0 0 1px rgba(56, 189, 248, .45), 0 0 26px rgba(56, 189, 248, .22);
  --font: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --tap: 46px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.75; direction: rtl; padding-bottom: 84px; min-height: 100vh;
  background:
    radial-gradient(900px 480px at 85% -8%, rgba(30, 95, 184, .34), transparent 62%),
    radial-gradient(700px 420px at -5% 105%, rgba(245, 158, 11, .13), transparent 60%),
    repeating-linear-gradient(135deg, rgba(56, 189, 248, .028) 0 2px, transparent 2px 26px),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--sky); text-decoration: none; }
a:hover { color: #7dd3fc; }
img, video, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3.8vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.gold-text { background: linear-gradient(135deg, var(--amber), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sky-text { color: var(--sky); }

/* ===== الرأس والتنقل ===== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 15, 25, .78); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.25rem; }
.brand:hover { color: var(--text); }
.brand .logo { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(245, 158, 11, .35)); }
.brand .wm b { background: linear-gradient(135deg, var(--amber), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.brand .wm i { font-style: normal; color: var(--sky); font-weight: 600; margin-inline-start: 4px; font-size: .95em; letter-spacing: .5px; font-family: system-ui, sans-serif; }
.top-nav { display: none; gap: 4px; margin-inline-start: 10px; }
.top-nav a { color: var(--muted); padding: 8px 14px; border-radius: 12px; font-weight: 500; }
.top-nav a:hover { color: var(--text); background: rgba(148, 163, 184, .1); }
.top-nav a.active { color: var(--amber); background: rgba(245, 158, 11, .12); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .38); color: var(--amber); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; min-height: 40px; }
.user-chip:hover { color: #fde68a; box-shadow: 0 0 18px rgba(245, 158, 11, .25); }
.bottom-nav { position: fixed; z-index: 30; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: calc(100vw - 20px); overflow: hidden; background: rgba(17, 24, 39, .88); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); padding: 4px; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; color: var(--muted); font-size: .74rem; font-weight: 500; border-radius: 18px; }
.bottom-nav a.active { color: var(--ink); background: linear-gradient(135deg, var(--amber), var(--gold)); font-weight: 700; box-shadow: 0 6px 18px rgba(245, 158, 11, .4); }
.bottom-nav svg, .top-nav svg { width: 22px; height: 22px; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .top-nav { display: flex; }
}

/* ===== الأزرار والحقول ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(148, 163, 184, .08); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { border-color: var(--sky); color: var(--text); background: rgba(56, 189, 248, .1); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--ink); border: 0; box-shadow: 0 8px 26px rgba(245, 158, 11, .32); }
.btn-primary:hover { color: var(--ink); background: linear-gradient(135deg, #fde68a, var(--amber)); box-shadow: var(--glow-gold); }
.btn-sky { background: linear-gradient(135deg, var(--sky), var(--blue)); color: #031625; border: 0; box-shadow: 0 8px 26px rgba(2, 132, 199, .35); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.1rem; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 11px; }
.cta { position: relative; overflow: hidden; width: 100%; min-height: 62px; border: 0; border-radius: 18px; font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--ink); cursor: pointer;
  background: linear-gradient(135deg, #fde68a 0%, var(--amber) 38%, var(--gold) 100%); box-shadow: var(--glow-gold); transition: transform .12s, box-shadow .25s; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(120%); animation: sheen 3.4s ease-in-out infinite; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(253, 230, 138, .6), 0 14px 44px rgba(245, 158, 11, .5), 0 0 90px rgba(56, 189, 248, .25); }
.cta:active { transform: scale(.985); }
.cta:disabled { opacity: .6; cursor: not-allowed; }   /* كان cursor: wait فيظهر في ويندوز دائرة زرقاء تدور فوق الزر المعطّل فيبدو أن الصفحة عالقة */
.cta[aria-busy=true]:disabled { cursor: progress; }
.btn-hint { display: block; margin-top: 6px; font-size: .84rem; opacity: .85; text-align: center; }
@keyframes sheen { 0%, 55% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.field { display: block; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
textarea, input[type=text], input[type=email], select {
  width: 100%; font: inherit; color: var(--text); background: rgba(8, 12, 22, .6); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; outline: none; min-height: var(--tap);
}
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a1b8' stroke-width='2.4' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: 14px center; padding-inline-end: 14px; padding-inline-start: 36px; }
select option, select optgroup { background: #111827; color: var(--text); }
textarea { min-height: 220px; resize: vertical; line-height: 1.9; }
textarea:focus, input:focus, select:focus { border-color: var(--sky); box-shadow: var(--glow-sky); }
::placeholder { color: #64748b; }

/* حبوب الاختيار (المقاس والمدة) وبطاقات الأسلوب والمفاتيح */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input, .style-cards input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 12, 22, .5); color: var(--muted); font-weight: 600; cursor: pointer; transition: all .18s; user-select: none; }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill small { font-weight: 500; opacity: .8; font-size: .78rem; }
.pill:hover { border-color: var(--sky); color: var(--text); }
.pills input:checked + .pill { color: var(--text); border-color: var(--sky); background: rgba(56, 189, 248, .14); box-shadow: var(--glow-sky); }
.pills input:checked + .pill svg { color: var(--sky); }
.pills input:disabled + .pill { opacity: .45; cursor: not-allowed; }
.pills.fill { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.pills.fill .pill { justify-content: center; border-radius: 14px; }
.style-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 10px; }
.style-card { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(8, 12, 22, .5); cursor: pointer; text-align: center; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .18s; min-height: 100px; }
.style-card .sw { aspect-ratio: 4 / 3; border-radius: 10px; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 1.5rem; }
.style-card:hover { border-color: var(--amber); color: var(--text); transform: translateY(-2px); }
.style-cards input:checked + .style-card { color: var(--text); border-color: var(--amber); background: rgba(245, 158, 11, .1); box-shadow: 0 0 0 1px rgba(251, 191, 36, .5), 0 8px 26px rgba(245, 158, 11, .28); }
.style-cards input:checked + .style-card::after { content: "✓"; position: absolute; }
.sw-cinematic { background: linear-gradient(135deg, #0b2a4a 0%, #134e6f 40%, #d97706 100%); }
.sw-real { background: linear-gradient(160deg, #cbd5e1 0%, #64748b 55%, #1e293b 100%); }
.sw-anime { background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #38bdf8 100%); }
.sw-3d { background: radial-gradient(circle at 30% 30%, #fde68a 0%, #f59e0b 40%, #7c2d12 100%); }
.sw-drawing { background: repeating-linear-gradient(45deg, #fef3c7 0 6px, #fde68a 6px 8px), #fef3c7; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(8, 12, 22, .5); min-height: 62px; }
.switch-row > div { flex: 1; min-width: 0; }
.switch-row strong { display: block; }
.switch-row .small { display: block; line-height: 1.4; }
.switch-row.locked { opacity: .8; }
.switch { position: relative; flex: none; width: 54px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #243049; border: 1px solid var(--line-2); transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #94a3b8; transition: .2s; }
.switch input:checked + i { background: linear-gradient(135deg, var(--amber), var(--gold)); border-color: transparent; box-shadow: 0 0 18px rgba(245, 158, 11, .5); }
.switch input:checked + i::after { inset-inline-start: 25px; background: #fff; }
.switch input:disabled { cursor: not-allowed; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: rgba(8, 12, 22, .55); border: 1px solid var(--line-2); border-radius: 16px; padding: 5px; }
.seg label { text-align: center; padding: 10px 6px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--muted); line-height: 1.3; min-height: var(--tap); display: grid; place-content: center; }
.seg label small { display: block; font-weight: 500; font-size: .76rem; opacity: .85; }
.seg input:checked + label, .seg label.on { background: rgba(56, 189, 248, .16); color: var(--text); box-shadow: var(--glow-sky); }

/* ===== البطاقات والمكونات ===== */
.card { background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-tight { padding: 14px; }
.panel { background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.panel-h .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #031625; font-weight: 800; font-size: .9rem; flex: none; }
.panel-h .hint { margin-inline-start: auto; font-weight: 500; font-size: .82rem; color: var(--muted); }
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(148, 163, 184, .14); color: var(--muted); }
.badge.ok { background: rgba(52, 211, 153, .15); color: var(--ok); }
.badge.warn { background: rgba(251, 191, 36, .15); color: var(--warn); }
.badge.err { background: rgba(248, 113, 113, .15); color: var(--err); }
.badge.brand { background: rgba(245, 158, 11, .15); color: var(--amber); }
.progress { height: 10px; background: rgba(148, 163, 184, .16); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--amber), var(--gold)); border-radius: 999px; transition: width .6s ease; box-shadow: 0 0 14px rgba(251, 191, 36, .5); }
.alert { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(148, 163, 184, .08); }
.alert.err { border-color: rgba(248, 113, 113, .5); color: #fca5a5; background: rgba(248, 113, 113, .07); }
.alert.ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .07); }
.alert.warn { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .07); }
.toast { position: fixed; bottom: 100px; inset-inline: 16px; margin: 0 auto; max-width: 420px; z-index: 60; background: #f8fafc; color: #0b0f19; padding: 12px 16px; border-radius: 14px; font-weight: 700; text-align: center; box-shadow: var(--shadow); }
.player { width: 100%; border-radius: 16px; background: #000; max-height: 72vh; box-shadow: 0 0 0 1px var(--line-2); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.big-number { font-size: 2.8rem; font-weight: 700; line-height: 1.1; background: linear-gradient(135deg, var(--amber), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kbd { direction: ltr; unicode-bidi: embed; font-family: ui-monospace, monospace; background: rgba(148, 163, 184, .12); padding: 2px 8px; border-radius: 8px; word-break: break-all; }
.dev-banner { background: linear-gradient(90deg, #92400e, #b45309); color: #fff7ed; text-align: center; font-weight: 600; padding: 4px 8px; font-size: .82rem; }

/* ===== شاشة التحميل بشعار نابض ===== */
.loader { display: grid; place-items: center; gap: 12px; padding: 26px 12px; text-align: center; color: var(--muted); }
.loader .logo { width: 84px; height: 84px; animation: pulse 1.8s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(245, 158, 11, .5)); }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(245, 158, 11, .35)); } 50% { transform: scale(1.07); filter: drop-shadow(0 0 28px rgba(245, 158, 11, .75)); } }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--amber); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== استوديو الصنع: هاتف عمود واحد، تابلت عمودان، حاسوب شبكة ===== */
.page-head { padding-top: 22px; padding-bottom: 6px; }
.page-head p { margin: 0; }
.studio { display: grid; gap: 16px; padding-bottom: 28px; align-items: start; }
.studio-main { display: grid; gap: 16px; min-width: 0; }
.studio-side { display: grid; gap: 16px; min-width: 0; }
.opts-grid { display: grid; gap: 16px; }
.cost-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(251, 191, 36, .4); background: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(56, 189, 248, .08)); }
.cost-bar .ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(251, 191, 36, .18); color: var(--amber); }
.cost-bar .ic svg { width: 24px; height: 24px; }
.cost-bar b { color: var(--amber); font-size: 1.25rem; }
.cost-bar .sub { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.cost-bar.warn { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); }
.preview { display: none; }
.device { margin: 0 auto; width: min(100%, 250px); border-radius: 26px; padding: 8px; background: #05070d; border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 50px rgba(30, 95, 184, .22); transition: width .3s; }
.device[data-aspect=landscape] { width: min(100%, 420px); }
.device[data-aspect=square] { width: min(100%, 300px); }
.device .screen { border-radius: 20px; overflow: hidden; position: relative; display: grid; place-items: end center; background: linear-gradient(160deg, #123a73, #0b0f19 60%, #4a2a05); transition: aspect-ratio .3s; }
.device[data-aspect=portrait] .screen { aspect-ratio: 9 / 16; }
.device[data-aspect=landscape] .screen { aspect-ratio: 16 / 9; }
.device[data-aspect=square] .screen { aspect-ratio: 1 / 1; }
.device .screen .cap { position: relative; z-index: 2; margin-bottom: 14%; padding: 4px 12px; font-weight: 700; font-size: .85rem; color: #fff; text-shadow: 0 2px 8px #000; text-align: center; }
.device .screen .badge-style { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.device .screen .lg { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; }
.device .screen .lg .logo { width: 58%; height: auto; margin-bottom: 14%; filter: drop-shadow(0 0 20px rgba(245, 158, 11, .5)); }
.summary { display: grid; gap: 8px; margin-top: 14px; font-size: .92rem; }
.summary div { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.summary span:first-child { color: var(--muted); }
@media (max-width: 759px) {
  .action-bar { position: static; padding: 10px; border-radius: 22px; background: rgba(11, 15, 25, .9); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 -8px 30px rgba(0, 0, 0, .5); display: grid; gap: 10px; }
}
@media (min-width: 760px) {
  .studio { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .9fr); gap: 20px; }
  .studio-side { position: sticky; top: 84px; }
  .preview { display: block; }
  .opts-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .studio { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 26px; }
  .studio-main .story-panel textarea { min-height: 260px; }
}

/* ===== الصفحة الرئيسية ===== */
.hero { padding-top: 34px; padding-bottom: 18px; position: relative; }
@media (min-width: 900px) { .hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 36px; } .hero .hero-art { margin-top: 0; } }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); }
.hero-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17, 24, 39, .6); font-weight: 600; font-size: .9rem; color: var(--amber); }
.hero-logo .logo { width: 30px; height: 30px; }
.hero-art { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; perspective: 900px; }
.hero-art div { aspect-ratio: 9 / 16; border-radius: 20px; background-size: cover; background-position: center; border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 40px rgba(30, 95, 184, .25); position: relative; overflow: hidden; }
.hero-art div:nth-child(2) { transform: translateY(-14px); box-shadow: var(--shadow), 0 0 50px rgba(245, 158, 11, .3); }
.hero-art div::after { content: attr(data-cap); position: absolute; inset-inline: 8px; bottom: 12px; text-align: center; color: #fff; font-weight: 700; font-size: .85rem; text-shadow: 0 2px 8px #000; }
.section { padding-top: 28px; padding-bottom: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(56, 189, 248, .2), rgba(30, 95, 184, .25)); color: var(--sky); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .3); }
.feature .ico svg { width: 26px; height: 26px; }
.step-n { width: 36px; height: 36px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--ink); font-weight: 800; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); margin-bottom: 8px; }
.pkg { position: relative; text-align: center; transition: transform .2s, box-shadow .2s; }
.pkg:hover { transform: translateY(-3px); }
.pkg.best { border-color: rgba(251, 191, 36, .6); box-shadow: var(--glow-gold); background: linear-gradient(180deg, rgba(245, 158, 11, .1), var(--glass)); }
.pkg .tag { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--ink); font-size: .8rem; font-weight: 800; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.pkg .price { font-size: 2rem; font-weight: 700; color: var(--amber); }
details { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 24px 0 34px; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); margin-inline-end: 16px; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand { font-size: 1.05rem; }
.site-footer .brand .logo { width: 30px; height: 30px; }

/* ===== حسابي وفيديوهاتي: لوحة شبكية على الشاشات الكبيرة ===== */
.dash { display: grid; gap: 18px; padding-bottom: 28px; }
@media (min-width: 900px) { .dash { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; } .dash .col-side { position: sticky; top: 84px; } }
.video-item { display: grid; gap: 10px; }
.video-item .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#list.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; }
#list.vgrid > .stack-item, #list.vgrid > .card { margin-top: 0 !important; }
.thumb-wait { aspect-ratio: 16 / 9; border-radius: 14px; background: rgba(148, 163, 184, .08); display: grid; place-items: center; color: var(--muted); }
.legal h3 { margin-top: 1.4em; color: var(--amber); }
.legal { line-height: 1.95; }

/* ===== حالات إضافية ===== */
.studio.running { grid-template-columns: minmax(0, 700px); justify-content: center; }
.job-wrap:has(#jobResult:not(.hidden)) .loader, .job-wrap:has(#jobFail:not(.hidden)) .loader { display: none; }
.empty { grid-column: 1 / -1; }
.area-bal { grid-area: bal; } .area-pk { grid-area: pk; } .area-led { grid-area: led; }
.dash { grid-template-areas: "bal" "pk" "led"; }
@media (min-width: 900px) { .dash { grid-template-areas: "bal pk" "led pk"; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); } .area-pk { position: sticky; top: 84px; align-self: start; } }
.style-show { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.style-show .sw { aspect-ratio: 3 / 4; border-radius: 16px; display: grid; place-items: end center; padding-bottom: 12px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.login-logo { display: grid; place-items: center; margin-bottom: 4px; }
.login-logo .logo { width: 72px; height: 72px; filter: drop-shadow(0 0 18px rgba(245, 158, 11, .45)); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-actions .btn { min-width: 170px; }


/* ===================== v3: الاسم المزدوج، اللغة، الأصوات المقفلة، ضغط الصفحة ===================== */
.wm { display: flex; flex-direction: column; line-height: 1.05; }
.wm-main { display: flex; align-items: baseline; gap: 4px; font-size: 1.2rem; }
.wm-sub { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: "IBM Plex Sans", system-ui, sans-serif; margin-top: 2px; }
.brand .logo { width: 38px; height: 38px; }
.lang-sw { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(8, 12, 22, .72); border: 1px solid var(--line-2); gap: 2px; }
.lang-sw button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .82rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 34px; white-space: nowrap; }
.lang-sw button.on { background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--ink); box-shadow: 0 4px 14px rgba(245, 158, 11, .4); }
.lang-sw.big { display: flex; width: 100%; } .lang-sw.big button { flex: 1; min-height: 40px; }
.lang-sw.hdr button { padding: 5px 10px; min-height: 32px; font-size: .78rem; }
@media (max-width: 560px) { .lang-sw.hdr .tx { display: none; } .lang-sw.hdr button { padding: 5px 9px; font-size: .95rem; } .site-header .container { gap: 8px; } }

.native-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vpicker { position: relative; }
.vcur { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 6px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(8, 12, 22, .6); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.vcur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcur:hover, .vcur[aria-expanded=true] { border-color: var(--sky); box-shadow: var(--glow-sky); }
.vlist { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 6px); max-height: 290px; overflow: auto; background: #0f1626; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.vopt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.vopt:hover { background: rgba(56, 189, 248, .1); }
.vopt.sel { background: rgba(56, 189, 248, .16); }
.vopt.locked { color: #64748b; cursor: not-allowed; background: rgba(100, 116, 139, .06); }
.vopt.locked:hover { background: rgba(100, 116, 139, .14); }
.probadge, .free { font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .3px; }
.probadge { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #1a1204; box-shadow: 0 0 12px rgba(245, 158, 11, .55); }
.free { background: rgba(52, 211, 153, .15); color: var(--ok); }
.vtip { position: absolute; z-index: 50; inset-inline: 0; bottom: calc(100% + 6px); padding: 10px 12px; border-radius: 12px; background: #fff7e0; color: #2a1c04; font-weight: 600; font-size: .85rem; line-height: 1.5; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); border: 1px solid #f59e0b; }
.vtip a { color: #b45309; font-weight: 800; }
.lbl { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* ---- صفحة الصنع المدمجة ---- */
.c-studio { padding-top: 12px; padding-bottom: 14px; gap: 14px; }
.c-studio .studio-main, .c-studio .studio-side { gap: 10px; }
.c-studio .panel { padding: 12px 14px; border-radius: 16px; box-shadow: 0 8px 22px rgba(2, 6, 18, .4); }
.c-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.c-title { font-size: 1.25rem; margin: 0; }
.c-head .small { font-size: .82rem; line-height: 1.4; }
.c-studio textarea { min-height: 104px; height: 112px; padding: 10px 12px; line-height: 1.75; }
.opt-grid { display: grid; grid-template-columns: 1fr; gap: 10px 14px; }
.opt-grid .wide { grid-column: 1 / -1; }
.pills.sm .pill { min-height: 40px; padding: 4px 10px; font-size: .88rem; gap: 6px; }
.pills.sm .pill svg { width: 18px; height: 18px; }
.pills.fill { grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 6px; }
.style-cards.chips { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; scrollbar-width: none; }
.style-cards.chips::-webkit-scrollbar { display: none; }
.chips .style-card { flex: 1 0 auto; min-width: 84px; flex-direction: row; align-items: center; justify-content: center; min-height: 42px; padding: 5px 10px; gap: 7px; scroll-snap-align: start; font-size: .88rem; }
.chips .style-card:hover { transform: none; }
.chips .sw { width: 26px; aspect-ratio: 1; border-radius: 8px; font-size: .95rem; flex: none; }
.chips input:checked + .style-card::after { content: none; }
.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trio .seg { grid-column: 1 / -1; }
.c-studio .switch-row { min-height: 48px; padding: 6px 10px; gap: 8px; border-radius: 14px; }
.c-studio .switch-row strong { font-size: .88rem; line-height: 1.3; }
.c-studio .switch-row .small { font-size: .74rem; }
.seg.compact { padding: 3px; gap: 4px; }
.seg.compact label { min-height: 40px; padding: 2px 6px; font-size: .88rem; }
.pv-row { display: flex; gap: 14px; align-items: center; }
.c-studio .device { width: 92px; flex: none; margin: 0; border-radius: 18px; padding: 5px; }
.c-studio .device[data-aspect=landscape] { width: 150px; }
.c-studio .device[data-aspect=square] { width: 112px; }
.c-studio .device .screen { border-radius: 14px; }
.c-studio .device .screen .cap { font-size: .6rem; margin-bottom: 10%; padding: 2px 6px; }
.c-studio .device .screen .badge-style { display: none; }
.c-studio .summary { margin: 0; flex: 1; gap: 4px; font-size: .84rem; }
.c-studio .summary div { padding-bottom: 3px; }
.c-studio .cost-bar { padding: 8px 12px; gap: 10px; border-radius: 14px; }
.c-studio .cost-bar .ic { width: 36px; height: 36px; border-radius: 11px; }
.c-studio .cost-bar b { font-size: 1.1rem; }
.c-studio .cta { min-height: 54px; font-size: 1.12rem; border-radius: 16px; }
.c-studio .action-bar { display: grid; gap: 10px; position: static; margin-top: 16px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }   /* زر الإنشاء في آخر بطاقة الإعدادات، في مكانه الطبيعي بلا تعويم */
.c-studio .preview { display: block; }
@media (min-width: 760px) {
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 1fr 1fr 1.15fr; }
  .trio .seg { grid-column: auto; }
  .chips .style-card { flex: 1 1 0; }
  .c-studio { grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); }
}
@media (max-width: 759px) {
  .c-title { font-size: 1.1rem; }
  .c-studio .preview { display: none; }
}
.studio.running { grid-template-columns: minmax(0, 700px); justify-content: center; }

/* ---- الاتجاه من اليسار لليمين (الإنجليزية) ---- */
html[lang=en] body { font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
[dir=ltr] .pkg .tag { transform: translateX(-50%); }
[dir=ltr] select { background-position: calc(100% - 14px) center; padding-inline-start: 14px; padding-inline-end: 36px; }
[dir=ltr] .brand .wm i { margin-inline-start: 4px; }
.c-studio .studio-main .story-panel textarea { min-height: 104px; height: 108px; }
html[dir=ltr] body { direction: ltr; }
html[dir=ltr] .top-nav { margin-inline-start: 10px; }

.opt-grid > *, .trio > *, .studio-main, .studio-side, .panel { min-width: 0; }
.flag { display: inline-block; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-sw .fl { display: inline-flex; align-items: center; }
html { overflow-x: hidden; } body { overflow-x: clip; position: relative; }   /* position: relative ليقصّ body عناصر جمرة المطلقة أفقياً (فلا تتسع منطقة التمرير يساراً في RTL عندما تقف جمرة أو فقاعتها قرب حافة الشاشة) */   /* clip بدل hidden: hidden يجعل body حاوية تمرير فيكسر position: sticky للهيدر والعمود الأيسر */

.ts-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5, 8, 16, .82); backdrop-filter: blur(6px); padding: 16px; }
.ts-card { width: min(100%, 360px); text-align: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px; box-shadow: var(--shadow), 0 0 50px rgba(30, 95, 184, .3); }
#tsLogin:empty { display: none; }

/* ===== شريط اللقطات ونافذة تبديل مشهد ===== */
.film { margin-top: 4px; }
.film-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.film-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.film-item { position: relative; flex: 0 0 auto; width: 86px; min-height: 56px; border-radius: 12px; border: 2px solid var(--line-2); background: #05070d; padding: 0; cursor: pointer; overflow: hidden; scroll-snap-align: start; transition: .15s; }
.film-item img { display: block; width: 100%; height: auto; }
.film-item:hover, .film-item:focus-visible { border-color: var(--amber); box-shadow: 0 0 16px rgba(245, 158, 11, .45); transform: translateY(-2px); outline: none; }
.film-item .n { position: absolute; top: 4px; inset-inline-start: 4px; background: rgba(11, 15, 25, .88); color: var(--amber); font-weight: 800; font-size: .72rem; padding: 0 6px; border-radius: 6px; }
.film-item .t { position: absolute; bottom: 4px; inset-inline-end: 4px; font-size: .68rem; color: #fff; text-shadow: 0 1px 4px #000; }
.scene-card { position: relative; width: min(100%, 390px); text-align: start; }
.scene-card .x { position: absolute; top: 10px; inset-inline-end: 12px; background: transparent; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; min-width: 32px; min-height: 32px; }
.scene-big { display: block; width: 100%; max-height: 230px; object-fit: contain; border-radius: 12px; background: #000; margin: 6px 0 10px; }
.cost-line { margin: 10px 0; padding: 8px 10px; border-radius: 12px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(251, 191, 36, .35); font-size: .9rem; }
.cost-line b { color: var(--amber); }
.film-host:empty { display: none; }
#list.vgrid > *, .video-item, .film, .film-host, .film-strip { min-width: 0; max-width: 100%; }
.video-item .film-strip { max-width: 100%; }

/* ===== نظام المسلسلات + مؤشر التخزين ===== */
.pill-gold { grid-column: span 2; justify-content: center; border-color: rgba(251, 191, 36, .55); color: var(--amber); font-weight: 700; background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(251, 191, 36, .05)); }
.pills input:checked + .pill-gold { color: #1a1204; background: linear-gradient(135deg, #fde68a, var(--amber) 45%, var(--gold)); border-color: transparent; box-shadow: 0 0 22px rgba(245, 158, 11, .55); }
.series-card { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(56, 189, 248, .06)); border: 1px solid rgba(251, 191, 36, .38); backdrop-filter: blur(10px); box-shadow: 0 0 24px rgba(245, 158, 11, .12); font-size: .82rem; line-height: 1.6; }
.series-card .ic { flex: none; font-size: 1.25rem; line-height: 1.3; }
.series-card strong { color: var(--amber); }
.field > .series-card { margin-top: 8px; }
.btn-gold { background: linear-gradient(135deg, #fde68a, var(--amber) 45%, var(--gold)); color: var(--ink); border: 0; font-weight: 700; box-shadow: var(--glow-gold); }
.btn-gold:hover { color: var(--ink); filter: brightness(1.06); }
.retention { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17, 24, 39, .7); font-size: .88rem; width: fit-content; max-width: 100%; }
.retention b { color: var(--amber); }
.retention .bar { display: block; width: 90px; height: 6px; border-radius: 999px; background: rgba(148, 163, 184, .2); overflow: hidden; }
.retention .bar u { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--amber)); text-decoration: none; border-radius: 999px; }
.retention.full { border-color: rgba(251, 191, 36, .5); }
.retention.full .bar u { background: linear-gradient(90deg, var(--amber), #f87171); }

/* صف المدة: 5 خيارات + كبسولة المسلسل العريضة في سطر واحد */
.pills.fill.dur { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pills.dur .pill { padding: 4px 4px; font-size: .84rem; justify-content: center; }
.pills.dur .pill-gold { grid-column: span 2; padding: 4px 6px; font-size: .8rem; white-space: nowrap; }
@media (min-width: 760px) { .opt-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
@media (max-width: 759px) { .pills.fill.dur { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pills.dur .pill-gold { grid-column: span 2; } }

/* ===== نافذة اختيار نمط إخراج المسلسل ===== */
.series-mode { margin-top: 6px; font-size: .85rem; color: var(--muted, #94a3b8); }
.series-mode b { color: var(--amber); }
.link-btn { background: none; border: 0; color: var(--sky); cursor: pointer; font: inherit; text-decoration: underline; padding: 0 4px; }
.mm-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 23, .72); backdrop-filter: blur(6px); }
.mm-box { width: min(480px, 100%); max-height: 92vh; overflow: auto; background: var(--glass); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.mm-box h3 { margin: 0; font-size: 1.05rem; }
.mm-x { background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; opacity: .7; }
.mm-opt { text-align: start; display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(148, 163, 184, .06); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.mm-opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.mm-opt.sel { border-color: var(--gold); background: rgba(245, 158, 11, .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.mm-opt.rec { border-color: rgba(245, 158, 11, .5); }
.mm-opt.locked { opacity: .55; cursor: not-allowed; }
.mm-t { font-weight: 700; }
.mm-d { font-size: .85rem; opacity: .85; line-height: 1.5; }
.mm-cost { font-size: .82rem; color: var(--amber); }
.mm-rec { font-style: normal; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--ink); margin-inline-start: 6px; vertical-align: middle; }

/* ===== استوديو الإعلانات ===== */
.drop { display: grid; place-items: center; gap: 6px; min-height: 150px; padding: 14px; border: 2px dashed var(--line-2); border-radius: 18px; background: rgba(148, 163, 184, .05); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--gold); background: rgba(245, 158, 11, .06); }
.drop small { display: block; opacity: .7; margin-top: 4px; font-weight: 400; }
.drop img { max-height: 240px; max-width: 100%; border-radius: 12px; object-fit: contain; box-shadow: var(--shadow); }

/* ===== ملخصات الأفلام ===== */
.upbar { height: 8px; border-radius: 999px; background: rgba(148, 163, 184, .18); overflow: hidden; margin-top: 10px; }
.upbar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--amber), var(--gold)); transition: width .2s; }
.recap-info { margin-top: 8px; font-size: .85rem; color: var(--muted, #94a3b8); }
.recap-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.6; }
.recap-consent input { margin-top: 4px; accent-color: var(--gold); flex: none; }
.bottom-nav a { min-width: 0; } .bottom-nav a span { font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* مسلسل قصير: خيار مستقل عن أزرار الثواني (لا يتداخل معها) */
.series-pick { margin-top: 8px; position: relative; }
.series-pick input { position: absolute; opacity: 0; pointer-events: none; }
.series-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed rgba(245, 158, 11, .55); background: rgba(245, 158, 11, .06); cursor: pointer; line-height: 1.35; }
.series-opt .ic { font-size: 1.25rem; }
.series-opt b { display: block; font-size: .92rem; color: var(--text); }
.series-opt small { display: block; font-size: .78rem; color: var(--muted, #94a3b8); }
.series-pick input:checked + .series-opt { border-style: solid; border-color: #f59e0b; background: rgba(245, 158, 11, .16); box-shadow: 0 0 0 1px rgba(245, 158, 11, .35); }
.series-pick input:disabled + .series-opt { opacity: .45; cursor: not-allowed; }
#durPills .pill.hidden, #durPills input.hidden { display: none !important; }

#durPills:has(input[data-vip]:not(.hidden)) { grid-template-columns: repeat(2, minmax(96px, 1fr)); }

/* دفعات الأجزاء في «فيديوهاتي» */
.batch-card { padding: 12px 14px; display: grid; gap: 8px; border-color: rgba(245, 158, 11, .45); }
.bdots { display: flex; gap: 6px; flex-wrap: wrap; }
.bdot { width: 14px; height: 14px; border-radius: 50%; background: rgba(148, 163, 184, .35); display: inline-block; }
.bdot.queued { background: #38bdf8; animation: bdot 1.1s ease-in-out infinite alternate; }
.bdot.done { background: #22c55e; } .bdot.failed { background: #ef4444; }
@keyframes bdot { from { opacity: .45; } to { opacity: 1; } }

/* صناديق الرفع: تظليل أثناء السحب، وسطر اسم الصورة */
.drop.drag { border-color: var(--sky); border-style: solid; background: rgba(56, 189, 248, .12); box-shadow: var(--glow-sky); }
.drop .cap { display: block; margin-top: 6px; opacity: .75; font-size: .78rem; direction: ltr; unicode-bidi: plaintext; }

/* صور توضيحية للأساليب الخمسة: المشهد نفسه بكل أسلوب (الصفحة الرئيسية + بطاقات الاختيار في /create) */
.style-show { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sw-img { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #0b1220; }
.sw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sw-img:hover img { transform: scale(1.05); }
.sw-img figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 10px 10px; text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8)); color: #fff; }
.sw-img figcaption b { display: block; font-size: .98rem; text-shadow: 0 2px 8px #000; }
.sw-img figcaption small { display: block; font-size: .74rem; opacity: .85; margin-top: 2px; }
.sw-cinematic, .sw-real, .sw-anime, .sw-3d, .sw-drawing { background-size: cover !important; background-position: center 30% !important; font-size: 0 !important; color: transparent !important; }
.sw-cinematic { background-image: url(/static/home/jamra-cinematic.webp?v=6) !important; }
.sw-real { background-image: url(/static/home/jamra-real.webp?v=6) !important; }
.sw-anime { background-image: url(/static/home/jamra-anime.webp?v=6) !important; }
.sw-3d { background-image: url(/static/home/jamra-3d.webp?v=6) !important; }
.sw-drawing { background-image: url(/static/home/jamra-drawing.webp?v=6) !important; }
.style-card .sw { aspect-ratio: 3 / 4; }
.chips .sw { aspect-ratio: 1 !important; }
/* الأساليب الخمسة: خمسة أعمدة على الشاشة العريضة، وتمرير أفقي على الهاتف */
@media (min-width: 760px) { .style-show { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 759px) { .style-show { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .style-show .sw-img { scroll-snap-align: start; } }

/* بطاقات الباقات بالنقاط */
.pts-line { margin: 4px 0 8px; font-size: 1.05rem; }
.pts-line b { font-size: 1.35rem; color: var(--gold, #f59e0b); }
.bonus { font-style: normal; font-size: .76rem; background: rgba(34, 197, 94, .16); color: #4ade80; padding: 2px 8px; border-radius: 999px; margin-inline-start: 4px; white-space: nowrap; }
.makes { text-align: start; margin: 8px 0 12px; }
.makes ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.makes li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 8px; background: rgba(148, 163, 184, .08); }
.makes li b { color: var(--text); }
.card.single h4 { margin: 0 0 4px; }
.card.single .price.sm { font-size: 1.3rem; margin: 8px 0; }

/* ===== الهيدر المزدوج: شريط الهوية + شريط التنقل والمحفظة ===== */
.brand-bar { background: radial-gradient(120% 220% at 50% -40%, rgba(245, 158, 11, .16), transparent 60%), linear-gradient(180deg, #0a0e1a, #0e1424); border-bottom: 1px solid rgba(245, 158, 11, .28); }
.brand-bar .container { display: flex; justify-content: center; align-items: center; padding-block: 8px; }
.brand-lg { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-lg:hover { color: var(--text); }
.brand-img { display: block; height: 104px; width: auto; max-width: 94vw; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 74% 78% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 74% 78% at 50% 50%, #000 62%, transparent 100%); }   /* الخلفية الداكنة للصورة تذوب في الشريط */
.wm-lg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.wm-lg b { background: linear-gradient(135deg, var(--amber), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-lg i { font-style: normal; color: var(--sky); font-family: system-ui, sans-serif; }
.wm-lg em { font-style: normal; font-size: .62rem; letter-spacing: .3em; color: var(--muted); font-family: "IBM Plex Sans", system-ui, sans-serif; flex-basis: 100%; }
.sub-bar { top: 0; background: rgba(11, 15, 25, .9); }
.sub-bar .container { height: 58px; }
.sub-bar .top-nav { margin-inline-start: 0; }
.top-nav a { display: inline-flex; align-items: center; gap: 7px; }
.top-nav a svg { width: 18px; height: 18px; }
.wallet { gap: 6px; }
.wallet .w-ic { font-size: 1.05rem; }
.charge-btn { white-space: nowrap; }
@media (max-width: 759px) {
  .brand-img { height: 66px; }
  .wm-lg { font-size: 1.35rem; }
  .brand-bar .container { padding-block: 5px; }
  .sub-bar .container { height: 50px; justify-content: flex-end; }
  .sub-bar .spacer { display: none; }
}

/* ===== صفحة الإنشاء: العمود الأيسر ثابت، بطاقة الرصيد، وصندوق جمرة ===== */
@media (min-width: 760px) {
  .c-studio:not(.running) .studio-side { top: 72px; max-height: calc(100vh - 84px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding-bottom: 4px; }
}
.bal-card { display: none; }
@media (min-width: 760px) {
  .bal-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(23, 32, 51, .9), rgba(17, 24, 39, .9)); border: 1px solid var(--line-2); font-size: .9rem; }
  .bc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .bc-row span { color: var(--muted); }
  .bc-row b { color: var(--amber); font-size: 1rem; }
  .bc-left { padding-top: 6px; border-top: 1px dashed var(--line-2); }
  .bc-left b { color: var(--ok); }
  .bc-left b.neg { color: var(--err); }
  .bc-top { display: block; text-align: center; padding: 8px; border-radius: 12px; background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; font-weight: 700; font-size: .86rem; }
}

/* شعار مفصول بخلفية شفافة: الشعار في أقصى اليسار والاسم في أقصى اليمين */
.brand-bar .container { justify-content: stretch; }
.brand-lg:has(.brand-split) { width: 100%; }
.brand-split { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; }
.brand-emblem, .brand-name { display: block; width: auto; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(245, 158, 11, .25)); }
.brand-emblem { height: 92px; }
.brand-name { height: 78px; max-width: 58vw; }
@media (max-width: 759px) { .brand-emblem { height: 58px; } .brand-name { height: 48px; } }

/* شريط التنقل بستة أقسام على الحاسوب: نخفي الأيقونات ونضغط الحشوة على الشاشات المتوسطة حتى لا يزدحم مع شارة الرصيد */
@media (min-width: 760px) and (max-width: 1019px) {
  .top-nav a svg { display: none; }
  .top-nav a { padding: 8px 10px; font-size: .86rem; }
  .top-nav { gap: 2px; }
  .charge-btn { padding-inline: 10px; }
}

/* ===== صفحة كيف تربح ===== */
.earn { display: grid; gap: 22px; padding-block: 18px 40px; max-width: 980px; }
.earn-hero { padding: 22px 18px; border-radius: 22px; background: radial-gradient(120% 140% at 85% -20%, rgba(245, 158, 11, .18), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.earn-kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: var(--amber); font-weight: 700; font-size: .82rem; }
.earn-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 10px 0 8px; }
.earn-hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 720px; }
.earn-note { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(251, 191, 36, .08); border: 1px dashed rgba(251, 191, 36, .45); color: #fde68a; font-size: .88rem; }
.earn-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.earn-toc a { padding: 7px 14px; border-radius: 999px; background: rgba(148, 163, 184, .1); color: var(--text); font-size: .88rem; }
.earn-toc a:hover { background: rgba(245, 158, 11, .16); color: var(--amber); }
.earn-sec { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; scroll-margin-top: 80px; }
.earn-h { display: flex; gap: 12px; align-items: flex-start; }
.earn-h h2 { margin: 0 0 4px; font-size: clamp(1.15rem, 3.6vw, 1.5rem); }
.earn-h .num { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.earn h3 { margin: 10px 0 2px; font-size: 1.05rem; color: var(--amber); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding: 10px 14px; padding-inline-start: 52px; border-radius: 14px; background: rgba(148, 163, 184, .07); line-height: 1.8; }
.steps li::before { content: counter(st); position: absolute; inset-inline-start: 12px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(245, 158, 11, .18); color: var(--amber); font-weight: 800; }
.msg-grid { display: grid; gap: 12px; }
@media (min-width: 860px) { .msg-grid { grid-template-columns: repeat(3, 1fr); } }
.msg-card { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.msg-t { font-weight: 700; }
.msg { margin: 0; white-space: pre-line; font-size: .88rem; line-height: 1.85; color: var(--text); background: rgba(8, 12, 22, .5); border-radius: 12px; padding: 10px 12px; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-table th, .price-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.price-table th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.price-table td:last-child { color: var(--amber); font-weight: 700; white-space: nowrap; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tips li { padding: 9px 13px; border-radius: 12px; background: rgba(148, 163, 184, .07); line-height: 1.8; }
.tips.warn li { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .25); }
.earn-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.plan-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.plan-card b { color: var(--amber); }
.plan-card ul { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: .9rem; line-height: 1.7; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: rgba(148, 163, 184, .07); border: 1px solid var(--line); padding: 4px 14px; }
.faq summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.faq details[open] summary { color: var(--amber); }
.faq p { margin: 0 0 12px; line-height: 1.85; color: var(--muted); }
.earn-legal { padding: 14px 16px; border-radius: 16px; background: rgba(148, 163, 184, .06); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); line-height: 1.85; }
.earn-legal h3 { margin: 0 0 6px; color: var(--text); font-size: .95rem; }
.price-rule { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); }
.earn-note.ok { background: rgba(52, 211, 153, .08); border: 1px dashed rgba(52, 211, 153, .5); color: var(--text); line-height: 1.85; font-size: .92rem; }
.earn-note .mini { margin: 6px 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.earn-soon { border-style: dashed; border-color: rgba(56, 189, 248, .5); }
.price-table td:nth-child(2) { color: var(--muted); }
.price-table td:last-child { white-space: nowrap; }
/* تذييل الموقع: الروابط تلتف إلى سطر ثانٍ على الهاتف (كانت تفيض أفقياً فيتّسع إطار العرض وتتحرك العناصر الثابتة كجمرة وشريط التنقل) */
.site-footer .row { flex-wrap: wrap; row-gap: 8px; }
.site-footer .row .spacer { flex-basis: 0; }
@media (max-width: 759px) { .site-footer .row .spacer { display: none; } .site-footer .row .brand { flex-basis: 100%; margin-bottom: 4px; } }

/* ===== مناطق الأمان (النوتش وشريط الإيماءات): الميتا فيه viewport-fit=cover؛ القيم 0 على الأجهزة بلا نوتش فلا يتغيّر شيء ===== */
body { padding-top: env(safe-area-inset-top, 0px); }
.sub-bar { top: env(safe-area-inset-top, 0px); }
.container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bottom-nav { left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); max-width: none; }
.site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .c-studio:not(.running) .studio-side { top: calc(72px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 84px - env(safe-area-inset-top, 0px)); } }

/* ===== الهاتف الأفقي (ارتفاع قصير): نخفي الشريط السفلي ونصغّر الهيدر ونجعل شريط الإنشاء ملتصقاً بآخر المحتوى بدل تثبيته فوق مربع القصة ===== */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  body { padding-bottom: 0; }
  .brand-bar .container { padding-block: 3px; }
  .brand-emblem { height: 38px; } .brand-name { height: 32px; max-width: 46vw; } .brand-img { height: 44px; } .wm-lg { font-size: 1.1rem; }
  .sub-bar .container { height: 42px; gap: 8px; }
  .sub-bar .spacer { display: none; }
  .bottom-nav { display: none; }
  .top-nav { display: flex; flex: 1 1 auto; min-width: 0; margin-inline-start: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { padding: 5px 9px; font-size: .8rem; white-space: nowrap; min-height: 0; }
  .top-nav a svg { display: none; }
  .user-chip { padding: 3px 10px; min-height: 30px; font-size: .8rem; } .charge-btn { padding: 3px 10px; min-height: 30px; }
  .c-studio { padding-bottom: 14px; }
  .c-studio:not(.running) .studio-side { top: calc(56px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 66px - env(safe-area-inset-top, 0px)); }
  .site-footer { margin-top: 12px; padding-top: 12px; }
}
}

/* ===== الشاشة: ارتفاع ديناميكي (dvh) ومنع الارتداد/السحب للتحديث، لتجربة PWA ثابتة ===== */
html, body { overscroll-behavior-y: none; }
@supports (height: 100dvh) {
  body { min-height: 100dvh; }
  @media (min-width: 760px) { .c-studio:not(.running) .studio-side { max-height: calc(100dvh - 84px - env(safe-area-inset-top, 0px)); } }
}

/* ===== شعار/اسم «جمرة AI» زر واضح: كبسولة زجاجية خفيفة + شارة (i) ذهبية + تأثير لمس/مرور ===== */
.brand-lg { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brand-lg:focus-visible { outline: none; }
.brand-pill { position: relative; display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(245, 158, 11, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.brand-lg:active .brand-pill { transform: scale(.96); }
.brand-lg:focus-visible .brand-pill { transform: scale(1.04); background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .6); box-shadow: 0 0 24px rgba(245, 158, 11, .32); }
@media (hover: hover) { .brand-lg:hover .brand-pill { transform: scale(1.04); background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .6); box-shadow: 0 0 24px rgba(245, 158, 11, .32); } }
.brand-i { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: italic 700 .8rem/1 Georgia, "Times New Roman", serif; color: #1a1204; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 10px rgba(245, 158, 11, .55); pointer-events: none; }
.brand-pill.hint { animation: brandPulse 1.4s ease-out 4; }
@keyframes brandPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 70% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .brand-pill, .brand-pill.hint { animation: none; transition: none; } }
@media (max-width: 759px) { .brand-pill { padding: 3px 9px; border-radius: 14px; } .brand-i { width: 17px; height: 17px; font-size: .7rem; top: -6px; right: -6px; } }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) { .brand-pill { padding: 2px 8px; border-radius: 12px; } }
/* شارة الشعار: سهم منسدل بدل حرف (i) */
.brand-i { font: 0/0 sans-serif; }
.brand-i svg { display: block; width: 12px; height: 12px; transition: transform .2s ease; }
@media (hover: hover) { .brand-lg:hover .brand-i svg { transform: translateY(1px); } }
@media (max-width: 759px) { .brand-i svg { width: 10px; height: 10px; } }
/* صندوق رفع الصور: ملاحظة الصيغ بخط أصغر وخفيف */
.drop small.fmt { display: block; margin-top: 4px; font-size: .72rem; opacity: .6; font-weight: 400; }
/* شريط الإيقاف الطارئ */
.pause-bar { position: sticky; top: 0; z-index: 60; padding: 8px 14px; text-align: center; font-size: .85rem; font-weight: 600; color: #1a1204; background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* ===== أزرار مشاركة الفيديو (تيك توك، إنستغرام، يوتيوب، فيسبوك): 2×2 على الهاتف، صف واحد من 520px، مناسبة للمس وRTL ===== */
.share-box { container: share / inline-size; margin-top: 6px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.share-q { margin: 0 0 12px; font-weight: 700; font-size: 1rem; line-height: 1.5; text-align: center; }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-btn { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; border: 0; border-radius: 14px; color: #fff; cursor: pointer; font: inherit; text-align: start; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.share-btn:active { transform: scale(.97); }
@media (hover: hover) { .share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); } }
.share-btn:focus-visible { outline: 2px solid #fde68a; outline-offset: 2px; }
.share-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.share-ic svg { width: 22px; height: 22px; }
.share-nm { display: grid; line-height: 1.25; min-width: 0; }
.share-nm b { font-size: .98rem; }
.share-nm small { font-size: .7rem; opacity: .85; direction: ltr; text-align: start; }
.share-tiktok { background: linear-gradient(135deg, #111827, #0b0b0f); border: 1px solid #25f4ee66; }
.share-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.share-youtube { background: #e11d1d; }
.share-facebook { background: #1877f2; }
.share-note { margin: 10px 0 0; text-align: center; }
.share-note a { color: #fde68a; }
@container share (min-width: 420px) { .share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .share-btn { flex-direction: column; justify-content: center; text-align: center; padding: 12px 8px; min-height: 92px; } .share-nm small { text-align: center; } }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) { .share-box { padding: 10px; } .share-q { margin-bottom: 8px; font-size: .9rem; } }

/* ===== معرض النماذج + سطر بيانات الجهة في التذييل ===== */
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 14px; }
.show-card { background: var(--card, rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.show-video { width: 100%; aspect-ratio: 9 / 16; max-height: 420px; object-fit: cover; background: #000; display: block; }
.show-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.show-body h3 { margin: 0; font-size: 1rem; }
.show-body p { margin: 0; }
#showcase .show-grid { grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
#showcase .show-card { scroll-snap-align: start; }
@media (min-width: 900px) { #showcase .show-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.site-footer .foot-contact { margin: 12px 0 0; text-align: center; }
.site-footer .foot-contact a { margin-inline-end: 0; }

/* ===== بطاقات «اختر أسلوب مشاهدك»: صورة جمرة (من الخصر فما فوق، 3:4) تملأ المربع بلا قصّ للوجه والتاج ===== */
.sw-img img { object-fit: cover; object-position: top center; }
.sw-cinematic, .sw-real, .sw-anime, .sw-3d, .sw-drawing { background-size: cover !important; background-position: top center !important; }
.sw-img { aspect-ratio: 3 / 4; }

/* ===== زر واتساب العائم: يظهر فقط إن فعّله المسؤول؛ يمين الشاشة (جمرة وبيتها يسار)، فوق شريط التنقل على الهاتف ===== */
.wa-fab { position: fixed; z-index: 28; right: 16px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); transition: transform .15s ease; }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:active { transform: scale(.94); }
@media (hover: hover) { .wa-fab:hover { transform: translateY(-2px) scale(1.05); } }
@media (max-width: 759px) { .wa-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; } }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) { .wa-fab { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; } }
body.jp-typing .wa-fab { display: none; }

/* ===== نمط الإخراج: ثلاث بطاقات واضحة (3 أعمدة على الحاسوب، مكدسة بعرض كامل على التابلت والهاتف) + صندوق وصف لا يسبب انزياحاً ===== */
.mo-grid input { position: absolute; opacity: 0; pointer-events: none; }
.mo-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mo-card { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(8, 12, 22, .5); color: var(--muted); cursor: pointer; user-select: none; transition: border-color .18s, background .18s, box-shadow .18s, transform .15s; -webkit-tap-highlight-color: transparent; }
.mo-ic { font-size: 1.5rem; line-height: 1; flex: none; }
.mo-nm { font-weight: 700; font-size: 1.02rem; color: var(--text); flex: 1; min-width: 0; }
.mo-badge { flex: none; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(56, 189, 248, .14); color: var(--sky); white-space: nowrap; }
.mo-badge.mo-pop { background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.mo-badge.mo-gold { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.mo-card:active { transform: scale(.98); }
@media (hover: hover) { .mo-card:hover { border-color: var(--sky); color: var(--text); } }
.mo-grid input:checked + .mo-card { color: var(--text); border-color: var(--sky); background: rgba(56, 189, 248, .14); box-shadow: var(--glow-sky); }
.mo-grid input:checked + .mo-card.mo-vip { border-color: var(--amber); background: rgba(245, 158, 11, .12); box-shadow: 0 0 0 1px rgba(251, 191, 36, .45), 0 0 18px rgba(245, 158, 11, .25); }
.mo-grid input:focus-visible + .mo-card { outline: 2px solid #fde68a; outline-offset: 2px; }
.mo-grid input:disabled + .mo-card { opacity: .55; }
.mo-desc-wrap { display: grid; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.mo-desc { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .2s; }
.mo-desc.on { visibility: visible; opacity: 1; }
.mo-desc p { margin: 0; line-height: 1.75; font-size: .92rem; color: var(--text); }
.mo-note { display: block; margin-top: 6px; min-height: 1.2em; color: var(--amber); font-size: .8rem; }
@media (min-width: 1025px) {
  .mo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .mo-card { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 108px; padding: 12px 10px; }
  .mo-nm { flex: none; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) { .mo-card { min-height: 48px; padding: 6px 12px; } }

/* ===== نافذة الحجز المسبق ورقم الحجز ===== */
.em-num { font-size: 1.1rem; color: var(--muted); }
.em-num b { display: block; font-size: 2.6rem; line-height: 1.15; font-weight: 800; background: linear-gradient(135deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#emBody p { margin: 6px 0; line-height: 1.8; }

/* ذاكرة جمرة في صفحة الحساب */
.mem-fact { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
