/* أنماط الصفحات العامة الخفيفة (الصفحة الرئيسية) — مستخرجة من app.css: الرموز، الأساس، الحقول، معاينة البطاقة، أيقونات iOS.
   لوحات الإدارة تبقى على app.css الكامل. */
:root {
  /* هوية «أزرق هادئ»: رمادي فاتح · أبيض · أزرق */
  --bg: #f7f8fa; --surface: #ffffff; --surface-2: #f3f5f8; --surface-3: #e9edf2; --field: #f9fafb;
  --text: #1f2937; --muted: #5b6b80; --line: #e5e7eb; --line-soft: #eef0f3;
  --primary: #3563a9; --primary-ink: #ffffff; --primary-soft: #edf3fa; --primary-strong: #2b5290; --primary-grad: linear-gradient(135deg, #3563a9, #3f6fb8);
  --nav-on-bg: #edf3fa; --nav-on-ink: #3563a9;
  --accent: #e8b04b; --accent-soft: #fdf4e3; --accent-ink: #8a5a00;
  --ok: #3e8a5a; --ok-soft: #e6f3ea; --warn: #b7791f; --warn-soft: #fdf0d9; --bad: #c0392b; --bad-soft: #fbe7e3; --info-soft: #f6ece4;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 24px -12px rgba(16,24,40,.14);
  --shadow-lg: 0 24px 60px -20px rgba(16,24,40,.38);
  --tabbar-h: 0px;
  color-scheme: light;
}
/* ============ Base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; text-rendering: optimizeLegibility; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; } h3 { font-size: .98rem; }
p { margin: 0 0 .5rem; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); } .center { text-align: center; } .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: .86em; }
code.block { display: block; padding: 10px 12px; margin-top: 8px; overflow-x: auto; white-space: nowrap; }
/* ============ Forms ============ */
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { background: var(--surface-3); }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
input[type=file] { padding: 9px; }
textarea { resize: vertical; }
label { display: block; font-weight: 500; font-size: .88rem; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 6px; font-weight: 400; font-size: .95rem; color: var(--text); }
label > small { display: block; margin-top: 4px; }
/* ============ Pass preview ============ */
.wpass { --pbg: #1f2937; --pfg: #fff; --plabel: #fbbf24; background: var(--pbg); color: var(--pfg); border-radius: 18px; padding: 14px 16px 16px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.4); max-width: 340px; margin-inline: auto; font-size: 14px; overflow: hidden; }
.wp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; }
.wp-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.wp-logo img { max-height: 30px; max-width: 90px; object-fit: contain; } .wp-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-header { display: flex; gap: 12px; text-align: end; }
.wpass small { display: block; color: var(--plabel); font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.wpass b { font-weight: 500; font-size: 15px; }
.wp-strip { margin: 12px -16px; min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wp-strip img { width: 100%; height: 110px; object-fit: cover; }
.wp-strip.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 18px; background: rgba(0,0,0,.12); }
.wp-strip.stamps[data-required="6"], .wp-strip.stamps[data-required="12"] { grid-template-columns: repeat(6, 1fr); }
.wp-strip.stamps[data-required="8"], .wp-strip.stamps[data-required="4"] { grid-template-columns: repeat(4, 1fr); }
.wp-strip.stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--pfg) 45%, transparent); background: color-mix(in srgb, var(--pfg) 10%, transparent); position: relative; max-width: 46px; justify-self: center; width: 100%; }
.wp-strip.stamps i.on { background: var(--plabel); border-color: var(--plabel); }
.wp-strip.stamps i.on::after { content: ""; position: absolute; inset: 18% 39% 30% 37%; border: solid var(--pbg); border-width: 0 3px 3px 0; border-radius: 1px; transform: rotate(45deg); }
.wp-strip.stamps i.last:not(.on)::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--pfg) 55%, transparent); font-size: 15px; }
.wp-primary { margin: 14px 0 8px; } .wp-primary b { font-size: 28px; font-weight: 400; line-height: 1.2; }
.wp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 10px; }
.wp-f b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-qr { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wp-qr .qr { width: 150px; } .wp-qr small { color: var(--pfg); opacity: .8; letter-spacing: .15em; direction: ltr; }
.qr-ph { width: 104px; height: 104px; background: #fff; border-radius: 10px; padding: 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.qr-ph i { background: #111; border-radius: 1px; } .qr-ph i:nth-child(3n), .qr-ph i:nth-child(5n+1) { background: transparent; }

.lang-ar { font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
.lang-ckb { font-family: "Vazirmatn", "Noto Sans Arabic", system-ui, -apple-system, Tahoma, sans-serif; line-height: 1.8; }
.lang-ckb h1, .lang-ckb h2, .lang-ckb h3 { line-height: 1.5; letter-spacing: 0; }
.lang-en { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; font-feature-settings: "cv11", "ss01"; }
.lang-en h1, .lang-en h2 { letter-spacing: -.02em; }
.ios-ic { --s: 40px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27); display: inline-grid; place-items: center; flex-shrink: 0; position: relative; overflow: hidden;
  color: #fff; background: linear-gradient(165deg, var(--g1), var(--g2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.08), 0 6px 14px -8px var(--g2); }
.ios-ic::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); pointer-events: none; }
.ios-ic svg { width: 56%; height: 56%; position: relative; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
/* الحقول اللاتينية دائماً من اليسار ولا تُقصّ */
input[type=email], input[type=tel], input[type=url], input[dir=ltr] { direction: ltr; text-align: left; }
input[type=email]::placeholder, input[type=tel]::placeholder, input[type=url]::placeholder { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
html, body { max-width: 100%; }

/* لحظات البطاقة: مكافأة جاهزة، يوم الميلاد، المواسم، شريط النقاط، رمز QR المتجدد */
.wp-strip { position: relative; }
.wp-deco { position: absolute; top: 4px; inset-inline-end: 10px; font-size: 17px; letter-spacing: 2px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); animation: wpFloat 3.2s ease-in-out infinite; z-index: 1; }
.wp-deco-row { display: flex; justify-content: flex-end; margin: 6px 0 -4px; } .wp-deco-row .wp-deco { position: static; }
.wp-ready-tag { position: absolute; top: 5px; inset-inline-start: 10px; z-index: 1; background: var(--plabel); color: var(--pbg); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); animation: wpPulse 2.2s ease-in-out infinite; }
.wpass.is-ready .wp-strip.stamps, .wpass.is-ready .wp-strip.points { padding-top: 30px; }
.wpass.is-ready .wp-strip.stamps i.last { box-shadow: 0 0 0 4px color-mix(in srgb, var(--plabel) 35%, transparent); }
.wp-strip.stamps i.last:not(.on)::after { content: "🎁"; font-size: 14px; filter: saturate(.6); }
.wp-strip.points { gap: 12px; padding: 20px 18px; background: rgba(0,0,0,.12); }
.wp-bar { flex: 1; height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--pfg) 18%, transparent); overflow: hidden; position: relative; }
.wp-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); min-width: 12px; background: var(--plabel); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.wp-goal { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--plabel); font-size: 18px; }
.wpass.is-ready .wp-goal { background: var(--plabel); border-style: solid; animation: wpPulse 2.2s ease-in-out infinite; }
.wp-qr .qr[data-qr-live] { position: relative; overflow: hidden; border-radius: 8px; }
.wp-qr .qr[data-qr-live]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%); transform: translateX(-110%); animation: wpSheen 3.5s ease-in-out infinite; pointer-events: none; }
.wp-qr-live { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 170px; }
.wp-qr-bar { display: block; width: 100%; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--pfg) 22%, transparent); overflow: hidden; }
.wp-qr-bar i { display: block; height: 100%; width: 100%; background: var(--plabel); border-radius: inherit; }
.wp-qr-note { font-size: 10.5px; line-height: 1.5; text-align: center; opacity: .88; }
.wp-qr-note time { font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes wpFloat { 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes wpPulse { 50% { transform: scale(1.05); } }
@keyframes wpSheen { 60%, 100% { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { .wp-deco, .wp-ready-tag, .wpass.is-ready .wp-goal, .wp-qr .qr[data-qr-live]::after { animation: none; } }

/* بلا خط تحت النصوص عند التمرير أو الضغط أو التحديد في كل النظام (التمييز بتغيّر اللون فقط؛ إطار التركيز للوحة المفاتيح باقٍ) */
a:hover, a:focus, a:active, a:focus-visible, a:hover *, a:focus *, .auth-forgot:hover, .auth-forgot[aria-expanded=true], .ios-link:hover, .bh-sub a:hover,
.lp-link:hover, .lp-fit:hover, .lp-custom:hover b, .lp-from:hover, .lp-wa-alt:hover, summary:hover, button:hover { text-decoration: none !important; }
.auth-passkey { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
