:root {
  --blue: #1A56C4;
  --blue-dark: #15479f;
  --navy: #143E86;
  --green: #1F7A3A;
  --green-dark: #186332;
  --green-soft: #E8F5E9;
  --green-border: #66BB6A;
  --green-text: #1B5E20;
  --bg: #f3f6fb;
  --text: #1c2430;
  --muted: #5b6573;
  --line: #e6ebf3;
  --card: #fff;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", Tahoma, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
header {
  background: var(--blue);
  color: #fff;
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.header-text { flex: 1; min-width: 0; }
.kicker { margin: 0; font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.8); }
header h1 { margin: .25rem 0 0; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
header h1 a { color: #fff; text-decoration: none; }
.logo {
  width: 4.5rem; height: 4.5rem; flex-shrink: 0;
  border-radius: 1rem; background: #fff; object-fit: cover; padding: .2rem;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.back {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-bottom: .85rem; color: var(--blue); font-weight: 700; text-decoration: none; font-size: .95rem;
}
.card {
  background: var(--card);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(16,24,40,.06);
}
.page-title {
  margin: 0 0 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
}
label { display: block; font-size: .85rem; color: var(--muted); margin: .7rem 0 .3rem; font-weight: 700; }
select, input {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #d5dbe6;
  border-radius: .8rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .2rem; }
.track {
  display: flex; align-items: center; justify-content: center;
  min-height: 3rem; border-radius: .9rem; border: 2px solid var(--green-border);
  background: var(--green-soft); color: var(--green-text); font-weight: 800; cursor: pointer;
}
.track:has(input:checked), .track.selected {
  background: var(--green); color: #fff; border-color: var(--green);
}
.track input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.types { display: grid; gap: .5rem; margin-top: .2rem; }
.type {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem .9rem; border-radius: .9rem;
  border: 2px solid #d5dbe6; background: #fff; font-weight: 800; cursor: pointer;
}
.type:has(input:checked), .type.selected {
  border-color: var(--blue); background: #F3F7FE; color: var(--blue);
}
.type input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 1.1rem; border: 0; border-radius: 1rem;
  min-height: 3.25rem; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--green); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline {
  background: #fff; color: var(--blue); border: 2px solid #BBD3F5; margin-top: .6rem;
}
.btn-outline:hover { background: #F3F7FE; }
.exists, .success, .error {
  border-radius: 1.15rem; padding: 1.15rem; text-align: center; margin-top: .3rem;
}
.exists { background: var(--green-soft); color: var(--green-text); }
.exists .badge { font-size: 1.5rem; font-weight: 800; margin: 0 0 .4rem; }
.success { background: #e8f0fd; color: var(--navy); }
.success h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.error { background: #fdecea; color: #8a1f11; margin-top: .8rem; }
.hidden { display: none !important; }
.hint { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }
/* widget */
#alm-request-bar { background: #fff; border-bottom: 1px solid var(--line); }
#alm-request-bar .inner { max-width: 72rem; margin: 0 auto; padding: .65rem 1rem; }
#alm-request-bar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 3rem; border-radius: 1rem;
  background: var(--green); color: #fff; font-weight: 800; text-decoration: none;
}
#alm-request-bar a:hover { background: var(--green-dark); }

/* app v1.9.24: «المذكرة مش موجودة» before «اطلبها مجاناً» */
.missing-note{margin:.8rem 0 0;padding:.55rem .8rem;border-radius:12px;background:#FFF4E5;color:#8A4B00;font-weight:800;text-align:center}
.missing-note.hidden{display:none}
