body { background: var(--primary-ground); }
.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }
.topbar { padding: 18px 18px 10px; display: flex; align-items: center; gap: 12px; }
.topbar .title { font-family: var(--display); font-weight: 600; font-size: 19px; flex: 1; }
.pad { padding: 0 18px; }

.hero { background: var(--primary-deep); color: #fff; border-radius: 0 0 34px 34px; padding: 48px 20px 70px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .logo { width: 78px; height: 78px; border-radius: 24px; color: var(--primary-deep); }
.hero .logo svg { width: 46px; height: 46px; }
.hero h1 { color: #fff; font-size: 28px; }
.login-card { margin: -44px 18px 0; background: #fff; border-radius: 24px; padding: 24px 20px; box-shadow: 0 10px 30px rgba(15,27,45,.08); display: flex; flex-direction: column; gap: 16px; }

.balance { margin: 4px 18px 0; background: var(--primary-soft); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.balance .amt { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--primary-deep); }
.balance .amt small { font-size: 15px; font-weight: 500; }

.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 18px 12px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.quick span.i { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }

.list-item { background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.prod { background: #fff; border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line-soft); }
#list.stack { gap: 14px; }
.prod .ph { width: 60px; height: 70px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-deep); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; text-align: center; padding: 4px; }
.prod.kind-abacus .ph { background: var(--accent-soft); color: var(--warn-ink); }
.prod.kind-certificate .ph { background: var(--violet-soft); color: var(--violet); }

.dock { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px rgba(15,27,45,.08); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); z-index: 10; }
.dock-in { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

.nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(76px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-soft); z-index: 10; }
.nav-in { max-width: 520px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; height: 76px; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); text-decoration: none; min-width: 60px; }
.nav a.on { color: var(--primary); font-weight: 600; }
.nav a.fab { width: 56px; height: 56px; border-radius: 19px; background: var(--primary); color: #fff; margin-top: -26px; justify-content: center; box-shadow: 0 8px 18px rgba(14,128,121,.35); min-width: 0; }

.entry { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.entry:last-child { border-bottom: 0; }
.entry .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; }
.ic.debit { background: var(--danger-soft); color: var(--danger); }
.ic.credit { background: var(--ok-soft); color: var(--ok); }
.ic.wait { background: var(--accent-soft); color: var(--warn-ink); }

.prod .ph.img { padding: 0; overflow: hidden; position: relative; cursor: pointer; background: #eef1f0; }
.prod .ph.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod .ph.img .cnt { position: absolute; bottom: 3px; left: 3px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; border-radius: 8px; padding: 0 5px; font-family: var(--font); }

/* طلب جديد: العدد + حساب السطر، والإجمالي فوق (نفس شكل لوحة التحكم) */
.qty input::placeholder { font-weight: 300; color: #9aa4ad; font-size: 12px; }
.qty input { width: 86px; }
.oline-total { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 10px; background: var(--primary-ground); color: var(--muted); font-weight: 700; font-size: 15px; padding: 0 8px; white-space: nowrap; }
.oline-total.has { background: var(--ok-soft); color: var(--ok); }
.ototal { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--primary-soft); border: 1.5px solid var(--primary); flex-wrap: wrap; }
.ototal b { font-family: var(--display); font-size: 26px; margin: 0 6px; color: var(--primary-dark); }
/* عيناتي */
.smp-card { border: 2px solid #F9A8D4; background: #FFF0F6; }
.szrow { display: flex; flex-wrap: wrap; gap: 6px; }
.szc { display: inline-flex; flex-direction: column; align-items: center; min-width: 40px; padding: 4px 6px; border-radius: 10px; background: #FCE7F3; color: #9D174D; font-size: 12px; font-weight: 700; }
.szc b { font-size: 17px; }
.trpick { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.trpick .list-item { width: 100%; border: 1px solid var(--line); background: var(--card, #fff); cursor: pointer; font: inherit; }
.trpick .list-item.on { border: 2px solid var(--brand, #0F766E); background: #E6F6F4; }
.szin { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.szin .f span { font-size: 13px; font-weight: 700; }

/* ملفي في البطولة */
.cf-card { border: 2px solid #A5B4FC; background: #EEF2FF; }
.cf-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#1D4ED8,#7C3AED); } .cf-head b { font-size: 20px; } .cf-head span { font-size: 13px; opacity: .9; }
.cf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cfs { border-radius: 14px; padding: 8px; color: #fff; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -8px rgba(15,23,42,.5); } .cfs span { display: block; font-size: 11.5px; font-weight: 700; } .cfs b { font-size: 22px; font-weight: 900; }
.c-sky { background: linear-gradient(135deg,#38BDF8,#0284C7); } .c-pink { background: linear-gradient(135deg,#F472B6,#DB2777); } .c-ind { background: linear-gradient(135deg,#818CF8,#4338CA); } .c-amb { background: linear-gradient(135deg,#FBBF24,#D97706); }
.c-teal { background: linear-gradient(135deg,#2DD4BF,#0F766E); } .c-red { background: linear-gradient(135deg,#F87171,#B91C1C); } .c-sl { background: linear-gradient(135deg,#94A3B8,#475569); } .c-rose { background: linear-gradient(135deg,#FB7185,#BE123C); }
.c-navy { background: linear-gradient(135deg,#60A5FA,#1E3A8A); } .c-grn { background: linear-gradient(135deg,#4ADE80,#15803D); }
.cf-ok { background: #DCFCE7; border: 1.5px solid #22C55E; }
.cf-tbl { width: 100%; border-collapse: collapse; font-size: 13px; } .cf-tbl th, .cf-tbl td { border: 1px solid #E2E8F0; padding: 5px 4px; text-align: center; } .cf-tbl th { background: #EEF2FF; color: #3730A3; } .cf-tbl td:first-child { text-align: right; white-space: nowrap; }
.cf-tbl tr.r-smp td { background: #FFFBEB; } .cf-tbl tr.r-snd td { background: #F0FDFA; } .cf-tbl tr.r-sold td { background: #FEE2E2; } .cf-tbl .neg { color: #B91C1C; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.cf-acc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .cf-acc div { border-radius: 14px; padding: 8px; text-align: center; border: 2px solid; } .cf-acc span { display: block; font-size: 12px; font-weight: 700; } .cf-acc b { font-size: 18px; font-weight: 900; }
.cf-acc .a-due { background: #FEF9C3; border-color: #EAB308; color: #713F12; } .cf-acc .a-paid { background: #DCFCE7; border-color: #22C55E; color: #14532D; } .cf-acc .a-bal { background: #FEE2E2; border-color: #EF4444; color: #7F1D1D; }
.cf-gov { margin: 6px 0 0; padding: 6px 12px; border-radius: 10px; background: #F5F3FF; border-inline-start: 4px solid #7C3AED; font-size: 15px; }

/* جدول حساب المدرب */
.acct{border-radius:16px;overflow:hidden;border:2px solid #C7D2FE;background:#fff;box-shadow:0 8px 22px -14px rgba(79,70,229,.55)}
.acct table{width:100%;border-collapse:collapse;margin:0}
.acct thead th{background:linear-gradient(135deg,#4F46E5,#7C3AED);color:#fff;font-weight:800;font-size:13px;padding:9px 12px;text-align:right;border:0}
.acct thead th:not(:first-child){text-align:center;width:22%}
.acct tbody td{padding:8px 12px;border:0;border-bottom:1px solid #EEF2FF;font-size:13.5px;text-align:right}
.acct tbody td.num{text-align:center;font-weight:800}
.acct tbody tr:nth-child(even) td{background:#FAFAFF}
.acct .ic{display:inline-block;width:26px;text-align:center}
.acct .dt{font-size:11.5px;color:#64748B;margin-inline-start:26px}
.acct .gv{font-size:11px;background:#EEF2FF;color:#4338CA;border-radius:6px;padding:0 6px}
.acct .minus{color:#15803D}
.acct tr.k-surplus td{background:#FFF1F2 !important} .acct tr.k-siblings td{background:#F0FDF4 !important} .acct tr.k-other td{background:#F8FAFC !important}
.acct tfoot td{padding:9px 12px;font-weight:900;font-size:15px;border:0;text-align:right}
.acct tfoot td.num{text-align:center;font-size:17px}
.acct .t-due td{background:#FEF9C3;color:#713F12;border-top:2px solid #EAB308}
.acct .t-paid td{background:#DCFCE7;color:#14532D}
.acct .t-bal td{background:#F1F5F9;color:#334155} .acct .t-bal.owe td{background:#FEE2E2;color:#7F1D1D}
.acct .t-pend td{background:#FFF7ED;color:#9A3412;font-size:13px}

/* حساب المدرب: مربعات طولية */
.acct2{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
.acct2 .ab{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:4px;text-align:center;min-height:150px;padding:10px 6px;border-radius:16px;border:2px solid #C7D2FE;background:linear-gradient(180deg,#EEF2FF,#fff)}
.acct2 .ab .ic{font-size:24px;line-height:1}
.acct2 .ab .lb{font-weight:800;font-size:13px;color:#1E1B4B;line-height:1.3}
.acct2 .ab .gv{font-size:10.5px;background:#E0E7FF;color:#4338CA;border-radius:6px;padding:0 6px}
.acct2 .ab .q{font-size:11.5px;color:#475569;font-weight:700}
.acct2 .ab .q b{font-size:15px;color:#0F172A}
.acct2 .ab .am{font-size:19px;font-weight:900;color:#1E1B4B;border-top:1.5px dashed #C7D2FE;padding-top:4px;width:100%}
.acct2 .ab .dt{font-size:10.5px;color:#64748B;line-height:1.35}
.acct2 .ab.k-siblings{border-color:#86EFAC;background:linear-gradient(180deg,#DCFCE7,#fff)} .acct2 .ab.k-siblings .am{color:#15803D}
.acct2 .ab.k-surplus{border-color:#FDA4AF;background:linear-gradient(180deg,#FFE4E6,#fff)} .acct2 .ab.k-shirts{border-color:#A5B4FC}
.acct2 .ab.k-items{border-color:#F9A8D4;background:linear-gradient(180deg,#FCE7F3,#fff)} .acct2 .ab.k-companions{border-color:#99F6E4;background:linear-gradient(180deg,#CCFBF1,#fff)}
.acct2 .ab.k-card_trainer,.acct2 .ab.k-card_assistant{border-color:#CBD5E1;background:linear-gradient(180deg,#F1F5F9,#fff)} .acct2 .ab.k-other{border-color:#E2E8F0;background:#F8FAFC}
.acct3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.acct3 div{border-radius:16px;padding:10px 6px;text-align:center;border:2px solid;min-height:84px;display:flex;flex-direction:column;justify-content:center} .acct3 span{font-size:13px;font-weight:800} .acct3 b{font-size:22px;font-weight:900}
.acct3 .t-due{background:#FEF9C3;border-color:#EAB308;color:#713F12} .acct3 .t-paid{background:#DCFCE7;border-color:#22C55E;color:#14532D} .acct3 .t-bal{background:#F1F5F9;border-color:#CBD5E1;color:#334155} .acct3 .t-bal.owe{background:#FEE2E2;border-color:#EF4444;color:#7F1D1D}
.acct-pend{margin-top:6px;text-align:center;font-size:12.5px;font-weight:700;color:#9A3412;background:#FFF7ED;border-radius:10px;padding:5px}
.acct2{grid-template-columns:repeat(3,1fr);gap:6px} .acct2 .ab{min-height:140px;padding:8px 4px} .acct2 .ab .am{font-size:16px} .acct3 b{font-size:18px}

/* اختيار صورة الإيصال بتلميح عربي خفيف بدل نص المتصفح */
.filepick { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border: 1.5px dashed var(--line, #D5E3E3); border-radius: 16px; background: var(--primary-ground, #F4F9F9); cursor: pointer; }
.filepick .fp-txt { color: #9AA8B2; font-weight: 400; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick.has { border-style: solid; }
.filepick.has .fp-txt { color: var(--ink); font-weight: 600; }
/* أيقونة في الرئيسية للعرض بس (مش بتتضغط) */
.quick .q-off { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; cursor: default; }

/* أيقونات الرئيسية: درجات متناسقة من الفيروزي للبنفسجي، أيقونة بيضا وظل خفيف بنفس اللون */
.quick { background: #fff; border-radius: 22px; margin: 14px 14px 18px; padding: 16px 8px 14px; box-shadow: 0 10px 28px -18px rgba(13, 80, 90, .45); }
.quick span.i { width: 54px; height: 54px; border-radius: 18px; color: #fff; position: relative; box-shadow: 0 10px 16px -10px var(--qc), inset 0 1px 0 rgba(255,255,255,.35); background: linear-gradient(145deg, var(--qa), var(--qc)); }
.quick span.i svg { width: 26px; height: 26px; }
.quick span.i.q1 { --qa: #2CC5B8; --qc: #0E9488; }
.quick span.i.q2 { --qa: #35BFD6; --qc: #1291B4; }
.quick span.i.q3 { --qa: #4FA8F0; --qc: #2378D8; }
.quick span.i.q4 { --qa: #7591F4; --qc: #4A62DC; }
.quick span.i.q5 { --qa: #9A86F5; --qc: #6D55DC; }
.quick a, .quick .q-off { color: #23404A; font-weight: 700; }
.quick a:active span.i { transform: scale(.94); }

/* ============ شكل تطبيق المدرب: تدرج فيروزي ← أزرق ← بنفسجي على خلفية هادية ============ */
:root { --ink-2: #1B2B45; --shadow-card: 0 14px 34px -22px rgba(31, 60, 120, .45); }
html, body { background: #F2F6FB; }
body { background: radial-gradient(900px 420px at 100% -80px, var(--bg-a) 0%, transparent 70%), radial-gradient(800px 420px at -10% 10%, var(--bg-b) 0%, transparent 65%), #F2F6FB; background-attachment: fixed; color: var(--ink-2); }
.shell { padding-bottom: 112px; }
.topbar { padding: 20px 18px 12px; }
.topbar .title { font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.icon-btn { background: #fff; box-shadow: var(--shadow-card); border-radius: 15px; color: #33507A; }
.topbar .badge { background: #fff; box-shadow: 0 4px 12px -8px rgba(31,60,120,.5); }

/* الكروت */
.card, .list-item, .prod, .login-card { border: 0; border-radius: 22px; box-shadow: var(--shadow-card); }
.list-item { padding: 15px 16px; }
h2 { font-size: 17px; font-weight: 700; color: var(--ink-2); }

/* الأزرار */
.btn { min-height: 48px; border-radius: 16px; font-weight: 700; background: var(--g-brand); box-shadow: 0 12px 20px -14px var(--g-shadow); transition: transform .12s ease, filter .12s ease; }
.btn:hover { background: var(--g-brand); filter: brightness(1.05); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: #fff; color: #24406E; border: 1.5px solid #DCE5F3; box-shadow: none; }
.btn.ghost:hover { background: #fff; border-color: var(--g-ring); color: var(--g-mid); filter: none; }
.btn.danger { background: #fff; box-shadow: none; }
.btn.ok { background: linear-gradient(135deg, #1FB981, #0E8F7E); }
.btn.sm { min-height: 36px; border-radius: 12px; }
.btn:focus-visible, .in:focus-visible, .chip:focus-visible, .nav a:focus-visible { outline: 3px solid var(--g-ring); outline-offset: 2px; }

/* الحقول */
.in, select.in, textarea.in { min-height: 50px; border-radius: 16px; border: 1.5px solid #DFE7F2; background: #F8FAFE; }
.in:focus { outline: 0; border-color: var(--g-mid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-mid) 16%, transparent); background: #fff; }
.f { font-weight: 600; color: #2A3D5E; }

/* التبويبات والشرائح */
.seg { background: #E4EBF6; padding: 5px; border-radius: 18px; }
.seg a, .seg button { min-height: 44px; border-radius: 14px; color: #4A5C7C; font-weight: 600; }
.seg a.on, .seg button.on { background: var(--g-brand); color: #fff; font-weight: 700; box-shadow: 0 10px 16px -12px var(--g-shadow); }
.chip { border: 0; background: #fff; box-shadow: 0 6px 14px -10px rgba(31,60,120,.55); font-weight: 600; color: #2A3D5E; }
.chip.on { background: var(--g-brand); color: #fff; }
.chip .n { background: rgba(255,255,255,.9); color: #24406E; }

/* كارت الرصيد في الرئيسية */
.balance { position: relative; overflow: hidden; margin: 6px 16px 0; padding: 22px 20px 20px; border-radius: 28px; background: var(--g-brand); color: #fff; box-shadow: 0 22px 36px -24px var(--g-shadow); gap: 12px; }
.balance::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; inset-inline-end: -70px; top: -110px; background: rgba(255,255,255,.14); }
.balance::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; inset-inline-start: -50px; bottom: -80px; background: rgba(255,255,255,.10); }
.balance > * { position: relative; z-index: 1; }
.balance .muted { color: rgba(255,255,255,.86); font-weight: 500; }
.balance .amt { color: #fff; font-size: 40px; letter-spacing: -.5px; }
.balance .amt small { color: rgba(255,255,255,.85); }
.balance .btn { background: #fff; color: var(--g-ink); box-shadow: 0 10px 18px -12px rgba(0,0,0,.4); }
.balance .btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }
.balance .btn.ghost:hover { background: rgba(255,255,255,.24); color: #fff; border-color: #fff; }

/* كشف الحساب */
.acc-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 28px; background: var(--g-brand); color: #fff; box-shadow: 0 22px 36px -24px var(--g-shadow); }
.acc-hero::before { content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; inset-inline-end: -80px; top: -120px; background: rgba(255,255,255,.14); }
.acc-hero > * { position: relative; z-index: 1; }
.acc-hero .lbl { color: rgba(255,255,255,.88); font-weight: 500; }
.acc-hero .amt { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1.15; letter-spacing: -.5px; }
.acc-hero .amt small { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.85); }
.acc-hero .btn { background: #fff; color: var(--g-ink); margin-top: 4px; box-shadow: 0 10px 18px -12px rgba(0,0,0,.4); }
.acc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-two div { background: rgba(255,255,255,.16); border-radius: 16px; padding: 9px 12px; display: flex; flex-direction: column; }
.acc-two span { font-size: 12.5px; color: rgba(255,255,255,.85); }
.acc-two b { font-family: var(--display); font-size: 18px; }
.acc-list h3 { font-size: 16px; font-weight: 700; }
.entry { padding: 14px 0; border-bottom: 1px solid #EEF2F8; }
.entry .ic { width: 42px; height: 42px; border-radius: 14px; font-size: 18px; }
.ic.debit { background: #FFE9EC; color: #D03A55; }
.ic.credit { background: #DFF7EE; color: #0E9A6E; }
.ic.wait { background: #FFF1D9; color: #B26A00; }
.entry b { font-weight: 600; color: var(--ink-2); }

/* الشريط السفلي */
.nav { height: auto; background: transparent; border: 0; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.nav-in { pointer-events: auto; height: 68px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 24px; box-shadow: 0 18px 34px -18px rgba(31,60,120,.55), 0 0 0 1px rgba(223,231,242,.9); }
.nav a { color: #7C8BA5; font-weight: 500; }
.nav a.on { color: var(--g-mid); font-weight: 700; }
.nav a.fab { width: 58px; height: 58px; border-radius: 20px; background: var(--g-brand); margin-top: -30px; box-shadow: 0 14px 22px -10px var(--g-shadow), 0 0 0 5px #F2F6FB; }
.dock { border-radius: 26px 26px 0 0; box-shadow: 0 -14px 30px -18px rgba(31,60,120,.5); }

/* صفحة الدخول */
.hero { background: var(--g-brand); border-radius: 0 0 40px 40px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-end: -90px; top: -120px; background: rgba(255,255,255,.14); }
.hero > * { position: relative; }
.hero .logo { color: var(--g-mid); box-shadow: 0 16px 26px -16px rgba(0,0,0,.5); }

/* الطلب الجديد */
.prod .ph { background: var(--g-soft); color: var(--g-ink); border-radius: 16px; }
.oline-total.has { background: #DFF7EE; color: #0E8F68; }
.ototal { background: var(--g-soft); border: 0; border-radius: 20px; }
.ototal b { color: var(--g-ink); }
.note { border-radius: 16px; }
.note.info { background: #E6F0FC; color: #1F4E86; }
.modal { border-radius: 28px; }
.modal h2 { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.entry .small.num { white-space: nowrap; }
.entry > .stack { flex: none; }
.login-card { position: relative; z-index: 2; }

/* مجموعات الألوان */
:root { --g-brand: linear-gradient(135deg, #12B5A6 0%, #1E8FD0 52%, #6B5BE0 100%); --g-soft: linear-gradient(135deg, #E3F6F4 0%, #E8F4FA 55%, #EDEBFB 100%); --g-mid: #1C84BF; --g-ink: #135981; --g-shadow: #1A7EB7; --bg-a: #D9F3F1; --bg-b: #EAE8FB; --g-ring: #9ACDEA; --q1a: #46C5BA; --q1c: #109F92; --q2a: #4BB6CA; --q2c: #158FA5; --q3a: #50A8DA; --q3c: #1A7EB7; --q4a: #6E93E1; --q4c: #3C67BE; --q5a: #8C7FE7; --q5c: #5E50C5; } /* بحر */
html[data-pal="2"] { --g-brand: linear-gradient(135deg, #FF8A4C 0%, #F0437E 52%, #8A3FE0 100%); --g-soft: linear-gradient(135deg, #FFF1EA 0%, #FEECF2 55%, #F1E8FB 100%); --g-mid: #DD3E74; --g-ink: #952A4E; --g-shadow: #D33B6F; --bg-a: #FFECE2; --bg-b: #EFE4FB; --g-ring: #F8AAC5; --q1a: #FFA473; --q1c: #E07943; --q2a: #F98887; --q2c: #DA5A59; --q3a: #F36C9A; --q3c: #D33B6F; --q4a: #CC6BC1; --q4c: #A6399A; --q5a: #A469E7; --q5c: #7937C5; } /* غروب */
html[data-pal="3"] { --g-brand: linear-gradient(135deg, #6D4AE8 0%, #B13FE0 52%, #F0478A 100%); --g-soft: linear-gradient(135deg, #EDE9FC 0%, #F7ECFC 55%, #FDE9F1 100%); --g-mid: #A33ACE; --g-ink: #6E278B; --g-shadow: #9C37C5; --bg-a: #E8E2FB; --bg-b: #FDE5EF; --g-ring: #DCA9F1; --q1a: #8D72ED; --q1c: #6041CC; --q2a: #A86EEA; --q2c: #7E3CC9; --q3a: #C269E7; --q3c: #9C37C5; --q4a: #DB6CC5; --q4c: #B73B9F; --q5a: #F36FA4; --q5c: #D33E79; } /* بنفسجي ووردي */
html[data-pal="4"] { --g-brand: linear-gradient(135deg, #0B9A7A 0%, #4FB05A 52%, #E3A21A 100%); --g-soft: linear-gradient(135deg, #E2F3EF 0%, #EDF7EE 55%, #FCF4E4 100%); --g-mid: #49A253; --g-ink: #316D38; --g-shadow: #469B4F; --bg-a: #D8EFEA; --bg-b: #FBF2DF; --g-ring: #B0DBB5; --q1a: #41B097; --q1c: #0A886B; --q2a: #5BB98B; --q2c: #28915D; --q3a: #76C17E; --q3c: #469B4F; --q4a: #AFBC65; --q4c: #879533; --q5a: #E9B64C; --q5c: #C88F17; } /* زمردي وذهبي */
html[data-pal="5"] { --g-brand: linear-gradient(135deg, #1F2F8F 0%, #3566E0 52%, #1FB6D6 100%); --g-soft: linear-gradient(135deg, #E4E6F2 0%, #EBF0FC 55%, #E4F6FA 100%); --g-mid: #315ECE; --g-ink: #213F8B; --g-shadow: #2F5AC5; --bg-a: #DBDEED; --bg-b: #E0F5F9; --g-ring: #A4BAF1; --q1a: #505DA8; --q1c: #1B297E; --q2a: #5972C7; --q2c: #2542A1; --q3a: #6188E7; --q3c: #2F5AC5; --q4a: #59A7E3; --q4c: #257DC1; --q5a: #50C6DF; --q5c: #1BA0BC; } /* ليلي */
html[data-pal="6"] { --g-brand: linear-gradient(135deg, #E8455F 0%, #F2743E 52%, #F2A53B 100%); --g-soft: linear-gradient(135deg, #FCE9EC 0%, #FEF1EC 55%, #FDF4E7 100%); --g-mid: #DF6B39; --g-ink: #964826; --g-shadow: #D56637; --bg-a: #FBE1E5; --bg-b: #FDF2E4; --g-ring: #F9C0A8; --q1a: #ED6E82; --q1c: #CC3D54; --q2a: #F18075; --q2c: #D15145; --q3a: #F59368; --q3c: #D56637; --q4a: #F5A667; --q4c: #D57C35; --q5a: #F5B966; --q5c: #D59134; } /* مرجاني */
html[data-pal="7"] { --g-brand: linear-gradient(135deg, #D6336C 0%, #7A4FE0 52%, #2BA6E8 100%); --g-soft: linear-gradient(135deg, #FAE7ED 0%, #F2EDFC 55%, #E6F4FC 100%); --g-mid: #7049CE; --g-ink: #4C318B; --g-shadow: #6B46C5; --bg-a: #F8DEE7; --bg-b: #E1F3FC; --g-ring: #C3B0F1; --q1a: #DF608C; --q1c: #BC2D5F; --q2a: #BB6BBA; --q2c: #943992; --q3a: #9776E7; --q3c: #6B46C5; --q4a: #7898EA; --q4c: #496CC9; --q5a: #5ABAED; --q5c: #2692CC; } /* توت وسماوي */
html[data-pal="8"] { --g-brand: linear-gradient(135deg, #10B39B 0%, #3CC47A 52%, #A6CF3C 100%); --g-soft: linear-gradient(135deg, #E2F6F3 0%, #ECF9F2 55%, #F4F9E8 100%); --g-mid: #37B470; --g-ink: #257A4C; --g-shadow: #35AC6B; --bg-a: #D9F3EF; --bg-b: #F3F8E4; --g-ring: #A7E4C3; --q1a: #45C4B1; --q1c: #0E9E88; --q2a: #56CAA4; --q2c: #21A57A; --q3a: #67D197; --q3c: #35AC6B; --q4a: #90D57F; --q4c: #63B150; --q5a: #BADA67; --q5c: #92B635; } /* نعناع وليموني */
html[data-pal="9"] { --g-brand: linear-gradient(135deg, #FF6FA5 0%, #F0528F 52%, #C455D8 100%); --g-soft: linear-gradient(135deg, #FFEEF4 0%, #FEEEF4 55%, #F8EBFA 100%); --g-mid: #DD4B84; --g-ink: #953359; --g-shadow: #D3487E; --bg-a: #FFE8F1; --bg-b: #F7E7FA; --g-ring: #F8B1CD; --q1a: #FF8FB9; --q1c: #E06291; --q2a: #F983B0; --q2c: #DA5588; --q3a: #F378A8; --q3c: #D3487E; --q4a: #E279C4; --q4c: #C0499E; --q5a: #D17AE1; --q5c: #AC4BBE; } /* وردي */
html[data-pal="10"] { --g-brand: linear-gradient(135deg, #A77BF3 0%, #8A78F0 52%, #62A4F2 100%); --g-soft: linear-gradient(135deg, #F4EFFE 0%, #F3F2FE 55%, #ECF4FD 100%); --g-mid: #7F6EDD; --g-ink: #564A95; --g-shadow: #796AD3; --bg-a: #F1EAFD; --bg-b: #E9F2FD; --g-ring: #CAC2F8; --q1a: #BA98F6; --q1c: #936CD6; --q2a: #AF97F4; --q2c: #866BD5; --q3a: #A496F3; --q3c: #796AD3; --q4a: #94A7F4; --q4c: #687DD4; --q5a: #85B8F5; --q5c: #5690D5; } /* لافندر */
html[data-pal="11"] { --g-brand: linear-gradient(135deg, #FF8E7A 0%, #FA6384 52%, #E85BB0 100%); --g-soft: linear-gradient(135deg, #FFF1EF 0%, #FEEFF3 55%, #FCEBF6 100%); --g-mid: #E65B79; --g-ink: #9B3D52; --g-shadow: #DC5774; --bg-a: #FFEDEA; --bg-b: #FCE8F4; --g-ring: #FDB9C8; --q1a: #FFA797; --q1c: #E07D6B; --q2a: #FD969B; --q2c: #DE6A70; --q3a: #FB859F; --q3c: #DC5774; --q4a: #F482B0; --q4c: #D45488; --q5a: #ED7FC1; --q5c: #CC509B; } /* خوخي ووردي */
html[data-pal="12"] { --g-brand: linear-gradient(135deg, #E83E8C 0%, #C13FC9 52%, #7C4DE6 100%); --g-soft: linear-gradient(135deg, #FCE8F1 0%, #F9ECFA 55%, #EFEAFC 100%); --g-mid: #B23AB9; --g-ink: #78277D; --g-shadow: #AA37B1; --bg-a: #FBE0ED; --bg-b: #EDE6FC; --g-ring: #E3A9E7; --q1a: #ED68A5; --q1c: #CC377B; --q2a: #DE69BD; --q2c: #BB3796; --q3a: #CF69D5; --q3c: #AA37B1; --q4a: #B46FE0; --q4c: #8B3EBE; --q5a: #9974EC; --q5c: #6D44CA; } /* فوشيا وبنفسجي */
.quick span.i.q1 { --qa: var(--q1a); --qc: var(--q1c); } .quick span.i.q2 { --qa: var(--q2a); --qc: var(--q2c); } .quick span.i.q3 { --qa: var(--q3a); --qc: var(--q3c); } .quick span.i.q4 { --qa: var(--q4a); --qc: var(--q4c); } .quick span.i.q5 { --qa: var(--q5a); --qc: var(--q5c); }
.note.info { background: color-mix(in srgb, var(--g-mid) 12%, #fff); color: var(--g-ink); }
a { color: var(--g-mid); }

/* اختيار لون التطبيق */
.palgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.pal { border: 0; background: transparent; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; font: inherit; color: #3A4B68; }
.pal .sw { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 8px 14px -10px rgba(31,60,120,.7), 0 0 0 3px #fff, 0 0 0 4px #E3E9F3; }
.pal.on .sw { box-shadow: 0 8px 14px -10px rgba(31,60,120,.7), 0 0 0 3px #fff, 0 0 0 6px var(--g-mid); }
.pal .nm { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.pal.on .nm { color: var(--g-ink); font-weight: 700; }

/* تصميمات بتتبدل ورا كارت الرصيد: الصورة في الخلفية وفوقها طبقة غامقة خفيفة عشان الرصيد والأزرار يفضلوا واضحين */
.balance .bn { position: absolute; inset: 0; z-index: 0; }
.balance .bn span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.balance .bn span.on { opacity: 1; }
.balance.has-bn::before { z-index: 1; inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(180deg, rgba(12,22,44,.30) 0%, rgba(12,22,44,.46) 55%, rgba(12,22,44,.62) 100%); }
.balance.has-bn::after { display: none; }
.balance.has-bn > *:not(.bn) { z-index: 2; }
.balance.has-bn .muted, .balance.has-bn .amt { text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.balance.has-bn .btn.ghost { background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.balance.has-bn { min-height: 214px; justify-content: flex-end; }
.balance .bn-dots { position: absolute; top: 12px; inset-inline-start: 16px; display: flex; gap: 5px; }
.balance .bn-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .3s; }
.balance .bn-dots i.on { width: 16px; border-radius: 4px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .balance .bn span { transition: none; } }
