/* كوول تايم · محفظة الفنيين */
:root {
  --navy: #0B2545;
  --navy-2: #163A66;
  --navy-line: #1B3A63;
  --blue: #1565D8;
  --blue-d: #0B4DAF;
  --blue-50: #E7F0FD;
  --bg: #F3F7FB;
  --card: #FFFFFF;
  --line: #E3EAF2;
  --line-2: #D8E2EE;
  --text: #0B2545;
  --text-2: #3D4F66;
  --muted: #5B6B80;
  --muted-2: #8696AA;
  --ice: #B9D3F2;
  --green: #0F7B4F;
  --green-50: #E6F4EE;
  --red: #B42318;
  --red-50: #FDECEC;
  --amber: #B45309;
  --amber-t: #8A4B0B;
  --amber-50: #FEF3E2;
  --wa: #128C4A;
  --badge: #D9480F;
  --shadow: 0 2px 8px rgba(11, 37, 69, .06);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, .10);
  --r: 20px;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.amber { color: var(--amber); }
[hidden] { display: none !important; }

/* ---------- تخطيط عام ---------- */
.layout { min-height: 100dvh; }
.main {
  padding: 22px 18px calc(120px + var(--safe-b));
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head .title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-head h1 { font-size: 21px; font-weight: 800; line-height: 1.35; }
.page-head .sub { font-size: 13px; color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 46px; height: 46px; border-radius: 15px; border: 0;
  background: var(--card); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; box-shadow: var(--shadow); flex-shrink: 0;
}
.icon-btn.danger, .icon-btn.logout { background: var(--red-50); color: var(--red); box-shadow: none; }
.icon-btn.logout:hover { background: #F9D7D7; color: var(--red); }
.sess-alert {
  position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; z-index: 45;
  max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--red); color: var(--red); border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(180, 35, 24, .22);
}
.sess-alert .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sess-alert b { font-size: 14px; }
.sess-alert span { font-size: 12px; color: var(--text-2); }
.sess-alert .btn { height: 40px; font-size: 13px; white-space: nowrap; }
.sess-alert .x { border: 0; background: transparent; color: var(--muted); width: 36px; height: 40px; display: flex; align-items: center; justify-content: center; }
.icon-btn .count {
  position: absolute; top: -5px; left: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--badge); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.avatar {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  background: var(--blue-50); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.avatar.dark { background: var(--navy); color: #fff; }
.avatar.blue { background: var(--blue); color: #fff; }
.avatar.red { background: var(--red-50); color: var(--red); }
.avatar.sm { width: 42px; height: 42px; border-radius: 14px; font-size: 14px; }

/* ---------- كروت ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 4px 16px; }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.section-head h2 { font-size: 17px; font-weight: 800; }
.section-head a { font-size: 13px; font-weight: 700; }

.hero {
  background: var(--navy); color: #fff; border-radius: 26px; padding: 22px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
}
.hero > * { position: relative; }
.hero .flake { position: absolute; left: -46px; bottom: -54px; width: 180px; height: 180px; color: var(--navy-line); }
.hero .label { font-size: 14px; color: var(--ice); display: flex; align-items: center; gap: 8px; }
.hero .big { font-size: 40px; font-weight: 800; line-height: 1.25; color: #fff; }
.hero .cur { font-size: 16px; font-weight: 600; color: var(--ice); margin-inline-start: 6px; }
.hero .hint { font-size: 12px; color: var(--ice); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini {
  background: var(--navy-2); border-radius: 14px; padding: 10px 12px; color: #fff;
  display: flex; flex-direction: column;
}
.mini span:first-child { font-size: 11px; color: var(--ice); }
.mini b { font-size: 19px; font-weight: 800; }
a.mini:hover { color: #fff; background: #1d4677; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-btn {
  height: 50px; border-radius: 15px; border: 0; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hero-btn.light { background: #fff; color: var(--navy); }
.hero-btn.dim { background: var(--navy-2); color: #fff; }
.hero-btn:hover { filter: brightness(.97); }
.hero-btn.dim:hover { color: #fff; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 20px; font-weight: 800; }
.stat.dark { background: var(--navy); color: #fff; box-shadow: none; }
.stat.dark span { color: var(--ice); }

.cols, .cols > div { display: flex; flex-direction: column; gap: 18px; }

/* ---------- قوائم ---------- */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid #EEF2F7; color: var(--text);
}
.row:last-child { border-bottom: 0; }
a.row:hover { color: var(--text); background: #FAFCFE; }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .t { font-size: 14px; font-weight: 700; }
.row .s { font-size: 12px; color: var(--text-2); }
.row .d { font-size: 12px; color: var(--muted); }
.row .amt { font-size: 15px; font-weight: 800; white-space: nowrap; }
.row .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tx-ic { width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tx-ic.in { background: var(--green-50); color: var(--green); }
.tx-ic.out { background: var(--red-50); color: var(--red); }
.tx-ic.wait { background: var(--amber-50); color: var(--amber); }
.tx-ic.info { background: var(--blue-50); color: var(--blue); }
.tag { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 8px; white-space: nowrap; }
.tag.wait { background: var(--amber-50); color: var(--amber-t); }
.tag.ok { background: var(--green-50); color: var(--green); }
.tag.no { background: var(--red-50); color: var(--red); }
.tag.off { background: #EEF2F7; color: var(--muted); }
.link-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--text); }
.link-row:hover { color: var(--text); background: #FAFCFE; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 12px; color: var(--muted); font-size: 14px; text-align: center; }
.loading { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: bounce .9s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- أزرار ونماذج ---------- */
.btn {
  height: 52px; border-radius: 15px; border: 0; padding: 0 18px;
  font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter .15s, transform .05s;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-lg { height: 56px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { color: #fff; filter: brightness(1.15); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { color: #fff; filter: brightness(1.08); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); }
.btn-soft-danger { background: var(--red-50); color: var(--red); }
.btn-ghost { background: #fff; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: #FAFCFE; color: var(--text); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { color: #fff; filter: brightness(1.08); }
.btn-sm { height: 44px; font-size: 14px; border-radius: 12px; padding: 0 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input-wrap { position: relative; }
.input, .select, .textarea {
  width: 100%; height: 52px; border: 1.5px solid var(--line-2); border-radius: 14px;
  padding: 0 16px; font-size: 16px; background: #fff; color: var(--text); text-align: right;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 84px; font-size: 15px; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-left: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235B6B80' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: left 14px center; background-repeat: no-repeat; font-weight: 700; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 101, 216, .15); }
.input.with-ic { padding-right: 46px; }
.input.with-end { padding-left: 52px; }
.input-wrap .ic { position: absolute; right: 15px; top: 15px; color: var(--muted); pointer-events: none; }
.input-wrap .end { position: absolute; left: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.input.bad { border-color: var(--red); }
.input.good { border-color: var(--green); }
.help { font-size: 13px; font-weight: 600; }
.alert { border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; line-height: 1.6; display: flex; gap: 8px; align-items: flex-start; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert.err { background: var(--red-50); color: var(--red); }
.alert.warn { background: var(--amber-50); color: var(--amber-t); }
.alert.info { background: var(--blue-50); color: #0F4CA3; }
.alert.ok { background: var(--green-50); color: var(--green); }

.amount-card { display: flex; flex-direction: column; gap: 12px; }
.amount-card .label { color: var(--muted); text-align: center; }
.amount-line { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.amount-input {
  width: 210px; max-width: 70%; border: 0; border-bottom: 2px solid var(--line-2); background: transparent;
  font-size: 44px; font-weight: 800; text-align: center; padding: 0; color: var(--text); border-radius: 0;
}
.amount-input:focus { outline: none; border-bottom-color: var(--blue); }
.amount-line .cur { font-size: 18px; font-weight: 700; color: var(--muted); }
.quick button { height: 44px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #FAFCFE; font-size: 14px; font-weight: 700; }
.quick button:hover { border-color: var(--blue); }
.after { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.after b { font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2);
  background: #fff; font-size: 14px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }

.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; background: #E6EDF6; padding: 5px; border-radius: 16px; }
.seg button { height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #fff; color: var(--text); font-weight: 800; box-shadow: 0 2px 6px rgba(11, 37, 69, .10); }

.picker { background: #fff; border-radius: 18px; max-height: 270px; overflow-y: auto; padding: 4px 6px; box-shadow: var(--shadow); }
.pick { width: 100%; border: 0; background: transparent; border-radius: 14px; padding: 8px 10px; display: flex; align-items: center; gap: 12px; text-align: right; min-height: 58px; }
.pick:hover { background: #F6F9FD; }
.pick[aria-selected="true"] { background: #EEF4FD; }
.pick .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C9D5E3; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.pick[aria-selected="true"] .radio { background: var(--blue); border-color: var(--blue); }

.switch { width: 56px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.switch span { width: 50px; height: 30px; border-radius: 15px; background: #C9D5E3; position: relative; display: block; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: right .2s; }
.switch[aria-checked="true"] span { background: var(--blue); }
.switch[aria-checked="true"] span::after { right: 23px; }

.kv { margin: 0; background: var(--bg); border-radius: 16px; padding: 4px 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 800; text-align: left; }

.banner { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); border: 1.5px solid var(--blue-50); }
.banner .b-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--blue-50); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.banner .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.banner .t { font-size: 14px; font-weight: 800; }
.banner .s { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- القايمة السفلية (موبايل) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: #fff; border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 24px rgba(11, 37, 69, .08);
  display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-items: start;
  padding: 8px 6px calc(10px + var(--safe-b));
}
.bottom-nav a {
  height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.bottom-nav a .ic { position: relative; display: flex; }
.bottom-nav a .count { position: absolute; top: -6px; left: -11px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--badge); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.bottom-nav a .dot { width: 5px; height: 5px; border-radius: 50%; }
.bottom-nav a[aria-current="page"] { color: var(--blue); font-weight: 800; }
.bottom-nav a[aria-current="page"] .dot { background: var(--blue); }
.bottom-nav a.center { justify-content: flex-end; gap: 4px; color: var(--blue); font-weight: 800; }
.bottom-nav a.center .fab {
  width: 64px; height: 64px; margin-top: -40px; border-radius: 22px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; border: 5px solid var(--bg);
  box-shadow: 0 12px 24px rgba(21, 101, 216, .38);
}

/* ---------- نافذة ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; background: rgba(11, 37, 69, 0);
  display: flex; align-items: flex-end; justify-content: center; transition: background .18s;
}
.sheet-wrap.open { background: rgba(11, 37, 69, .55); }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto;
  background: #fff; border-radius: 30px 30px 0 0; padding: 26px 22px calc(24px + var(--safe-b));
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(30px); opacity: 0; transition: transform .18s, opacity .18s;
}
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet-title { font-size: 20px; font-weight: 800; text-align: center; }
.sheet-text { font-size: 15px; color: var(--text-2); text-align: center; line-height: 1.8; }
.done { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.done-ic.success { background: var(--green-50); color: var(--green); }
.done-ic.wait { background: var(--amber-50); color: var(--amber); }
.done-actions { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(11, 37, 69, .25); opacity: 0; pointer-events: none; transition: .2s; z-index: 60;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

/* ---------- الدخول ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-brand {
  background: var(--navy); color: #fff; padding: 52px 28px 96px; border-radius: 0 0 36px 36px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.auth-brand .flake { position: absolute; left: -60px; top: -40px; width: 230px; height: 230px; color: var(--navy-line); }
.logo { width: 72px; height: 72px; border-radius: 22px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; position: relative; }
.brand-name { font-size: 28px; font-weight: 800; line-height: 1.3; position: relative; }
.brand-en { font-size: 13px; font-weight: 600; color: #9EC5F5; letter-spacing: 3px; direction: ltr; position: relative; }
.brand-copy { display: none; }
.auth-panel { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 0 18px 24px; margin-top: -64px; position: relative; max-width: 480px; width: 100%; margin-inline: auto; }
.auth-card { background: #fff; border-radius: 28px; padding: 26px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 22px; font-weight: 800; line-height: 1.5; }
.auth-card .lead { font-size: 14px; color: var(--muted); }
.auth-alt { text-align: center; font-size: 15px; color: var(--muted); }
.auth-alt a { font-weight: 800; }
.auth-foot { margin-top: auto; text-align: center; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.auth-foot span { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.steps .n { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.steps .n.done { background: var(--green); color: #fff; }
.steps .n.now { background: var(--amber-50); color: var(--amber); border: 2px solid var(--amber); }
.steps .n.next { background: #EEF3F9; color: var(--muted); }

.install-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); border: 1.5px dashed #9EC5F5; }
.install-card .b-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-card .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.install-card .t { font-size: 15px; font-weight: 800; }
.install-card .s { font-size: 12px; color: var(--muted); line-height: 1.6; }
.install-card .s svg { vertical-align: -3px; }

/* ---------- الطباعة / التقرير ---------- */
.print-page { background: #fff; max-width: 900px; margin: 0 auto; padding: 32px; color: #000; }
.print-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 16px; }
.print-head .brand { display: flex; align-items: center; gap: 10px; }
.print-head .logo { width: 48px; height: 48px; border-radius: 14px; }
.print-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.print-sum div { border: 1px solid #ccd6e2; border-radius: 10px; padding: 8px 10px; }
.print-sum span { font-size: 12px; color: #555; display: block; }
.print-sum b { font-size: 17px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th { background: var(--navy); color: #fff; padding: 8px; text-align: right; }
.ptable td { padding: 7px 8px; border-bottom: 1px solid #e3e8ef; }
.ptable tr:nth-child(even) td { background: #f6f8fb; }
.print-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.tscroll { overflow-x: auto; }
@media print {
  .print-actions { display: none !important; }
  body { background: #fff; }
  .print-page { padding: 0; }
  .ptable th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 14mm; }
}

/* ---------- كمبيوتر وتابلت ---------- */
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
  .bottom-nav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh;
    background: var(--navy); color: #fff; padding: 26px 18px; overflow-y: auto;
  }
  .side-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; }
  .side-brand .logo { width: 48px; height: 48px; border-radius: 15px; }
  .side-brand b { font-size: 20px; display: block; line-height: 1.2; }
  .side-brand small { color: #9EC5F5; letter-spacing: 2px; font-size: 11px; }
  .side-send { margin: 6px 0 14px; height: 54px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px rgba(21, 101, 216, .35); }
  .side-send:hover { color: #fff; background: #1a6ff0; }
  .side-link { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 14px; color: #C9DCF5; font-size: 15px; font-weight: 600; }
  .side-link:hover { background: var(--navy-2); color: #fff; }
  .side-link[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 800; }
  .side-link .count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--badge); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; background: var(--navy-2); border-radius: 16px; padding: 10px; }
  .side-user .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .side-user b { font-size: 14px; }
  .side-user small { color: var(--ice); font-size: 12px; }
  .side-user .icon-btn { width: 42px; height: 42px; background: #3A1F2B; color: #FFB4B4; box-shadow: none; }
  .main { max-width: 1120px; width: 100%; padding: 32px 36px 48px; gap: 22px; }
  .main.narrow { max-width: 720px; }
  .hide-desk { display: none !important; }
  .cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
  .cols > div { display: flex; flex-direction: column; gap: 18px; }
  .toast { bottom: 32px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 26px; padding: 28px; }
  .hero .big { font-size: 46px; }

  .auth { flex-direction: row; }
  .auth-brand { flex: 1; border-radius: 0; justify-content: center; padding: 48px; }
  .auth-brand .flake { width: 460px; height: 460px; left: -120px; top: auto; bottom: -120px; }
  .brand-copy { display: block; max-width: 380px; color: var(--ice); font-size: 16px; line-height: 1.9; position: relative; margin-top: 8px; }
  .auth-panel { flex: 1; margin: 0; max-width: none; justify-content: center; align-items: center; padding: 40px; }
  .auth-panel > * { width: 100%; max-width: 440px; }
  .auth-foot { margin-top: 12px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .hide-mobile { display: none !important; }
}
@media (max-width: 360px) {
  .hero .big { font-size: 34px; }
  .amount-input { font-size: 38px; }
  .mini b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
