/* Zamam page skin «jafr» (prototype top-pages-proto/jafr, approved 20 Nov 2026) */
/* ===== Jafr / Abjad — «لوح حروف»: زمرد و طلا، کاشی حروف، وفق و منازل ===== */
html.zp--jafr {
  --zp-bg: #04120f; --zp-bg-2: #071c17; --zp-ink: #eef7f1; --zp-muted: #b9d3c6; --zp-soft: #86a898;
  --zp-gold: #e9c46a; --zp-gold-2: #d4a23c; --zp-gold-3: #fff1c7; --zp-lapis: #2563eb; --zp-violet: #2dd4bf; --zp-rose: #f472b6; --zp-teal: #34d399;
  --zp-card: linear-gradient(165deg, rgba(14, 44, 36, .8), rgba(6, 22, 18, .76)); --zp-card-brd: rgba(233, 196, 106, .2); --zp-card-brd-hi: rgba(233, 196, 106, .55);
  --zp-page: linear-gradient(170deg, #f8f3e2 0%, #ece2c3 100%); --zp-page-ink: #1d2a14; --zp-page-muted: #4f5b3a;
  --zp-shadow: 0 30px 80px -40px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06) inset; --zp-glyph: rgba(233, 196, 106, .12);
  --zp-head: linear-gradient(100deg, #fff1c7 0%, #e9c46a 40%, #6ee7b7 80%, #2dd4bf 100%);
  --zp-btn: linear-gradient(120deg, #fbe3a1 0%, #e9c46a 35%, #6ee7b7 85%, #34d399 100%); --zp-btn-light: linear-gradient(120deg, #b8892a 0%, #8a6a12 40%, #0f766e 100%); --zp-on-accent: #062018;
  --zp-h1: linear-gradient(100deg, #fff1c7 0%, #e9c46a 40%, #a7f3d0 78%, #5eead4 100%); --zp-h1-light: linear-gradient(100deg, #064e3b, #0f766e 45%, #8a6a12);
  --zp-hero-shade-dark: radial-gradient(60% 55% at 50% 45%, rgba(4,18,15,.35), rgba(4,18,15,.82) 80%), linear-gradient(180deg, rgba(4,18,15,.4), rgba(4,18,15,.15) 40%, #04120f 100%);
  --zp-hero-shade-light: radial-gradient(60% 55% at 50% 45%, rgba(241,246,239,.55), rgba(241,246,239,.88) 80%), linear-gradient(180deg, rgba(241,246,239,.5), rgba(241,246,239,.3) 40%, #f1f6ef 100%);
  --zp-r: 24px; --zp-ease: cubic-bezier(.2, .7, .2, 1);
}
html.zp--jafr[data-theme="light"] {
  --zp-bg: #f1f6ef; --zp-bg-2: #e5eee2; --zp-ink: #10291f; --zp-muted: #3f5c4e; --zp-soft: #6b8577;
  --zp-gold: #8a6a12; --zp-gold-2: #6f540c; --zp-gold-3: #b8892a; --zp-teal: #0f766e; --zp-violet: #0f766e;
  --zp-card: linear-gradient(165deg, rgba(255, 255, 252, .94), rgba(244, 249, 241, .9)); --zp-card-brd: rgba(15, 118, 110, .18); --zp-card-brd-hi: rgba(138, 106, 18, .5);
  --zp-shadow: 0 30px 70px -42px rgba(10, 60, 40, .45), 0 1px 0 rgba(255, 255, 255, .9) inset; --zp-glyph: rgba(15, 118, 110, .10);
  --zp-head: linear-gradient(100deg, #064e3b 0%, #0f766e 45%, #8a6a12 100%);
}
html.zp--jafr body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(40% 32% at 16% 24%, rgba(52, 211, 153, .16), transparent 70%), radial-gradient(36% 30% at 86% 60%, rgba(233, 196, 106, .12), transparent 70%),
  repeating-linear-gradient(45deg, rgba(233, 196, 106, .035) 0 1px, transparent 1px 46px), repeating-linear-gradient(-45deg, rgba(233, 196, 106, .035) 0 1px, transparent 1px 46px); }
html.zp--jafr[data-theme="light"] body::before { background: radial-gradient(40% 32% at 16% 24%, rgba(52, 211, 153, .18), transparent 70%), repeating-linear-gradient(45deg, rgba(15, 118, 110, .05) 0 1px, transparent 1px 46px), repeating-linear-gradient(-45deg, rgba(15, 118, 110, .05) 0 1px, transparent 1px 46px); }
html.zp--jafr .zp-sky::before { background: none !important; }
html.zp--jafr .section__head h2, html.zp--jafr .tool-seo h2, html.zp--jafr .tl-join h2 { background: var(--zp-head) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }

/* hero decor */
html.zp--jafr .jf-ring { position: absolute; left: 50%; top: 47%; width: min(820px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--zp-gold); opacity: .5; }
html.zp--jafr .jf-ring svg { width: 100%; height: 100%; animation: zpSpinR 180s linear infinite; }
@keyframes zpSpinR { to { transform: rotate(-360deg); } }
html.zp--jafr[data-theme="light"] .jf-ring { opacity: .4; }
.jf-wafq { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 132px; padding: 8px; border-radius: 14px; border: 1px solid var(--zp-card-brd-hi); background: color-mix(in srgb, var(--zp-bg) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transform: rotate(-8deg); animation: jfBob 8s ease-in-out infinite alternate; }
.jf-wafq i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; font-weight: 800; color: var(--zp-gold); border: 1px solid var(--zp-card-brd); border-radius: 6px; font-size: 1.05rem; }
.jf-wafq--a { right: 8%; top: 20%; } .jf-wafq--b { left: 8%; bottom: 22%; transform: rotate(7deg); animation-delay: -3s; }
@keyframes jfBob { to { translate: 0 -14px; } }
@media (max-width: 900px) { .jf-wafq { display: none; } }

/* try: form + live tablet */
html.zp--jafr #try .tool-trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); max-width: 1120px; margin: 0 auto; align-items: stretch; }
html.zp--jafr #try .tool-trial > * { grid-column: 1; min-width: 0; }
html.zp--jafr #try .tool-trial > .jf-live { grid-column: 2; grid-row: 1 / span 3; }
html.zp--jafr #try .tool-trial > .tool-trial__result, html.zp--jafr #try .tool-trial > .tool-trial__locked { grid-column: 1 / -1; }
@media (max-width: 860px) { html.zp--jafr #try .tool-trial { grid-template-columns: 1fr; } html.zp--jafr #try .tool-trial > .jf-live { grid-column: 1; grid-row: auto; } }
.jf-live { position: relative; border-radius: var(--zp-r); padding: 22px; background: var(--zp-card); border: 1px solid var(--zp-card-brd); box-shadow: var(--zp-shadow); display: grid; grid-template-rows: auto 1fr auto; gap: 14px; overflow: hidden; min-height: 300px; }
.jf-live::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--zp-card-brd); border-radius: 18px; pointer-events: none; }
.jf-live__top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--zp-soft); font-weight: 700; position: relative; }
.jf-live__top b { color: var(--zp-gold); }
.jf-tiles { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; position: relative; min-height: 120px; }
.jf-tile { width: 58px; height: 70px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; background: color-mix(in srgb, var(--zp-bg) 60%, transparent); border: 1px solid var(--zp-card-brd-hi); box-shadow: 0 10px 22px -14px rgba(0,0,0,.7); animation: jfIn .45s var(--zp-ease) both; position: relative; }
.jf-tile b { font-size: 1.5rem; line-height: 1.2; color: var(--zp-ink); }
.jf-tile small { font-size: .74rem; color: var(--zp-gold); font-weight: 800; }
.jf-tile::after { content: ""; position: absolute; top: 6px; left: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--el, #999); box-shadow: 0 0 8px var(--el, #999); }
.jf-tile.is-nur { border-color: color-mix(in srgb, var(--zp-gold) 75%, transparent); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--zp-gold) 16%, transparent), color-mix(in srgb, var(--zp-bg) 60%, transparent)); }
@keyframes jfIn { from { opacity: 0; transform: translateY(10px) scale(.9) rotate(-6deg); } }
.jf-empty { color: var(--zp-soft); text-align: center; font-size: .9rem; line-height: 2; }
.jf-empty b { display: block; font-size: 2.6rem; color: var(--zp-glyph); letter-spacing: .3em; }
.jf-sum { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; font-weight: 800; color: var(--zp-muted); position: relative; }
.jf-sum span { font-size: 2.2rem; color: var(--zp-gold); font-variant-numeric: tabular-nums; }
.zp-el-fire { --el: #f97316; } .zp-el-air { --el: #38bdf8; } .zp-el-water { --el: #818cf8; } .zp-el-earth { --el: #a3e635; }

/* result stage */
.jf-stage .jf-medals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.jf-medal { text-align: center; padding: 16px 8px 14px; border-radius: 20px; border: 1px solid var(--zp-card-brd); background: color-mix(in srgb, var(--zp-ink) 3%, transparent); position: relative; }
.jf-medal--main { border-color: var(--zp-card-brd-hi); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--zp-gold) 20%, transparent), transparent 70%); }
.jf-medal b { display: block; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--zp-gold); line-height: 1.3; font-variant-numeric: tabular-nums; }
.jf-medal span { font-size: .8rem; font-weight: 800; color: var(--zp-ink); }
.jf-medal small { display: block; font-size: .7rem; color: var(--zp-soft); margin-top: 2px; }
@media (max-width: 760px) { .jf-stage .jf-medals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jf-medal--main { grid-column: 1 / -1; } }
.jf-elbar { display: flex; height: 34px; border-radius: 12px; overflow: hidden; border: 1px solid var(--zp-card-brd); margin: 6px 0 8px; }
.jf-elbar i { display: grid; place-items: center; font-style: normal; font-size: .76rem; font-weight: 800; color: #0b1a14; background: var(--el); min-width: 0; white-space: nowrap; overflow: hidden; }
.jf-wafq-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 240px; margin: 8px auto 6px; padding: 10px; border-radius: 16px; border: 1px solid var(--zp-card-brd-hi); background: var(--zp-page); }
.jf-wafq-big i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; color: var(--zp-page-ink); border: 1.5px solid rgba(138, 106, 18, .45); border-radius: 8px; animation: jfIn .4s both; }
.jf-wafq-big i:nth-child(5) { background: rgba(233, 196, 106, .35); }
.jf-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.jf-table th, .jf-table td { padding: 7px 6px; text-align: center; border-bottom: 1px dashed var(--zp-card-brd); }
.jf-table th { color: var(--zp-gold); font-weight: 800; font-size: .78rem; }
.jf-table td:first-child { font-size: 1.15rem; font-weight: 800; }
.jf-mansion { display: flex; gap: 14px; align-items: center; }
.jf-mansion__l { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; font-weight: 900; color: var(--zp-on-accent); background: var(--zp-btn); box-shadow: 0 0 26px color-mix(in srgb, var(--zp-gold) 45%, transparent); }
html.zp--jafr[data-theme="light"] .jf-mansion__l { background: var(--zp-btn-light); color: #fff; }
.jf-src { font-size: .74rem; color: var(--zp-soft); margin-top: 6px; }
.jf-nur { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--zp-muted); }
.jf-nur__bar { flex: 1; height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--zp-ink) 10%, transparent); overflow: hidden; }
.jf-nur__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--zp-gold), var(--zp-gold-3)); }
html.zp--jafr .tool-seo__intro.card { --zp-corner: none; }

/* ---- production additions ---- */
