:root {
  --bg: #070b16;
  --bg-2: #0a1120;
  --panel: #0f1729;
  --panel-2: #0c1424;
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #d4af37;
  --gold-soft: #f0d488;
  --text: #f3eee2;
  --muted: #96a1b8;
  --muted-2: #6b778f;
  --ok: #5fbf8f;
  --err: #e27676;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 85% -10%, rgba(212, 175, 55, 0.10), transparent 65%),
    radial-gradient(800px 600px at 0% 20%, rgba(60, 110, 200, 0.10), transparent 60%),
    radial-gradient(600px 500px at 50% 110%, rgba(120, 70, 200, 0.07), transparent 60%),
    linear-gradient(180deg, #080d19 0%, #060a13 100%);
}

.wrap {
  width: min(960px, 100% - 32px);
  margin-inline: auto;
}

/* ---------------- topbar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mark { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.35)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand .name {
  font-family: "Traditional Arabic", "Segoe UI", serif;
  font-size: 32px;
  color: var(--gold-soft);
  letter-spacing: 2px;
}

.brand .tag { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.3px; }

.credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.07);
  color: var(--gold-soft);
  font-size: 13px;
  white-space: nowrap;
}

.userbox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.verify-banner {  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-soft);
  font-size: 13px;
}.auth-link, .upgrade-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
}
.upgrade-link { color: var(--gold-soft); border-color: rgba(212, 175, 55, 0.35); }
button.auth-link { cursor: pointer; }

/* ---------------- hero ---------------- */

.hero { padding: 44px 0 26px; text-align: center; }

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(180deg, #fff7e2 10%, var(--gold-soft) 55%, #b8912a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(14px, 2.4vw, 16px);
  max-width: 560px;
  margin-inline: auto;
}

/* ---------------- card & form ---------------- */

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-card { padding: 26px; }

.field { margin-bottom: 22px; }

.label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 9px;
  letter-spacing: 0.2px;
}

.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label-row .label { margin-bottom: 9px; }

.link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s, border-color 0.15s;
}
.link:hover { color: var(--gold-soft); border-color: var(--gold); }

input[type="text"], textarea {
  width: 100%;
  background: #0a1222;
  border: 1px solid #22304a;
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  padding: 13px 16px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

textarea {
  resize: vertical;
  min-height: 122px;
  line-height: 1.95;
  font-size: 19px;
}

input[type="text"]::placeholder, textarea::placeholder { color: #56617a; font-size: 15px; }

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
  background: #0b1426;
}

.hint-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.hint { color: var(--muted-2); font-size: 12.5px; }
.hint.tiny { font-size: 11.5px; }
.count { color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.count.over { color: var(--err); }

/* chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #24314a;
  background: #0b1322;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: rgba(212, 175, 55, 0.4); color: var(--text); }
.chip.active {
  background: rgba(212, 175, 55, 0.13);
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--gold-soft);
  font-weight: 600;
}

/* themes */

.mini-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #0b1322;
  border: 1px solid #22304a;
}

.label-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.upload-btn {
  border: 1px dashed rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.05);
  padding: 5px 12px;
}
.upload-btn:hover { background: rgba(212, 175, 55, 0.12); border-style: solid; }
.upload-btn:disabled { opacity: 0.6; cursor: wait; }

.mini-tab {
  border: none;
  background: none;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.mini-tab:hover { color: var(--text); }
.mini-tab.active { background: rgba(212, 175, 55, 0.16); color: var(--gold-soft); }

.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.theme { cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; text-align: center; }

.theme-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.theme-preview::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 8%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.32;
  filter: blur(6px);
}

.theme-preview .mock-line {
  width: 52%;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.55;
  position: relative;
  z-index: 1;
}
.theme-preview .mock-line.short { width: 34%; opacity: 0.4; }
.theme-preview .mock-src {
  width: 24%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.28;
  margin-top: 4px;
}

.theme:hover .theme-preview { transform: translateY(-2px); border-color: rgba(212, 175, 55, 0.35); }

.theme.active .theme-preview {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 10px 26px rgba(0, 0, 0, 0.45);
}

.theme-check {
  position: absolute;
  top: 7px;
  inset-inline-end: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1e;
  font-size: 12px;
  line-height: 20px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 2;
}
.theme.active .theme-check { opacity: 1; transform: scale(1); }

.theme-name { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.theme.active .theme-name { color: var(--gold-soft); font-weight: 600; }

.photo-preview { background: #060a12; }
.photo-grid { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 4px; }
.photo-grid::-webkit-scrollbar { width: 8px; }
.photo-grid::-webkit-scrollbar-thumb { background: #24314a; border-radius: 999px; }
.photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.photo-empty { margin-top: 10px; line-height: 1.9; }
.photo-empty code {
  background: #0b1322;
  border: 1px solid #22304a;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 11px;
  direction: ltr;
  display: inline-block;
}

/* durations + switch */

.split { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.audio-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

.quran-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quran-row select,
.quran-row input[type="number"] {
  background: #0a1222;
  border: 1px solid #22304a;
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
}
.quran-row select { max-width: 280px; }
.quran-row input[type="number"] { width: 110px; }
.quran-row select:focus,
.quran-row input[type="number"]:focus { outline: none; border-color: rgba(212, 175, 55, 0.65); }
.quran-rec { margin-inline-start: 4px; }
.quran-tr { margin-top: 8px; }

.quran-batch-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.quran-batch-row .select { padding: 6px 10px; font-size: 13px; }

.design-particle { margin-top: 12px; }

.swatch-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.photo-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0 2px; }
.photo-cat {
  border: 1px solid rgba(255,255,255,.14); background: rgba(7,11,20,.7);
  color: var(--muted); font-family: inherit; font-size: 11.5px;
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.photo-cat:hover { border-color: rgba(240,212,136,.6); color: var(--text); }
.photo-cat.active {
  border-color: #f0d488; color: #1c1503;
  background: linear-gradient(180deg,#f2d98f,#d4af37); font-weight: 700;
}

.style-row { margin-top: 14px; }
.text-styles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.font-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.text-styles, .font-swatches { min-width: 0; }
.font-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  padding: 7px 4px 5px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, .14);
  background: rgba(7, 11, 20, .82);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.font-swatch:hover { transform: translateY(-1px); border-color: rgba(240, 212, 136, .7); }
.font-swatch.active {
  border-color: #f0d488;
  box-shadow: 0 0 0 2px rgba(240, 212, 136, .25);
}
.font-swatch .fs-a {
  font-size: 19px;
  line-height: 1.5;
  color: #f7f2e4;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.font-swatch .fs-name {
  font-size: 9.5px;
  color: var(--muted, #99a0b3);
  white-space: nowrap;
}
.text-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px 5px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, .14);
  background: rgba(7, 11, 20, .82);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.text-style:hover { transform: translateY(-1px); border-color: rgba(240, 212, 136, .7); }
.text-style.active {
  border-color: #f0d488;
  box-shadow: 0 0 0 2px rgba(240, 212, 136, .25);
}
.text-style .ts-a {
  font-size: 26px;
  line-height: 1.5;
  font-weight: 700;
}
.mini-pv-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
#mini-preview-field {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  width: 158px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 12, 22, .93);
  border: 1px solid rgba(240, 212, 136, .22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}
#mini-preview-field .label {
  display: block;
  font-size: 10.5px;
  margin-bottom: 6px;
  opacity: .85;
}
#mini-preview-field .hint.tiny { display: none; }
@media (min-width: 1101px) {
  #mini-preview-field .mini-pv { width: 100%; }
}
@media (max-width: 1100px) {
  #mini-preview-field {
    position: static;
    left: auto;
    bottom: auto;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  #mini-preview-field .label { font-size: inherit; }
  #mini-preview-field .hint.tiny { display: block; }
}
.mini-pv {
  position: relative;
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(240, 212, 136, .35);
  background: #0b1426;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  flex: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.mini-pv-text {
  white-space: pre-line;
  line-height: 1.55;
  font-weight: 700;
  max-height: 100%;
  overflow: hidden;
  word-break: break-word;
}
.mini-pv-src {
  margin-top: 6px;
  font-size: 7px;
  color: #f0d488;
  opacity: .92;
}
.video-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, .68);
  color: #f0d488;
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 7px;
  border: 1px solid rgba(240, 212, 136, .35);
}
@media (max-width: 560px) {
  .mini-pv { width: 108px; }
}
.row-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .14);
  background: rgba(7, 11, 20, .75);
  color: #e8e2d6;
  font-size: 12px;
  cursor: pointer;
}
.row-toggle:hover { border-color: rgba(240, 212, 136, .7); color: #fff; }
.text-style .ts-name {
  font-size: 9.5px;
  color: var(--muted, #99a0b3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 900px) {
  .text-styles, .font-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .font-swatch .fs-a { font-size: 17px; }
  .text-style .ts-a { font-size: 15px; }
}
@media (max-width: 560px) {
  .text-styles, .font-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .font-swatch .fs-a { font-size: 18px; }
}
.swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,.22); padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .12s ease, border-color .12s ease;
}
.swatch:hover { transform: scale(1.12); border-color: rgba(240,212,136,.8); }
.swatch.active { border-color: #f0d488; box-shadow: 0 0 0 2px rgba(240,212,136,.35); }

.swatch-word {
  min-width: 68px; height: 32px; padding: 0 10px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7, 11, 20, .82); cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.16);
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px; font-weight: 700; line-height: 1;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.swatch-word:hover { transform: translateY(-1px); border-color: rgba(240,212,136,.7); }
.swatch-word.active {
  border-color: #f0d488;
  box-shadow: 0 0 0 2px rgba(240,212,136,.28), 0 4px 14px rgba(0,0,0,.35);
}
.swatch-word .gtext {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.swatch-word .gtext-none { color: var(--muted, #8d94a8); font-weight: 600; }
.swatch-reset {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .3);
  color: var(--muted, #aab0c0);
  font-weight: 600;
}

.design-row { display: flex; gap: 10px; flex-wrap: wrap; }
.range { width: 100%; accent-color: #d4af37; cursor: pointer; height: 28px; }

.presets { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; }
.preset {
  flex: 0 0 128px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.preset-preview {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.preset-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
}
.preset:hover .preset-preview { transform: translateY(-2px); border-color: rgba(212, 175, 55, 0.35); }
.preset.active .preset-preview {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.preset-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.preset-lines i { display: block; width: 64px; height: 3px; background: currentColor; opacity: 0.9; border-radius: 2px; }
.preset-lines i:last-child { width: 38px; opacity: 0.6; }
.preset-dot {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  z-index: 2;
}
.preset-name { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.preset.active .preset-name { color: var(--gold-soft); font-weight: 600; }.design-item { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1; }
.select {
  background: #0a1222;
  border: 1px solid #22304a;
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
}
.select:focus { outline: none; border-color: rgba(212, 175, 55, 0.65); }

.color-input {
  width: 100%;
  height: 42px;
  padding: 4px;
  background: #0a1222;
  border: 1px solid #22304a;
  border-radius: 12px;
  cursor: pointer;
}
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: none; border-radius: 8px; }

.seg {
  display: inline-flex;
  background: #0b1322;
  border: 1px solid #22304a;
  border-radius: 13px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.seg button {
  border: none;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  padding: 7px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: rgba(212, 175, 55, 0.16); color: var(--gold-soft); font-weight: 600; }
.seg button:disabled { opacity: 0.4; cursor: not-allowed; }

.upsell {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gold-soft);
}

.switch-wrap { display: flex; flex-direction: column; gap: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #1a2438;
  border: 1px solid #26344c;
  position: relative;
  transition: background 0.18s, border-color 0.18s;
  flex: none;
}
.knob {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #56617a;
  transition: transform 0.18s, background 0.18s;
}
.switch input:checked + .track { background: rgba(212, 175, 55, 0.25); border-color: rgba(212, 175, 55, 0.7); }
.switch input:checked + .track .knob { background: var(--gold-soft); transform: translateX(-18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }

/* submit */

.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
}

.btn.primary {
  min-width: 210px;
  padding: 14px 30px;
  font-size: 16.5px;
  color: #1c1503;
  background: linear-gradient(180deg, #f2d98f 0%, #d4af37 55%, #b8912a 100%);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(212, 175, 55, 0.3); }
.btn.primary:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: saturate(0.7); }

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(28, 21, 3, 0.25);
  border-top-color: #1c1503;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: 12px;
  background: rgba(226, 118, 118, 0.1);
  border: 1px solid rgba(226, 118, 118, 0.35);
  color: #f0a9a9;
  font-size: 13.5px;
}

/* ---------------- jobs ---------------- */

.jobs-section { padding: 38px 0 20px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; font-weight: 700; color: var(--text); }
.muted { color: var(--muted-2); font-size: 13px; }

.jobs { display: flex; flex-direction: column; gap: 14px; }

.job {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #0d1527 0%, #0a1220 100%);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  transition: border-color 0.2s;
}
.job:hover { border-color: rgba(212, 175, 55, 0.22); }
.job.is-running { border-color: rgba(212, 175, 55, 0.3); }
.job.is-failed { border-color: rgba(226, 118, 118, 0.28); }

.job-media {
  flex: 0 0 168px;
  width: 168px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #04070e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.job-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 30%, var(--accent, #d4af37) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg1, #0c142a), var(--bg2, #04070e));
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  letter-spacing: 1px;
}
.poster .poster-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--accent, #d4af37);
  opacity: 0.7;
}
.poster .mock-line { width: 46%; height: 3px; border-radius: 3px; background: var(--accent, #d4af37); opacity: 0.5; }
.poster .mock-line.short { width: 30%; opacity: 0.32; }

.poster.poster-photo {
  background-size: cover;
  background-position: center;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.job-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }

.job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.queued { color: #c9b98a; background: rgba(212, 175, 55, 0.08); border-color: rgba(212, 175, 55, 0.22); }
.pill.running { color: var(--gold-soft); background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.35); }
.pill.running .dot { animation: pulse 1.2s ease-in-out infinite; }
.pill.done { color: var(--ok); background: rgba(95, 191, 143, 0.09); border-color: rgba(95, 191, 143, 0.28); }
.pill.failed { color: var(--err); background: rgba(226, 118, 118, 0.1); border-color: rgba(226, 118, 118, 0.3); }
@keyframes pulse { 50% { opacity: 0.25; } }

.job-meta { font-size: 12px; color: var(--muted-2); }

.job-text {
  font-size: 16px;
  color: #e8e2d4;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-source { font-size: 12px; color: var(--muted-2); }

.progress-wrap { margin-top: 2px; }
.progress {
  height: 7px;
  border-radius: 999px;
  background: #17223a;
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8912a, #f0d488);
  transition: width 0.6s ease;
  width: 0%;
}
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.progress-meta .stage { display: inline-flex; align-items: center; gap: 7px; }

.job-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

.btn.small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
}
.btn.small:hover { background: rgba(212, 175, 55, 0.2); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.btn.ghost:hover { border-color: rgba(212, 175, 55, 0.35); color: var(--text); }

.job-error { font-size: 12.5px; color: #f0a9a9; }

/* empty */

.empty {
  border: 1px dashed rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 42px 20px;
  text-align: center;
  color: var(--muted-2);
  background: rgba(212, 175, 55, 0.02);
}
.empty-icon { font-size: 26px; color: rgba(212, 175, 55, 0.5); margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 15px; }
.empty span { font-size: 12.5px; }

/* ---------------- footer ---------------- */

.footer {
  margin-top: 40px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}
.dot-sep { margin: 0 8px; opacity: 0.5; }

/* ---------------- responsive ---------------- */

@media (max-width: 720px) {
  .form-card { padding: 18px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .job { flex-direction: column; }
  .job-media { width: 100%; flex-basis: auto; max-height: 420px; }
  .job-media video { object-fit: contain; }
  .brand .tag { display: none; }
  .split { gap: 16px; }
  .btn.primary { width: 100%; }
  .submit-row { gap: 10px; }
}

/* ================= معاينة الفيديو ================= */
@font-face {
  font-family: 'Noto Naskh Arabic Qabas';
  src: url('/assets/fonts/NotoNaskhArabic.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Lateef Qabas';
  src: url('/assets/fonts/Lateef-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Harmattan Qabas';
  src: url('/assets/fonts/Harmattan-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Amiri Qabas';
  src: url('/assets/fonts/Amiri-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Cairo Qabas';
  src: url('/assets/fonts/Cairo.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal Qabas';
  src: url('/assets/fonts/Tajawal-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Almarai Qabas';
  src: url('/assets/fonts/Almarai-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Reem Kufi Qabas';
  src: url('/assets/fonts/ReemKufi.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Aref Ruqaa Qabas';
  src: url('/assets/fonts/ArefRuqaa-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Scheherazade Qabas';
  src: url('/assets/fonts/ScheherazadeNew-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face { font-family: 'El Messiri Qabas'; src: url('/assets/fonts/ElMessiri.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Noto Nastaliq Qabas'; src: url('/assets/fonts/NotoNastaliqUrdu.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Noto Kufi Qabas'; src: url('/assets/fonts/NotoKufiArabic.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Readex Pro Qabas'; src: url('/assets/fonts/ReadexPro.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic Qabas'; src: url('/assets/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Changa Qabas'; src: url('/assets/fonts/Changa.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Mada Qabas'; src: url('/assets/fonts/Mada.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Markazi Text Qabas'; src: url('/assets/fonts/MarkaziText.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Alexandria Qabas'; src: url('/assets/fonts/Alexandria.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Rubik Qabas'; src: url('/assets/fonts/Rubik.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Baloo Bhaijaan Qabas'; src: url('/assets/fonts/BalooBhaijaan2.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Lalezar Qabas'; src: url('/assets/fonts/Lalezar.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Rakkas Qabas'; src: url('/assets/fonts/Rakkas.ttf') format('truetype'); font-display: swap; }

.pv-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pv-modal[hidden] { display: none; }

/* عناصر النشر */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 5, 12, .82);
  backdrop-filter: blur(6px);
}
.pub-modal[hidden] { display: none; }
.pub-box {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #0c1324;
  border: 1px solid rgba(212, 175, 55, .28);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.pub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f0d488;
}
.pub-field { display: grid; gap: 6px; }
.pub-field textarea {
  width: 100%;
  resize: vertical;
  background: #0a0f1e;
  color: #e8edf7;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}
.pub-field .mini-tab { justify-self: start; }
.pv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, .8);
  backdrop-filter: blur(6px);
}
.pv-card {
  position: relative;
  width: min(94vw, 430px);
  max-height: 94vh;
  overflow: auto;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0d1526, #070b14);
  border: 1px solid rgba(240, 212, 136, .22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}
.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #f0d488;
}
.pv-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pv-x:hover { border-color: rgba(240, 212, 136, .6); }
.pv-scenes {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}
.pv-scenes[hidden] { display: none; }
.pv-scene {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #99a0b3);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pv-scene.active {
  background: rgba(212, 175, 55, .18);
  color: #f0d488;
  font-weight: 700;
}
.pv-scene-off {
  opacity: .32;
}
@media (max-width: 640px) {
  .pv-scenes {
    padding: 2px;
    gap: 3px;
    margin-bottom: 6px;
  }
  .pv-scene {
    padding: 4px 5px;
    font-size: 10.5px;
  }
  /* على الجوال: نخفي المشاهد غير المفعّلة لتخفيف الشريط */
  .pv-scene-off {
    display: none;
  }
}
.pv-card-scene {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #05070d;
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, .22), transparent 62%),
    linear-gradient(180deg, #0b1426 0%, #05070d 68%, #02040a 100%);
}
.pv-card-scene[hidden] { display: none; }
.pv-card-frame {
  position: absolute;
  inset: 5%;
  border: 1.5px solid var(--pv-accent, #d4af37);
  border-radius: 14px;
  opacity: .5;
}
.pv-card-frame:after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--pv-accent, #d4af37);
  border-radius: 9px;
  opacity: .4;
}
.pv-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8%;
}
.pv-card-brand {
  font-family: 'Scheherazade Qabas', 'Traditional Arabic', serif;
  color: var(--pv-accent, #d4af37);
  letter-spacing: 4px;
  line-height: 1;
}
.pv-card-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6% 0 5%;
}
.pv-card-line span {
  width: 34px;
  height: 1px;
  background: var(--pv-accent, #d4af37);
  opacity: .8;
}
.pv-card-line i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--pv-accent, #d4af37);
  transform: rotate(45deg);
}
.pv-card-title {
  font-family: 'Scheherazade Qabas', 'Traditional Arabic', serif;
  line-height: 1.5;
}
.pv-card-sub {
  margin-top: 4%;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: rgba(255, 255, 255, .7);
}
.pv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #05070d;
  border: 1px solid rgba(255, 255, 255, .08);
}
.pv-stage [hidden] { display: none !important; }
.pv-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.pv-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, var(--pv-accent-soft, rgba(212, 175, 55, .2)), transparent 62%);
}
.pv-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .04) 32%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .55));
}
.pv-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.pv-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10.2% 7%;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.pv-verse {
  white-space: pre-line;
  line-height: 1.95;
  font-weight: 400;
}
.pv-source {
  margin-top: 4.2%;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}
.pv-trans {
  margin-top: 3%;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .32);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.45;
}
.pv-brand {
  position: absolute;
  bottom: 5%;
  font-family: 'Amiri Qabas', 'Traditional Arabic', serif;
  letter-spacing: 5px;
  color: var(--pv-accent, #d4af37);
  opacity: .85;
}
.pv-brand img {
  width: 30%;
  max-height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}
.pv-wm {
  position: absolute;
  bottom: 2.2%;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .9);
  font-size: 10px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
}
.pv-frame {
  position: absolute;
  inset: 4.8%;
  border: 1.5px solid var(--pv-accent, rgba(212, 175, 55, .6));
  border-radius: 14px;
  pointer-events: none;
  opacity: .75;
}
.pv-frame:after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--pv-accent, rgba(212, 175, 55, .3));
  border-radius: 9px;
  opacity: .5;
}
.pv-hook-banner {
  position: absolute;
  top: 7.5%;
  left: 6%;
  right: 6%;
  z-index: 4;
  padding: 3.2% 4%;
  text-align: center;
  color: var(--pv-accent, #d4af37);
  background: rgba(18, 24, 42, .68);
  border: 1.5px solid var(--pv-accent, rgba(212, 175, 55, .6));
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .7);
  pointer-events: none;
}
.pv-hook-banner[hidden] { display: none; }
.pv-orn {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4.2%;
}
.pv-orn .ln {
  width: 36px;
  height: 1px;
  background: var(--pv-accent, #d4af37);
  opacity: .8;
}
.pv-orn .dm {
  width: 7px;
  height: 7px;
  border: 1px solid var(--pv-accent, #d4af37);
  transform: rotate(45deg);
}
.pv-orn .star {
  width: 9px;
  height: 9px;
  position: relative;
}
.pv-orn .star:before,
.pv-orn .star:after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--pv-accent, #d4af37);
}
.pv-orn .star:after { transform: rotate(45deg); }
.pv-duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: var(--muted, #8d94a8);
}
.pv-duration[hidden] { display: none; }
.pv-duration.warn {
  color: #ffd9a0;
  border-color: rgba(255, 170, 70, .4);
  background: rgba(255, 150, 50, .08);
}
.pv-hint {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted, #8d94a8);
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(255, 255, 255, .14);
}
.pv-hint[hidden] { display: none; }
.pv-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pv-player[hidden] { display: none; }
.pv-play {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(240, 212, 136, .5);
  background: rgba(212, 175, 55, .16);
  color: #f0d488;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pv-play:hover { background: rgba(212, 175, 55, .28); }
.pv-player-main { flex: 1; min-width: 0; }
.pv-audio-name {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--muted, #8d94a8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-track {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}
.pv-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0d488, #d4af37);
}
.pv-time {
  flex: none;
  font-size: 11px;
  color: var(--muted, #8d94a8);
  font-variant-numeric: tabular-nums;
}
.pv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pv-anim-fade { animation: pvFade .8s ease both; }
.pv-anim-slide_up { animation: pvSlideUp .85s cubic-bezier(.2, .7, .3, 1) both; }
.pv-anim-slide_down { animation: pvSlideDown .85s cubic-bezier(.2, .7, .3, 1) both; }
.pv-anim-drift_up { animation: pvDriftUp 3.2s ease-out both; }
.pv-anim-drift_down { animation: pvDriftDown 3.2s ease-out both; }
.pv-anim-pulse { animation: pvPulse 1.9s ease-in-out infinite; }
.pv-anim-sway { animation: pvSway 2.6s ease-in-out infinite; }
.pv-anim-float { animation: pvFloat 2.4s ease-in-out infinite; }
@keyframes pvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pvDriftUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(-10px); } }
@keyframes pvDriftDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(10px); } }
@keyframes pvPulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pvSway { 0%,100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes pvFloat { 0%,100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
@keyframes pvSlideUp { from { opacity: 0; transform: translateY(8%); } to { opacity: 1; transform: none; } }
@keyframes pvSlideDown { from { opacity: 0; transform: translateY(-8%); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* شريط الأسعار bajo العنوان */
.price-strip{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  margin-top:14px;padding:9px 16px;border-radius:999px;font-size:13px;color:#cfd6ea;
  background:linear-gradient(180deg,rgba(212,175,55,.10),rgba(212,175,55,.03));
  border:1px solid rgba(212,175,55,.28);width:fit-content;margin-inline:auto}
.price-strip b{color:#f4dd9a;font-weight:700}
.price-strip a{color:#f4dd9a;text-decoration:none;font-weight:700;
  border-bottom:1px dashed rgba(244,221,154,.45);padding-bottom:1px}
.price-strip a:hover{color:#fff}
.price-strip .ps-free{color:#8fe3a8;font-weight:700}
.price-strip .ps-sep{opacity:.45}
@media (max-width:520px){
  .price-strip{font-size:12px;gap:7px;padding:8px 12px}
}


/* شريط كيف يعمل */
.how-strip{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:18px 0 6px}
.how{display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border:1px solid rgba(212,175,55,.18);min-width:190px}
.how .n{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;
  background:linear-gradient(180deg,#f4dd9a,#b8912a);color:#0a0f1e;font-weight:800;font-size:12px;flex:none}
.how b{display:block;font-size:13px;color:#f2ecd9}
.how small{display:block;font-size:11px;color:var(--muted)}
@media (max-width:560px){ .how{min-width:150px;padding:9px 11px} }


/* نص تجريبي داخل كرت القالب */
.preset-text{display:block;font-size:11.5px;line-height:1.55;text-align:center;
  padding:0 6px;text-shadow:0 1px 4px rgba(0,0,0,.75);opacity:.96;
  max-height:38px;overflow:hidden}
