/* ═══════════════════════════════════════════════════════════
   KARDO v9 — نظام التصميم حسب تصاميم المصمم
   ذهبي + أسود فاحم · بلا backdrop-filter (أسرع على الهواتف)
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #07090a;
  --surface: #111414;
  --surface-2: #171b1b;
  --surface-3: #1f2423;
  --border: rgba(212,165,116,.13);
  --border-2: rgba(212,165,116,.22);
  --border-3: rgba(212,165,116,.35);
  --text: #f3ebdd;
  --text-2: #aaa393;
  --text-3: #8a8476;
  --brand: #d4a574; --brand-hover: #e2b985; --brand-dark: #a8793f; --brand-light: rgba(212,165,116,.12); --brand-50: rgba(212,165,116,.06);
  --gold-grad: linear-gradient(135deg, #f0d29c 0%, #d4a574 45%, #a8793f 100%);
  --gold-text: linear-gradient(135deg, #f7e7c6 0%, #e2b985 50%, #c18f55 100%);
  --success: #2ec27e; --success-bg: rgba(46,194,126,.12); --success-border: rgba(46,194,126,.3);
  --error: #ef5350;  --error-bg: rgba(239,83,80,.12);   --error-border: rgba(239,83,80,.3);
  --warning: #e8b64c; --warning-bg: rgba(232,182,76,.12); --warning-border: rgba(232,182,76,.3);
  --shadow-focus: 0 0 0 3px rgba(212,165,116,.28);
  --font-latin-display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --r-card: 18px;
  --ease: cubic-bezier(.16,1,.3,1);
}
html, body { background: var(--bg); }
body { color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 85% -10%, rgba(212,165,116,.10), transparent 70%); }

/* ─── عناوين ─── */
.h1, .h2 { font-weight: 800; letter-spacing: 0; }
.greet { font-size: 22px; background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.eyebrow, .page-kicker { color: var(--text-3); font-size: 12px; }

/* ─── بطاقات ─── */
.card, .list, .table-wrap, .modal, .service-card, .quick-tile {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0)) , var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-card) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 26px -18px rgba(0,0,0,.9) !important;
}
.card-sm { border-radius: 14px !important; }

/* ─── الأزرار ─── */
.btn { border-radius: 14px; font-weight: 700; min-height: 46px; transition: transform .12s var(--ease), filter .2s, box-shadow .2s; }
.btn-sm { min-height: 36px; border-radius: 11px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { background: var(--gold-grad) !important; color: #17120a !important; border: 0 !important;
  box-shadow: 0 8px 20px -10px rgba(212,165,116,.65), inset 0 1px 0 rgba(255,255,255,.35) !important; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary::after { display: none; }
.btn-secondary { background: var(--surface-3) !important; color: var(--text) !important; border: 1px solid rgba(255,255,255,.06) !important; }
.btn-ghost { color: var(--brand); }
.btn-outline-danger { border-color: var(--error-border); color: var(--error); }

/* ─── الحقول ─── */
.input, select.input, textarea.input {
  background: #0d1010 !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 14px !important;
  color: var(--text); min-height: 48px;
}
.input:focus { border-color: var(--brand) !important; box-shadow: var(--shadow-focus) !important; outline: none; }
.field-label { color: var(--text-2); font-size: 12.5px; }

/* ─── القوائم: كل صف بطاقة مستقلة كما في التصميم ─── */
.list { background: transparent !important; border: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; gap: 10px; }
.list-row { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 16px !important;
  padding: 12px 14px !important; transition: border-color .2s, transform .12s var(--ease); }
.list-row:active { transform: scale(.985); }
.list-row:hover { border-color: var(--border-2) !important; }
.list-icon { width: 42px !important; height: 42px !important; border-radius: 12px !important; background: var(--surface-3) !important; color: var(--brand) !important; }
.list-icon.success { background: var(--success-bg) !important; color: var(--success) !important; }
.list-icon.error { background: var(--error-bg) !important; color: var(--error) !important; }
.list-icon.brand { background: var(--brand-light) !important; color: var(--brand) !important; }
.list-title { font-weight: 700; }
.list-amount.success, .amt-in { color: var(--success) !important; font-weight: 800; }
.list-amount.error, .amt-out { color: var(--error) !important; font-weight: 800; }

/* ─── الشارات ─── */
.badge { border-radius: 999px; font-weight: 700; padding: 3px 10px; }
.chip-auto { display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: rgba(212,165,116,.1); color: var(--brand); font-size: 11.5px; font-weight: 700; border: 1px solid var(--border-2); }
.chip-manual { background: rgba(255,255,255,.05); color: var(--text-2); border-color: rgba(255,255,255,.08); }

/* ─── الشريط العلوي والسفلي ─── */
header.bar { background: rgba(7,9,10,.94) !important; border-bottom: 1px solid var(--border) !important; backdrop-filter: none !important; }
.bottom-nav { background: #0b0d0d !important; border-top: 1px solid var(--border) !important; }
.nav-item { color: var(--text-3) !important; }
.nav-item.active { color: var(--brand) !important; }
.nav-item.active::after { background: var(--brand) !important; }
.sidebar-item.active { background: var(--brand-light) !important; color: var(--brand) !important; }

/* ─── رصيد المحفظة ─── */
.balance-card { background: radial-gradient(120% 90% at 50% 0%, rgba(212,165,116,.12), transparent 60%), var(--surface) !important;
  border: 1px solid var(--border-2) !important; border-radius: 22px !important; text-align: center; padding: 22px 18px !important; }
.balance-card::before { display: none !important; }
.balance-label { color: var(--text-3) !important; }
.balance-value { font-family: var(--font-mono); font-size: 34px !important; font-weight: 800;
  background: none; -webkit-text-fill-color: currentColor; color: var(--text) !important; direction: ltr; }
.balance-secondary { color: var(--brand) !important; font-family: var(--font-mono); }
.balance-actions { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.balance-action { background: var(--surface-3) !important; border: 1px solid rgba(255,255,255,.06) !important; border-radius: 14px !important;
  flex-direction: row !important; justify-content: center; gap: 6px; padding: 12px 8px !important; font-weight: 700; color: var(--text) !important; }
.balance-action .icon { background: none !important; width: auto !important; height: auto !important; color: inherit !important; }
.balance-action .icon svg { width: 16px !important; height: 16px !important; }
.balance-action[data-action="deposit"] { background: var(--gold-grad) !important; color: #17120a !important; border: 0 !important; order: -1; }

/* ─── البطاقة الافتراضية (أسود + نقش ذهبي) ─── */
.vcard, .kcard {
  background:
    repeating-linear-gradient(45deg, rgba(212,165,116,.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(212,165,116,.07) 0 1px, transparent 1px 22px),
    radial-gradient(120% 120% at 100% 0%, rgba(212,165,116,.22), transparent 55%),
    linear-gradient(135deg, #16130e, #0b0a08 60%, #15110b) !important;
  border: 1px solid rgba(212,165,116,.35) !important; border-radius: 18px !important; color: #f3e6cc !important;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.vcard-brand, .vcard-brand-logo { color: var(--brand) !important; letter-spacing: .18em; font-weight: 800; }
.vcard-chip { background: linear-gradient(135deg, #f0d29c, #b8894a) !important; border-radius: 6px !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.vcard-number { font-family: var(--font-mono); letter-spacing: .12em; color: #f7ecd6 !important; }
.vcard-label { color: rgba(212,165,116,.75) !important; }

/* ─── بطاقات الخدمات والأقسام ─── */
.service-card:hover, .quick-tile:hover, .prod-card:hover, .cat-tile:hover { border-color: var(--border-3) !important; }
.svc-icon, .quick-icon { background: var(--surface-3) !important; border-radius: 14px !important; }
.quick-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-grid4 .quick-tile { padding: 12px 6px !important; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11.5px; font-weight: 600; }

/* ─── البانر الافتراضي (بلا صور ثقيلة) ─── */
.hero-bn { position: relative; overflow: hidden; border-radius: 20px; padding: 20px 18px; min-height: 150px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(90% 120% at 0% 100%, rgba(212,165,116,.28), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(168,121,63,.25), transparent 60%),
    linear-gradient(135deg, #1b150c, #0c0b09); }
.hero-bn::after { content: 'K'; position: absolute; left: 14px; bottom: -28px; font: 800 150px/1 'Reem Kufi', sans-serif;
  color: rgba(212,165,116,.12); pointer-events: none; }
.hero-bn h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.hero-bn p { color: var(--text-2); font-size: 12.5px; margin: 0 0 14px; max-width: 70%; }

/* ─── صفوف منتجات القسم ─── */
.prow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; width: 100%; text-align: right; color: inherit; }
.prow:active { transform: scale(.985); }
.prow-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: #0d1010; display: grid; place-items: center; }
.prow-img img { width: 100%; height: 100%; object-fit: cover; }
.prow-body { flex: 1; min-width: 0; }
.prow-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-price { font-family: var(--font-mono); font-weight: 800; margin-top: 4px; direction: ltr; text-align: right; }
.prow-price s { color: var(--text-3); font-weight: 500; font-size: 11px; margin-inline-start: 6px; }
.prow-fast { font-size: 11px; color: var(--brand); margin-top: 4px; }
.prow-add { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; font-weight: 400;
  color: var(--brand); border: 1px solid var(--border-3); background: rgba(212,165,116,.06); }
.prow-off { position: absolute; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat-tile { position: relative; padding: 14px 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-align: center; cursor: pointer; color: inherit; }
.feat-tile .ft-img { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 14px; overflow: hidden; background: #0d1010; display: grid; place-items: center; }
.feat-tile .ft-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-tile .ft-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-tile .ft-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: var(--gold-grad); color: #17120a; }

/* ─── المودال ─── */
.modal { border-radius: 24px 24px 0 0 !important; }
@media (min-width: 640px) { .modal { border-radius: 24px !important; } }
.modal-title { font-weight: 800; }
.modal-close { color: var(--brand) !important; }

/* ─── الإشعارات (حسب التصميم) ─── */
.notif { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.notif.unread { border-color: var(--border-2); background: var(--surface) !important; position: relative; }
.notif.unread::before { content: ''; position: absolute; top: 14px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--error); box-shadow: 0 0 8px var(--error); }

/* ─── شريط الرصيد (أنحف وأسرع) ─── */
.bal-dock { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: linear-gradient(135deg, #1a150d, #0e100f 60%) !important; }

/* ─── Toast ─── */
.toast { backdrop-filter: none !important; background: var(--surface-2) !important; border: 1px solid var(--border-2) !important; border-radius: 14px !important; }

/* ═══ لوحة الإدارة ═══ */
.admin-sidebar { background: #0b0d0d !important; border-inline-start: 1px solid var(--border) !important; }
.admin-nav-item.active, .admin-nav-item[aria-current] { background: var(--brand-light) !important; color: var(--brand) !important; }
.kpi2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .kpi2-grid { grid-template-columns: repeat(6, 1fr); } }
.kpi2 { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.kpi2-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 12px; margin-bottom: 10px; }
.kpi2-top svg { width: 18px; height: 18px; color: var(--brand); }
.kpi2-val { font-family: var(--font-mono); font-size: 22px; font-weight: 800; direction: ltr; text-align: right; }
.kpi2-sub { margin-top: 6px; font-size: 11px; font-weight: 700; display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--brand-light); color: var(--brand); }
.chart-card svg { width: 100%; height: 170px; display: block; }
.need-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.need-row:last-child { border-bottom: 0; }
.need-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); flex-shrink: 0; }
.need-ico svg { width: 16px; height: 16px; }
.need-n { margin-inline-start: auto; font-family: var(--font-mono); font-weight: 800; font-size: 18px; }
.admin-home-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .admin-home-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ═══ v9.1 — الحيوية: رئيسية المتجر، حركة، أجواء ═══ */
/* خلفية حيّة: توهج ذهبي يتحرك ببطء (transform فقط → خفيف على المعالج) */
body::after { content: ''; position: fixed; z-index: -1; pointer-events: none; width: 520px; height: 520px; border-radius: 50%;
  top: -180px; left: -160px; background: radial-gradient(circle, rgba(212,165,116,.13), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(55vw, 40vh); } }

.home-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.icon-pill { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--brand);
  background: var(--surface); border: 1px solid var(--border-2); cursor: pointer; }
.icon-pill svg { width: 20px; height: 20px; }
.pill-count { position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 10px; font-weight: 800;
  background: var(--gold-grad); color: #17120a; display: grid; place-items: center; animation: pop .35s var(--ease); }

/* البانر: كرة ضوء تتحرك */
.hero-orb { position: absolute; width: 160px; height: 160px; border-radius: 50%; top: -60px; right: -40px; pointer-events: none;
  background: radial-gradient(circle, rgba(240,210,156,.35), transparent 65%); animation: orb 6s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-40px, 30px) scale(1.15); } }
.hero-bn > *:not(.hero-orb) { position: relative; z-index: 1; }

/* بطاقتي في الرئيسية: لمعة تمر على البطاقة */
.home-card { position: relative; border-radius: 18px; overflow: hidden; }
.home-card .service-card { width: 100%; }
.home-card .vcard { position: relative; overflow: hidden; }
.home-card .vcard::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,236,200,.18) 50%, transparent 65%);
  transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.home-card-cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px !important; cursor: pointer; color: inherit; text-align: right; }
.cta-card-art { width: 64px; height: 42px; border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(212,165,116,.4);
  background: repeating-linear-gradient(45deg, rgba(212,165,116,.12) 0 1px, transparent 1px 8px), linear-gradient(135deg, #1b150c, #0b0a08); position: relative; }
.cta-card-art::before { content: ''; position: absolute; width: 12px; height: 9px; top: 8px; right: 8px; border-radius: 2px; background: var(--gold-grad); }

/* شريط الثقة */
.trust-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.trust-row::-webkit-scrollbar { display: none; }
.trust-row span { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: rgba(212,165,116,.07); border: 1px solid var(--border); color: var(--text-2); }

/* دخول متتابع للعناصر */
.stagger > * { animation: rise .5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* الأقسام: تكبير الصورة عند اللمس + حد ذهبي */
.cat-tile img { transition: transform .5s var(--ease); }
.cat-tile:hover img, .cat-tile:active img { transform: scale(1.06); }
.cat-tile { box-shadow: 0 12px 26px -16px rgba(0,0,0,.9); }
.cat-tile .cat-name { font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* «مميّز»: بريق */
.feat-tile .ft-tag { overflow: hidden; }
.feat-tile .ft-tag::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3s ease-in-out infinite; }
.feat-tile { transition: transform .2s var(--ease), border-color .2s; }
.feat-tile:active { transform: scale(.96); }

/* روابط الإعدادات السريعة */
.quick-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ql { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 11px; font-weight: 700; }
.ql-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); }
.ql-ic svg { width: 18px; height: 18px; }

/* شريط التنقل: مؤشر ذهبي متوهج */
.nav-item.active svg { filter: drop-shadow(0 0 6px rgba(212,165,116,.55)); }

/* قائمة «المزيد» في لوحة الإدارة */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-grid .ql { font-size: 11.5px; }
.more-group { font-size: 11px; color: var(--text-3); margin: 12px 0 6px; }

@media (prefers-reduced-motion: reduce) { body::after, .hero-orb, .home-card .vcard::after, .feat-tile .ft-tag::after { animation: none !important; } }

/* v9.2 — الفنك */
.fennec { display: block; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); animation: fen-in .5s var(--ease) both; }
.home-card-cta .fennec { margin: 0; animation: none; }
@keyframes fen-in { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.offline-bn { position: fixed; z-index: 90; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--error-border);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); animation: toast-in .4s var(--ease) both; }

/* v9.3 — تحذيرات البطاقة + روابط قانونية */
.card-warn { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--warning-bg); border: 1px solid var(--warning-border); }
.card-warn-title { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--warning); margin-bottom: 6px; }
.card-warn-title svg { width: 16px; height: 16px; }
.card-warn ul { margin: 0 0 10px; padding-inline-start: 18px; font-size: 12.5px; line-height: 1.9; color: var(--text-2); }
.card-warn b { color: var(--text); }
.card-warn-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 700; cursor: pointer; }
.card-warn-ok input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex-shrink: 0; }
.card-warn-ok a, .legal-links a { color: var(--brand); }
.legal-links { text-align: center; font-size: 12px; color: var(--text-3); }

/* v9.4 — تحذير نيون أحمر + الباقات + البطاقات المخفية */
.neon-warn { position: relative; padding: 14px 16px; border-radius: 16px; background: rgba(255, 45, 85, .08);
  border: 1.5px solid #ff2d55; color: #ffd7df;
  box-shadow: 0 0 12px rgba(255, 45, 85, .45), inset 0 0 14px rgba(255, 45, 85, .12);
  animation: neon 2.2s ease-in-out infinite; }
.neon-warn-title { font-weight: 800; color: #ff5c7c; margin-bottom: 4px; text-shadow: 0 0 8px rgba(255, 45, 85, .8); }
.neon-warn p { margin: 4px 0 0; font-size: 13px; line-height: 1.9; }
@keyframes neon { 0%, 100% { box-shadow: 0 0 10px rgba(255,45,85,.4), inset 0 0 12px rgba(255,45,85,.1); }
                  50% { box-shadow: 0 0 22px rgba(255,45,85,.75), inset 0 0 18px rgba(255,45,85,.18); } }
.hidden-cards { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; cursor: pointer; color: inherit;
  background: var(--surface); border: 1px dashed var(--border-3); font-size: 14px; }
.hidden-cards > span:first-child { font-size: 22px; }
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-tile { position: relative; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.plan-tile.plan-top { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(212,165,116,.25), 0 16px 40px -18px rgba(212,165,116,.45);
  background: radial-gradient(120% 80% at 50% 0%, rgba(212,165,116,.12), transparent 60%), var(--surface); }
.plan-tile.plan-cur { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-crown { position: absolute; top: 12px; left: 14px; font-size: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; }
.plan-price b { font-size: 30px; font-weight: 800; font-family: var(--font-mono); }
.plan-feat { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .neon-warn { animation: none; } }

/* v10 — محادثة التذاكر، روابط الإشعارات، شعارات طرق الدفع */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.8; }
.bubble.from-me { align-self: flex-start; background: var(--surface-3); border-bottom-right-radius: 4px; }
.bubble.from-staff { align-self: flex-end; background: linear-gradient(135deg, rgba(212,165,116,.18), rgba(212,165,116,.08)); border: 1px solid var(--border-2); border-bottom-left-radius: 4px; }
.bubble-who { font-size: 11px; font-weight: 800; color: var(--brand); margin-bottom: 2px; }
.bubble-text { white-space: pre-line; word-break: break-word; }
.bubble-at { font-size: 10px; color: var(--text-3); margin-top: 4px; }
.notif.has-link { cursor: pointer; }
.notif.has-link::after { content: 'اضغط للعرض ←'; display: block; font-size: 11px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.list-row[data-ticket] { cursor: pointer; }
.pm-logo { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden;
  background: var(--surface-3); border: 1px dashed var(--border-3); font-size: 18px; }
.pm-logo img { width: 100%; height: 100%; object-fit: contain; }

/* v11 — رمز 3D Secure */
.otp-code { font-family: var(--font-mono); font-size: 40px; font-weight: 800; letter-spacing: 10px; padding: 14px 10px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border-3); color: var(--brand); box-shadow: var(--glow, 0 0 20px rgba(212,165,116,.25)); }

/* v11 — صلاحيات الموظفين + الملصقات */
.perm-sec { padding: 10px 0; border-bottom: 1px solid var(--border); }
.perm-title { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.perm-acts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.perm-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.perm-chk input { width: 17px; height: 17px; accent-color: var(--brand); }
.stk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .stk-grid { grid-template-columns: repeat(4, 1fr); } }
.stk-card { text-align: center; padding: 12px !important; }
.stk-img { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0 auto; }
.card-locked { position: relative; filter: grayscale(.85) brightness(.55); cursor: pointer; }
.card-lock-badge { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; font-weight: 800; color: #fff; text-shadow: 0 2px 8px #000; font-size: 13px; }
.otp-fee { font-size: 12px; color: var(--warning); margin-top: 8px; }
.set-sub { font-weight: 800; font-size: 12.5px; color: var(--brand); margin: 16px 0 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.pm-field { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; }
.pm-field .perm-chk, .pm-field button { align-self: center; }

/* v12 — المتاجر الموثوقة */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 900px) { .m-grid { grid-template-columns: repeat(6, 1fr); } }
.m-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: inherit; cursor: pointer; text-align: center; }
.m-tile-name { font-weight: 800; font-size: 12.5px; line-height: 1.4; }
.m-logo { width: 54px; height: 54px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-2); flex-shrink: 0; }
.m-logo img { width: 100%; height: 100%; object-fit: cover; }
.m-logo b { font-size: 22px; color: var(--brand); font-family: var(--font-display); }
.m-logo-lg { width: 76px; height: 76px; border-radius: 22px; border: 3px solid var(--bg, #07090a); box-shadow: 0 0 0 1px var(--brand); }
.m-ok { color: var(--success); font-size: 11px; font-weight: 800; }
.m-rate { color: #f5c451; font-weight: 800; font-size: 12px; margin-inline-start: 4px; }
.m-hero { height: 150px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(212,165,116,.28), transparent 60%), var(--surface-2); border: 1px solid var(--border); }
.m-hero img { width: 100%; height: 100%; object-fit: cover; }
.m-head { display: flex; align-items: flex-end; gap: 12px; margin: -38px 12px 12px; position: relative; }
.m-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.m-contacts .btn { padding: 0 14px; }
.m-proof { display: block; padding: 14px; border: 1.5px dashed var(--border-3); border-radius: 14px; text-align: center; cursor: pointer; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.m-proof.ok { border-color: var(--success); color: var(--success); }
.m-proof-img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 14px; background: #000; }
.m-svc-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 12px; }
.m-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-stats .card { padding: 14px !important; }
.m-stats b { font-size: 20px; display: block; margin-top: 4px; color: var(--brand); }
.m-svc-row { display: flex; align-items: center; gap: 8px; padding: 12px 14px !important; }
.m-stars { display: flex; gap: 6px; justify-content: center; }
.m-stars button { font-size: 30px; background: none; border: 0; color: #f5c451; cursor: pointer; padding: 0 2px; }
.prow[disabled] { opacity: .5; cursor: not-allowed; }

/* v13 — تحسينات المتاجر */
.m-open { color: var(--success); font-weight: 700; } .m-closed { color: var(--error); font-weight: 700; }
.m-tier { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.m-tier-gold { color: #f5c451; border-color: rgba(245,196,81,.5); background: rgba(245,196,81,.08); }
.m-tier-silver { color: #c9d1d9; border-color: rgba(201,209,217,.4); background: rgba(201,209,217,.06); }
.m-off { color: var(--error); font-weight: 800; font-size: 11px; }
.m-tile { position: relative; } .m-promo { border-color: var(--brand); }
.m-ad { position: absolute; top: 6px; left: 6px; font-size: 9.5px; font-weight: 800; color: #17120a; background: var(--gold-grad, #d4a574); padding: 1px 7px; border-radius: 999px; }
.m-promo-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.m-promo-card { position: relative; flex: 0 0 86%; height: 140px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--brand); color: inherit; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 0%, rgba(212,165,116,.3), transparent 60%), var(--surface-2); }
.m-promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.m-promo-info { position: absolute; bottom: 10px; right: 12px; left: 12px; display: flex; gap: 10px; align-items: center; text-align: right; }
.m-sec-title { font-weight: 800; color: var(--brand); font-size: 13px; margin: 6px 2px 8px; }
.m-review { padding: 10px 14px !important; }
.m-step { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; margin-bottom: 6px; color: #17120a; background: var(--gold-grad, #d4a574); }
.m-pay-box { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-2); }
.m-timeline { display: flex; gap: 6px; }
.m-tl { flex: 1; display: flex; gap: 6px; align-items: flex-start; opacity: .45; font-size: 12px; }
.m-tl span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); margin-top: 4px; flex-shrink: 0; }
.m-tl.done { opacity: 1; } .m-tl.done span { background: var(--success); box-shadow: 0 0 8px var(--success); }
.m-chat-in { display: flex; gap: 8px; } .m-chat-in .input { flex: 1; } .m-chat-in .btn { padding: 0 16px; }
.m-qr { display: flex; flex-wrap: wrap; gap: 6px; }
.m-join { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px !important; border: 1px solid var(--brand) !important; color: inherit; cursor: pointer;
  background: radial-gradient(120% 90% at 100% 0%, rgba(212,165,116,.18), transparent 60%), var(--surface) !important; }

/* v15 — جولة تعريفية + قائمة تجهيز المتجر */
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 14px; }
.tour-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-3); }
.tour-dots span.on { width: 22px; border-radius: 4px; background: var(--brand); }
.m-check { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; color: var(--text-2); }
.m-check span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-3); font-size: 11px; }
.m-check.ok { color: var(--text-3); text-decoration: line-through; } .m-check.ok span { background: var(--success); border-color: var(--success); color: #000; }

/* v19 — بطاقات المتاجر + جدول العمل */
.m-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .m-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .m-cards { grid-template-columns: repeat(4, 1fr); } }
.m-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: inherit; cursor: pointer; text-align: right; padding: 0; position: relative; }
.m-card.m-promo { border-color: var(--brand); }
.m-card-img { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(212,165,116,.22), transparent 60%), var(--surface-2); }
.m-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.45); transform: scale(1.06); }
.m-card-logo { position: relative; width: 58%; height: 58%; object-fit: cover; border-radius: 22%; border: 2px solid rgba(212,165,116,.5); box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); background: #0b0d0d; }
.m-card-letter { position: relative; font-family: var(--font-display); font-size: 54px; color: var(--brand); }
.m-card-closed { position: absolute; bottom: 8px; right: 8px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.75); color: var(--error); }
.m-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.m-card-name { font-weight: 800; font-size: 13.5px; line-height: 1.4; }
.m-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.sc-days { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-day input { display: none; }
.sc-day span { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-3); font-size: 12px; cursor: pointer; }
.sc-day input:checked + span { background: var(--brand); color: #17120a; border-color: var(--brand); font-weight: 800; }

/* v20 — شارة التوثيق، صور رمزية، صفحة المتجر، الأقسام، المحادثات، الإعدادات، زر المحفظة */
.vbadge { width: 15px; height: 15px; vertical-align: -2px; display: inline-block; flex-shrink: 0; }
.m-card-name .vbadge, .st-name .vbadge { width: 17px; height: 17px; }
.avatar { border-radius: 30%; object-fit: cover; flex-shrink: 0; display: inline-block; }
#avatarInitial .avatar { border-radius: 9px; }

.store-page .m-hero { height: 170px; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; margin: -44px 14px 0; position: relative; }
.st-logo { width: 88px !important; height: 88px !important; border-radius: 26px !important; border: 4px solid #07090a !important; box-shadow: 0 0 0 1px var(--brand), 0 14px 30px -12px rgba(0,0,0,.8) !important; }
.st-fav { margin-bottom: 6px; }
.st-info { padding: 12px 4px 4px; display: flex; flex-direction: column; gap: 6px; }
.st-name { font-family: var(--font-display); font-size: 24px; line-height: 1.35; margin: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.st-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.st-bio { margin: 6px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--text-2); white-space: pre-line; }
.st-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 14px 0 16px; }
.st-actions .btn { padding: 0 16px; }
.svc-list { display: flex; flex-direction: column; gap: 10px; }

.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.sec-tile { display: flex; flex-direction: column; gap: 3px; padding: 0 0 12px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: inherit; cursor: pointer; text-align: right;
  transition: transform .2s var(--ease), border-color .2s; }
.sec-tile:active { transform: scale(.97); } .sec-tile:hover { border-color: var(--border-3); }
.sec-img { position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, rgba(212,165,116,.2), transparent 60%), var(--surface-2); margin-bottom: 6px; }
.sec-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-img b { font-family: var(--font-display); font-size: 40px; color: var(--brand); }
.sec-name { font-weight: 800; font-size: 14px; padding: 0 12px; }
.sec-tile .caption { padding: 0 12px; }
.sec-badge { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: var(--text-2); }
.sec-img .sec-badge { position: absolute; top: 8px; right: 8px; }
.sec-badge.auto { color: #f5c451; }

.chat-unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #17120a; font-weight: 800; font-size: 11.5px; display: inline-grid; place-items: center; }

/* الإعدادات — مساحات أوسع وأقسام منفصلة */
.settings-page > .card { margin-bottom: 18px !important; padding: 20px !important; border-radius: 22px !important; }
.settings-page .ql-grid, .settings-page .quick-links { gap: 10px !important; }
.settings-page .card .h4 { font-size: 16px !important; margin-bottom: 14px !important; }
.settings-page .field { margin-bottom: 16px !important; }
.settings-page > * { animation: fen-in .45s var(--ease) both; }
.settings-page > *:nth-child(2) { animation-delay: .04s; } .settings-page > *:nth-child(3) { animation-delay: .08s; }
.settings-page > *:nth-child(4) { animation-delay: .12s; } .settings-page > *:nth-child(5) { animation-delay: .16s; }
.settings-page > *:nth-child(6) { animation-delay: .2s; }  .settings-page > *:nth-child(n+7) { animation-delay: .24s; }

/* زر المحفظة العائم (مضغوط بدل الشريط الكامل) */
.bal-dock { left: 14px !important; right: auto !important; width: auto !important; max-width: 62vw; border-radius: 999px !important; padding: 6px 6px 6px 14px !important; gap: 10px !important;
  background: linear-gradient(135deg, rgba(40,30,18,.96), rgba(18,16,14,.96)) !important; border: 1px solid rgba(212,165,116,.45) !important;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4) inset !important; }
.bal-dock .dock-label, .bal-dock .dock-usd { display: none !important; }
.bal-dock .dock-main { align-items: center !important; gap: 8px !important; }
.bal-dock .dock-ic { color: var(--brand); display: grid; place-items: center; }
.bal-dock .dock-val { font-size: 15px !important; }
.bal-dock .dock-add { width: 40px; height: 40px; padding: 0 !important; border-radius: 50% !important; font-size: 22px !important; line-height: 1; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .settings-page > * { animation: none; } }
.settings-page .quick-links { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
.settings-page .ql { padding: 16px 6px !important; font-size: 12.5px; }

/* v21 — رئيسية البطاقات */
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.use-item { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--text-2); text-align: center; }
.use-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; background: var(--surface); border: 1px solid var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: transform .2s var(--ease), border-color .2s; }
.use-item:active .use-ic { transform: scale(.94); border-color: var(--brand); }
.steps-card { display: flex; flex-direction: column; gap: 0; padding: 6px 4px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 8px; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; right: 21px; top: 44px; bottom: -8px; width: 2px; background: linear-gradient(var(--brand), transparent); opacity: .35; }
.step-n { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #17120a; background: var(--gold-grad, #d4a574); flex-shrink: 0; }
.fee-card { display: flex; flex-direction: column; gap: 12px; padding: 18px !important; }
.ref-strip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px !important; color: inherit; cursor: pointer;
  background: radial-gradient(120% 100% at 100% 0%, rgba(212,165,116,.16), transparent 60%), var(--surface) !important; border: 1px solid var(--border-2) !important; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 16px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--border-3); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.9; color: var(--text-2); }

/* v22 — منصات الاستخدام */
.use-ic.use-img { padding: 0; overflow: hidden; background: #fff; }
.use-ic.use-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .pl-grid { grid-template-columns: repeat(4, 1fr); } }
.pl-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px !important; text-align: center; }
.pl-card.off { opacity: .55; }
.pl-img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--border-2); }

/* v23 — الدعوات */
.ref-hero { background: radial-gradient(120% 100% at 100% 0%, rgba(212,165,116,.18), transparent 60%), var(--surface) !important; border-color: var(--border-3) !important; padding: 18px !important; }
.ref-code { font-family: var(--font-mono); font-size: 26px !important; letter-spacing: .28em; text-align: center; color: var(--brand); font-weight: 800; }

/* v24 — أنواع البطاقات */
.ctype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctype { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; border-radius: 16px; text-align: right; cursor: pointer; color: inherit;
  background: var(--surface-2); border: 1.5px solid var(--border-2); transition: border-color .2s, transform .15s, box-shadow .2s; }
.ctype b { font-size: 15px; } .ctype-fee { color: var(--brand); font-weight: 800; font-size: 14px; }
.ctype.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(212,165,116,.15); }
.ctype:active { transform: scale(.97); }
.ctype-badge { position: absolute; top: -9px; left: 10px; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #17120a; background: var(--gold-grad, #d4a574); }

/* v24 — حركات وانتقالات خفيفة */
@keyframes kd-page { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kd-pop { 0% { opacity: 0; transform: scale(.96); } 100% { opacity: 1; transform: none; } }
.page-enter { animation: kd-page .32s cubic-bezier(.2,.7,.2,1) both; }
.page-enter > * { animation: kd-page .38s cubic-bezier(.2,.7,.2,1) both; }
.page-enter > *:nth-child(2) { animation-delay: .03s; } .page-enter > *:nth-child(3) { animation-delay: .06s; }
.page-enter > *:nth-child(4) { animation-delay: .09s; } .page-enter > *:nth-child(5) { animation-delay: .12s; }
.page-enter > *:nth-child(n+6) { animation-delay: .15s; }
#modal > * { animation: kd-pop .22s ease-out both; }
.btn, .card, .m-card, .sec-tile, .prow, .list-row, .use-item, .ql { transition: transform .15s ease, border-color .2s, background-color .2s, box-shadow .2s; }
.btn:active, .m-card:active, .prow:active, .list-row:active, .ql:active { transform: scale(.975); }
.bn-slide img { transition: transform 6s ease; } .bn-slide:hover img { transform: scale(1.03); }
.nav-item.active svg { animation: kd-pop .25s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .page-enter, .page-enter > *, #modal > *, .nav-item.active svg { animation: none !important; }
  .btn, .card, .m-card, .prow, .list-row { transition: none !important; }
}

/* v26 — طرق دفع التاجر وأسعارها */
.pm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pm-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; cursor: pointer; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border-2); font-size: 12.5px; font-weight: 700; transition: border-color .2s, background .2s; }
.pm-chip img { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; background: #fff; }
.pm-chip.on { border-color: var(--brand); color: var(--brand); background: rgba(212,165,116,.08); }
.pm-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; background: #fff; padding: 2px; }

/* ═══════════════════════════════════════════════════════════
   v29 — نظام تصميم موحّد (Human-grade): زرّان فقط، مقاسات ثابتة،
   تباين أعلى، أجواء ضوئية ناعمة، وحركات هادئة
   ═══════════════════════════════════════════════════════════ */
:root {
  --ds-r: 16px; --ds-r-lg: 22px; --ds-h: 52px; --ds-h-sm: 42px;
  --ds-gold-1: #F3D7A5; --ds-gold-2: #D8A86C; --ds-gold-3: #A87A42;
  --ds-ink: #17120A; --ds-text: #F4EFE6; --ds-text-2: #C4BCAD; --ds-text-3: #8F887B;
  --ds-surface: #121515; --ds-surface-2: #181C1C; --ds-line: rgba(255,255,255,.07); --ds-line-2: rgba(255,255,255,.11);
  --ds-ease: cubic-bezier(.2,.8,.2,1);
}

/* أجواء: توهج ذهبي ناعم ثابت خلف الواجهة */
body::before {
  content: ''; position: fixed; inset: -20% -10% auto -10%; height: 70vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(216,168,108,.13), transparent 70%),
    radial-gradient(45% 40% at 0% 30%, rgba(216,168,108,.06), transparent 70%);
}
#app, .app-shell, main { position: relative; z-index: 1; }

/* خطوط وتباين */
body { font-size: 15px; color: var(--ds-text); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.text-2, .body-sm.text-2 { color: var(--ds-text-2) !important; }
.caption { color: var(--ds-text-3) !important; font-size: 12.5px !important; }
.h4 { font-size: 16px !important; font-weight: 800 !important; letter-spacing: 0; }
.h2 { font-size: 26px !important; }

/* ── الأزرار: رئيسي وثانوي فقط، بنفس المقاس والانحناء ── */
.btn {
  height: var(--ds-h) !important; min-height: var(--ds-h); padding: 0 22px !important; border-radius: var(--ds-r) !important;
  font-size: 15px !important; font-weight: 700 !important; gap: 8px; letter-spacing: 0;
  transition: transform .14s var(--ds-ease), box-shadow .2s, background-color .2s, border-color .2s, opacity .2s !important;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { height: var(--ds-h-sm) !important; min-height: var(--ds-h-sm); padding: 0 16px !important; border-radius: 13px !important; font-size: 13.5px !important; }
.btn-primary {
  color: var(--ds-ink) !important; border: 0 !important;
  background: linear-gradient(180deg, var(--ds-gold-1) 0%, var(--ds-gold-2) 55%, var(--ds-gold-3) 100%) !important;
  box-shadow: 0 10px 24px -12px rgba(216,168,108,.65), inset 0 1px 0 rgba(255,255,255,.45) !important;
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(216,168,108,.8), inset 0 1px 0 rgba(255,255,255,.5) !important; }
.btn-secondary, .btn-outline, .btn-outline-danger {
  background: var(--ds-surface-2) !important; color: var(--ds-text) !important;
  border: 1px solid var(--ds-line-2) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.btn-ghost { background: transparent !important; color: var(--ds-gold-2) !important; border: 0 !important; box-shadow: none !important; }
.btn:active:not([disabled]) { transform: scale(.965); }
.btn[disabled], .btn:disabled { opacity: .45 !important; filter: saturate(.6); }
.btn:focus-visible { outline: 2px solid rgba(216,168,108,.6); outline-offset: 2px; }

/* ── البطاقات: انحناء واحد، حد خفيف، عمق هادئ ── */
.card, .m-card, .sec-tile, .ql, .faq-item, .list, .prow {
  border-radius: var(--ds-r-lg) !important; border: 1px solid var(--ds-line) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 60%), var(--ds-surface) !important;
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.9) !important;
}
.card { padding: 18px !important; }

/* ── مربعات الأيقونات: مقاس واحد في كل الموقع ── */
.ql-ic, .list-icon, .use-ic, .empty-icon {
  width: 52px !important; height: 52px !important; border-radius: 16px !important; display: grid !important; place-items: center !important;
  background: radial-gradient(120% 120% at 30% 0%, rgba(216,168,108,.22), rgba(216,168,108,.06) 60%, transparent) , var(--ds-surface-2) !important;
  border: 1px solid rgba(216,168,108,.18) !important; color: var(--ds-gold-2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.ql-ic svg, .list-icon svg { width: 22px !important; height: 22px !important; }
.ql { padding: 18px 8px !important; gap: 10px !important; font-weight: 700; font-size: 13px !important; }
.quick-links { gap: 12px !important; }
.list-icon { width: 44px !important; height: 44px !important; border-radius: 14px !important; }

/* ── الحقول ── */
.input { min-height: 50px; border-radius: 14px !important; font-size: 15px !important; border: 1px solid var(--ds-line-2) !important;
  background: rgba(0,0,0,.25) !important; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: rgba(216,168,108,.55) !important; box-shadow: 0 0 0 4px rgba(216,168,108,.12) !important; outline: none; }
textarea.input { min-height: 96px; }

/* ── الشارات والأقراص ── */
.pill { height: 38px; border-radius: 999px !important; padding: 0 16px !important; font-weight: 700 !important; font-size: 13px !important; transition: all .2s var(--ds-ease); }
.pill.active { color: var(--ds-ink) !important; background: linear-gradient(180deg, var(--ds-gold-1), var(--ds-gold-2)) !important; border-color: transparent !important; }

/* ── الترويسة والتنقل السفلي (زجاجي + مؤشر متحرك) ── */
.topbar, header.bar, .app-header { backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); background: rgba(8,10,10,.72) !important; }
.bottom-nav { backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); background: rgba(10,12,12,.86) !important; border-top: 1px solid var(--ds-line) !important; }
.nav-item { position: relative; transition: color .25s var(--ds-ease); }
.nav-item svg { transition: transform .3s var(--ds-ease); }
.nav-item.active svg { transform: translateY(-2px); }
.nav-item::before { content: ''; position: absolute; top: 7px; left: 50%; width: 44px; height: 30px; margin-left: -22px; border-radius: 12px;
  background: rgba(216,168,108,.14); box-shadow: 0 0 18px rgba(216,168,108,.25); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s var(--ds-ease); }
.nav-item.active::before { opacity: 1; transform: scale(1); }
.nav-item.active::after { display: none !important; }

/* ── كبسولة المحفظة ── */
.bal-dock { box-shadow: 0 16px 34px -14px rgba(0,0,0,.95), 0 0 0 1px rgba(216,168,108,.28) !important; }
.bal-dock .dock-add { width: 44px !important; height: 44px !important; background: linear-gradient(180deg, var(--ds-gold-1), var(--ds-gold-3)) !important; color: var(--ds-ink) !important;
  box-shadow: 0 8px 18px -8px rgba(216,168,108,.8) !important; transition: transform .15s var(--ds-ease); }
.bal-dock .dock-add:active { transform: scale(.9); }

/* ── الحركات: دخول الصفحة بانزلاق ناعم، وظهور متدرج للعناصر ── */
@keyframes ds-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
.page-enter { animation: ds-fade .25s ease-out both !important; }
.page-enter > * { animation: ds-in .45s var(--ds-ease) both !important; }
.page-enter > *:nth-child(1) { animation-delay: 0s !important; }   .page-enter > *:nth-child(2) { animation-delay: .04s !important; }
.page-enter > *:nth-child(3) { animation-delay: .08s !important; } .page-enter > *:nth-child(4) { animation-delay: .12s !important; }
.page-enter > *:nth-child(5) { animation-delay: .16s !important; } .page-enter > *:nth-child(n+6) { animation-delay: .2s !important; }
.card, .m-card, .ql, .prow, .list-row, .sec-tile, .use-item { transition: transform .16s var(--ds-ease), border-color .2s, box-shadow .2s !important; }
.ql:active, .m-card:active, .prow:active, .list-row:active, .sec-tile:active, .use-item:active { transform: scale(.97); }
@media (hover: hover) { .ql:hover, .m-card:hover, .prow:hover, .sec-tile:hover { border-color: rgba(216,168,108,.28) !important; transform: translateY(-2px); } }
#modal { border-radius: 26px 26px 0 0 !important; }
#overlay.open #modal { animation: ds-sheet .38s var(--ds-ease) both; }
@keyframes ds-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .page-enter, .page-enter > *, #overlay.open #modal { animation: none !important; }
  .btn, .card, .ql, .nav-item::before { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   v32 — نظام التصميم المعتمد من المراجعة (يتقدّم على كل ما سبق)
   ═══════════════════════════════════════════════════════════ */
:root {
  --k-bg: #0A0A0A; --k-surface: #141414; --k-border: #262626;
  --k-t1: #FFFFFF; --k-t2: #A3A3A3; --k-t3: #666666;
  --k-gold: #D4AF37; --k-success: #22C55E; --k-error: #EF4444; --k-warning: #F59E0B;
  --k-font: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --k-fast: 200ms ease-in-out; --k-page: 300ms ease-in-out;
  /* ربط متغيرات النظام القديم بالقيم الجديدة حتى تتوحّد كل الصفحات */
  --brand: var(--k-gold); --sand: var(--k-gold); --success: var(--k-success); --error: var(--k-error); --warning: var(--k-warning);
  --ds-gold-1: #E2C35A; --ds-gold-2: var(--k-gold); --ds-gold-3: #B8952B;
  --ds-text: var(--k-t1); --ds-text-2: var(--k-t2); --ds-text-3: var(--k-t3);
  --ds-surface: var(--k-surface); --ds-surface-2: #1A1A1A; --ds-line: var(--k-border); --ds-line-2: var(--k-border);
}
html, body { background: var(--k-bg) !important; }
body, button, input, select, textarea { font-family: var(--k-font) !important; }
body { font-size: 14px !important; line-height: 1.6; color: var(--k-t1); }
body::before { background: radial-gradient(60% 50% at 85% 0%, rgba(212,175,55,.07), transparent 70%) !important; }

/* الخطوط */
h1, .h1, .h2, h1.h2 { font-family: var(--k-font) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 1.35 !important; }
h2, .h3 { font-family: var(--k-font) !important; font-size: 18px !important; font-weight: 600 !important; }
.h4 { font-family: var(--k-font) !important; font-size: 18px !important; font-weight: 600 !important; }
.field-label, .eyebrow, label.field-label { font-size: 12px !important; font-weight: 500 !important; color: var(--k-t2) !important; }
.text-2, .body-sm.text-2 { color: var(--k-t2) !important; }
.caption { color: var(--k-t3) !important; font-size: 12px !important; }
.body-sm { font-size: 14px !important; }

/* الأسطح والبطاقات */
.card, .m-card, .sec-tile, .ql, .faq-item, .list, .prow, .fee-card, .steps-card {
  background: var(--k-surface) !important; border: 1px solid var(--k-border) !important; border-radius: 16px !important; box-shadow: none !important;
}
.card { padding: 16px !important; }
.mb-4 { margin-bottom: 16px !important; } .mb-5 { margin-bottom: 24px !important; } .mb-6 { margin-bottom: 32px !important; }
.stack, .m-cards, .quick-links, .pl-grid, .ctype-grid { gap: 16px !important; }

/* الأزرار */
.btn { height: 48px !important; min-height: 48px; padding: 0 16px !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 700 !important;
  transition: transform var(--k-fast), background-color var(--k-fast), border-color var(--k-fast), opacity var(--k-fast) !important; box-shadow: none !important; }
.btn-sm, .btn-compact { height: 40px !important; min-height: 40px; }
.btn-primary { background: var(--k-gold) !important; color: #000 !important; border: 0 !important; }
.btn-secondary, .btn-outline { background: transparent !important; color: var(--k-gold) !important; border: 1px solid var(--k-gold) !important; }
.btn-ghost { background: transparent !important; color: var(--k-gold) !important; border: 0 !important; }
.btn:active:not([disabled]) { transform: scale(.98) !important; }
.btn[disabled], .btn:disabled { background: #262626 !important; color: #666666 !important; border-color: #262626 !important; opacity: 1 !important; filter: none !important; }

/* الحقول */
.input { background: var(--k-bg) !important; border: 1px solid var(--k-border) !important; border-radius: 12px !important; color: var(--k-t1) !important; min-height: 48px; font-size: 14px !important; }
.input:focus { border-color: var(--k-gold) !important; box-shadow: 0 0 0 3px rgba(212,175,55,.15) !important; }
.field { margin-bottom: 16px; }
.field + .field { margin-top: 0; }

/* الأيقونات: خطية موحّدة */
.ql-ic, .list-icon, .use-ic, .empty-icon { background: #1A1A1A !important; border: 1px solid var(--k-border) !important; color: var(--k-gold) !important; box-shadow: none !important; border-radius: 12px !important; }
.ql-ic svg, .list-icon svg, .nav-item svg { stroke-width: 1.75 !important; }

/* الشارات */
.badge, .pill { border-radius: 100px !important; }
.badge-success { background: rgba(34,197,94,.12) !important; color: var(--k-success) !important; border: 1px solid rgba(34,197,94,.25) !important; }
.badge-warning { background: rgba(245,158,11,.12) !important; color: var(--k-warning) !important; }
.badge-error, .badge-danger { background: rgba(239,68,68,.12) !important; color: var(--k-error) !important; }
.pill.active { background: var(--k-gold) !important; color: #000 !important; }

/* 1) الرئيسية: البطاقة الذهبية أصغر 30% + 24px قبل المتاجر */
.home-hero, .dash-hero, .hero-card { padding: 16px !important; min-height: 0 !important; }
.home-hero h3, .dash-hero h3, .hero-card h3 { font-size: 18px !important; margin-bottom: 4px !important; }
.home-hero p, .dash-hero p, .hero-card p { font-size: 13px !important; margin-bottom: 10px !important; }
.home-hero .btn, .dash-hero .btn, .hero-card .btn { height: 40px !important; min-height: 40px; }
.input-wrap:has(#homeQ) { margin-bottom: 24px !important; }

/* 2) المتاجر: فلاتر بتمرير أفقي + صور 1:1 */
.pills, .pm-chips { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 8px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.pills::-webkit-scrollbar, .pm-chips::-webkit-scrollbar { display: none; }
.pill, .pm-chip { flex: 0 0 auto !important; white-space: nowrap; }
.m-card-img { aspect-ratio: 1 / 1 !important; overflow: hidden; }
.m-card-img img, .m-card-bg { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* 4) صندوق التحذير الرسمي */
.neon-warn { background: #1A0A0A !important; border: 1px solid rgba(239,68,68,.55) !important; border-radius: 12px !important; box-shadow: none !important; padding: 12px 16px !important; animation: none !important; }
.neon-warn-title { display: flex !important; align-items: center; gap: 8px; color: var(--k-error) !important; font-size: 14px !important; font-weight: 700 !important; text-shadow: none !important; margin-bottom: 6px; }
.neon-warn-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.neon-warn p { color: var(--k-t2) !important; font-size: 13px !important; margin: 2px 0 !important; text-shadow: none !important; }

/* 5) الإعدادات: لا شيء يختفي خلف كبسولة المحفظة والشريط السفلي */
#view { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
.settings-page { padding-bottom: 24px; }

/* الحركات */
.page-enter { animation: k-page var(--k-page) both !important; }
.page-enter > * { animation: none !important; }
@keyframes k-page { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card, .m-card, .ql, .prow, .list-row, .sec-tile { transition: transform var(--k-fast), border-color var(--k-fast) !important; }
@media (hover: hover) { .ql:hover, .m-card:hover, .prow:hover, .sec-tile:hover { border-color: rgba(212,175,55,.45) !important; transform: none !important; } }
.bottom-nav { background: rgba(10,10,10,.92) !important; border-top: 1px solid var(--k-border) !important; }
.nav-item.active { color: var(--k-gold) !important; }
.nav-item::before { background: rgba(212,175,55,.12) !important; box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .page-enter { animation: none !important; } }
/* البطاقة الذهبية في الرئيسية: أصغر ~30% */
.hero-bn { padding: 16px 18px !important; min-height: 0 !important; border-radius: 16px !important; }
.hero-bn h3 { font-size: 18px !important; margin-bottom: 4px !important; }
.hero-bn p { font-size: 13px !important; margin-bottom: 10px !important; line-height: 1.6 !important; }
.hero-bn .btn { height: 40px !important; min-height: 40px; }
.hero-bn .hero-orb { transform: scale(.7); transform-origin: left center; opacity: .6; }
