/* هوية تختة */
:root {
  --green: #1F4D3A; --green-dark: #163829; --green-soft: #E3EDE7;
  --yellow: #F2B632; --yellow-soft: #FCEFC9; --yellow-ink: #6B4A00;
  --wood: #8A5A3B; --wood-soft: #EFE3D9;
  --chalk: #F7F3EA; --ink: #1C2421; --muted: #5B635F; --line: #E4DED1;
  --red: #B4441F; --red-soft: #F6E1D8; --red-ink: #8E3414; --ok: #2E7D4F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--ink); font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: var(--green); }
h1, h2, h3, .display { font-family: 'Lalezar', 'IBM Plex Sans Arabic', sans-serif; font-weight: 400; line-height: 1.3; margin: 0; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.2rem; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.topbar { background: var(--green); color: var(--chalk); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--green); display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: 'Lalezar', sans-serif; font-size: 1.8rem; line-height: 1; }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.topnav a, .topnav button { color: var(--chalk); text-decoration: none; padding: 8px 12px; border-radius: 10px; font: inherit; font-size: .95rem; background: none; border: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.topnav a:hover, .topnav button:hover { background: rgba(247,243,234,.12); }
.topnav .pill { background: var(--yellow); color: var(--ink); font-weight: 700; }

main { padding: 20px 0 48px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; }
.card.hero { background: var(--green); color: var(--chalk); border: none; }
.card.warn { background: var(--yellow-soft); border-color: transparent; color: var(--yellow-ink); }
.card.alert { background: var(--red-soft); border-color: transparent; color: var(--red-ink); }
.card.ok { background: var(--green-soft); border-color: transparent; color: var(--green-dark); }
.stat { text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 6px; }
.stat b { display: block; font-size: 1.4rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; border: none; border-radius: 14px; padding: 12px 20px; min-height: 48px; cursor: pointer; text-decoration: none; background: var(--yellow); color: var(--ink); }
.btn.green { background: var(--green); color: var(--chalk); }
.btn.ghost { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.btn.quiet { background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.btn.danger { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.btn.sm { padding: 8px 14px; min-height: 40px; font-size: .9rem; border-radius: 10px; }
.btn.block { width: 100%; }

.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; background: var(--chalk); color: var(--muted); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.chip.red { background: var(--red-soft); color: var(--red-ink); }

form.stack label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
textarea { min-height: 90px; }
fieldset { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; }
form.stack label.check { display: block; font-weight: 400; }
form.stack label.check input { display: inline-block; vertical-align: middle; margin: 0 0 0 8px; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); }
.two { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.flash { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.flash.ok { background: var(--green-soft); color: var(--green-dark); }
.flash.err { background: var(--red-soft); color: var(--red-ink); }

.teacher-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.price { text-align: center; font-weight: 700; }
.stars { color: var(--wood); font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid #EFEAE0; vertical-align: middle; }
th { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }

.bar { height: 8px; border-radius: 999px; background: #EFEAE0; }
.bar > span { display: block; height: 8px; border-radius: 999px; background: var(--green); }

.hero-band { background: var(--green); color: var(--chalk); padding: 36px 0 44px; }
.hero-band h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); }
.hero-band p { font-size: 1.1rem; opacity: .92; max-width: 34rem; }
footer { background: var(--ink); color: #D9DEDB; padding: 20px 0; font-size: .9rem; }
footer a { color: #D9DEDB; }

@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  h1 { font-size: 1.6rem; }
}
td:first-child, td:last-child { white-space: nowrap; }
