/* صفحة الإنشاء — 3 خطوات. */
.narrow { max-width: 34em; }

.steps {
  list-style: none;
  display: flex;
  gap: 0.25em;
  padding: 0;
  margin-block: 1em;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-mute);
  border-top: 3px solid var(--line);
  padding-block-start: 0.4em;
}

.step.is-active { color: var(--ink); border-color: var(--brand); font-weight: 700; }
.step span { font-size: 1.1rem; }

.wstep h1 { font-size: 1.6rem; }

.pick-cards { display: grid; gap: 0.5em; grid-template-columns: 1fr 1fr; }
.pick {
  min-height: 56px;
  border-radius: var(--radius-m);
  border: 2px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pick.is-active { border-color: var(--brand); background: var(--bg-soft); }

.tpl-cards { display: grid; gap: 0.75em; }
.tpl-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.25em;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.tpl-card.is-active { border-color: var(--brand); }
.tpl-card .picked-mark {
  display: none;
  position: absolute;
  top: 0.6em;
  inset-inline-end: 0.8em;
  color: var(--brand);
  font-weight: 800;
  font-size: 1.3rem;
}
.tpl-card.is-active .picked-mark { display: block; }
.tpl-emoji { font-size: 2.5rem; }
.price { font-weight: 800; color: var(--brand); }
.demo-link { font-size: 0.9rem; }

.row-btns { display: flex; gap: 0.5em; margin-block: 1em 3em; }
.row-btns .btn { flex: 1; }

/* شبكة المناسبات: عمودين موبايل، 4 دسكتوب */
#occ-grid, #occ-season {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
  margin-block: 0.75em;
}
@media (min-width: 900px) {
  #occ-grid, #occ-season { grid-template-columns: repeat(4, 1fr); }
}
.occ-card {
  min-height: 88px;
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-m);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 0.6em 0.3em;
  position: relative;
}
.occ-card .occ-icon { font-size: 40px; line-height: 1; }
.occ-card .occ-name { font-weight: 700; font-size: 0.95rem; }
.occ-card.is-active { border-color: var(--brand); background: var(--bg-soft); }
.occ-card.is-active::after {
  content: "✔";
  position: absolute;
  top: 0.2em;
  inset-inline-end: 0.5em;
  color: var(--brand);
  font-weight: 800;
}
.season-title { font-size: 1rem; color: var(--ink-soft); margin-block: 1em 0.25em; }
.occ-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4em 1em;
  margin-block-end: 0.75em;
}
.occ-chip button {
  border: none;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.field-label { display: block; font-weight: 600; margin-block-end: 0.35em; }
.password-wrap { display: flex; gap: 0.5em; }
.password-wrap input { flex: 1; }
.slug-wrap { display: flex; align-items: center; gap: 0.3em; }
.slug-wrap span { color: var(--ink-soft); }
.slug-wrap input { flex: 1; }
.check { display: flex; align-items: center; gap: 0.5em; font-weight: 600; }
.check input { width: 1.4em; height: 1.4em; }

/* حقل الخداع للبوتات */
#w-website {
  position: absolute;
  inset-inline-start: -9999px;
  opacity: 0;
  height: 0;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(58, 31, 43, 0.45);
  display: grid;
  place-items: center;
  padding: 1em;
  z-index: 50;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-l);
  max-width: 30em;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 1.25em;
}
.kv {
  background: var(--bg-soft);
  border-radius: var(--radius-s);
  padding: 0.5em 0.75em;
  margin-block: 0.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  overflow-wrap: anywhere;
}
.modal-btns { display: flex; flex-wrap: wrap; gap: 0.5em; margin-block-start: 1em; }
.modal-btns .btn { flex: 1 1 auto; }
.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 0.6em 0.8em;
  font-size: 0.9rem;
}

#toast-root {
  position: fixed;
  inset-block-end: 1em;
  inset-inline: 1em;
  display: grid;
  gap: 0.5em;
  z-index: 60;
  justify-items: center;
}
.toast {
  background: var(--ink);
  color: var(--surface);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  font-weight: 600;
}
.toast-error { background: var(--danger); }

.slug-row { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); overflow: hidden; }
.slug-row input { border: 0; flex: 1; min-width: 0; background: transparent; }
.slug-prefix { padding-inline: 0.7em; color: var(--ink-soft); font-size: 0.9em; white-space: nowrap; }
.slug-status[data-kind="ok"] { color: var(--ok-ink); }
.slug-status[data-kind="bad"] { color: var(--danger-ink); }
