/* =========================================================
   لمسة تك — فورم ملف المشروع (brief.html)
   بيعتمد على css/style.css (الألوان، الزجاج، الأزرار، الخلفية)
   ========================================================= */

.bf { min-height: 100dvh; }
.bf .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bf .pill .ic { width: 18px; height: 18px; }
.bf .pill-ic .ic { width: 18px; height: 18px; }
.bf .pill:hover .pill-ic { transform: translateX(-3px); }
.bf small { font-size: 12px; color: var(--ink-3); font-weight: 300; }
.bf-muted { color: var(--ink-3); font-size: 13px; }

/* ---------- الشريط العلوي ---------- */
.bf-prog { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 70; pointer-events: none; }
.bf-prog i { display: block; height: 100%; width: 0; background: linear-gradient(270deg, var(--accent), var(--pink), var(--accent-2)); transition: width .8s var(--ease); border-radius: 0 0 0 4px; }

.bf-topbar { position: fixed; top: 12px; inset-inline: 0; z-index: 60; padding-top: env(safe-area-inset-top); pointer-events: none; }
.bf-topbar-in { pointer-events: auto; width: min(1280px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 6px; padding-inline-start: 20px; border-radius: 999px; }
.bf-steps { display: flex; gap: 2px; flex: 1; justify-content: center; list-style: none; margin: 0; padding: 0; min-width: 0; }
.bf-steps li { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; transition: background-color .4s, color .4s; }
.bf-steps li i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; transition: background-color .4s, transform .4s var(--ease); }
.bf-steps li.done { color: var(--ink-2); }
.bf-steps li.done i { background: var(--ok); opacity: 1; }
.bf-steps li.on { background: var(--btn); color: var(--btn-ink); }
.bf-steps li.on i { background: var(--accent); opacity: 1; transform: scale(1.3); }
.bf.is-intro .bf-steps, .bf.is-done .bf-steps { visibility: hidden; }
.bf-mstep { display: none; font-size: 13px; color: var(--ink-2); flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--ink); transition: transform .3s var(--ease), background-color .3s; }
.bf-iconbtn:hover { background: var(--glass-border); }
.bf-iconbtn:active { transform: scale(.94); }
.bf-iconbtn.sm { width: 38px; height: 38px; }
#themeBtn .i-sun { display: none; }
[data-theme="dark"] #themeBtn .i-sun { display: block; }
[data-theme="dark"] #themeBtn .i-moon { display: none; }

@media (max-width: 1240px) { .bf-steps li:not(.on) span { display: none; } .bf-steps li:not(.on) { padding: 7px 6px; } }
@media (max-width: 760px) {
  .bf-steps { display: none; }
  .bf-mstep { display: block; }
  .bf-topbar-in { padding-inline-start: 16px; min-height: 54px; }
  .bf-topbar-in .brand { font-size: 17px; }
}

/* ---------- التخطيط ---------- */
.bf-shell { width: min(1280px, 100% - 32px); margin: 100px auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.bf.is-intro .bf-shell, .bf.is-done .bf-shell { grid-template-columns: minmax(0, 1fr); }
.bf.is-intro .bf-live, .bf.is-done .bf-live { display: none; }
.bf-main { min-width: 0; display: flex; flex-direction: column; }
.bf-stage { min-height: calc(100dvh - 230px); }
@media (max-width: 1080px) { .bf-shell { grid-template-columns: minmax(0, 1fr); } .bf-live { display: none; } }
@media (max-width: 640px) { .bf-shell { width: calc(100% - 32px); margin-top: 84px; } }

/* ---------- انتقال الخطوات ---------- */
.bf-step { transition: opacity .26s var(--ease-io), transform .26s var(--ease-io), filter .26s; }
.bf-step [data-rv] { opacity: 0; transform: translateX(-34px); filter: blur(6px); }
.bf-step.back [data-rv] { transform: translateX(34px); }
.bf-step.in [data-rv] { opacity: 1; transform: none; filter: none; transition: opacity .6s var(--ease), transform .85s var(--ease), filter .6s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.bf-step.out { opacity: 0; transform: translateX(46px); filter: blur(8px); }
.bf-step.out-back { opacity: 0; transform: translateX(-46px); filter: blur(8px); }

/* ---------- رأس الخطوة ---------- */
.bf-head { margin: 10px 0 28px; max-width: 760px; }
.bf-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border); color: var(--ink-2); font-size: 12.5px; }
.bf-kicker b { font-weight: 400; font-family: var(--font-lat), var(--font-ar); letter-spacing: .02em; }
.bf-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: bfPulse 2.2s ease-in-out infinite; }
@keyframes bfPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
.bf-title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 300; line-height: 1.22; margin: 16px 0 10px; letter-spacing: -.01em; }
.bf-sub { color: var(--ink-2); font-size: 16px; max-width: 640px; }

/* ---------- الكارت/السؤال ---------- */
.bf-q { position: relative; padding: 22px; border-radius: var(--r-lg); margin-bottom: 14px; background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
.bf-q.miss { animation: bfMiss .7s var(--ease); }
@keyframes bfMiss { 0% { box-shadow: 0 0 0 0 var(--bad); } 15%, 45% { transform: translateX(-6px); box-shadow: 0 0 0 2px var(--bad); } 30%, 60% { transform: translateX(6px); } 100% { transform: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 0%, transparent); } }
.bf-ql { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.bf-qn { flex: none; font-family: var(--font-lat); font-size: 12px; color: var(--accent); padding: 4px 8px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, transparent); margin-top: 3px; }
.bf-ql h3 { font-size: 17px; font-weight: 400; line-height: 1.5; }
.bf-ql h3 small { margin-inline-start: 6px; }
.bf-ql p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* chips */
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip { position: relative; cursor: pointer; }
.bf-chip input, .bf-mode input, .bf-pal input, .bf-svc input, .bf-style-pick input, .bf-agree input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.bf-chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border); font-size: 14px; line-height: 1.4; transition: background-color .3s, color .3s, border-color .3s, padding .35s var(--ease), box-shadow .3s; }
.bf-chip .tick { width: 0; opacity: 0; color: var(--accent); stroke-width: 2.4; transition: width .35s var(--ease), opacity .3s, margin .35s var(--ease); }
.bf-chip:hover > span { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.bf-chip input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); padding-inline-start: 13px; animation: bfPop .45s var(--ease); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.bf-chip input:checked + span .tick { width: 16px; opacity: 1; margin-inline-end: 7px; }
.bf-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes bfPop { 40% { transform: scale(1.06); } }
.bf-chips.big { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bf-chips.big .bf-chip > span { width: 100%; min-height: 56px; border-radius: 18px; padding: 10px 16px; font-size: 14.5px; }

/* inputs */
.bf-in { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.bf-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--panel); }
.bf-in::placeholder { color: var(--ink-3); }
.bf-in[dir="ltr"] { text-align: right; }
.bf-in.bad { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 14%, transparent); }
textarea.bf-in { min-height: 120px; padding: 14px 18px; resize: vertical; line-height: 1.7; }
.bf-field { display: flex; flex-direction: column; gap: 8px; }
.bf-field > span { font-size: 14px; color: var(--ink-2); }
.bf-field > span b { color: var(--accent); font-weight: 400; }
.bf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.bf-grid2 > .bf-field { padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-border); }
.bf-contract .bf-grid2 > .bf-field { padding: 0; background: none; border: 0; }
@media (max-width: 640px) { .bf-grid2 { grid-template-columns: minmax(0, 1fr); } }
.bf-reveal { margin-top: 12px; }
.bf-reveal:not([hidden]) { animation: bfReveal .5s var(--ease); }
@keyframes bfReveal { from { opacity: 0; transform: translateY(-8px); } }

/* range */
.bf-range { display: flex; flex-direction: column; gap: 12px; }
.bf-impact { font-size: 15px; color: var(--ink-2); }
.bf-impact b { font-family: var(--font-lat); font-size: 26px; font-weight: 500; color: var(--ink); }
.bf-impact span { color: var(--accent); }
.bf-r { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 9px; background: linear-gradient(to left, var(--accent) 0, var(--pink) var(--p), var(--line) var(--p)); outline: none; cursor: pointer; }
.bf-r::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.bf-r::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.bf-r:active::-webkit-slider-thumb { transform: scale(1.18); }
.bf-r:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.bf-range-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

/* ---------- الشريط السفلي ---------- */
.bf-nav { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 26px; display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: 999px; z-index: 30; }
.bf-err { flex: 1; color: var(--bad); font-size: 13.5px; text-align: center; min-width: 0; }
.bf-err.shake { animation: bfShake .45s; }
@keyframes bfShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bf-err:empty + .bf-hint { display: inline; }
.bf-hint { display: none; font-family: var(--font-lat); font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }
.bf-nav .pill:disabled { opacity: .6; cursor: wait; }
@media (max-width: 640px) {
  .bf-nav { gap: 6px; }
  .bf-nav #backBtn span { display: none; }
  .bf-nav #backBtn { padding: 0 16px; }
  .bf-hint { display: none !important; }
  .bf-err { font-size: 12px; line-height: 1.4; }
}

/* =========================================================
   المقدمة
   ========================================================= */
.bf-intro { position: relative; min-height: calc(100dvh - 160px); display: grid; place-items: center; text-align: center; padding: 30px 0 60px; }
.bf-intro-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 700px; }
.bf-intro-orb { position: relative; width: 110px; height: 110px; margin-bottom: 4px; }
.bf-intro-orb .orb { position: absolute; inset: 14px; animation: drift 8s ease-in-out infinite; background-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bf-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--a), var(--accent), var(--pink), var(--accent-2), transparent 70%, var(--accent)); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); animation: bfSpin 6s linear infinite; }
@keyframes bfSpin { to { --a: 360deg; } }
.bf-intro-title { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 200; line-height: 1.15; letter-spacing: -.02em; }
.bf-intro-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.bf-intro-feats { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; color: var(--ink-2); }
.bf-intro-feats li { display: flex; align-items: center; gap: 6px; }
.bf-intro-feats .ic { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.2; }
.bf-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bf-float { position: absolute; width: 230px; border-radius: 18px; padding: 6px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); opacity: 0; animation: bfFloatIn 1.2s var(--ease) forwards, bfFloat 9s ease-in-out infinite; }
.bf-float .mk-frame { border-radius: 13px; }
.bf-float.f0 { top: 4%; right: 0; --rot: 6deg; animation-delay: .2s, 0s; }
.bf-float.f1 { top: 10%; left: 0; --rot: -7deg; animation-delay: .35s, -3s; }
.bf-float.f2 { bottom: 6%; right: 4%; --rot: -5deg; animation-delay: .5s, -5s; }
.bf-float.f3 { bottom: 2%; left: 3%; --rot: 7deg; animation-delay: .65s, -7s; }
@keyframes bfFloatIn { from { opacity: 0; transform: translateY(40px) rotate(var(--rot)) scale(.9); } to { opacity: .92; transform: rotate(var(--rot)); } }
@keyframes bfFloat { 50% { translate: 0 -14px; } }
@media (max-width: 1100px) { .bf-float { width: 170px; opacity: .5; } .bf-float.f0, .bf-float.f1 { top: -2%; } }
@media (max-width: 760px) { .bf-floats { display: none; } .bf-intro { min-height: calc(100dvh - 140px); } }

/* =========================================================
   1) نوع الخدمة
   ========================================================= */
.bf-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bf-svc { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); padding: 10px; cursor: pointer; transition: box-shadow .4s var(--ease), border-color .4s, transform .5s var(--ease); }
.bf-svc:hover { transform: translateY(-4px); }
.bf-svc-art { position: relative; border-radius: 26px; overflow: hidden; }
.bf-svc-art .mk-frame { border-radius: 26px; transition: transform .8s var(--ease); }
.bf-svc:hover .bf-svc-art .mk-frame { transform: scale(1.03); }
.bf-svc-from { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 14, 10, .72); color: #fff; font-size: 12px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bf-svc-from b { font-family: var(--font-lat); font-weight: 500; }
.bf-svc-body { display: flex; align-items: center; gap: 14px; padding: 16px 10px 8px; }
.bf-svc-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 10px 22px -12px var(--c1); }
.bf-svc-ic .ic { width: 22px; height: 22px; }
.bf-svc h3 { font-size: 19px; font-weight: 500; }
.bf-svc p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.bf-tick { margin-inline-start: auto; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: #fff; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.bf-tick .ic { width: 16px; height: 16px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s .1s var(--ease); }
.bf-svc:has(input:checked) { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.bf-svc:has(input:checked) .bf-tick { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.bf-svc:has(input:checked) .bf-tick .ic { stroke-dashoffset: 0; }
.bf-svc:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 640px) {
  .bf-services { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bf-svc h3 { font-size: 17px; }
}

/* =========================================================
   4) الألوان
   ========================================================= */
.bf-colors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bf-colors-prev { position: sticky; top: 92px; }
.bf-prev { position: relative; border-radius: 26px; padding: 10px; }
.bf-prev .mk-frame { border-radius: 18px; }
.bf-prev-tag { position: absolute; top: -11px; inset-inline-end: 26px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(20, 14, 10, .7); color: #fff; font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.bf-prev-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: bfPulse 1.6s infinite; }
.bf-swatches { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; min-height: 44px; align-items: center; text-align: center; }
.bf-sw { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-border); animation: bfPop .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.bf-sw i { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -6px var(--c); }
.bf-sw b { font-family: var(--font-lat); font-size: 12.5px; font-weight: 400; }
@media (max-width: 1360px) { .bf-colors { grid-template-columns: minmax(0, 1fr); } .bf-colors-prev { position: relative; top: 0; order: -1; max-width: 560px; width: 100%; margin-inline: auto; } }

.bf-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bf-mode { cursor: pointer; position: relative; }
.bf-mode > span { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--glass-border); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.bf-mode .ic { width: 22px; height: 22px; color: var(--accent); margin-bottom: 4px; }
.bf-mode b { font-weight: 400; font-size: 14.5px; }
.bf-mode:hover > span { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.bf-mode input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -18px var(--accent); background: var(--panel); animation: bfPop .45s var(--ease); }
.bf-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .bf-modes { grid-template-columns: minmax(0, 1fr); } .bf-mode > span { flex-direction: row; align-items: center; gap: 10px; } .bf-mode .ic { margin: 0; } .bf-mode small { margin-inline-start: auto; } }

.bf-colorset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bf-color { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--glass-border); }
.bf-color > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.bf-color b { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.bf-color input[type="color"] { -webkit-appearance: none; appearance: none; flex: none; width: 54px; height: 54px; border: 0; padding: 0; border-radius: 16px; background: none; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.bf-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.bf-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 16px; }
.bf-color input[type="color"]::-moz-color-swatch { border: 0; border-radius: 16px; }
.bf-hex { width: 100%; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font-family: var(--font-lat); font-size: 13px; padding: 0 10px; text-transform: uppercase; text-align: right; }
.bf-hex:focus { outline: none; border-color: var(--accent); }
@media (max-width: 520px) { .bf-colorset { grid-template-columns: minmax(0, 1fr); } }

.bf-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.bf-pal { cursor: pointer; position: relative; }
.bf-pal > span { display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--glass-border); transition: border-color .3s, box-shadow .3s, transform .4s var(--ease); }
.bf-pal:hover > span { transform: translateY(-2px); }
.bf-pal .sw { display: flex; height: 40px; border-radius: 12px; overflow: hidden; }
.bf-pal .sw i { flex: 1; transition: flex .5s var(--ease); }
.bf-pal .sw i:first-child { flex: 2.2; }
.bf-pal:hover .sw i:nth-child(2) { flex: 1.8; }
.bf-pal b { font-weight: 400; font-size: 13px; padding-inline: 4px; }
.bf-pal input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--panel); }
.bf-pal input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-note { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 14px; }
.bf-note .ic { color: var(--accent); }

/* =========================================================
   5) الأنماط
   ========================================================= */
.bf-stbar { position: sticky; top: 82px; z-index: 6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 8px 8px 8px 18px; padding-inline-start: 18px; border-radius: 999px; min-height: 54px; }
.bf-count { flex: 1; font-size: 14px; color: var(--ink-2); }
.bf-count b { color: var(--ink); font-weight: 500; }
.bf-stnote { font-size: 12.5px; color: var(--ink-3); }
.bf-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--glass-2); }
.bf-switch input { position: absolute; opacity: 0; }
.bf-switch i { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--line); transition: background-color .3s; }
.bf-switch i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.bf-switch input:checked + i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bf-switch input:checked + i::after { transform: translateX(-16px); }
.bf-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.bf-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bf-style { position: relative; }
.bf-style-pick { position: relative; display: block; cursor: pointer; border-radius: 26px; padding: 8px; background: var(--glass); border: 1px solid var(--glass-border); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s, border-color .3s; }
.bf-style-pick:hover { box-shadow: var(--shadow); }
.bf-style-pick .mk-frame { border-radius: 19px; }
.bf-style-meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px 6px; }
.bf-style-meta b { font-weight: 500; font-size: 15.5px; }
.bf-style-meta small { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.bf-style-meta em { font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.bf-order { position: absolute; top: 16px; inset-inline-start: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-lat); font-size: 15px; box-shadow: 0 8px 18px -6px var(--accent); transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.bf-style.is-on .bf-style-pick { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.bf-style.is-on .bf-order { transform: scale(1) rotate(0); }
.bf-style-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.bf-zoom { position: absolute; top: 16px; inset-inline-end: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #2a2019; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.bf-zoom .ic { width: 17px; height: 17px; }
.bf-style:hover .bf-zoom, .bf-zoom:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .bf-zoom { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .bf-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bf-style-pick { padding: 5px; border-radius: 20px; }
  .bf-style-pick .mk-frame { border-radius: 15px; }
  .bf-style-meta { padding: 8px 5px 4px; }
  .bf-style-meta b { font-size: 13.5px; }
  .bf-style-meta small, .bf-style-meta em { display: none; }
  .bf-order { top: 10px; inset-inline-start: 10px; width: 28px; height: 28px; font-size: 13px; }
  .bf-zoom { top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; }
  .bf-stbar { top: 74px; padding-inline-start: 14px; }
  .bf-count { font-size: 12.5px; }
}

/* lightbox */
.bf-lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.bf-lb-bg { position: absolute; inset: 0; background: rgba(20, 12, 8, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.bf-lb-panel { position: relative; width: min(1000px, 100%); border-radius: 32px; padding: 12px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s var(--ease), transform .5s var(--ease); background: var(--panel); }
.bf-lb.open .bf-lb-bg { opacity: 1; }
.bf-lb.open .bf-lb-panel { opacity: 1; transform: none; }
.bf-lb-frame .mk-frame { border-radius: 22px; }
.bf-lb-x { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 3; background: rgba(255, 255, 255, .9); color: #2a2019; }
.bf-lb-meta { display: flex; align-items: center; gap: 12px; padding: 14px 6px 4px; }
.bf-lb-txt { flex: 1; min-width: 0; }
.bf-lb-txt h3 { font-size: 19px; font-weight: 500; }
.bf-lb-txt p { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 640px) { .bf-lb-meta { flex-wrap: wrap; } .bf-lb-txt { order: -1; flex-basis: 100%; } .bf-lb-meta .pill { flex: 1; } }

/* =========================================================
   6) الأمثلة
   ========================================================= */
.bf-refs { display: flex; flex-direction: column; gap: 10px; }
.bf-ref { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; animation: bfReveal .45s var(--ease); }
.bf-ref-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.bf-ref .bf-in { min-height: 48px; border-radius: 15px; font-size: 14px; }
.bf-add { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); background: transparent; font-size: 14px; color: var(--ink-2); transition: border-color .3s, color .3s; }
.bf-add:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .bf-ref { grid-template-columns: auto minmax(0, 1fr) auto; } .bf-ref [data-f="note"] { grid-column: 2 / 3; grid-row: 2; } }

/* =========================================================
   9) المراجعة
   ========================================================= */
.bf-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bf-rc { border-radius: var(--r-lg); padding: 18px 20px; }
.bf-rc header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bf-rc h3 { font-size: 15px; font-weight: 500; }
.bf-edit { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2); font-size: 12.5px; color: var(--ink-2); transition: color .3s, border-color .3s; }
.bf-edit .ic { width: 14px; height: 14px; }
.bf-edit:hover { color: var(--accent); border-color: var(--accent); }
.bf-rc dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bf-rc dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.bf-rc dt { color: var(--ink-3); }
.bf-rc dd { margin: 0; }
.bf-rc-svc { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 16px; }
.bf-rc-svc b { font-weight: 500; }
.bf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-tags span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 11%, transparent); }
.bf-quote { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); border-inline-start: 2px solid var(--accent); padding-inline-start: 10px; }
.bf-rc .bf-muted { margin-top: 8px; }
.bf-sws { display: flex; gap: 8px; margin-bottom: 10px; }
.bf-sws i { width: 34px; height: 34px; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bf-rc-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bf-rc-styles figure { margin: 0; }
.bf-rc-styles .mk-frame { border-radius: 10px; }
.bf-rc-styles figcaption { font-size: 12px; margin-top: 5px; color: var(--ink-2); }
.bf-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.bf-links li { text-align: right; overflow-wrap: anywhere; color: var(--accent); }
.bf-links li span { color: var(--ink-2); }
.bf-links + dl { margin-top: 10px; }
@media (max-width: 760px) { .bf-review { grid-template-columns: minmax(0, 1fr); } .bf-rc dl div { grid-template-columns: 90px minmax(0, 1fr); } }

/* =========================================================
   10) العقد
   ========================================================= */
.bf-contract { border-radius: var(--r-xl); padding: clamp(20px, 3.4vw, 40px); background: var(--panel); }
.ct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.ct-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 300; margin-top: 8px; }
.ct-head .brand { font-size: 17px; }
.ct-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-3); text-align: left; }
.ct-meta b { color: var(--ink); font-weight: 400; }
.ct-sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ct-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.ct-sec h4 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 500; margin: 0 0 10px; }
.ct-sec h4 span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-lat); font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--pink)); }
.ct-sec p { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 6px; }
.ct-sec p b { color: var(--ink); font-weight: 500; }
.ct-muted { font-size: 13px !important; color: var(--ink-3) !important; }
.ct-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ct-parties > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--glass-border); }
.ct-parties b { font-weight: 500; font-size: 15px; }
.ct-parties span { font-family: var(--font-lat); font-size: 13px; color: var(--ink-2); text-align: right; }
.ct-pay { display: grid; grid-template-columns: 5fr 3fr 2fr; gap: 10px; margin-top: 14px; }
.ct-pay-i { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--glass-border); }
.ct-pay-i b { font-family: var(--font-lat); font-size: 30px; font-weight: 500; line-height: 1.1; background: linear-gradient(100deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-pay-i span { font-size: 14px; font-weight: 400; }
.ct-pay-i small { font-size: 12px; line-height: 1.55; }
.ct-bar { display: flex; gap: 4px; height: 10px; margin-top: 12px; }
.ct-bar i { flex: var(--w); border-radius: 9px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: right; animation: ctGrow 1s var(--ease) both; animation-delay: calc(.3s + var(--i) * .18s); }
.ct-bar i:nth-child(2) { opacity: .7; }
.ct-bar i:nth-child(3) { opacity: .45; }
@keyframes ctGrow { from { transform: scaleX(0); } }
.ct-hl { margin: 6px -14px; padding: 20px 14px; border-radius: 20px; background: color-mix(in srgb, var(--ok) 9%, transparent); border-bottom-color: transparent; }
.ct-hl h4 span { background: linear-gradient(135deg, var(--ok), #0e8a6a); }
.ct-hl.miss { animation: bfMiss .7s var(--ease); }
.ct-plans { margin: 4px 0 12px; }
@media (max-width: 640px) {
  .ct-parties { grid-template-columns: minmax(0, 1fr); }
  .ct-pay { grid-template-columns: minmax(0, 1fr); }
  .ct-pay-i { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .ct-pay-i small { flex-basis: 100%; }
  .ct-meta { text-align: right; }
}

.bf-agree { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--glass-2); margin-bottom: 14px; transition: border-color .3s, background-color .3s; }
.bf-agree.miss { animation: bfMiss .7s var(--ease); }
.bf-agree > i { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); display: grid; place-items: center; color: #fff; transition: background-color .3s, border-color .3s; margin-top: 2px; }
.bf-agree > i .ic { width: 16px; height: 16px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease); }
.bf-agree span { font-size: 14px; line-height: 1.8; }
.bf-agree:has(input:checked) { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.bf-agree:has(input:checked) > i { background: var(--ok); border-color: var(--ok); }
.bf-agree:has(input:checked) > i .ic { stroke-dashoffset: 0; }
.bf-agree:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-field.miss { animation: bfMiss .7s var(--ease); border-radius: 18px; }
.bf-pad { position: relative; height: 120px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent); background: var(--glass-2); overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.bf-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.bf-pad-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-size: 14px; pointer-events: none; transition: opacity .3s; }
.bf-pad.has .bf-pad-ph { opacity: 0; }
.bf-pad-clear { position: absolute; bottom: 8px; inset-inline-end: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--ink-2); opacity: 0; transition: opacity .3s; }
.bf-pad.has .bf-pad-clear { opacity: 1; }
.bf-ct-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }

/* =========================================================
   النجاح
   ========================================================= */
.bf-done { min-height: calc(100dvh - 200px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 20px 0 40px; }
.bf-done .bf-sub { margin-inline: auto; }
.bf-done-mark svg { width: 120px; height: 120px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bf-done-mark circle { stroke: var(--ok); stroke-width: 4; stroke-dasharray: 330; stroke-dashoffset: 330; animation: bfDraw 1s .3s var(--ease) forwards; fill: color-mix(in srgb, var(--ok) 10%, transparent); }
.bf-done-mark path { stroke: var(--ok); stroke-width: 7; stroke-dasharray: 80; stroke-dashoffset: 80; animation: bfDraw .6s 1s var(--ease) forwards; }
@keyframes bfDraw { to { stroke-dashoffset: 0; } }
.bf-code { font-family: var(--font-lat); font-weight: 500; color: var(--ink); padding: 2px 10px; border-radius: 8px; background: var(--glass-2); }
.bf-done-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.bf-done-links { display: flex; gap: 20px; margin-top: 18px; font-size: 14px; }
.bf-done-links a, .bf-done-links button { color: var(--ink-2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.bf-done-links a:hover, .bf-done-links button:hover { color: var(--accent); }
.bf-confetti { position: fixed; inset: 0; z-index: 120; pointer-events: none; }

/* =========================================================
   ملف المشروع اللايف
   ========================================================= */
.bf-live { position: sticky; top: 90px; border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1080px) { .bf-live { display: none; } }
.lv-head { display: flex; align-items: center; justify-content: space-between; }
.lv-head > div { display: flex; flex-direction: column; }
.lv-head b { font-weight: 500; font-size: 16px; }
.lv-head small { font-family: var(--font-lat); text-align: right; }
.lv-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); position: relative; transition: background .6s; }
.lv-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); }
.lv-ring b { position: relative; font-family: var(--font-lat); font-size: 12.5px; font-weight: 500; }
.lv-prev .mk-frame { border-radius: 16px; box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .5); }
.lv-empty { aspect-ratio: 16 / 10; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--ink) 20%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px; color: var(--ink-3); }
.lv-empty .ic { color: var(--accent); width: 22px; height: 22px; }
.lv-rows { margin: 0; display: flex; flex-direction: column; }
.lv-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lv-row:last-child { border-bottom: 0; }
.lv-row dt { color: var(--ink-3); flex: none; }
.lv-row dd { margin: 0; text-align: left; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-row.on dd { color: var(--ink); animation: bfReveal .5s var(--ease); }
.lv-sw { display: inline-flex; gap: 4px; vertical-align: middle; }
.lv-sw i { width: 16px; height: 16px; border-radius: 5px; }
.lv-tip { display: flex; gap: 8px; margin: 0; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.lv-tip .ic { color: var(--accent); width: 16px; height: 16px; margin-top: 3px; }

/* ستايل المعاينات نفسها في css/mockups.css */

/* =========================================================
   الحركة المخففة
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .bf *, .bf *::before, .bf *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .bf-float { opacity: .9; }
}

/* =========================================================
   الطباعة / PDF — العقد بس على A4
   ========================================================= */
.pdoc { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html, body { background: #fff !important; }
  body.bf > *:not(#printDoc) { display: none !important; }
  .pdoc { display: block !important; color: #2a2019; font-family: 'Alexandria', sans-serif; font-weight: 300; font-size: 11pt; line-height: 1.75; direction: rtl; --ink: #2a2019; --ink-2: #4d4036; --ink-3: #85766a; --line: #e6dbcf; --accent: #f0582a; --pink: #f0476f; --accent-2: #b0569a; --ok: #18b26b; --glass-2: #faf6f1; --glass-border: #eadfd3; }
  .pdoc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pd-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid #f0582a; }
  .pd-head .brand { font-size: 15pt; font-weight: 500; }
  .pd-head h1 { font-size: 20pt; font-weight: 300; margin: 4px 0 0; }
  .pd-meta { display: flex; flex-direction: column; font-size: 9.5pt; color: #85766a; text-align: left; }
  .pd-meta b { color: #2a2019; font-weight: 500; }
  .pdoc .ct-sec { padding: 10px 0; break-inside: avoid; }
  .pdoc .ct-sec h4 { font-size: 12pt; margin-bottom: 6px; }
  .pdoc .ct-sec h4 span { width: 22px; height: 22px; font-size: 9pt; border-radius: 6px; }
  .pdoc .ct-sec p { font-size: 10.5pt; line-height: 1.85; }
  .pdoc .ct-pay-i b { font-size: 18pt; color: #f0582a; background: none; -webkit-text-fill-color: #f0582a; }
  .pdoc .ct-pay-i { padding: 8px 10px; border-radius: 10px; }
  .pdoc .ct-bar i { animation: none; }
  .pdoc .ct-hl { margin: 4px 0; padding: 10px 12px; background: #eefaf3; border-radius: 10px; }
  .pdoc .ct-parties > div { padding: 8px 12px; border-radius: 10px; }
  .pd-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .pd-table th, .pd-table td { border: 1px solid #eadfd3; padding: 5px 8px; text-align: right; vertical-align: top; }
  .pd-table th { width: 28%; background: #faf6f1; font-weight: 500; }
  .pd-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
  .pd-sigs > div { display: flex; flex-direction: column; gap: 4px; }
  .pd-sigs small { color: #85766a; font-size: 9pt; }
  .pd-sigs b { font-weight: 500; }
  .pd-sigs img { width: 180px; height: 70px; object-fit: contain; object-position: right; border-bottom: 1px solid #2a2019; }
  .pd-sigs span { font-size: 9pt; color: #18b26b; }
  .pd-line { display: block; height: 60px; border-bottom: 1px solid #2a2019; width: 180px; }
  .pd-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #eadfd3; font-size: 8.5pt; color: #85766a; text-align: center; }
}

/* لوحة التوقيع: ورقة بيضا دايمًا (حتى في الوضع الغامق) عشان الحبر الغامق يبان */
.bf .bf-pad { background: #fffdf9; border-color: rgba(27, 21, 48, .25); }
.bf .bf-pad-ph { color: #8a8399; }
.bf .bf-pad-clear { background: #fff; color: #4b4560; border-color: rgba(27, 21, 48, .15); }
