/* ============================================================
   «شكرًا معلماتي» — الواجهة (فوق tokens.css)
   ============================================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.mono { direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 11px; padding: 9px 17px; font: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: .16s; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: #b9cdda; background: var(--tint); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.p { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(46,127,184,.28); }
.btn.p:hover { filter: brightness(1.06); background: var(--grad); }
.btn.d { color: var(--dan); border-color: #f0cccc; }
.btn.d:hover { background: var(--dan-bg); }
.btn.g { color: var(--ok); border-color: #bfe3d1; }
.btn.g:hover { background: var(--ok-bg); }
.btn.sm { padding: 6px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.lg { padding: 13px 30px; font-size: 16px; border-radius: 13px; }
.btn.blk { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.btn.ico { padding: 7px; width: 36px; height: 36px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 20px 22px; }

/* الحقول */
label.f { display: block; margin-bottom: 14px; }
label.f > span, .f-l { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
label.f em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-inline-start: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 13px; transition: .15s;
}
textarea { resize: vertical; line-height: 1.9; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 4px rgba(46,127,184,.12); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.row-sb { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: -6px; }
.count { font-size: 12.5px; color: var(--ink-3); }
.count.warn { color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

.msg { border-radius: 11px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.msg.dan { background: var(--dan-bg); color: var(--dan); border: 1px solid #f0cccc; }
.msg.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3d1; }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px;
  font-size: 12.5px; font-weight: 600; background: var(--tint); color: var(--ink-2); border: 1px solid var(--line); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe3d1; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: #edd9b0; }
.chip.dan { background: var(--dan-bg); color: var(--dan); border-color: #f0cccc; }
.chip.info { background: var(--info-bg); color: var(--info); border-color: #c6ddef; }
.chip.gold { background: #fbf4e6; color: #8a6420; border-color: #ead8b3; }

/* ============ صفحة أولياء الأمور ============ */
.band { background: var(--deep); color: #fff; }
.band-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.band-logo { height: 44px; width: auto; }
.band-t { display: flex; flex-direction: column; line-height: 1.5; border-inline-start: 1px solid rgba(255,255,255,.22); padding-inline-start: 14px; }
.band-t b { font-size: 15.5px; }
.band-t span { font-size: 12.5px; opacity: .78; }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-deco { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(63,157,109,.14), transparent 70%),
    radial-gradient(560px 300px at 6% 100%, rgba(46,127,184,.14), transparent 70%); }
.hero-deco::before, .hero-deco::after { content: ''; position: absolute; width: 74px; height: 74px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23b8893a' stroke-width='1.4'%3E%3Crect x='9' y='9' width='22' height='22'/%3E%3Crect x='9' y='9' width='22' height='22' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  animation: spin 40s linear infinite; }
.hero-deco::before { top: 26px; inset-inline-start: 7%; }
.hero-deco::after { bottom: 20px; inset-inline-end: 8%; width: 52px; height: 52px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-in { position: relative; text-align: center; padding-block: 34px 30px; }
.ribbon { display: inline-block; font-size: 13px; font-weight: 600; color: #8a6420; background: #fbf4e6; border: 1px solid #ead8b3; border-radius: 999px; padding: 3px 14px; }
.hero h1 { font: 700 clamp(44px, 9vw, 76px)/1.25 var(--disp); margin: 10px 0 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 0 auto; color: var(--ink-2); font-size: 16px; }

.main { padding-block: 26px 40px; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.form { padding: 8px 24px 24px; }
.step { padding-block: 18px 6px; border-bottom: 1px dashed var(--line-2); margin-bottom: 8px; }
.step:last-of-type { border-bottom: 0; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-h i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(46,127,184,.25); }
.step-h h2 { margin: 0; font-size: 17px; }

.ideas { margin-top: 10px; }
.ideas-t { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--g2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ideas-l { display: grid; gap: 8px; margin-top: 8px; }
.idea { text-align: start; background: var(--tint); border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px;
  font: inherit; font-family: var(--serif); font-size: 15.5px; line-height: 1.7; color: var(--ink); cursor: pointer; transition: .15s; }
.idea:hover { border-color: var(--g1); background: #f1faf5; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .15s; }
.pill:hover { border-color: #b9cdda; }
.pill[aria-checked="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }

.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.th { position: relative; border: 2px solid transparent; border-radius: 12px; padding: 0; background: none; cursor: pointer; transition: .18s; }
.th img { display: block; width: 100%; aspect-ratio: 4/5; border-radius: 10px; box-shadow: var(--sh-1); }
.th span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 5px; text-align: center; }
.th:hover img { transform: translateY(-2px); }
.th[aria-checked="true"] { border-color: var(--g2); background: var(--info-bg); }
.th[aria-checked="true"]::after { content: ''; position: absolute; top: 6px; inset-inline-start: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--g2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }

.preview { position: sticky; top: 18px; }
.preview-l { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; text-align: center; }
#pv .sc { box-shadow: var(--sh-3); }

.closed, .done { max-width: 640px; margin: 0 auto; text-align: center; padding: 32px 26px; }
.closed h2, .done h2 { font: 700 30px/1.4 var(--disp); margin: 0 0 6px; color: var(--deep); }
.done p, .closed p { color: var(--ink-2); margin: 0 0 18px; }
.done-ic { width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.done-ic svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done-card { max-width: 360px; margin: 0 auto 18px; }
.done-card .sc { box-shadow: var(--sh-3); animation: rise .8s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: translateY(24px) rotate(-2deg); opacity: 0; } }
.done-a { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.foot { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 8px 18px 26px; }

@media (max-width: 960px) {
  .compose { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; max-width: 300px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .form { padding: 4px 16px 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .band-logo { height: 36px; }
  .row-sb .hint { display: none; }
  .row-sb { justify-content: flex-end; }
}
@media (max-width: 560px) { .hero-deco::before, .hero-deco::after { opacity: .22; } }
