/* مُستخرَج من student-home.html (كتلة <style> رقم 1، الجزء 1 من 2) — منقولٌ حرفيّاً، وموضعُ وسمَي الجزأين في الصفحة هو موضعُ الكتلة نفسُه (ترتيبُ التتالي كما كان). */
  /* ═══════════════════════════════════════
     أساسيات
  ═══════════════════════════════════════ */
  * { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
  body { font-family: 'Cairo', sans-serif; background: linear-gradient(180deg, #0B1F14 0%, #000 100%); color: #fff; min-height: 100svh; overflow-x: hidden; }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(circle at top right, rgba(52,211,153,.12), transparent 28%),
      radial-gradient(circle at top left, rgba(250,204,21,.08), transparent 24%);
    pointer-events: none;
    z-index: 0;
  }
  .student-top-actions { display:flex; align-items:center; gap:8px; }
  .student-top-btn {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:10px 12px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
    color:rgba(255,255,255,.84);
    font-size:12px;
    font-weight:800;
    font-family:'Cairo',sans-serif;
    cursor:pointer;
    transition:all .2s ease;
  }
  .student-top-btn:hover { background:rgba(255,255,255,.08); border-color:rgba(34,197,94,.3); color:#fff; }
  .student-top-btn.danger { color:#fecaca; border-color:rgba(248,113,113,.18); background:rgba(127,29,29,.16); }
  .student-top-btn.danger:hover { border-color:rgba(248,113,113,.35); background:rgba(127,29,29,.24); }
  .quran { font-family: 'Amiri Quran', serif; }
  .glass { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .student-shell-main { position: relative; z-index: 1; }
  .student-shell-main::before {
    content: '';
    position: absolute;
    inset: 18px 0 auto;
    height: 240px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,.05);
    pointer-events: none;
  }

  /* ═══════════════════════════════════════
     شريط التنقل العلوي
  ═══════════════════════════════════════ */
  #mode-bar { position: fixed; top: 0; inset-inline: 0; z-index: 50; box-shadow: 0 20px 45px -35px rgba(0,0,0,.65); }

  /* ═══════════════════════════════════════
     ميكروفون متحرك
  ═══════════════════════════════════════ */
  .mic-wave { display:flex; align-items:flex-end; gap:3px; height:32px; }
  .mic-bar  { width:5px; background:#22c55e; border-radius:99px; transform-origin:bottom; animation: wave 1.3s infinite ease-in-out; }
  .mic-bar:nth-child(1){height:35%;animation-delay:0s}
  .mic-bar:nth-child(2){height:65%;animation-delay:.15s}
  .mic-bar:nth-child(3){height:90%;animation-delay:.3s}
  .mic-bar:nth-child(4){height:60%;animation-delay:.2s}
  .mic-bar:nth-child(5){height:40%;animation-delay:.1s}
  @keyframes wave{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
  .mic-bar.muted { background:#ef4444; animation:none; transform:scaleY(.25); }



  /* ═══════════════════════════════════════
     بطاقات الشيخ
  ═══════════════════════════════════════ */
  .sheikh-card { cursor:pointer; transition: all .2s; border:2px solid transparent; }
  .sheikh-card:hover { border-color: rgba(34,197,94,.3); background: #0f1e12; transform: translateY(-2px); }
  .sheikh-card.selected { border-color: #22c55e; background: rgba(34,197,94,.08); }

  .tasmi-stage {
    background:
      radial-gradient(circle at top, rgba(34,197,94,.14), transparent 48%),
      linear-gradient(180deg, rgba(5,9,8,.96), rgba(7,16,9,.98));
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,.05);
    padding: 18px;
    box-shadow: 0 30px 80px -42px rgba(0,0,0,.72);
  }
  .tasmi-hero {
    background:
      linear-gradient(135deg, rgba(34,197,94,.09), rgba(34,197,94,0) 58%),
      #0a140a;
  }
  .tasmi-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
  }
  .sheikh-card .sheikh-icon-wrap { transition: transform .2s ease, background .2s ease; }
  .sheikh-card:hover .sheikh-icon-wrap,
  .sheikh-card.selected .sheikh-icon-wrap {
    transform: scale(1.05);
    background: rgba(34,197,94,.18);
  }
  .sheikh-check {
    opacity: 0;
    transform: scale(.85);
    transition: all .2s ease;
  }
  .sheikh-card.selected .sheikh-check {
    opacity: 1;
    transform: scale(1);
  }
  .verse-panel {
    background:
      linear-gradient(180deg, rgba(10,20,10,.96), rgba(6,15,6,.98)),
      #060f06;
  }
  .verse-screen {
    background:
      linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
      #081108;
    border: 1px solid rgba(34,197,94,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }
  .verse-panel > .flex > p:first-child { display: none; }
  .verse-placeholder {
    color: rgba(255,255,255,.34);
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
  }
  .child-shell { display:grid; gap:16px; }
  .child-card {
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color:#0f172a;
    padding:28px 24px;
    box-shadow: 0 8px 40px 0 rgba(22,163,74,.13);
  }
  #child-welcome-card {
    position: relative;
    overflow: hidden;
    padding: 32px 24px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 8px 40px 0 rgba(22,163,74,.13);
  }
  #child-welcome-card::after {
    content: '';
    position: absolute;
    inset: auto -42px -48px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(34,197,94,.12), transparent 70%);
    pointer-events: none;
  }
  #child-welcome-card.child-start-voice-only #child-plan-summary,
  #child-welcome-card.child-start-voice-only #today-task-box,
  #child-welcome-card.child-start-voice-only #child-lesson-note,
  #child-welcome-card.child-start-voice-only #restart-surah-btn {
    display: none !important;
  }
  #child-welcome-card.child-start-voice-only #child-greeting {
    margin-bottom: 8px;
  }
  #child-welcome-card.child-start-voice-only #child-lesson-title {
    margin-bottom: 18px;
  }
  #child-lesson-note {
    max-width: 36rem;
    margin-inline: auto;
  }
  .child-plan-summary {
    display: grid;
    gap: 10px;
    max-width: 42rem;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(34,197,94,.12);
    box-shadow: 0 18px 40px -30px rgba(15,23,42,.28);
  }
  .child-plan-summary.is-error {
    background: #fff7f7;
    border-color: rgba(239,68,68,.18);
  }
  .child-plan-title { font-size: 15px; font-weight: 900; color: #0f172a; }
  .child-plan-meta { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
  .child-plan-chip {
    display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px;
    background:#f0fdf4; border:1px solid rgba(34,197,94,.12); color:#166534; font-size:12px; font-weight:800;
  }
  .child-plan-status { font-size: 13px; color: #475569; font-weight: 700; }
  .child-stage {
    background:
      radial-gradient(circle at 50% 24%, rgba(34,197,94,.18), transparent 42%),
      #030806;
    border:1px solid rgba(34,197,94,.14);
    border-radius:30px;
    padding:22px 18px;
  }
  .child-stage .quran { color:#f8fafc; }
  .child-verse-card { background:#fff; color:#0f172a; border-color:rgba(34,197,94,.18); box-shadow:0 22px 60px -34px rgba(15,23,42,.45); }
  .child-verse-card .quran { color:#0f172a; }
  .child-hidden { display:none !important; }
  .child-timer {
    width:84px; height:84px; border-radius:999px; border:4px solid rgba(34,197,94,.2);
    display:grid; place-items:center; font-weight:900; color:#22c55e; background:#061006;
  }
  .child-big-btn {
    width:100%; border:none; border-radius:24px; background:#22c55e; color:#052e10;
    font-size:22px; font-weight:900; padding:18px 20px; font-family:'Cairo',sans-serif; cursor:pointer;
  }
  .child-big-btn.is-guided {
    animation: childStartPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(34,197,94,.45);
  }
  .child-big-btn.is-guided::after {
    content: '↓ نضغط هنا';
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #14532d;
    animation: childGuideBob 1.1s ease-in-out infinite;
  }
  .child-big-btn:disabled { opacity:.65; cursor:wait; }
  @keyframes childStartPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 14px rgba(34,197,94,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  }
  @keyframes childGuideBob {
    0%, 100% { transform: translateY(0); opacity: .95; }
    50% { transform: translateY(-4px); opacity: 1; }
  }
  .child-star {
    width:110px; height:110px; border-radius:32px; display:grid; place-items:center;
    margin:0 auto 14px; background:linear-gradient(180deg,#fde68a,#fbbf24); color:#7c2d12;
    box-shadow:0 24px 60px -28px rgba(251,191,36,.85);
  }
  .child-star svg { width: 48px; height: 48px; }
  .child-stage-stars-track { display:flex; align-items:center; justify-content:center; gap:10px; }
  .child-stage-stars-track svg { width: 24px; height: 24px; transition: transform .2s ease, opacity .2s ease, filter .2s ease; }
  .child-stage-stars-track .is-dim { opacity: .28; transform: scale(.96); filter: saturate(.6); }
  .child-stage-stars-track .is-lit { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 10px 18px rgba(251,191,36,.28)); }
  .child-flying-star {
    position: fixed;
    z-index: 95;
    pointer-events: none;
    width: 26px;
    height: 26px;
    animation: childStarFly 1.35s ease-out forwards;
  }
  .child-flying-star svg { width: 100%; height: 100%; display: block; }
  @keyframes childStarFly {
    0% { opacity: 0; transform: translateY(0) scale(.65) rotate(0deg); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-150px) scale(1.25) rotate(75deg); }
  }
  .child-mic-orb {
    position: relative;
    width: 106px;
    height: 106px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    color: #22c55e;
  }
  .child-mic-orb .ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(34,197,94,.16);
    animation: childMicPulse 1.35s ease-out infinite;
  }
  .child-mic-orb .ring:nth-child(2) { animation-delay: .32s; }
  .child-mic-orb .core {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(34,197,94,.14);
    border: 1px solid rgba(34,197,94,.46);
    box-shadow: 0 0 36px rgba(34,197,94,.28);
  }
  .child-mic-orb svg { width: 34px; height: 34px; }
  @keyframes childMicPulse {
    from { opacity: .82; transform: scale(.78); }
    to { opacity: 0; transform: scale(1.55); }
  }
  .child-voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    margin-top: 6px;
  }
  .child-voice-wave span {
    width: 7px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #86efac, #22c55e);
    box-shadow: 0 0 18px rgba(34, 197, 94, .28);
    animation: child-voice-wave 1.05s ease-in-out infinite;
  }
  .child-voice-wave span:nth-child(2) { height: 28px; animation-delay: .1s; }
  .child-voice-wave span:nth-child(3) { height: 38px; animation-delay: .2s; }
  .child-voice-wave span:nth-child(4) { height: 24px; animation-delay: .3s; }
  .child-voice-wave span:nth-child(5) { height: 34px; animation-delay: .4s; }
  .child-voice-wave span:nth-child(6) { height: 20px; animation-delay: .5s; }
