/* Dynamic Curriculum Engine — onboarding, subjects, units, lessons.
   Loaded as a plain stylesheet (not through Odoo's RTL flipping), so it
   only uses logical properties (inline-start/end) for direction. */
.fc_cur_page { --c-ink: #1d2b36; --c-ink2: #5b6b76; --c-line: #ece6da; --c-brand: var(--fc2-teal-dark,#1f8a66); --c-brand-l: var(--fc2-tint-soft,#e7f5ef); --c-card: #fff;
  --c-shadow: 0 1px 2px rgba(29,43,54,.05), 0 6px 18px rgba(29,43,54,.06); font-family: 'Tajawal', 'Nunito', sans-serif; color: var(--c-ink); }
.fc_cur_page [hidden] { display: none !important; }
.fc_cur_parent_note { margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: #fff7e0; color: #7a5a00; font-size: 13px; }
.fc_cur_alert { border-radius: 14px; font-size: 14px; }
.fc_cur_empty { padding: 26px 18px; text-align: center; border: 1px dashed #d9d2c3; border-radius: 18px; background: #fffdf8; color: var(--c-ink2); font-size: 14px; }
.fc_cur_empty_small { margin: 6px 0 0; color: var(--c-ink2); font-size: 13px; }

/* ---------- wizard ---------- */
.fc_cur_wizard { display: flex; flex-direction: column; gap: 14px; }
.fc_cur_progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.fc_cur_progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #98a3ab; text-align: center; }
.fc_cur_progress li span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef0ee; color: #7b8790; font-weight: 800; }
.fc_cur_progress li.done { color: var(--c-brand); }
.fc_cur_progress li.done span { background: var(--c-brand); color: #fff; }
.fc_cur_progress { display: none; }
.fc_cur_js .fc_cur_progress { display: flex; }

.fc_cur_step { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 20px; box-shadow: var(--c-shadow); padding: 16px; margin: 0; min-width: 0; animation: fcCurIn .25s ease; }
.fc_cur_step > legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; font-size: inherit; }
.fc_cur_step legend b { display: block; font-size: 16px; font-weight: 800; }
.fc_cur_step legend small { display: block; font-size: 12.5px; color: var(--c-ink2); font-weight: 500; }
.fc_cur_step > legend + * { clear: both; }
.fc_cur_num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--c-brand-l); color: var(--c-brand); font-weight: 800; }
.fc_cur_options { display: grid; gap: 8px; }
.fc_cur_grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc_cur_grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc_cur_list { grid-template-columns: 1fr; }
@media (min-width: 768px) { .fc_cur_list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fc_cur_grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.fc_cur_opt { position: relative; margin: 0; cursor: pointer; }
.fc_cur_opt input { position: absolute; opacity: 0; pointer-events: none; }
.fc_cur_opt_body { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; height: 100%; padding: 10px 8px; border: 1.5px solid #e4e7e3; border-radius: 14px; background: #fafbfa; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.35; transition: border-color .15s, background .15s, transform .1s; }
.fc_cur_country .fc_cur_opt_body { flex-direction: column; gap: 2px; min-height: 74px; }
.fc_cur_flag { font-size: 26px; line-height: 1; }
.fc_cur_system .fc_cur_opt_body { justify-content: flex-start; text-align: start; padding: 12px 14px; }
.fc_cur_system .fc_cur_opt_body > i { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef4f1; color: var(--c-brand); font-size: 17px; }
.fc_cur_opt_text { display: flex; flex-direction: column; }
.fc_cur_opt_text small { font-weight: 500; color: var(--c-ink2); font-size: 12px; }
.fc_cur_track .fc_cur_opt_body > i { color: var(--c-brand); }
.fc_cur_opt:active .fc_cur_opt_body { transform: scale(.98); }
.fc_cur_opt input:checked + .fc_cur_opt_body { border-color: var(--c-brand); background: var(--c-brand-l); color: var(--fc2-teal-ink,#0f5a3f); box-shadow: 0 0 0 3px color-mix(in srgb,var(--fc2-teal-dark,#1f8a66) 12%,transparent); }
.fc_cur_opt input:focus-visible + .fc_cur_opt_body { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.fc_cur_stage + .fc_cur_stage { margin-top: 12px; }
.fc_cur_stage h4 { margin: 0 2px 8px; font-size: 13px; font-weight: 800; color: var(--c-ink2); }

.fc_cur_actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 6px; }
.fc_cur_submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 16px; background: var(--c-brand, var(--fc2-teal, #1f8a66)); color: #fff; font: 800 16px 'Tajawal', sans-serif; box-shadow: 0 8px 20px color-mix(in srgb,var(--fc2-teal-dark,#1f8a66) 25%,transparent); cursor: pointer; }
.fc_cur_submit small { font-weight: 700; opacity: .85; }
.fc_cur_submit:disabled { background: #b9c6c0; box-shadow: none; cursor: not-allowed; }
.fc_cur_skip { text-align: center; color: var(--c-ink2); font-size: 14px; text-decoration: underline; }
@keyframes fcCurIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- subjects ---------- */
.fc_cur_profile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.fc_cur_chip { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-size: 13px; font-weight: 700; }
.fc_cur_chip_strong { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.fc_cur_chip_xp { background: #fff4d6; border-color: #f6dd96; color: #7c5200; }
.fc_cur_change { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--c-brand); text-decoration: none; }
.fc_cur_subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .fc_cur_subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { .fc_cur_subjects { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fc_cur_subject { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--c-shadow); color: var(--c-ink) !important; text-decoration: none !important; transition: transform .15s; }
.fc_cur_subject:hover { transform: translateY(-2px); }
.fc_cur_subject:active { transform: scale(.98); }
.fc_cur_subject b { font-size: 15px; font-weight: 800; line-height: 1.35; }
.fc_cur_subject small { font-size: 12px; color: var(--c-ink2); }
.fc_cur_subject_icon { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--sc); color: #fff; font-size: 20px; box-shadow: 0 6px 14px color-mix(in srgb, var(--sc) 30%, transparent); }
.fc_cur_bar { display: block; height: 6px; border-radius: 9px; background: #eef0ee; overflow: hidden; }
.fc_cur_bar span { display: block; height: 100%; border-radius: inherit; background: var(--sc); }
.fc_cur_soon { color: #a08a5a !important; }
.fc_cur_section_title { margin: 22px 2px 10px; font-size: 17px; font-weight: 800; }
.fc_cur_exam { background: linear-gradient(160deg, #fffaf0, #fff); }

/* ---------- subject detail ---------- */
.fc_cur_back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--c-brand); text-decoration: none; }
.fc_cur_subject_head { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 14px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 70%, #000)); box-shadow: var(--c-shadow); }
.fc_cur_subject_head .fc_cur_subject_icon { background: rgba(255,255,255,.2); box-shadow: none; width: 54px; height: 54px; font-size: 24px; }
.fc_cur_subject_head h2 { margin: 0; color: #fff !important; font-size: 21px; font-weight: 800; }
.fc_cur_subject_head p { margin: 2px 0 0; opacity: .9; font-size: 13px; }
.fc_cur_unit { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; box-shadow: var(--c-shadow); padding: 14px; margin-bottom: 12px; }
.fc_cur_unit header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fc_cur_unit h3 { margin: 0; font-size: 16px; font-weight: 800; }
.fc_cur_term { padding: 3px 10px; border-radius: 999px; background: #f2efe7; font-size: 12px; font-weight: 700; color: var(--c-ink2); white-space: nowrap; }
.fc_cur_lesson { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -4px; border-radius: 14px; color: var(--c-ink) !important; text-decoration: none !important; }
.fc_cur_lesson + .fc_cur_lesson { border-top: 1px solid #f1eee6; }
.fc_cur_lesson:hover { background: #f8faf9; }
.fc_cur_lesson_icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f1f5f3; color: var(--c-brand); font-size: 16px; }
.fc_cur_lesson.done .fc_cur_lesson_icon { background: var(--c-brand); color: #fff; }
.fc_cur_lesson_text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_cur_lesson_text b { font-size: 14.5px; font-weight: 700; }
.fc_cur_lesson_text small { font-size: 12px; color: var(--c-ink2); }
.fc_cur_lesson_state { color: #b4bcc2; }
.fc_cur_lesson.done .fc_cur_lesson_state { color: var(--c-brand); font-size: 18px; }

/* ---------- lesson ---------- */
.fc_cur_lesson_page { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding: 18px; }
.fc_cur_lesson_page header h2 { margin: 6px 0; font-size: 22px; font-weight: 800; line-height: 1.4; }
.fc_cur_lesson_page header p { color: var(--c-ink2); font-size: 14.5px; line-height: 1.8; }
.fc_cur_type { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sc) 12%, #fff); color: var(--sc); font-size: 12px; font-weight: 800; }
.fc_cur_hint { margin: 10px 0 8px; font-size: 13px; color: var(--c-ink2); }
.fc_cur_cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 768px) { .fc_cur_cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc_cur_card { position: relative; margin: 0; min-height: 150px; perspective: 900px; cursor: pointer; }
.fc_cur_card input { position: absolute; opacity: 0; }
.fc_cur_card_inner { position: relative; display: block; height: 100%; min-height: 150px; transition: transform .45s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.fc_cur_card input:checked + .fc_cur_card_inner { transform: rotateY(180deg); }
.fc_cur_card_front, .fc_cur_card_back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; border-radius: 18px; text-align: center; font-size: 16px; font-weight: 700; line-height: 1.6; backface-visibility: hidden; -webkit-backface-visibility: hidden; white-space: pre-line; }
.fc_cur_card_front { background: linear-gradient(150deg, var(--sc), color-mix(in srgb, var(--sc) 70%, #000)); color: #fff; }
.fc_cur_card_front small { position: absolute; top: 10px; inset-inline-start: 12px; font-size: 12px; opacity: .8; }
.fc_cur_card_back { background: #f7faf8; color: var(--c-ink); border: 1.5px solid color-mix(in srgb, var(--sc) 30%, #fff); transform: rotateY(180deg); font-weight: 600; font-size: 15px; }
.fc_cur_video { position: relative; aspect-ratio: 16 / 9; margin: 12px 0 16px; border-radius: 16px; overflow: hidden; background: #000; }
.fc_cur_video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fc_cur_body { margin: 12px 0; font-size: 15.5px; line-height: 1.95; }
.fc_cur_body img { max-width: 100%; height: auto; border-radius: 12px; }
.fc_cur_image { display: block; max-width: 100%; margin: 12px auto; border-radius: 14px; }
.fc_cur_btn_ghost, .fc_cur_btn_next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; margin: 6px 0; border-radius: 14px; font-weight: 800; font-size: 14px; text-decoration: none !important; }
.fc_cur_btn_ghost { border: 1.5px solid var(--c-line); color: var(--c-ink) !important; background: #fff; }
.fc_cur_btn_next { background: var(--c-brand-l); color: var(--c-brand) !important; }
.fc_cur_btn_ghost small { color: var(--c-ink2); font-weight: 500; }
.fc_cur_lesson_footer { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f1eee6; }
.fc_cur_lesson_footer form .fc_cur_submit { width: 100%; }
.fc_cur_done_badge { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; background: var(--c-brand-l); color: var(--c-brand); font-weight: 800; }
.fc_cur_pager { display: flex; justify-content: space-between; gap: 8px; }
.fc_cur_pager .fc_cur_btn_next { margin-inline-start: auto; }
.fc_cur_celebrate { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #fff4d6, var(--fc2-tint-soft,#e7f5ef)); text-align: center; animation: fcCurIn .3s ease; }
.fc_cur_celebrate span { font-size: 34px; }
.fc_cur_celebrate b { font-size: 18px; font-weight: 800; }
.fc_cur_celebrate small { font-weight: 800; color: #7c5200; }
@media (prefers-reduced-motion: reduce) { .fc_cur_card_inner, .fc_cur_step, .fc_cur_celebrate { transition: none; animation: none; } }

/* ---------- resource links (opened at their source) ---------- */
.fc_cur_section_sub { margin: -4px 2px 10px; font-size: 13px; color: var(--c-ink2); }
.fc_cur_links { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }
@media (min-width: 768px) { .fc_cur_links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc_cur_link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--c-shadow); color: var(--c-ink) !important; text-decoration: none !important; }
.fc_cur_link:active { transform: scale(.98); }
.fc_cur_link_icon { flex: 0 0 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: #3e7bd6; }
.fc_cur_link_video .fc_cur_link_icon { background: #e0533d; }
.fc_cur_link_exam .fc_cur_link_icon { background: #e0a21b; }
.fc_cur_link_official .fc_cur_link_icon { background: var(--c-brand); }
.fc_cur_link_text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_cur_link_text b { font-size: 14.5px; font-weight: 800; line-height: 1.45; }
.fc_cur_link_text small { font-size: 12px; color: var(--c-ink2); }
.fc_cur_link_go { color: #b4bcc2; }

.fc_cur_has_links { color: #1f6fd1 !important; font-weight: 700; }

/* ---------- curriculum library (afedni) inside the portal ---------- */
.fc_af { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding: 16px; margin-bottom: 14px; }
.fc_af_head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.fc_af_head p { margin: 2px 0 12px; font-size: 13px; color: var(--c-ink2); }
.fc_af_tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 14px; background: #f1f3f1; border-radius: 14px; }
.fc_af_tabs a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--c-ink2) !important; text-decoration: none !important; }
.fc_af_tabs a.active { background: #fff; color: var(--c-brand) !important; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.fc_af_group + .fc_af_group { margin-top: 14px; }
.fc_af_group h4 { margin: 0 2px 6px; font-size: 14.5px; font-weight: 800; }
.fc_af_group h4 small { padding: 1px 8px; border-radius: 999px; background: #f1f3f1; color: var(--c-ink2); font-size: 11.5px; }
.fc_af_item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 6px; border-radius: 14px; background: #f8faf9; border: 1px solid #eef1ee; color: var(--c-ink) !important; text-decoration: none !important; }
.fc_af_item:active { transform: scale(.99); }
.fc_af_item_text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_af_item_text b { font-size: 14px; font-weight: 700; line-height: 1.5; }
.fc_af_item_text small { font-size: 11.5px; color: var(--c-ink2); }
.fc_af_item > i { color: #b4bcc2; }
.fc_af_credit { margin: 10px 2px 0; font-size: 11.5px; color: var(--c-ink2); }
.fc_af_doc { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding: 16px; }
.fc_af_doc header h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; line-height: 1.5; }
.fc_af_doc header small { color: var(--c-ink2); font-size: 12px; }
.fc_af_doc_h { margin: 18px 2px 8px; font-size: 15px; font-weight: 800; }
.fc_af_doc_h small { padding: 1px 8px; border-radius: 999px; background: #f1f3f1; color: var(--c-ink2); font-size: 11.5px; }
.fc_af_file { margin-bottom: 8px; border: 1px solid #e7ebe8; border-radius: 16px; overflow: hidden; background: #fafbfa; }
.fc_af_file summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 14px; }
.fc_af_file summary::-webkit-details-marker { display: none; }
.fc_af_file summary span { flex: 1; }
.fc_af_file summary i { color: #9aa5ad; transition: transform .2s; }
.fc_af_file[open] summary i { transform: rotate(180deg); }
.fc_af_frame { position: relative; height: 72vh; min-height: 420px; background: #eef0ee; }
.fc_af_frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fc_af_open { display: block; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--c-brand) !important; text-decoration: none !important; }
.fc_af_source { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 12px; color: var(--c-ink2) !important; }

.fc_af_chips { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 12px; padding-bottom: 2px; scrollbar-width: none; }
.fc_af_chips::-webkit-scrollbar { display: none; }
.fc_af_chips a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1px solid #e3e7e4; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--c-ink2) !important; text-decoration: none !important; }
.fc_af_chips a.active { background: var(--c-brand); border-color: var(--c-brand); color: #fff !important; }
.fc_af_chips a small { opacity: .75; }
.fc_af_rec { margin-bottom: 14px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, #fff7e0, var(--fc2-tint-faint,#f1faf5)); border: 1px solid #f3e3b5; }
.fc_af_rec h4 { margin: 0 2px 8px; font-size: 15px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fc_af_rec h4 small { font-size: 11.5px; font-weight: 700; color: #8a6400; background: #fff; border-radius: 999px; padding: 2px 8px; }
.fc_af_rec .fc_af_item { background: #fff; }
.fc_af_item_text small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fc_af_badge { padding: 1px 7px; border-radius: 999px; background: var(--fc2-tint-soft,#e7f5ef); color: var(--c-brand); font-size: 10.5px; font-weight: 800; }
.fc_af_badge_new { background: #e0533d; color: #fff; }
.fc_af_badge_year { background: #eef2ff; color: #3e5bd6; }
.fc_af_item.is_new { border-color: #f5c7bd; }
.fc_af_older { margin-top: 12px; }
.fc_af_older summary { cursor: pointer; padding: 8px 2px; font-size: 13.5px; font-weight: 800; color: var(--c-ink2); list-style: none; }
.fc_af_older summary::-webkit-details-marker { display: none; }
.fc_af_older summary small { padding: 1px 8px; border-radius: 999px; background: #f1f3f1; font-size: 11px; }

/* ---------- المواعيد (appointments) ---------- */
.fc_appt_page { --c-ink: #1d2b36; --c-ink2: #5b6b76; --c-line: #ece6da; --c-brand: var(--fc2-teal-dark,#1f8a66); --c-brand-l: var(--fc2-tint-soft,#e7f5ef);
  --c-shadow: 0 1px 2px rgba(29,43,54,.05), 0 6px 18px rgba(29,43,54,.06); font-family: 'Tajawal', 'Nunito', sans-serif; color: var(--c-ink); }
.fc_appt_add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 0 0 14px; border-radius: 16px; background: var(--c-brand); color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important; box-shadow: 0 8px 20px color-mix(in srgb,var(--fc2-teal-dark,#1f8a66) 25%,transparent); }
.fc_appt_h { margin: 18px 2px 10px; font-size: 17px; font-weight: 800; }
.fc_appt_h small { padding: 1px 8px; border-radius: 999px; background: #f1f3f1; color: var(--c-ink2); font-size: 12px; }
.fc_appt_card { display: flex; gap: 12px; padding: 14px; margin-bottom: 10px; background: #fff; border: 1px solid var(--c-line); border-radius: 20px; box-shadow: var(--c-shadow); border-inline-start: 5px solid var(--c-brand); }
.fc_appt_exam { border-inline-start-color: #e0533d; } .fc_appt_meeting { border-inline-start-color: #3e7bd6; } .fc_appt_lesson { border-inline-start-color: #7a4fd0; } .fc_appt_other { border-inline-start-color: #e0a21b; }
.fc_appt_time { flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; border-radius: 16px; background: #f6f8f7; text-align: center; line-height: 1.2; }
.fc_appt_time b { font-size: 26px; font-weight: 800; color: var(--c-brand); }
.fc_appt_time small { font-size: 11px; color: var(--c-ink2); font-weight: 700; }
.fc_appt_time em { margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--c-ink); }
.fc_appt_body { flex: 1; min-width: 0; }
.fc_appt_body h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; line-height: 1.5; }
.fc_appt_body p { margin: 0 0 4px; font-size: 13px; color: var(--c-ink2); }
.fc_appt_notes { padding: 8px 10px; border-radius: 12px; background: #fffbea; color: #6b5300 !important; white-space: pre-line; }
.fc_appt_actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fc_appt_actions form { margin: 0; }
.fc_appt_btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 12px; border-radius: 12px; border: 1px solid #e3e7e4; background: #fff; color: var(--c-ink) !important; font: 700 13px 'Tajawal', sans-serif; text-decoration: none !important; cursor: pointer; }
.fc_appt_btn_join { background: var(--c-brand); border-color: var(--c-brand); color: #fff !important; }
.fc_appt_btn_wa { background: #25d366; border-color: #25d366; color: #fff !important; }
.fc_appt_btn_cancel { color: #c0392b !important; }
.fc_appt_wa { display: inline-flex; gap: 3px; align-items: center; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: #f1f3f1; }
.fc_appt_wa_sent { background: var(--fc2-tint-soft,#dcf8e6); color: var(--fc2-teal-dark,#128c4b); } .fc_appt_wa_failed { background: #fde3df; color: #c0392b; }
.fc_appt_flash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: var(--fc2-tint-soft,#eaf7f0); border: 1px solid var(--fc2-line-mint,#c9ebd8); font-size: 14px; }
.fc_appt_sound { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: #fff7e0; font-size: 13px; font-weight: 700; }
.fc_appt_sound button { border: 0; border-radius: 10px; padding: 7px 14px; background: #e0a21b; color: #fff; font-weight: 800; }
.fc_appt_past { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 6px; border-radius: 14px; background: #fff; border: 1px solid #eef1ee; font-size: 13.5px; }
.fc_appt_past small { flex: 1 0 100%; color: var(--c-ink2); font-size: 12px; }
.fc_appt_state { font-style: normal; margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: #f1f3f1; }
.fc_appt_state_cancelled { background: #fde3df; color: #c0392b; }
.fc_appt_form { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding: 18px; display: flex; flex-direction: column; }
.fc_appt_form h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.fc_appt_label { margin: 14px 2px 6px; font-weight: 800; font-size: 14px; }
.fc_appt_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fc_appt_chip { position: relative; margin: 0; cursor: pointer; }
.fc_appt_chip input { position: absolute; opacity: 0; pointer-events: none; }
.fc_appt_chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1.5px solid #e4e7e3; border-radius: 14px; background: #fafbfa; font-weight: 700; font-size: 14px; }
.fc_appt_chip input:checked + span { border-color: var(--c-brand); background: var(--c-brand-l); color: var(--fc2-teal-ink,#0f5a3f); }
.fc_appt_row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc_appt_row .fc_appt_dur { grid-column: 1 / -1; }
@media (min-width: 768px) { .fc_appt_row { grid-template-columns: 1fr 1fr 140px; } .fc_appt_row .fc_appt_dur { grid-column: auto; } }
.fc_appt_hint { margin: 4px 2px 0; color: var(--c-ink2); font-size: 12px; }
.fc_appt_note { margin: 16px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--fc2-tint-faint,#f1faf5); font-size: 13px; color: var(--fc2-teal-deep,#145c45); }
/* pop-up alert with sound (all pages) */
.fc_alert_toast { position: fixed; z-index: 1100; inset-inline: 12px; top: calc(70px + env(safe-area-inset-top)); max-width: 440px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; border-radius: 18px; background: #1d2b36; color: #fff !important;
  text-decoration: none !important; box-shadow: 0 14px 40px rgba(0,0,0,.3); animation: fcAlertIn .35s cubic-bezier(.2,.8,.2,1); font-family: 'Tajawal', sans-serif; }
[dir="rtl"] .fc_alert_toast, html[dir="rtl"] .fc_alert_toast { padding: 14px 16px 14px 44px; }
.fc_alert_toast b { font-size: 15px; font-weight: 800; }
.fc_alert_toast small { font-size: 12.5px; opacity: .85; }
.fc_alert_close { position: absolute; top: 8px; inset-inline-end: 10px; border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; }
@keyframes fcAlertIn { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

.fc_appt_phone_box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff4f2; border: 1px solid #f6d3cc; font-size: 13.5px; }
.fc_appt_phone_box > i { color: #25d366; font-size: 20px; }
.fc_appt_phone_box .fc_appt_phone_has { display: none; }
.fc_appt_phone_box.has { background: var(--fc2-tint-faint,#effaf3); border-color: var(--fc2-tint-mint,#cdeedb); }
.fc_appt_phone_box.has .fc_appt_phone_has { display: inline; }
.fc_appt_phone_box.has .fc_appt_phone_none { display: none; }
.fc_appt_phone_box .fc_appt_phone_none { color: #a3392b; }
.fc_appt_phone_box a { margin-inline-start: auto; font-weight: 800; color: var(--c-brand) !important; }

/* ================= مظهري: theme + character ================= */
.fc_style_banner { position: relative; display: flex; align-items: center; gap: 14px; }
.fc_style_banner .fc2_banner_text { flex: 1; }
.fc_style_banner_me { width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(0,0,0,.15); background: #fff; flex: none; }
.fc_style_flash { margin: 12px 0; padding: 12px 16px; border-radius: 14px; background: var(--fc2-tint-mint); color: var(--fc2-teal-deep); font-weight: 800; }
.fc_style_card { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; padding: 18px; margin: 14px 0; box-shadow: 0 6px 18px rgba(29,43,54,.05); }
.fc_style_card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; color: var(--c-ink); margin: 0 0 14px; }
.fc_style_step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fc2-teal); color: #fff; font-size: 15px; }
.fc_theme_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.fc_theme_opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px; border: 2px solid var(--c-line); border-radius: 18px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; background: #fff; }
.fc_theme_opt:hover { transform: translateY(-2px); }
.fc_theme_opt input { position: absolute; opacity: 0; pointer-events: none; }
.fc_theme_swatch { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }
.fc_theme_swatch i { font-style: normal; font-size: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.fc_theme_opt b { font-size: 13.5px; color: var(--c-ink); }
.fc_theme_opt:has(input:checked) { border-color: var(--fc2-teal); box-shadow: 0 0 0 4px var(--fc2-tint-mint); }
.fc_theme_opt:has(input:checked)::after { content: '✓'; position: absolute; top: 6px; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--fc2-teal); color: #fff; font-size: 13px; font-weight: 900; }
.fc_char_layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.fc_char_stage { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, var(--fc2-tint-mint), #fff); }
.fc_char_stage img { width: 200px; height: 200px; border-radius: 50%; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.fc_char_stage b { font-size: 17px; color: var(--c-ink); }
.fc_char_pop { animation: fc-char-pop .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes fc-char-pop { from { transform: scale(.9); } to { transform: scale(1); } }
.fc_char_dice { border: 0; border-radius: 999px; padding: 8px 16px; background: #fff; color: var(--fc2-teal-deep); font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; }
.fc_char_label { margin: 4px 0 8px; font-weight: 800; color: var(--c-ink2); font-size: 13.5px; }
.fc_char_presets { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.fc_char_preset { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 2px solid var(--c-line); border-radius: 16px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--c-ink); }
.fc_char_preset:hover { border-color: var(--fc2-teal); }
.fc_char_preset img { width: 64px; height: 64px; border-radius: 50%; }
.fc_char_part { margin: 10px 0 14px; }
.fc_char_part > small { display: block; font-weight: 800; color: var(--c-ink2); margin-bottom: 6px; }
.fc_char_tools { min-width: 0; }
.fc_char_opts { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px; }
.fc_char_opt { border: 2px solid var(--c-line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.fc_char_opt[aria-pressed="true"] { border-color: var(--fc2-teal); background: var(--fc2-tint-mint); color: var(--fc2-teal-deep); }
.fc_char_color { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.fc_char_color[aria-pressed="true"] { background: var(--sw); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fc2-teal); }
.fc_char_photo { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--c-ink2); }
.fc_style_save_bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: center; padding: 6px 0; }
.fc_style_save { min-width: 240px; font-size: 17px !important; }
@media (max-width: 767.98px) {
  .fc_char_layout { grid-template-columns: minmax(0, 1fr); }
  .fc_style_card { padding: 14px; }
  .fc_char_stage { position: sticky; top: 56px; z-index: 4; flex-direction: row; justify-content: center; gap: 14px; padding: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.06); }
  .fc_char_stage img { width: 104px; height: 104px; }
  .fc_char_color { width: 30px; height: 30px; }
  .fc_char_stage b { display: none; }
  .fc_theme_grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .fc_theme_opt { padding: 9px 2px; border-radius: 14px; }
  .fc_theme_swatch { width: 44px; height: 44px; }
  .fc_theme_swatch i { font-size: 20px; }
  .fc_theme_opt b { font-size: 11.5px; }
  .fc_style_banner_me { width: 62px; height: 62px; }
  .fc_style_save_bar { bottom: calc(var(--m-nav-h, 64px) + 12px); }
}
/* the character in the header / profile */
.fc_header_avatar img.fc_char_img, .fc_big_avatar img.fc_char_img { object-fit: contain; background: #fff; }
.fc_style_cta { display: block; margin-top: 12px; padding: 9px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 13px; text-decoration: none; color: #fff !important; background: linear-gradient(90deg, var(--fc2-teal-deep), var(--fc2-teal)); }

/* ================= chat: files, photos, presence ================= */
.fc_chat_card { position: relative; }
.fc_chat_status.online { color: var(--fc2-teal-dark,#1f9d55) !important; font-weight: 700; }
.fc_online_dot.away { background: #f2b437 !important; }
.fc_chat_form { display: flex; align-items: center; gap: 6px; position: relative; }
.fc_chat_form .fc_chat_input { flex: 1; min-width: 0; }
.fc_chat_attach_btn { flex: none; width: 42px; height: 42px; margin: 0; display: grid; place-items: center; border-radius: 50%; color: var(--fc2-teal-deep, #145c43); background: var(--fc2-tint-mint, #d8f0e4); cursor: pointer; font-size: 19px; transition: transform .15s; }
.fc_chat_attach_btn:hover { transform: scale(1.06); }
.fc_chat_attach_btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fc_chat_form.is-sending .fc_chat_send_btn { opacity: .55; pointer-events: none; }
.fc_chat_progress { position: absolute; inset-inline: 16px; bottom: 4px; height: 4px; border-radius: 4px; background: #eee; overflow: hidden; }
.fc_chat_progress span { display: block; height: 100%; width: 0; background: var(--fc2-teal, #2fa87e); transition: width .2s; }
.fc_chat_error { margin: 0 16px; padding: 8px 12px; border-radius: 12px; background: #fff1ee; color: #a3392b; font-size: 13px; font-weight: 700; }
.fc_chat_pending { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; }
.fc_pending_item { position: relative; flex: none; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 6px 30px 6px 6px; border-radius: 14px; background: #f6f3ee; border: 1px solid #ece6da; }
[dir="rtl"] .fc_pending_item { padding: 6px 6px 6px 30px; }
.fc_pending_item img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.fc_pending_item > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #c0392b; font-size: 22px; }
.fc_pending_item span { min-width: 0; display: flex; flex-direction: column; font-size: 12px; }
.fc_pending_item span b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.fc_pending_item span small { color: #8a8299; }
.fc_pending_x { position: absolute; top: 4px; inset-inline-end: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; line-height: 1; font-size: 16px; cursor: pointer; }
.fc_chat_drop { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: 6px; border: 3px dashed var(--fc2-teal, #2fa87e); border-radius: inherit; background: rgba(255,255,255,.9); color: var(--fc2-teal-deep, #145c43); font-weight: 800; font-size: 17px; pointer-events: none; }
.fc_chat_drop i { font-size: 36px; }
.fc_msg_files { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 5px; margin: 2px 0 4px; }
.fc_msg_img { display: block; max-width: 240px; border-radius: 12px; overflow: hidden; line-height: 0; background: rgba(0,0,0,.06); }
.fc_msg_files .fc_msg_img:only-child { max-width: 260px; }
.fc_msg_files:has(.fc_msg_img + .fc_msg_img) .fc_msg_img { width: 118px; height: 118px; }
.fc_msg_files:has(.fc_msg_img + .fc_msg_img) .fc_msg_img img { width: 100%; height: 100%; object-fit: cover; }
.fc_msg_img img { max-width: 100%; max-height: 300px; display: block; }
.fc_msg_audio { width: 240px; max-width: 100%; height: 40px; }
.fc_msg_video { max-width: 260px; max-height: 300px; border-radius: 12px; background: #000; }
.fc_msg_file { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 260px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.9); color: #2c3b4a !important; text-decoration: none !important; }
.fc_bubble.theirs .fc_msg_file { background: #f6f3ee; }
.fc_msg_file > i:first-child { font-size: 26px; color: #6b7c8a; }
.fc_msg_file_pdf > i:first-child { color: #d64235; }
.fc_msg_file span { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fc_msg_file span b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_msg_file span small { font-size: 11px; opacity: .7; }
.fc_msg_file > .fa-download { opacity: .6; }
.fc_msg_text { white-space: pre-wrap; word-break: break-word; }
.fc_lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(10,14,20,.92); animation: fc-lb-in .15s ease; }
.fc_lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.fc_lightbox_close, .fc_lightbox_dl { position: absolute; top: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff !important; font-size: 26px; text-decoration: none; cursor: pointer; }
.fc_lightbox_close { inset-inline-end: 14px; }
.fc_lightbox_dl { inset-inline-start: 14px; font-size: 18px; }
@keyframes fc-lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767.98px) {
  .fc_chat_attach_btn { width: 38px; height: 38px; font-size: 17px; }
  .fc_chat_form { padding: 10px !important; gap: 5px; }
  .fc_msg_img, .fc_msg_files .fc_msg_img:only-child { max-width: 210px; }
}

/* ================= chat: voice notes ================= */
.fc_chat_mic_btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fdecef; color: #d6336c; font-size: 19px; cursor: pointer; transition: transform .15s; }
.fc_chat_mic_btn:hover { transform: scale(1.06); }
.fc_rec_bar { position: absolute; inset: 6px 10px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 0 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px #f6c9d6 inset; }
.fc_rec_cancel { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4f4f4; color: #8a8299; cursor: pointer; }
.fc_rec_cancel:hover { color: #d63c3c; }
.fc_rec_dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #e0334f; animation: fc-rec-blink 1s infinite; }
@keyframes fc-rec-blink { 50% { opacity: .2; } }
.fc_rec_time { font-variant-numeric: tabular-nums; min-width: 42px; color: #2c3b4a; direction: ltr; }
.fc_rec_wave { flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px; height: 30px; min-width: 0; overflow: hidden; }
.fc_rec_wave i { display: block; width: 4px; height: 26px; border-radius: 4px; background: var(--fc2-teal, #2fa87e); transform: scaleY(.2); transition: transform .08s; }
.fc_rec_hint { color: #8a8299; white-space: nowrap; }
.fc_rec_send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--fc2-teal, #2fa87e); color: #fff; font-size: 17px; cursor: pointer; }
.fc_voice { display: flex; align-items: center; gap: 9px; width: 230px; max-width: 100%; padding: 4px 2px; }
.fc_voice_play { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--fc2-teal-deep, #145c43); font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.12); cursor: pointer; }
.fc_bubble.theirs .fc_voice_play { background: var(--fc2-teal, #2fa87e); color: #fff; }
.fc_voice_track { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(0,0,0,.15); overflow: hidden; cursor: pointer; }
.fc_bubble.mine .fc_voice_track { background: rgba(255,255,255,.4); }
.fc_voice_fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: currentColor; border-radius: inherit; transition: width .15s linear; }
.fc_bubble.theirs .fc_voice_fill { background: var(--fc2-teal, #2fa87e); }
.fc_bubble.mine .fc_voice_fill { background: #fff; }
.fc_voice_time { flex: none; min-width: 34px; font-size: 12px; font-variant-numeric: tabular-nums; direction: ltr; opacity: .85; }
@media (max-width: 767.98px) {
  .fc_chat_mic_btn { width: 38px; height: 38px; font-size: 17px; }
  .fc_rec_hint { display: none; }
  .fc_rec_bar { inset: 4px 6px; gap: 6px; }
}

/* ================= مظهري: home preview ================= */
.fc_scene_label { margin-top: 16px !important; }
.fc_scene_preview { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--c-line); background: #fff; }
.fc_scene_art { position: relative; aspect-ratio: 8 / 3; max-height: 260px; overflow: hidden; }
.fc_scene_art svg { display: block; width: 100%; height: 100%; }
.fc_scene_title { position: absolute; top: 46px; inset-inline: 0; text-align: center; pointer-events: none; }
.fc_scene_title b { color: #fff; font-size: 22px; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.fc_scene_cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.fc_scene_cards i { display: block; height: 46px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--sc, #2fa87e) 30%, #fff); background: color-mix(in srgb, var(--sc, #2fa87e) 14%, #fff); position: relative; }
.fc_scene_cards i::after { content: ''; position: absolute; inset-inline: 30%; bottom: 8px; height: 10px; border-radius: 6px; background: var(--sc, #2fa87e); }
.fc_scene_cards i::before { content: ''; position: absolute; top: 8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--sc, #2fa87e); }
@media (max-width: 767.98px) { .fc_scene_title { top: 26px; } .fc_scene_title b { font-size: 18px; } }

/* ================= مجموعاتي (kids' groups) ================= */
.fc_grp_page { --g: var(--fc2-teal, #2fa87e); }
.fc_grp_btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--fc2-teal, #2fa87e); color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none !important; cursor: pointer; box-shadow: 0 4px 12px color-mix(in srgb, var(--fc2-teal, #2fa87e) 30%, transparent); }
.fc_grp_btn:hover { filter: brightness(1.05); }
.fc_grp_btn_sm { min-height: 34px; padding: 5px 14px; font-size: 13px; }
.fc_grp_btn_soft { background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43) !important; box-shadow: none; }
.fc_grp_btn_ghost { background: #f2f0ec; color: #5b6b76 !important; box-shadow: none; }
.fc_grp_btn_danger { background: #e0533d; box-shadow: none; }
.fc_grp_chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; color: var(--c-ink); cursor: pointer; }
.fc_grp_chip.is-on { border-color: var(--fc2-teal); background: var(--fc2-tint-mint); color: var(--fc2-teal-deep); }
.fc_grp_chip button { border: 0; background: none; font-size: 16px; line-height: 1; color: inherit; cursor: pointer; padding: 0 2px; }
.fc_grp_flash { margin: 10px 0; padding: 11px 15px; border-radius: 14px; background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); font-weight: 800; font-size: 14px; }
.fc_grp_flash_err { background: #fff1ee; color: #a3392b; }
.fc_grp_avatar { --g: var(--fc2-teal,#2fa87e); flex: none; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; font-size: 26px; background: linear-gradient(140deg, color-mix(in srgb, var(--g) 30%, #fff), color-mix(in srgb, var(--g) 70%, #fff)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g) 35%, #fff); }
.fc_grp_avatar_xl { width: 86px; height: 86px; border-radius: 26px; font-size: 46px; }
.fc_grp_person { position: relative; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); font-weight: 900; overflow: visible; }
.fc_grp_person img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: #fff; }
.fc_grp_dot { position: absolute; bottom: 0; inset-inline-end: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #c3c8cc; }
.fc_grp_dot.online { background: var(--fc2-teal,#22c55e); }
.fc_grp_dot.away { background: #f2b437; }
.fc_grp_empty { text-align: center; padding: 36px 18px; border-radius: 22px; background: #fff; border: 1px dashed var(--c-line); margin: 14px 0; }
.fc_grp_empty > span { font-size: 54px; display: block; }
.fc_grp_empty h3 { font-weight: 900; margin: 8px 0 4px; }
.fc_grp_empty p { color: var(--c-ink2); max-width: 420px; margin: 0 auto 14px; }
.fc_grp_empty_small { margin: auto; text-align: center; color: var(--c-ink2); padding: 30px; }

/* username */
.fc_user_card { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 0 0 22px; overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 10px 30px rgba(29,43,54,.06); }
.fc_user_hero { padding: 28px 24px 22px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--fc2-teal-deep, #145c43), var(--fc2-teal, #2fa87e)); }
.fc_user_hero_icon { font-size: 46px; }
.fc_user_hero h2 { color: #fff; font-weight: 900; margin: 6px 0; }
.fc_user_hero p { margin: 0; opacity: .92; font-size: 14px; }
.fc_user_card > *:not(.fc_user_hero) { margin-inline: 22px; }
.fc_user_current { display: flex; align-items: center; gap: 10px; margin-top: 16px !important; padding: 12px 14px; border-radius: 16px; background: var(--fc2-tint-mint, #d8f0e4); }
.fc_user_current small { color: var(--c-ink2); }
.fc_user_current b { flex: 1; font-size: 20px; color: var(--fc2-teal-deep); text-align: start; }
.fc_user_form { margin-top: 14px !important; }
.fc_user_input { display: flex; align-items: center; border: 2px solid var(--c-line); border-radius: 16px; background: #fff; padding: 0 6px 0 14px; transition: border-color .15s; }
.fc_user_input:focus-within { border-color: var(--fc2-teal); }
.fc_user_input > span { font-weight: 900; font-size: 20px; color: var(--fc2-teal); }
.fc_user_input input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 8px; font-size: 18px; font-weight: 700; background: transparent; }
.fc_user_status { display: block; margin: 7px 2px 0; font-size: 13px; color: var(--c-ink2); }
.fc_user_status.good { color: var(--fc2-teal-dark,#1f9d55); font-weight: 800; }
.fc_user_status.bad { color: #c0392b; font-weight: 800; }
.fc_user_suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.fc_user_suggest small { color: var(--c-ink2); }
.fc_user_wait { margin-top: 10px; color: #8a5f00; font-weight: 700; }
.fc_user_save { width: 100%; margin-top: 14px; }
.fc_user_rules { list-style: none; padding: 14px; margin-top: 16px !important; border-radius: 16px; background: #f8f6f2; display: grid; gap: 7px; font-size: 13.5px; color: var(--c-ink); }
.fc_user_go { margin-top: 14px !important; width: calc(100% - 44px); }

/* list */
.fc_grp_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fc_grp_top h2 { font-weight: 900; margin: 0; }
.fc_grp_handle { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--fc2-tint-mint); color: var(--fc2-teal-deep) !important; font-weight: 800; font-size: 13px; text-decoration: none !important; }
.fc_grp_invites { background: linear-gradient(135deg, #fff, var(--fc2-tint-yellow, #fcf0cc)); border: 1px solid #f3e2b0; border-radius: 20px; padding: 14px; margin: 12px 0; }
.fc_grp_invites h3 { font-size: 16px; font-weight: 900; margin: 0 0 10px; }
.fc_grp_invites h3 small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: #e0533d; color: #fff; font-size: 12px; }
.fc_grp_invite { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.fc_grp_invite + .fc_grp_invite { border-top: 1px solid #f0e2bc; }
.fc_grp_invite_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_grp_invite_txt small { color: var(--c-ink2); }
.fc_grp_invite form { margin: 0; }
.fc_grp_list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fc_grp_row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.fc_grp_row:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29,43,54,.08); }
.fc_grp_row_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc_grp_row_txt b { font-size: 16px; }
.fc_grp_row_txt small { color: var(--c-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_grp_row_side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--c-ink2); font-size: 12px; }
.fc_grp_badge { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 12px; background: var(--fc2-teal); color: #fff; font-style: normal; font-weight: 900; font-size: 12px; }
.fc_grp_muted { color: #a9b1b8; font-size: 13px; }

/* new group form */
.fc_grp_form_head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.fc_grp_form_head h2 { margin: 0; font-weight: 900; }
.fc_grp_form_head p { margin: 2px 0 0; color: var(--c-ink2); }
.fc_grp_emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.fc_grp_emoji_opt input, .fc_grp_color_opt input { position: absolute; opacity: 0; pointer-events: none; }
.fc_grp_emoji_opt span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--c-line); background: #fff; font-size: 22px; cursor: pointer; transition: transform .12s; }
.fc_grp_emoji_opt input:checked + span { border-color: var(--fc2-teal); background: var(--fc2-tint-mint); transform: scale(1.08); }
.fc_grp_colors { display: flex; flex-wrap: wrap; gap: 8px; }
.fc_grp_color_opt span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--g); cursor: pointer; }
.fc_grp_color_opt input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--g); }
.fc_grp_userchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fc_grp_userchips:empty { display: none; }
.fc_grp_switch { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 700; cursor: pointer; }
.fc_grp_switch input { position: absolute; opacity: 0; }
.fc_grp_switch span { position: relative; width: 44px; height: 24px; border-radius: 12px; background: #d9d4cc; transition: background .2s; flex: none; }
.fc_grp_switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.fc_grp_switch input:checked + span { background: var(--fc2-teal); }
.fc_grp_switch input:checked + span::after { inset-inline-start: 23px; }

/* chat */
.fc_gchat { --g: var(--fc2-teal,#2fa87e); position: relative; display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; background: #fff; border-radius: 22px; border: 1px solid var(--c-line); overflow: hidden; box-shadow: 0 10px 30px rgba(29,43,54,.06); }
.fc_gchat_ro { height: auto; max-height: none; }
.fc_gchat_head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--g) 14%, #fff), #fff); border-bottom: 1px solid var(--c-line); }
.fc_gchat_head .fc_grp_avatar { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; }
.fc_gchat_back, .fc_gchat_icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--c-ink) !important; text-decoration: none !important; font-size: 18px; }
.fc_gchat_back:hover, .fc_gchat_icon:hover { background: rgba(0,0,0,.05); }
.fc_gchat_title { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--c-ink) !important; text-decoration: none !important; }
.fc_gchat_title b { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_gchat_title small { color: var(--c-ink2); }
.fc_gchat_online { color: var(--fc2-teal-dark,#1f9d55); font-weight: 700; }
.fc_gchat_pin { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: color-mix(in srgb, var(--g) 10%, #fff); border-bottom: 1px solid var(--c-line); font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_gchat_pin i { color: var(--g); }
.fc_gchat_win { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--g) 6%, transparent) 0 2px, transparent 3px) 0 0 / 28px 28px, #fbfaf7; }
.fc_gchat_ro .fc_gchat_win { max-height: 70vh; }
.fc_gchat_loading { margin: auto; font-size: 30px; animation: fc-rec-blink 1s infinite; }
.fc_gmsg_sys { align-self: center; max-width: 85%; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--c-ink2); font-size: 12px; text-align: center; }
.fc_gmsg { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; max-width: 82%; align-self: flex-start; }
.fc_gmsg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.fc_gmsg_av { width: 30px; height: 30px; font-size: 13px; }
.fc_gmsg_bubble { position: relative; min-width: 70px; padding: 7px 12px 6px; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: pointer; }
.fc_gmsg.is-mine .fc_gmsg_bubble { background: color-mix(in srgb, var(--g) 18%, #fff); }
.fc_gmsg.is-child .fc_gmsg_bubble { background: color-mix(in srgb, var(--g) 18%, #fff); }
.fc_gmsg_bubble.is-sticker { background: transparent !important; box-shadow: none; padding: 0 4px; }
.fc_gmsg.is-flash .fc_gmsg_bubble { animation: fc-gflash 1.2s; }
@keyframes fc-gflash { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--g) 50%, transparent); } }
.fc_gmsg_author { display: block; font-weight: 800; font-size: 12px; color: var(--g); margin-bottom: 2px; }
.fc_gmsg_quote { display: flex; flex-direction: column; margin-bottom: 5px; padding: 4px 9px; border-inline-start: 3px solid var(--g); border-radius: 8px; background: rgba(0,0,0,.04); font-size: 12px; }
.fc_gmsg_quote b { color: var(--g); }
.fc_gmsg_quote span { color: var(--c-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.fc_gmsg_deleted { color: var(--c-ink2); font-style: italic; font-size: 13px; }
.fc_gmsg_meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 10.5px; color: var(--c-ink2); }
.fc_gmsg_seen { color: #9aa5ad; }
.fc_gmsg_seen.is-seen { color: #2e8bd6; }
.fc_big_emoji { font-size: 44px; line-height: 1.15; }
.fc_mention { padding: 0 4px; border-radius: 6px; background: color-mix(in srgb, var(--g) 15%, #fff); color: color-mix(in srgb, var(--g) 80%, #000); font-weight: 800; }
.fc_mention.is-me { background: #ffe58a; color: #6a4b00; }
.fc_gmsg_reacts { flex-basis: 100%; display: flex; gap: 4px; flex-wrap: wrap; padding-inline-start: 36px; margin-top: -2px; }
.fc_gmsg.is-mine .fc_gmsg_reacts { justify-content: flex-end; padding-inline-start: 0; }
.fc_gmsg_reacts:empty { display: none; }
.fc_gmsg_rx { border: 1px solid var(--c-line); background: #fff; border-radius: 999px; padding: 1px 8px; font-size: 13px; cursor: pointer; }
.fc_gmsg_rx.is-mine { border-color: var(--g); background: color-mix(in srgb, var(--g) 12%, #fff); }
.fc_gpoll { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.fc_gpoll > b { font-size: 14.5px; }
.fc_gpoll_opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; text-align: start; font-weight: 700; }
.fc_gpoll_opt.is-mine { border-color: var(--g); }
.fc_gpoll_bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--g) 18%, transparent); transition: width .3s; }
.fc_gpoll_label, .fc_gpoll_opt em { position: relative; }
.fc_gpoll_opt em { font-style: normal; font-size: 12px; color: var(--c-ink2); }
.fc_gpoll_total { color: var(--c-ink2); font-size: 11.5px; }
.fc_gchat_down { position: absolute; bottom: 82px; inset-inline-end: 16px; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.fc_gchat_down em { position: absolute; top: -6px; inset-inline-end: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--g); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.fc_gchat_reply { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--c-line); background: #fafafa; }
.fc_gchat_reply > i { color: var(--g); }
.fc_gchat_reply span { flex: 1; min-width: 0; display: flex; flex-direction: column; border-inline-start: 3px solid var(--g); padding-inline-start: 8px; }
.fc_gchat_reply small { color: var(--c-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_gchat_reply button { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--c-ink2); }
.fc_gchat_readonly { padding: 14px; text-align: center; color: var(--c-ink2); border-top: 1px solid var(--c-line); background: #fafafa; font-weight: 700; }
.fc_gchat_form { border-top: 1px solid var(--c-line); padding: 10px 12px; }
.fc_gchat_more { position: absolute; bottom: 62px; inset-inline-start: 10px; z-index: 6; display: flex; flex-direction: column; min-width: 190px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.fc_gchat_more label, .fc_gchat_more button { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font-weight: 700; text-align: start; cursor: pointer; color: var(--c-ink); }
.fc_gchat_more label:hover, .fc_gchat_more button:hover { background: #f4f2ee; }
.fc_gchat_more i { width: 20px; color: var(--g); }
.fc_gchat_more input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc_gchat_mentions, .fc_gchat_stickers { position: absolute; bottom: 66px; inset-inline: 12px; z-index: 6; max-height: 230px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.fc_gchat_mentions button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: 10px; text-align: start; cursor: pointer; }
.fc_gchat_mentions button:hover { background: #f4f2ee; }
.fc_gchat_mentions span { display: flex; flex-direction: column; }
.fc_gchat_mentions small { color: var(--c-ink2); }
.fc_gchat_stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.fc_gchat_stickers[hidden] { display: none; }
.fc_gchat_stickers button { border: 0; background: none; font-size: 30px; padding: 6px 0; border-radius: 10px; cursor: pointer; transition: transform .12s; }
.fc_gchat_stickers button:hover { transform: scale(1.2); background: #f4f2ee; }
.fc_gchat_members_strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--c-line); }
.fc_gchat_member_chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px 3px 3px; border-radius: 999px; background: #f6f3ee; font-size: 12.5px; font-weight: 700; }
.fc_gchat_member_chip .fc_grp_person { width: 26px; height: 26px; font-size: 12px; }
.fc_gmsg_file { margin: 3px 0; }
.fc_gmsg_file audio { max-width: 240px; }
/* sheets / modals */
.fc_gsheet, .fc_gmodal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,20,25,.45); animation: fc-lb-in .15s; }
.fc_gsheet[hidden], .fc_gmodal[hidden] { display: none; }
.fc_gmodal { align-items: center; padding: 16px; }
.fc_gsheet_card { width: min(440px, 100%); padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; display: flex; flex-direction: column; gap: 2px; animation: fc-sheet-up .2s ease; }
@keyframes fc-sheet-up { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 768px) { .fc_gsheet { align-items: center; } .fc_gsheet_card { border-radius: 22px; } }
.fc_gsheet_reacts { display: flex; justify-content: space-around; padding: 6px 0 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 6px; }
.fc_gsheet_reacts button { border: 0; background: #f6f3ee; width: 50px; height: 50px; border-radius: 50%; font-size: 26px; cursor: pointer; transition: transform .12s; }
.fc_gsheet_reacts button:hover { transform: scale(1.15); }
.fc_gsheet_card > button { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 12px; background: none; font-weight: 700; font-size: 15px; text-align: start; cursor: pointer; color: var(--c-ink); }
.fc_gsheet_card > button:hover { background: #f4f2ee; }
.fc_gsheet_card > button[hidden] { display: none; }
.fc_gsheet_danger { color: #c0392b !important; }
.fc_gsheet_close { justify-content: center; color: var(--c-ink2) !important; }
.fc_gmodal_card { width: min(420px, 100%); padding: 20px; border-radius: 22px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.fc_gmodal_card h3 { margin: 0; font-weight: 900; }
.fc_gmodal_card [data-fc-poll-opts] { display: flex; flex-direction: column; gap: 8px; }
.fc_gmodal_actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fc_confetti_box { position: fixed; inset: 0; z-index: 2100; pointer-events: none; overflow: hidden; }
.fc_confetti_box i { position: absolute; top: -40px; font-style: normal; animation: fc-confetti-fall 2.2s ease-in forwards; }
@keyframes fc-confetti-fall { to { transform: translateY(110vh) rotate(540deg); opacity: .7; } }

/* info page */
.fc_ginfo_head { text-align: center; padding: 22px 16px; margin: 6px 0 12px; border-radius: 24px; background: linear-gradient(160deg, color-mix(in srgb, var(--g) 22%, #fff), #fff); border: 1px solid var(--c-line); }
.fc_ginfo_head h2 { font-weight: 900; margin: 10px 0 4px; }
.fc_ginfo_head p { color: var(--c-ink); margin: 0 0 6px; }
.fc_ginfo_head small { color: var(--c-ink2); }
.fc_ginfo_hint { color: var(--c-ink2); margin: -6px 0 10px; font-size: 13px; }
.fc_board { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fc_board_row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #faf8f4; }
.fc_board_row.is-me { background: var(--fc2-tint-mint); }
.fc_board_rank { width: 30px; text-align: center; font-size: 20px; font-weight: 900; }
.fc_board_row b { flex: 1; }
.fc_board_row em { font-style: normal; font-weight: 900; color: #b07a00; }
.fc_ginfo_add { display: flex; gap: 8px; margin-bottom: 12px; }
.fc_ginfo_add { flex-wrap: nowrap; align-items: stretch; }
.fc_ginfo_add .fc_user_input { flex: 1 1 auto; min-width: 0; }
.fc_ginfo_add .fc_grp_btn { flex: 0 0 auto; white-space: nowrap; padding-inline: 14px; }
.fc_ginfo_add .fc_user_input input { padding: 8px; font-size: 15px; width: 100%; }
.fc_ginfo_members { display: flex; flex-direction: column; }
.fc_ginfo_member { display: flex; align-items: center; gap: 10px; padding: 9px 2px; }
.fc_ginfo_member + .fc_ginfo_member { border-top: 1px solid var(--c-line); }
.fc_ginfo_member form { margin: 0; }
.fc_ginfo_invited { opacity: .75; }
.fc_ginfo_mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_ginfo_mtxt small { color: var(--c-ink2); text-align: start; }
.fc_role { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--fc2-tint-mint); color: var(--fc2-teal-deep); white-space: nowrap; }
.fc_role_owner { background: #fff1c7; color: #8a5f00; }
.fc_ginfo_menu { position: relative; }
.fc_ginfo_menu summary { list-style: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--c-ink2); }
.fc_ginfo_menu summary::-webkit-details-marker { display: none; }
.fc_ginfo_menu[open] summary { background: #f2f0ec; }
.fc_ginfo_menu > div { position: absolute; inset-inline-end: 0; top: 38px; z-index: 5; min-width: 190px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.fc_ginfo_menu button { width: 100%; padding: 9px 12px; border: 0; background: none !important; border-radius: 10px; text-align: start; font-weight: 700; cursor: pointer; color: #1d2b36 !important; box-shadow: none !important; }
.fc_ginfo_menu button:hover, .fc_ginfo_menu button:focus { background: #f4f2ee !important; color: #1d2b36 !important; }
.fc_ginfo_menu .fc_danger, .fc_ginfo_menu .fc_danger:hover, .fc_ginfo_menu .fc_danger:focus { color: #c0392b !important; }
.fc_ginfo_actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fc_ginfo_actions form { margin: 0; }
.fc_grp_safety { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin: 10px 0; border-radius: 16px; background: #eef6fd; color: #154a7a; font-size: 13px; }
.fc_grp_report { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--c-line); font-size: 13.5px; }
@media (max-width: 767.98px) {
  .fc_grp_chat_page .fc_learning_main { padding: 0 !important; }
  .fc_gchat { height: calc(100dvh - 56px - var(--m-nav-h, 64px) - 28px - env(safe-area-inset-bottom)); border-radius: 18px; min-height: 360px; }
  .fc_grp_chat_page { padding-top: 8px !important; padding-bottom: 0 !important; }
  .fc_gmsg { max-width: 92%; }
  .fc_gchat_stickers { grid-template-columns: repeat(6, 1fr); }
  .fc_grp_top .fc_grp_btn { min-height: 38px; padding: 6px 14px; }
}

/* ================= ركني الإسلامي ================= */
.fc_ms_hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 16px; border-radius: 24px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18) 0 40px, transparent 41px), radial-gradient(circle at 10% 120%, rgba(255,255,255,.12) 0 90px, transparent 91px), linear-gradient(135deg, var(--fc2-teal-deep, #145c43), var(--fc2-teal, #2fa87e)); box-shadow: 0 10px 26px color-mix(in srgb, var(--fc2-teal, #2fa87e) 35%, transparent); }
.fc_ms_hero_txt span { font-weight: 800; opacity: .9; }
.fc_ms_hero_txt h2 { color: #fff; font-weight: 900; font-size: 30px; margin: 2px 0; }
.fc_ms_hero_txt p { margin: 0; font-weight: 700; opacity: .95; }
.fc_ms_hero_stats { display: flex; gap: 8px; }
.fc_ms_hero_stats div { min-width: 82px; padding: 8px 10px; border-radius: 16px; background: rgba(255,255,255,.18); text-align: center; backdrop-filter: blur(2px); }
.fc_ms_hero_stats b { display: block; font-size: 20px; }
.fc_ms_hero_stats small { font-size: 11.5px; opacity: .9; }
.fc_tool_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.fc_tool_tile { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 0; border-radius: 22px; text-decoration: none !important;
  background: linear-gradient(180deg, #fffdf8, #f6efe2); border: 2px solid color-mix(in srgb, var(--fc2-teal, #2fa87e) 30%, #f0dcc0); box-shadow: 0 6px 16px rgba(90,60,20,.10), inset 0 2px 0 #fff; transition: transform .15s, box-shadow .15s; overflow: hidden; }
.fc_tool_tile:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 12px 24px rgba(90,60,20,.16); }
.fc_tool_tile:active { transform: scale(.97); }
.fc_tool_icon { width: 78px; height: 78px; margin-bottom: 8px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.fc_tool_tile b { align-self: stretch; margin: 0 -8px; padding: 7px 4px; text-align: center; color: #fff; font-size: 14.5px; font-weight: 900; background: linear-gradient(180deg, var(--fc2-teal-dark, #1f8a66), var(--fc2-teal-deep, #145c43)); border-top: 2px solid color-mix(in srgb, var(--fc2-teal, #2fa87e) 40%, #fff); }
@media (max-width: 767.98px) {
  .fc_tool_grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .fc_tool_icon { width: 58px; height: 58px; }
  .fc_tool_tile { padding-top: 10px; border-radius: 18px; }
  .fc_tool_tile b { font-size: 12px; padding: 6px 2px; }
  .fc_ms_hero_txt h2 { font-size: 24px; }
  .fc_ms_hero_stats div { min-width: 70px; }
}

/* tasbih */
.fc_tsb { max-width: 640px; margin: 0 auto; text-align: center; }
.fc_tsb_top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.fc_tsb_top div { padding: 9px 6px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); }
.fc_tsb_top small { display: block; color: var(--c-ink2); font-size: 11.5px; }
.fc_tsb_top b { font-size: 16px; color: var(--fc2-teal-deep); }
.fc_tsb_list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.fc_tsb_chip { flex: none; padding: 8px 14px; border: 2px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 800; font-size: 13.5px; color: var(--c-ink); cursor: pointer; white-space: nowrap; }
.fc_tsb_chip.is-on { border-color: var(--fc2-teal); background: var(--fc2-teal); color: #fff; }
.fc_tsb_text { min-height: 64px; margin: 10px 0 6px; font-size: 24px; font-weight: 900; line-height: 1.6; color: var(--fc2-teal-deep); font-family: 'Amiri', 'Tajawal', serif; }
.fc_tsb_stage { position: relative; width: min(300px, 80vw); aspect-ratio: 1; margin: 6px auto 14px; }
.fc_tsb_ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.fc_tsb_ring_bg { fill: none; stroke: color-mix(in srgb, var(--fc2-teal) 14%, #fff); stroke-width: 14; }
.fc_tsb_ring_fg { fill: none; stroke: var(--fc2-teal); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .18s; }
.fc_tsb_beads { position: absolute; inset: 0; }
.fc_tsb_beads i { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #e6dccb; transition: background .2s, transform .2s; }
.fc_tsb_beads i.on { background: var(--fc2-gold, #fcca59); transform: scale(1.25); box-shadow: 0 0 6px var(--fc2-gold, #fcca59); }
.fc_tsb_btn { position: absolute; inset: 15%; border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fc2-teal) 70%, #fff), var(--fc2-teal-deep)); box-shadow: 0 14px 30px color-mix(in srgb, var(--fc2-teal) 40%, transparent), inset 0 -8px 18px rgba(0,0,0,.18), inset 0 6px 12px rgba(255,255,255,.25); transition: transform .08s; -webkit-tap-highlight-color: transparent; user-select: none; }
.fc_tsb_btn:active { transform: scale(.95); }
.fc_tsb_btn b { font-size: 64px; font-weight: 900; line-height: 1; }
.fc_tsb_btn small { font-size: 14px; opacity: .9; margin-top: 4px; }
.fc_tsb.is-done .fc_tsb_btn { animation: fc-tsb-done .8s; }
@keyframes fc-tsb-done { 30% { transform: scale(1.08); box-shadow: 0 0 0 16px color-mix(in srgb, var(--fc2-gold, #fcca59) 50%, transparent); } }
.fc_tsb_pop { position: absolute; inset: 0; pointer-events: none; }
.fc_tsb_pop span { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); font-weight: 900; color: var(--fc2-teal-deep); font-size: 20px; animation: fc-tsb-pop .9s ease-out forwards; white-space: nowrap; }
@keyframes fc-tsb-pop { to { transform: translate(-50%, -60px); opacity: 0; } }
.fc_tsb_controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.fc_tsb_target { width: auto; border-radius: 999px; font-weight: 800; }
.fc_tsb_hint, .fc_tsb_today { color: var(--c-ink2); font-size: 13px; margin: 10px 0 0; }

/* jannah */
.fc_jn_head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.fc_jn_head h2 { margin: 0; font-weight: 900; }
.fc_jn_tabs { display: flex; padding: 4px; border-radius: 999px; background: #efe9de; }
.fc_jn_tabs a { padding: 6px 16px; border-radius: 999px; font-weight: 800; color: var(--c-ink2) !important; text-decoration: none !important; }
.fc_jn_tabs a.is-on { background: #fff; color: var(--fc2-teal-deep) !important; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.fc_jn_garden { position: relative; height: 260px; border-radius: 24px; overflow: hidden; border: 3px solid #e8d7b4; box-shadow: inset 0 0 30px rgba(0,0,0,.06); }
.fc_jn_sky { position: absolute; inset: 0 0 45% 0; background: linear-gradient(180deg, #8fd3ff, #d9f2ff); }
.fc_jn_sky span { position: absolute; top: 14px; left: 22px; font-size: 40px; }
.fc_jn_land { position: absolute; inset: 40% 0 0 0; background: radial-gradient(ellipse at 50% 0%, #a7e08a, #6cbf5a 70%); }
.fc_jn_land::before { content: ''; position: absolute; left: 30%; right: 30%; bottom: 0; height: 30%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #7fd3ff, #4fb3e8); opacity: .8; }
.fc_jn_land span { position: absolute; transform: translateX(-50%); line-height: 1; animation: fc-jn-grow .5s backwards; filter: drop-shadow(0 3px 2px rgba(0,0,0,.15)); }
@keyframes fc-jn-grow { from { transform: translateX(-50%) scale(0); } }
.fc_jn_empty { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-weight: 900; color: #2f5d22; text-shadow: 0 1px 0 #fff; }
.fc_jn_sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.fc_jn_sum div { text-align: center; padding: 10px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); }
.fc_jn_sum span { font-size: 26px; display: block; }
.fc_jn_sum b { display: block; font-size: 18px; }
.fc_jn_sum small { color: var(--c-ink2); }
.fc_jn_group { margin: 12px 0; border-radius: 20px; overflow: hidden; border: 1px solid #e8d7b4; background: #fffdf8; }
.fc_jn_group header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; font-size: 16px; background: linear-gradient(180deg, var(--fc2-teal-dark), var(--fc2-teal-deep)); }
.fc_jn_group header em { margin-inline-start: auto; font-style: normal; font-weight: 900; padding: 1px 12px; border-radius: 999px; background: rgba(255,255,255,.2); }
.fc_jn_hadith { margin: 0; padding: 8px 14px; font-size: 12.5px; color: #7a5a1c; background: #fff7e3; }
.fc_jn_item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid #f0e6d0; color: var(--c-ink) !important; text-decoration: none !important; }
.fc_jn_item span { flex: 1; font-weight: 700; }
.fc_jn_item b { min-width: 44px; text-align: center; color: var(--fc2-teal-deep); }
.fc_jn_item i { color: #c9b48a; }
.fc_jn_titles_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fc_jn_title { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; border-radius: 16px; background: #f4f2ee; opacity: .6; }
.fc_jn_title.is-won { opacity: 1; background: linear-gradient(160deg, #fff7d6, #ffe7a3); box-shadow: 0 4px 12px rgba(224,160,20,.2); }
.fc_jn_title span { font-size: 30px; }
.fc_jn_title b { font-size: 14px; }
.fc_jn_title small { color: var(--c-ink2); font-size: 11.5px; }
@media (max-width: 767.98px) { .fc_jn_sum { grid-template-columns: repeat(5, 1fr); gap: 4px; } .fc_jn_sum span { font-size: 20px; } .fc_jn_sum b { font-size: 15px; } .fc_jn_garden { height: 210px; } }

/* qibla */
.fc_qb { max-width: 520px; margin: 0 auto; text-align: center; }
.fc_qb h2 { font-weight: 900; }
.fc_qb_status { color: var(--c-ink2); font-weight: 700; min-height: 24px; }
.fc_qb_compass { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 14px auto; }
.fc_qb_dial { position: absolute; inset: 0; border-radius: 50%; transition: transform .2s ease-out;
  background: radial-gradient(circle, #fff 0 58%, transparent 59%), repeating-conic-gradient(from -1deg, #cfd6dd 0 2deg, transparent 2deg 10deg), radial-gradient(circle, #f6f3ee 0 70%, color-mix(in srgb, var(--fc2-teal) 30%, #fff) 71%);
  border: 6px solid var(--fc2-teal); box-shadow: 0 14px 30px rgba(0,0,0,.12), inset 0 0 0 4px #fff; }
.fc_qb_dial > span { position: absolute; font-weight: 900; color: #5b6b76; }
.fc_qb_n { top: 8%; left: 50%; transform: translateX(-50%); color: #e0453a !important; }
.fc_qb_s { bottom: 8%; left: 50%; transform: translateX(-50%); }
.fc_qb_e { right: 8%; top: 50%; transform: translateY(-50%); }
.fc_qb_w { left: 8%; top: 50%; transform: translateY(-50%); }
.fc_qb_needle { position: absolute; left: 50%; top: 50%; width: 8px; height: 46%; margin-left: -4px; transform-origin: 50% 0; transition: transform .3s; }
.fc_qb_needle { top: 4%; transform-origin: 50% 100%; height: 46%; background: linear-gradient(180deg, var(--fc2-teal-deep), var(--fc2-teal)); border-radius: 4px; }
.fc_qb_kaaba { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 30px; }
.fc_qb_pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-top: 16px solid #e0453a; }
.fc_qb.is-aligned .fc_qb_dial { border-color: var(--fc2-teal,#22c55e); box-shadow: 0 0 0 10px color-mix(in srgb,var(--fc2-teal,#22c55e) 25%,transparent); }
.fc_qb_info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.fc_qb_info div { padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); }
.fc_qb_info small { display: block; color: var(--c-ink2); font-size: 11.5px; }
.fc_qb_info b { font-size: 18px; color: var(--fc2-teal-deep); }
.fc_qb_start { width: 100%; }
.fc_qb_manual { display: flex; align-items: center; gap: 8px; margin: 12px 0; text-align: start; }
.fc_qb_manual small { white-space: nowrap; color: var(--c-ink2); }
.fc_qb_note { color: var(--c-ink2); font-size: 12.5px; }

/* hijri */
.fc_hj { max-width: 640px; margin: 0 auto; }
.fc_hj_today { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #24357a, #4f6bd8); margin-bottom: 14px; }
.fc_hj_today > span { font-size: 44px; }
.fc_hj_today b { display: block; font-size: 24px; }
.fc_hj_today small { opacity: .85; }
.fc_hj_nav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.fc_hj_nav b { font-size: 18px; font-weight: 900; }
.fc_hj_nav button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; }
.fc_hj_grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.fc_hj_wd { text-align: center; font-size: 12px; font-weight: 800; color: var(--c-ink2); padding: 4px 0; }
.fc_hj_day { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); }
.fc_hj_day b { font-size: 16px; }
.fc_hj_day small { font-size: 10px; color: var(--c-ink2); }
.fc_hj_day i { position: absolute; top: -6px; inset-inline-end: -4px; font-style: normal; font-size: 13px; }
.fc_hj_day.is-fri { background: #f3f7ff; }
.fc_hj_day.is-event { border-color: #f2b437; background: #fff8e1; }
.fc_hj_day.is-today { background: var(--fc2-teal); border-color: var(--fc2-teal); color: #fff; }
.fc_hj_day.is-today small { color: var(--fc2-tint-faint,#e9fff6); }
.fc_hj_h { font-weight: 900; margin: 18px 0 8px; font-size: 18px; }
.fc_hj_event { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--c-line); margin-bottom: 6px; }
.fc_hj_event span { font-size: 24px; }
.fc_hj_event b { flex: 1; }
.fc_hj_event em { font-style: normal; color: var(--c-ink2); font-size: 13px; }
.fc_quick_tools { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.fc_quick_tools::-webkit-scrollbar { display: none; }
.fc_quick_tool { flex: 1 0 86px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; background: linear-gradient(180deg, #fffdf8, #f6efe2); border: 1.5px solid color-mix(in srgb, var(--fc2-teal, #2fa87e) 25%, #f0dcc0); text-decoration: none !important; transition: transform .15s; }
.fc_quick_tool:hover { transform: translateY(-2px); }
.fc_quick_tool span { width: 46px; height: 46px; display: grid; place-items: center; font-size: 26px; }
.fc_quick_tool b { font-size: 12.5px; font-weight: 900; color: var(--fc2-teal-deep, #145c43); }
.fc_char_gender { display: inline-flex; padding: 4px; margin-bottom: 8px; border-radius: 999px; background: #efe9de; }
.fc_char_gender button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font-weight: 800; color: var(--c-ink2); cursor: pointer; }
.fc_char_gender button.is-on { background: #fff; color: var(--fc2-teal-deep); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.fc_char_presets[data-gender="m"] .fc_char_preset[data-g="f"], .fc_char_presets[data-gender="f"] .fc_char_preset[data-g="m"] { display: none; }
.fc_char_preset img { box-shadow: 0 0 0 3px #f3ead7, 0 4px 10px rgba(0,0,0,.12); }
.fc_ms_page .fc_learning_main, .fc_grp_page .fc_learning_main { min-width: 0; }
.fc_tsb, .fc_tsb_list, .fc_qb { min-width: 0; max-width: 100%; }

/* ================= page-transition loader ================= */
.fc_topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 3000; height: 3px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.fc_topbar.is-on { opacity: 1; }
.fc_topbar span { display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--fc2-teal, #2fa87e), var(--fc2-gold, #fcca59)); box-shadow: 0 0 10px var(--fc2-teal, #2fa87e); transition: width .2s ease-out; }
[dir="rtl"] .fc_topbar span, html[lang^="ar"] .fc_topbar span { margin-left: auto; border-radius: 3px 0 0 3px; }
.fc_loadpill { position: fixed; left: 50%; bottom: calc(var(--m-nav-h, 0px) + 24px + env(safe-area-inset-bottom)); z-index: 3000; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(29,43,54,.92); color: #fff; font: 800 14px 'Tajawal', sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fc_loadpill.is-on { opacity: 1; transform: translate(-50%, 0); }
.fc_spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: var(--fc2-gold, #fcca59); animation: fc-spin .7s linear infinite; }
@keyframes fc-spin { to { transform: rotate(360deg); } }
.fc_is_loading { position: relative; pointer-events: none; }
.fc_is_loading::after { content: ''; position: absolute; top: 8px; inset-inline-end: 8px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--fc2-teal, #2fa87e) 25%, transparent); border-top-color: var(--fc2-teal, #2fa87e); animation: fc-spin .7s linear infinite; z-index: 5; }
button.fc_is_loading::after, .fc_cur_submit.fc_is_loading::after, .fc_grp_btn.fc_is_loading::after { top: 50%; margin-top: -10px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.fc_tool_tile.fc_is_loading, .fc_adventure_card.fc_is_loading, .fc_quick_tool.fc_is_loading, .fc_grp_row.fc_is_loading { transform: scale(.97); opacity: .85; }
.fc_tool_tile:active, .fc_adventure_card:active, .fc_quick_tool:active, .fc_grp_row:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .fc_spin, .fc_is_loading::after { animation-duration: 1.6s; } }

/* child home: adventure footer instead of the "parents" features */
.fc_adv_footer > a { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px 10px 14px; border-radius: 20px; text-decoration: none !important; overflow: hidden;
  background: linear-gradient(170deg, #fff 55%, color-mix(in srgb, var(--adv) 14%, #fff)); border: 1.5px solid color-mix(in srgb, var(--adv) 25%, #fff); box-shadow: 0 6px 16px rgba(30,75,114,.07); transition: transform .18s, box-shadow .18s; }
.fc_adv_footer > a:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 12px 24px color-mix(in srgb, var(--adv) 25%, transparent); }
.fc_adv_footer > a::after { content: '✦'; position: absolute; top: 8px; inset-inline-end: 12px; color: color-mix(in srgb, var(--adv) 55%, #fff); font-size: 14px; animation: fc-adv-twinkle 2.4s ease-in-out infinite; }
@keyframes fc-adv-twinkle { 50% { opacity: .2; transform: scale(.7); } }
.fc_adv_ill { display: block; width: 62px; height: 62px; margin-bottom: 4px; animation: fc-adv-bob 3s ease-in-out infinite; }
.fc_adv_footer > a:nth-child(2) .fc_adv_ill { animation-delay: .4s; }
.fc_adv_footer > a:nth-child(3) .fc_adv_ill { animation-delay: .8s; }
.fc_adv_footer > a:nth-child(4) .fc_adv_ill { animation-delay: 1.2s; }
@keyframes fc-adv-bob { 50% { transform: translateY(-4px); } }
.fc_adv_footer b { color: color-mix(in srgb, var(--adv) 60%, #1d2b36) !important; font-size: 15px !important; font-weight: 900; }
.fc_adv_footer small { display: block !important; color: var(--c-ink2, #5b6b76); font-size: 12px !important; font-weight: 700; }
@media (max-width: 767.98px) {
  html body .fc_adv_footer > a { flex-direction: column !important; padding: 12px 8px !important; }
  .fc_adv_ill { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .fc_adv_ill, .fc_adv_footer > a::after { animation: none; } }

/* ================= Qur'an player ================= */
.fc_listen_page .fc2_listen_player { padding: 0 !important; background: none !important; border: 0 !important; }
.fc_qp { position: relative; overflow: hidden; padding: 20px 18px 14px; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.16) 0 70px, transparent 71px), radial-gradient(circle at 0% 100%, rgba(255,255,255,.10) 0 90px, transparent 91px), linear-gradient(140deg, var(--fc2-teal-deep, #145c43), var(--fc2-teal, #2fa87e));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--fc2-teal, #2fa87e) 35%, transparent); }
.fc_qp_head { display: flex; align-items: center; gap: 14px; }
.fc_qp_art { position: relative; flex: none; width: 84px; height: 84px; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.95); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.fc_qp.is-playing .fc_qp_art { animation: fc-qp-breathe 3s ease-in-out infinite; }
@keyframes fc-qp-breathe { 50% { transform: scale(1.04); } }
.fc_qp_wave { position: absolute; bottom: -6px; inset-inline-end: -6px; display: flex; align-items: flex-end; gap: 2px; height: 22px; padding: 3px 5px; border-radius: 10px; background: var(--fc2-gold, #fcca59); }
.fc_qp_wave b { width: 3px; height: 30%; border-radius: 2px; background: #5a3d00; }
.fc_qp.is-playing .fc_qp_wave b { animation: fc-qp-eq .9s ease-in-out infinite; }
.fc_qp_wave b:nth-child(2) { animation-delay: .2s !important; } .fc_qp_wave b:nth-child(3) { animation-delay: .4s !important; } .fc_qp_wave b:nth-child(4) { animation-delay: .1s !important; }
@keyframes fc-qp-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.fc_qp_titles { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc_qp_titles small { opacity: .85; font-weight: 700; }
.fc_qp_titles b { font-size: 26px; font-weight: 900; line-height: 1.2; font-family: 'Amiri', 'Tajawal', serif; }
.fc_qp_titles span { opacity: .95; font-weight: 700; }
.fc_qp_seek { margin: 16px 0 6px; }
.fc_qp_seek input[type=range] { --p: 0%; width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.3) var(--p)); }
.fc_qp_seek input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.fc_qp_seek input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.fc_qp_times { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; opacity: .9; margin-top: 4px; }
.fc_qp_controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.fc_qp_main { width: 66px; height: 66px; border: 0; border-radius: 50%; background: #fff; color: var(--fc2-teal-deep, #145c43); font-size: 26px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: transform .12s; }
.fc_qp_main:active { transform: scale(.94); }
.fc_qp_main .fa-play { margin-left: 4px; }
.fc_qp_small { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff !important; font-size: 16px; cursor: pointer; text-decoration: none !important; }
.fc_qp_small:hover { background: rgba(255,255,255,.28); }
.fc_qp_small em { position: absolute; bottom: 3px; font-size: 8.5px; font-style: normal; font-weight: 900; }
.fc_qp_small.is-on { background: var(--fc2-gold, #fcca59); color: #5a3d00 !important; }
.fc_qp_small.is-off { opacity: .35; pointer-events: none; }
.fc_qp_rate { width: auto; min-width: 42px; padding: 0 8px; border-radius: 21px; font-size: 13px; font-weight: 900; }
.fc_qp_hint { margin: 10px 0 0; text-align: center; font-size: 12px; opacity: .9; }
.fc_qp.is-blocked .fc_qp_main { animation: fc-qp-pulse 1.2s infinite; }
@keyframes fc-qp-pulse { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,.3); } }
@media (max-width: 767.98px) {
  .fc_qp_art { width: 66px; height: 66px; border-radius: 18px; }
  .fc_qp_titles b { font-size: 21px; }
  .fc_qp_controls { gap: 6px; }
  .fc_qp_small { width: 38px; height: 38px; }
  .fc_qp_main { width: 60px; height: 60px; }
}

/* mini player on every page */
.fc_qmini { position: fixed; z-index: 1040; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(520px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--fc2-teal-deep, #145c43), var(--fc2-teal, #2fa87e)); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.28); animation: fc-qmini-in .3s ease; }
.fc_qmini[hidden] { display: none; }
@keyframes fc-qmini-in { from { transform: translate(-50%, 30px); opacity: 0; } }
.fc_qmini_toggle { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--fc2-teal-deep, #145c43); font-size: 16px; cursor: pointer; }
.fc_qmini_info { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #fff !important; text-decoration: none !important; }
.fc_qmini_info b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_qmini_info small { font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_qmini_close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.fc_qmini_close:hover { background: rgba(224,83,61,.9); }
.fc_qmini_prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); cursor: pointer; }
.fc_qmini_prog i { display: block; height: 100%; width: 0; background: var(--fc2-gold, #fcca59); transition: width .3s linear; }
[dir="rtl"] .fc_qmini_prog i { margin-left: auto; }
.fc_qmini.is-playing .fc_qmini_toggle { box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: fc-qmini-ring 2s infinite; }
@keyframes fc-qmini-ring { 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.fc_qmini.is-blocked .fc_qmini_toggle { animation: fc-qp-pulse 1.2s infinite; }
html.fc_has_qmini body { padding-bottom: 80px; }
@media (max-width: 991.98px) {
  .fc_qmini { bottom: calc(var(--m-nav-h, 64px) + 10px + env(safe-area-inset-bottom)); }
  html.fc_has_qmini body { padding-bottom: calc(var(--m-nav-h, 64px) + 80px); }
}
.fc_qmini_info small em { font-style: normal; }

/* ================= voice / video calls ================= */
.fc_call_btns { display: flex; gap: 6px; margin-inline-start: auto; }
.fc_call_hbtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); font-size: 17px; cursor: pointer; transition: transform .15s; }
.fc_call_hbtn:hover { transform: scale(1.08); }
.fc_call_hbtn:disabled { opacity: .5; }
.fc_gchat_icon.fc_call_hbtn { width: 38px; height: 38px; font-size: 16px; }
.fc_call_ov { position: fixed; inset: 0; z-index: 4000; display: flex; flex-direction: column; color: #fff; font-family: 'Tajawal', sans-serif;
  background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--fc2-teal, #2fa87e) 70%, #0b1a24), #0b1a24 75%); }
.fc_call_ov[hidden] { display: none; }
.fc_call_ring { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; }
.fc_call_ring b { font-size: 26px; font-weight: 900; }
.fc_call_ring small { font-size: 16px; opacity: .85; }
.fc_call_av { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.18); font-size: 28px; font-weight: 900; }
.fc_call_av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fc_call_av_xl { width: 132px; height: 132px; font-size: 56px; }
.fc_call_av_lg { width: 110px; height: 110px; font-size: 46px; }
.fc_call_pulse { position: relative; padding: 10px; border-radius: 50%; animation: fc-call-pulse 1.6s infinite; margin-bottom: 8px; }
@keyframes fc-call-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 100% { box-shadow: 0 0 0 40px rgba(255,255,255,0); } }
.fc_call_actions { display: flex; gap: 26px; margin-top: 40px; }
.fc_call_btn { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font-weight: 800; cursor: pointer; }
.fc_call_btn i { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font-size: 28px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.fc_call_decline i { background: #e0453a; transform: rotate(135deg); }
.fc_call_accept i { background: var(--fc2-teal,#22c55e); animation: fc-call-shake 1.2s infinite; }
.fc_call_accept_audio i { background: #3e7bd6; }
@keyframes fc-call-shake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.fc_call_top { padding: calc(14px + env(safe-area-inset-top)) 18px 6px; text-align: center; }
.fc_call_top b { display: block; font-size: 20px; }
.fc_call_top small { opacity: .85; font-variant-numeric: tabular-nums; }
.fc_call_grid { flex: 1; display: grid; gap: 8px; padding: 8px; grid-template-columns: 1fr; min-height: 0; }
.fc_call_grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
.fc_call_grid[data-n="3"], .fc_call_grid[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fc_call_grid[data-n="5"], .fc_call_grid[data-n="6"] { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
@media (max-width: 600px) { .fc_call_grid[data-n="2"] { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } .fc_call_grid[data-n="5"], .fc_call_grid[data-n="6"] { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); } }
.fc_call_tile { position: relative; display: grid; place-items: center; min-height: 0; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.07); }
.fc_call_tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: #000; }
.fc_call_tile.has-video video { display: block; }
.fc_call_tile audio { display: none; }
.fc_call_tile.is-ringing .fc_call_av { animation: fc-call-pulse 1.6s infinite; }
.fc_call_name { position: absolute; bottom: 10px; inset-inline-start: 12px; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.45); font-weight: 800; font-size: 13px; }
.fc_call_self { position: absolute; top: calc(70px + env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 2; width: 110px; height: 150px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.7); background: #000; transform: scaleX(-1); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.fc_call_self.is-off { opacity: .25; }
.fc_call_self.is-back { transform: none; }
.fc_call_self[hidden] { display: none; }
.fc_call_bar { display: flex; justify-content: center; gap: 16px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
.fc_call_ctl { width: 58px; height: 58px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer; }
.fc_call_ctl.is-off { background: #fff; color: #0b1a24; }
.fc_call_end { background: #e0453a; }
.fc_call_end i { transform: rotate(135deg); }
html.fc_in_call body { overflow: hidden; }
html.fc_in_call .fc_qmini { display: none; }
@media (min-width: 900px) { .fc_call_self { width: 200px; height: 150px; } }

/* ===== مظهري: kids themes + "design your own theme" ===== */
.fc_style_page .fc_hidden { display: none !important; }
.fc_style_flash_err { background: #fff1e6 !important; color: #9a3d0a !important; }
.fc_theme_group_label { margin: 16px 0 8px !important; font-weight: 900; }
.fc_theme_group_label:first-of-type { margin-top: 0 !important; }
.fc_theme_opt_kid { border-style: dashed; border-width: 2.5px; border-radius: 22px 14px 24px 16px / 16px 24px 14px 22px; }
.fc_theme_opt_kid .fc_theme_swatch { box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), 3px 3px 0 #3b2f4a; border: 2px solid #3b2f4a; }
.fc_theme_opt_kid:hover { transform: rotate(-2deg) translateY(-3px); }
.fc_theme_opt_kid b { font-family: "Baloo Bhaijaan 2", "Baloo 2", Tajawal, sans-serif; }

.fc_custom_theme { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 14px; border: 2px dashed var(--c-line, #e3e8ee); border-radius: 20px; background: linear-gradient(135deg, #fff, var(--fc2-tint-mint, #f3f7f5)); }
.fc_theme_opt_custom .fc_theme_swatch { border: 2px solid #fff; }
.fc_custom_panel { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 14px; }
.fc_custom_upload { display: flex; flex-direction: column; gap: 8px; }
.fc_custom_drop { position: relative; display: grid; place-items: center; min-height: 140px; border: 2.5px dashed var(--fc2-teal, #2fa87e); border-radius: 18px; background: #fff; cursor: pointer; overflow: hidden; text-align: center; padding: 10px; transition: transform .15s; }
.fc_custom_drop:hover { transform: scale(1.02); }
.fc_custom_drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fc_custom_drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc_custom_drop img:not(.fc_hidden) + .fc_custom_drop_txt { position: relative; margin-top: auto; background: rgba(255,255,255,.9); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.fc_custom_drop_txt { font-weight: 800; color: var(--fc2-teal-deep, #145c43); font-size: 13.5px; pointer-events: none; }
.fc_custom_remove { border: 0; background: none; color: #b0303a; font-weight: 800; cursor: pointer; }
.fc_custom_colors { display: flex; flex-direction: column; gap: 10px; }
.fc_custom_swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fc_custom_sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 2px #3b2f4a33, 0 3px 8px rgba(0,0,0,.12); cursor: pointer; transition: transform .15s; }
.fc_custom_sw:hover { transform: scale(1.15) rotate(-8deg); }
.fc_custom_targets { display: flex; flex-wrap: wrap; gap: 8px; }
.fc_custom_targets label { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 2px solid var(--c-line, #e3e8ee); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; font-size: 13px; }
.fc_custom_targets label.is-on { border-color: var(--fc2-teal, #2fa87e); box-shadow: 0 0 0 3px var(--fc2-tint-mint, #d8f0e4); }
.fc_custom_targets input[type=color] { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.fc_custom_targets input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.fc_custom_targets input[type=color]::-webkit-color-swatch { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #0002; }
.fc_custom_targets input[type=color]::-moz-color-swatch { border: 2px solid #fff; border-radius: 50%; }
.fc_custom_magic { align-self: flex-start; }
.fc_custom_switch { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.fc_custom_switch input { width: 20px; height: 20px; accent-color: var(--fc2-teal, #2fa87e); }
.fc_scene_art .fc_custom_scene { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) {
  .fc_custom_theme { grid-template-columns: 1fr; }
  .fc_theme_opt_custom { flex-direction: row; justify-content: center; }
  .fc_custom_panel { grid-template-columns: 1fr; }
  .fc_theme_grid_kids { grid-template-columns: repeat(3, 1fr); }
}

/* ===== prayers: a prayer whose time hasn't come yet ===== */
.fc_prayer_tile.fc_prayer_locked { opacity: .55; filter: grayscale(.4); cursor: not-allowed; position: relative; }
.fc_prayer_tile.fc_prayer_locked::after { content: '🔒'; position: absolute; top: 6px; inset-inline-end: 8px; font-size: 14px; }
.fc_prayer_tile.fc_prayer_locked .fc_check { visibility: hidden; }
.fc_prayer_not_yet { margin: 8px 0 12px; padding: 10px 14px; border-radius: 14px; background: #fff4e0; color: #8a5300; font-weight: 800; }
.fc_prayer_toast { position: fixed; z-index: 3000; inset-inline: 16px; bottom: calc(var(--m-nav-h, 0px) + 18px); max-width: 520px; margin: 0 auto;
  padding: 12px 16px; border-radius: 16px; background: #3b2f4a; color: #fff; font-weight: 800; text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.25); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.fc_prayer_toast.is-on { opacity: 1; transform: none; }
@keyframes fc-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.fc_prayer_tile.fc_shake { animation: fc-shake .35s ease; }

/* ===== group chat header on phones: give the group name room =====
   (back + avatar + 4 icons left only ~23px for the name, so it broke into
   one word per line). The 🏆 / ℹ️ buttons are hidden here: tapping the
   name already opens the info page, which has the stars board. */
@media (max-width: 600px) {
  .fc_gchat_head { gap: 6px; padding: 8px 10px; }
  .fc_gchat_head .fc_grp_avatar { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; flex: 0 0 auto; }
  .fc_gchat_back, .fc_gchat_icon, .fc_gchat_icon.fc_call_hbtn { width: 34px; height: 34px; font-size: 15px; flex: 0 0 auto; }
  .fc_gchat_head > a.fc_gchat_icon { display: none; }
  .fc_gchat_title b { font-size: 15px; }
  .fc_gchat_title small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== appointments: child's own + phone notifications ===== */
.fc_appt_remind { color: var(--c-ink2, #5b6b77); }
.fc_appt_mine { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); font-size: 11.5px; font-weight: 800; }
.fc_push_box { flex-wrap: wrap; gap: 8px; }
/* «جرّب إشعار»: always readable (it used to be white text on the light yellow box) */
.fc_push_box .fc_push_test { background: #fff !important; color: #8a5a00 !important; border: 1.5px solid #e0a21b !important; }
.fc_push_box .fc_push_test:hover { background: #e0a21b !important; color: #fff !important; }
.fc_push_box[hidden], .fc_push_box [hidden] { display: none !important; }

/* header badges (🔔 notifications / 💬 chat) sit on their own icon:
   without this they floated to the corner of the header and looked like
   a number on the "حسابي" button. */
html body .fc_global_header .fc_header_action { position: relative; }
html body .fc_global_header .fc_header_action > b[hidden] { display: none !important; }

/* ===== 📣 What's new: page + popup ===== */
.fc_upd_card { background: #fff; border: 1px solid var(--c-line, #e3e8ee); border-radius: 18px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.fc_upd_card summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; }
.fc_upd_card summary small { color: var(--c-ink2, #6b7a86); font-size: 12px; white-space: nowrap; }
.fc_upd_list { margin: 12px 0 4px; padding: 0; list-style: none; display: grid; gap: 8px; }
.fc_upd_list li { padding: 9px 12px; border-radius: 12px; background: var(--fc2-tint-mint, #eef8f3); font-weight: 700; line-height: 1.6; }
.fc_upd_go { display: inline-block; margin-top: 10px; text-decoration: none !important; }
.fc_upd_pop { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; background: rgba(20, 20, 40, .45); animation: fc-upd-in .25s ease; }
.fc_upd_pop.is-out { opacity: 0; transition: opacity .25s; }
.fc_upd_pop_card { position: relative; width: min(100%, 460px); max-height: 86vh; overflow: auto; background: #fff; border-radius: 26px; padding: 26px 20px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.25); font-family: Tajawal, sans-serif; }
.fc_upd_pop_card h3 { margin: 6px 0 4px; text-align: center; font-weight: 900; font-size: 21px; color: var(--fc2-teal-deep, #145c43); }
.fc_upd_pop_confetti { display: flex; justify-content: center; gap: 10px; font-size: 26px; }
.fc_upd_pop_confetti i { font-style: normal; animation: fc-upd-bob 1.6s ease-in-out infinite; }
.fc_upd_pop_confetti i:nth-child(2n) { animation-delay: .3s; }
.fc_upd_pop_actions { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 14px; flex-wrap: wrap; }
/* the popup lives outside the curriculum pages, so give its button real colours (it was white on white) */
.fc_upd_pop_actions .fc_cur_submit, .fc_upd_go { text-decoration: none !important; background: var(--fc2-teal, #1f8a66) !important; color: #fff !important; border: 0 !important; }
.fc_upd_pop_actions .fc_cur_submit:hover, .fc_upd_go:hover { background: var(--fc2-teal-deep, #145c43) !important; color: #fff !important; }
.fc_upd_later { border: 0; background: transparent; color: #5b6b76; font-weight: 800; padding: 10px 14px; cursor: pointer; }
@keyframes fc-upd-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fc-upd-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .fc_upd_pop_confetti i { animation: none; } }

/* ===== parent: choose a child ===== */
.fc_pick_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 14px; }
.fc_pick_card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--c-line, #e3e8ee); box-shadow: 0 6px 16px rgba(0,0,0,.05); color: var(--c-ink, #1d2b36) !important; text-decoration: none !important; transition: transform .15s; }
.fc_pick_card:hover { transform: translateY(-3px); }
.fc_pick_avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--fc2-tint-mint, #d8f0e4); font-size: 34px; color: var(--fc2-teal-deep, #145c43); }
.fc_pick_avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== رحلة اليوم (daily cycle) v2 ===== */
.fc_cycle2 { margin: 14px 0 0; padding: 16px; border-radius: 22px; background: linear-gradient(135deg, #fff, var(--fc2-tint-mint, #e9f6ef)); border: 1px solid color-mix(in srgb, var(--fc2-teal, #2fa87e) 22%, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.fc_cycle2_head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fc_cycle2_head h3 { margin: 0; font-size: 18px; font-weight: 900; color: var(--fc2-teal-deep, #145c43); }
.fc_cycle2_head p { margin: 3px 0 0; font-size: 13px; color: var(--c-ink2, #5b6b77); font-weight: 600; }
.fc_cycle2_ring { --p: 0; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fc2-teal, #2fa87e) calc(var(--p) * 1%), color-mix(in srgb, var(--fc2-teal, #2fa87e) 14%, #fff) 0); }
.fc_cycle2_ring span { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--fc2-teal-deep, #145c43); }
.fc_cycle2_steps { --n: 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; position: relative; }
.fc_cycle2_steps::before { content: ''; position: absolute; top: 27px; inset-inline: 12%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--fc2-teal, #2fa87e) 35%, #fff) 0 8px, transparent 8px 14px); z-index: 0; }
.fc_cycle2_step a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px 4px 10px; border-radius: 16px; color: var(--c-ink, #1d2b36) !important; text-decoration: none !important; transition: transform .15s, background .15s; }
.fc_cycle2_step a:hover { transform: translateY(-2px); background: rgba(255,255,255,.7); }
.fc_cycle2_icon { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fc2-teal, #2fa87e) calc(var(--p) * 1%), #e4ece8 0); padding: 4px; }
.fc_cycle2_icon i { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-size: 22px; }
.fc_cycle2_step b { font-size: 14px; font-weight: 900; }
.fc_cycle2_step small { font-size: 11.5px; color: var(--c-ink2, #5b6b77); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc_cycle2_step.is-done .fc_cycle2_icon { background: var(--fc2-teal, #2fa87e); }
.fc_cycle2_step.is-done .fc_cycle2_icon i { background: var(--fc2-teal, #2fa87e); color: #fff; font-weight: 900; }
.fc_cycle2_step.is-done b { color: var(--fc2-teal-deep, #145c43); }
.fc_cycle2_step.is-next a { background: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--fc2-teal, #2fa87e) 25%, transparent); }
.fc_cycle2_step.is-next .fc_cycle2_icon { animation: fc-cycle-pulse 1.8s ease-in-out infinite; }
.fc_cycle2_step.is-todo { opacity: .78; }
.fc_cycle2_go { font-style: normal; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: var(--fc2-teal, #2fa87e); color: #fff; font-size: 11.5px; font-weight: 800; }
.fc_cycle2_exam .fc_cycle2_icon { background: conic-gradient(#e0a21b calc(var(--p) * 1%), #f3ead2 0); }
.fc_cycle2.is-complete { background: linear-gradient(135deg, #fffbe6, var(--fc2-tint-mint, #e9f6ef)); }
.fc_cycle2.is-complete .fc_cycle2_ring { background: conic-gradient(#e0a21b 100%, #e0a21b 0); }
@keyframes fc-cycle-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .fc_cycle2_step.is-next .fc_cycle2_icon { animation: none; } }
@media (max-width: 600px) {
  .fc_cycle2 { padding: 14px 10px; border-radius: 18px; }
  .fc_cycle2_head h3 { font-size: 16px; }
  .fc_cycle2_steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc_cycle2_steps::before { display: none; }
  .fc_cycle2_icon { width: 48px; height: 48px; }
  .fc_cycle2_icon i { font-size: 19px; }
}

/* ===== 📝 child home: exams from the parent ===== */
.fc_kexams { margin: 14px 0 0; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--c-line, #e3e8ee); box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.fc_kexams_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fc_kexams_head h3 { margin: 0; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.fc_kexams_head a { font-size: 13px; font-weight: 800; color: var(--fc2-teal-deep, #145c43) !important; }
.fc_kexams_badge { padding: 2px 9px; border-radius: 999px; background: #fdecc8; color: #8a5300; font-size: 11.5px; font-weight: 800; }
.fc_kexams_list { display: grid; gap: 8px; }
.fc_kexam { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #f7faf9; border: 1px solid #edf2ef; color: var(--c-ink, #1d2b36) !important; text-decoration: none !important; transition: transform .15s; }
.fc_kexam:hover { transform: translateX(-3px); }
.fc_kexam_icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.fc_kexam_body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_kexam_body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.fc_kexam_body small { color: var(--c-ink2, #5b6b77); font-size: 12px; }
.fc_kexam_cta { flex: 0 0 auto; padding: 6px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 900; background: var(--fc2-teal, #2fa87e); color: #fff; }
.fc_kexam.is-new { background: #fff8e8; border-color: #f6e2b0; }
.fc_kexam.is-new .fc_kexam_cta { background: #e0a21b; }
.fc_kexam.is-grading .fc_kexam_cta { background: #e9eef2; color: #5b6b77; }
.fc_kexam.is-graded .fc_kexam_cta { background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); }

/* ===== شجرة الطاعات v2 ===== */
.fc_tree2 { text-align: center; }
.fc_tree2_head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fc_tree2_head h4 { margin: 0; font-size: 16px; font-weight: 900; }
.fc_tree2_stage { padding: 3px 10px; border-radius: 999px; background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); font-size: 12px; font-weight: 800; white-space: nowrap; }
.fc_tree2_art { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.fc_tree2_art svg { display: block; width: 100%; height: auto; }
.fc_tree2_crown { animation: fc-tree2-sway 5s ease-in-out infinite; transform-box: view-box; }
.fc_tree2_fruit { animation: fc-tree2-pop .6s cubic-bezier(.3,1.6,.5,1) both; transform-box: fill-box; transform-origin: center top; }
.fc_tree2_star { animation: fc-tree2-twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fc_tree2_bar { height: 8px; margin: 10px 4px 6px; border-radius: 999px; background: var(--fc2-tint-mint,#e3efe7); overflow: hidden; }
.fc_tree2_bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6cc04a, var(--fc2-teal,#2fa87e) 60%, #ffc83d); transition: width .6s ease; }
.fc_tree2_hint { margin: 0 0 10px; font-size: 12.5px; color: var(--c-ink2, #5b6b77); line-height: 1.6; }
@keyframes fc-tree2-sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes fc-tree2-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fc-tree2-twinkle { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .fc_tree2_crown, .fc_tree2_star, .fc_tree2_fruit { animation: none; } }

/* ===== login page in the platform's look ===== */
main:has(.fc_login_form) { background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--fc2-teal, #2fa87e) 16%, transparent) 0 180px, transparent 181px),
  radial-gradient(circle at 85% 75%, #ffe7b8 0 200px, transparent 201px), var(--fc2-cream, #fcf0e4) !important; }
.oe_website_login_container:has(.fc_login_form) { max-width: 460px !important; margin: 32px auto 48px !important; padding: 28px 24px 22px !important; border-radius: 28px; background: #fff;
  box-shadow: 0 20px 50px color-mix(in srgb,var(--fc2-teal-ink,#143c2d) 12%,transparent); border: 1px solid #eef3ef; font-family: Tajawal, sans-serif; }
.fc_login_brand { text-align: center; margin-bottom: 16px; }
.fc_login_logo { width: 86px; height: 86px; margin: -62px auto 6px; border-radius: 26px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.1); display: grid; place-items: center; overflow: hidden; padding: 6px; }
.fc_login_logo svg { width: 100%; height: 100%; }
.fc_login_brand h1 { margin: 6px 0 4px; font-size: 23px; font-weight: 900; color: var(--fc2-teal-deep, #145c43); }
.fc_login_brand p { margin: 0; color: #6b7a86; font-size: 14px; }
.fc_login_form .form-label { font-weight: 800; font-size: 13.5px; color: #33424d; }
.fc_login_form .form-control { height: 50px; border-radius: 14px !important; border: 1.5px solid #e1e8e4 !important; background: var(--fc2-tint-faint,#f8fbf9) !important; font-size: 15px; padding-inline: 14px; transition: border-color .15s, box-shadow .15s; }
.fc_login_form .form-control:focus { border-color: var(--fc2-teal, #2fa87e) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc2-teal, #2fa87e) 18%, transparent) !important; background: #fff !important; }
.fc_login_form .fc_login_submit { height: 52px; border: 0 !important; border-radius: 16px !important; font-size: 16.5px; font-weight: 900;
  background: linear-gradient(135deg, var(--fc2-teal-deep, #145c43), var(--fc2-teal, #2fa87e)) !important; box-shadow: 0 10px 22px color-mix(in srgb, var(--fc2-teal, #2fa87e) 35%, transparent); }
.fc_login_form .fc_login_submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.fc_login_form .alert { border-radius: 14px; }
.fc_login_form .btn-link { color: var(--fc2-teal-deep, #145c43) !important; font-weight: 700; }
.fc_login_more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.fc_login_card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 16px; background: var(--fc2-tint-mint, #e9f6ef); color: var(--c-ink, #1d2b36) !important; text-decoration: none !important; text-align: center; transition: transform .15s; }
.fc_login_card:hover { transform: translateY(-2px); }
.fc_login_card span { font-size: 24px; }
.fc_login_card b { font-size: 13.5px; }
.fc_login_card small { font-size: 11.5px; color: #6b7a86; line-height: 1.5; }
.fc_login_card.is-info { background: #fff6e3; }
@media (max-width: 520px) {
  .oe_website_login_container:has(.fc_login_form) { margin: 44px 12px 30px !important; padding: 24px 16px 18px !important; }
  .fc_login_more { grid-template-columns: 1fr; }
}
.fc_login_form .form-control { width: 100%; display: block; }
.fc_login_form .oe_login_buttons { display: grid !important; }
.fc_login_form .form-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* tree header: title above the stage badge, so the badge never spills out of a narrow card */
html body .fc_tree2_head { flex-direction: column; justify-content: center; gap: 6px; }
html body .fc_tree2_head h4 { text-align: center; line-height: 1.3; }
html body .fc_tree2_stage { max-width: 100%; white-space: normal; text-align: center; line-height: 1.4; }

/* ===== timetables v2: one day at a time, calm & compact ===== */
.fc_tt_tabs { margin-top: 10px; }
.fc_tt_tabs_hint { margin: 0 0 8px; font-size: 13px; color: var(--c-ink2, #5b6b77); font-weight: 600; }
.fc_tt_tabbar { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.fc_tt_tabbar::-webkit-scrollbar { display: none; }
.fc_tt_tabs.fc_tt_js .fc_tt_tabbar { display: flex; }
.fc_tt_tab { flex: 1 0 auto; min-width: 72px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 14px;
  border: 1.5px solid #e3ebe7; background: #fff; color: #3d4b55; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.fc_tt_tab:hover { border-color: color-mix(in srgb, var(--fc2-teal, #2fa87e) 45%, #fff); }
.fc_tt_tab.is-today { border-style: dashed; border-color: var(--fc2-teal, #2fa87e); }
.fc_tt_tab.is-on { background: var(--fc2-teal, #2fa87e); border-color: var(--fc2-teal, #2fa87e); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--fc2-teal, #2fa87e) 30%, transparent); }
.fc_tt_tab.is-free:not(.is-on) { color: #9aa6ae; }
.fc_tt_tab_count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; background: var(--fc2-tint-mint, #d8f0e4); color: var(--fc2-teal-deep, #145c43); }
.fc_tt_tab.is-on .fc_tt_tab_count { background: rgba(255,255,255,.25); color: #fff; }
.fc_tt_tab_count[hidden] { display: none !important; }

/* panels: everything visible without JS; with JS only the chosen day */
html body .fc_tt_tabs .fc_tt_days_grid { display: block !important; grid-template-columns: none !important; }
html body .fc_tt_tabs.fc_tt_js .fc_tt_day_card:not(.is-on) { display: none !important; }
html body .fc_tt_tabs .fc_tt_day_card { max-width: 760px; margin: 0 auto 12px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #e8eeeb; box-shadow: 0 4px 14px rgba(0,0,0,.04); min-height: 0; }
html body .fc_tt_tabs.fc_tt_js .fc_tt_day_card_header { display: none; }
.fc_tt_day_card_header { font-weight: 900; font-size: 16px; margin-bottom: 8px; color: var(--fc2-teal-deep, #145c43); }

/* one lesson = one tidy row */
html body .fc_tt_tabs .fc_tt_slot { position: relative; padding: 10px; margin-bottom: 8px; border-radius: 14px; background: #f7faf8; border: 1px solid #edf2ef; }
.fc_tt_slot_main { display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px 34px; gap: 8px; align-items: end; }
html body .fc_tt_tabs .fc_tt_input { height: 42px; border-radius: 12px; border: 1.5px solid #e1e8e4; background: #fff; padding: 0 12px; font-size: 14.5px; width: 100%; }
html body .fc_tt_tabs .fc_tt_input:focus { outline: none; border-color: var(--fc2-teal, #2fa87e); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc2-teal, #2fa87e) 18%, transparent); }
.fc_tt_time { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.fc_tt_time small { font-size: 11.5px; font-weight: 800; color: #7a8790; }
.fc_tt_time input[type=time] { direction: ltr; text-align: center; }
html body .fc_tt_tabs .fc_tt_slot_remove { position: static; width: 34px; height: 42px; border-radius: 12px; border: 0; background: #fdecec; color: #c0392b; font-size: 20px; line-height: 1; cursor: pointer; }
.fc_tt_slot_more { margin-top: 6px; }
.fc_tt_slot_more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--fc2-teal-deep, #145c43); list-style: none; }
.fc_tt_slot_more summary::before { content: '＋ '; }
.fc_tt_slot_more[open] summary::before { content: '－ '; }
.fc_tt_slot_more_fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
html body .fc_tt_tabs .fc_tt_add_slot { width: 100%; height: 44px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--fc2-teal, #2fa87e) 45%, #fff); background: transparent; color: var(--fc2-teal-deep, #145c43); font-weight: 900; font-size: 14.5px; }
html body .fc_tt_tabs .fc_tt_add_slot:hover { background: var(--fc2-tint-mint, #e9f6ef); }
.fc_tt_day_empty { margin: 4px 0 10px; text-align: center; color: #8a969e; font-size: 13.5px; }

/* view page */
.fc_tt_view .fc_kids_day h4 { display: flex; align-items: center; gap: 8px; }
.fc_tt_today_tag { padding: 2px 9px; border-radius: 999px; background: var(--fc2-teal, #2fa87e); color: #fff; font-size: 11.5px; font-weight: 800; }
html body .fc_tt_view.fc_tt_js .fc_kids_day h4 { display: none; }

@media (max-width: 600px) {
  .fc_tt_slot_main { grid-template-columns: 1fr 1fr 34px; }
  .fc_tt_slot_main .fc_tt_slot_subject { grid-column: 1 / -1; }
  .fc_tt_slot_more_fields { grid-template-columns: 1fr; }
  .fc_tt_tab { min-width: 64px; padding: 8px 10px; font-size: 13px; }
}
html body .fc_tt_tabs .fc_tt_time input[type=time] { padding: 0 8px; }

/* ===== 🔔 تنبيه الأذان (follows the child's / parent's theme) ===== */
.fc_adh_banner, .fc_adh_page_vars, .fc_adhan_card, .fc_ms_page {
  --adh-m: var(--fc2-teal, #2fa87e); --adh-d: var(--fc2-teal-dark, #1f8a66); --adh-x: var(--fc2-teal-deep, #145c43);
  --adh-t: var(--fc2-tint-mint, #d8f0e4);
  --adh-soft: color-mix(in srgb, var(--adh-m) 10%, #fff); --adh-line: color-mix(in srgb, var(--adh-m) 35%, #fff); }
.fc_adh_banner { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; padding: 10px 14px; border-radius: 20px; text-decoration: none !important; color: var(--adh-x);
  background: linear-gradient(120deg, var(--adh-soft), var(--adh-t)); border: 1.5px solid var(--adh-line); box-shadow: 0 6px 16px color-mix(in srgb, var(--adh-d) 15%, transparent); }
.fc_adh_banner[hidden] { display: none !important; }
.fc_adh_banner_icon { flex: 0 0 48px; width: 48px; height: 48px; }
.fc_adh_banner > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_adh_banner b { font-size: 15px; font-weight: 900; }
.fc_adh_banner small { font-size: 12px; color: color-mix(in srgb, var(--adh-x) 75%, #fff); }
.fc_adh_banner em { font-style: normal; font-weight: 900; font-size: 13px; padding: 7px 14px; border-radius: 14px; background: var(--adh-d); color: #fff; }

.fc_adh_hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, var(--adh-m), var(--adh-x)); box-shadow: 0 10px 24px color-mix(in srgb, var(--adh-x) 30%, transparent); }
.fc_adh_hero > div:nth-child(2) { flex: 1 1 180px; min-width: 0; }
.fc_adh_hero h2 { margin: 0; color: #fff; font-weight: 900; font-size: 22px; }
.fc_adh_hero p { margin: 4px 0 0; opacity: .92; font-size: 13.5px; }
.fc_adh_hero_icon { flex: 0 0 66px; width: 66px; height: 66px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .18); }
.fc_adh_next { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: 18px; background: rgba(255, 255, 255, .18); }
.fc_adh_next small { font-size: 11px; opacity: .9; } .fc_adh_next b { font-size: 17px; } .fc_adh_next em { font-style: normal; font-weight: 900; font-size: 20px; }
.fc_adh_flash { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--adh-soft); color: var(--adh-x); font-weight: 800; }
.fc_adh_push { margin-top: 12px; }
.fc_adh_help { margin-top: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--adh-line); font-size: 13.5px; }
.fc_adh_help summary { cursor: pointer; font-weight: 800; color: var(--adh-x); }
.fc_adh_help ul { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 6px; color: #3f4f58; }
.fc_adh_form { margin-top: 14px; display: grid; gap: 10px; }
.fc_adh_h { margin: 10px 0 0; font-size: 16px; font-weight: 900; color: var(--adh-x); }
.fc_adh_h small { font-size: 12px; color: #6a7d85; font-weight: 600; }
.fc_adh_switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--adh-line); cursor: pointer; margin: 0; }
.fc_adh_switch > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_adh_switch b { font-size: 14.5px; color: #1d2b36; } .fc_adh_switch small { font-size: 12px; color: #6a7d85; }
.fc_adh_switch small.fc_adh_ok { color: var(--adh-d); } .fc_adh_switch small.fc_adh_warn { color: #b26a00; }
.fc_adh_switch input { position: absolute; opacity: 0; pointer-events: none; }
.fc_adh_switch i { flex: 0 0 46px; height: 26px; border-radius: 99px; background: #cfd8dc; position: relative; transition: background .2s; }
.fc_adh_switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.fc_adh_switch input:checked + i { background: var(--adh-m); }
.fc_adh_switch input:checked + i::after { transform: translateX(-20px); }
[dir="ltr"] .fc_adh_switch input:checked + i::after { transform: translateX(20px); }
.fc_adh_master { background: linear-gradient(120deg, var(--adh-soft), var(--adh-t)); }
.fc_adh_times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fc_adh_time { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 18px; background: #fff; border: 1.5px solid #e3eeea; cursor: pointer; margin: 0; opacity: .55; transition: opacity .15s, border-color .15s; }
.fc_adh_time input { position: absolute; opacity: 0; pointer-events: none; }
.fc_adh_time:has(input:checked) { opacity: 1; border-color: var(--adh-line); }
.fc_adh_time.is-next { box-shadow: 0 0 0 3px color-mix(in srgb, var(--adh-m) 30%, transparent); }
.fc_adh_time_e { font-size: 22px; } .fc_adh_time b { font-size: 14px; color: #1d2b36; } .fc_adh_time em { font-style: normal; font-weight: 800; color: var(--adh-d); font-size: 13px; }
.fc_adh_bell { position: absolute; top: 4px; inset-inline-end: 6px; font-size: 11px; filter: grayscale(1); }
.fc_adh_time:has(input:checked) .fc_adh_bell { filter: none; }
.fc_adh_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fc_adh_chip { margin: 0; cursor: pointer; }
.fc_adh_chip input { position: absolute; opacity: 0; pointer-events: none; }
.fc_adh_chip span { display: inline-block; padding: 7px 13px; border-radius: 99px; background: #fff; border: 1.5px solid var(--adh-line); font-weight: 700; font-size: 13px; color: #33505a; }
.fc_adh_chip input:checked + span { background: var(--adh-m); border-color: var(--adh-m); color: #fff; }
.fc_adh_save { margin-top: 6px; padding: 12px; border: 0; border-radius: 16px; background: linear-gradient(120deg, var(--adh-m), var(--adh-d)); color: #fff; font-weight: 900; font-size: 16px; }
@media (max-width: 575px) { .fc_adh_times { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fc_adh_next { width: 100%; flex-direction: row; justify-content: space-between; } }

/* 🔊 the reminder player card + 🎙️ voice recorder */
.fc_adhan_card { position: fixed; z-index: 1080; left: 50%; transform: translateX(-50%); top: 14px; width: min(420px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; color: #fff; direction: rtl;
  background: linear-gradient(120deg, var(--adh-m), var(--adh-x)); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: fcAdhanIn .35s ease-out; }
.fc_adhan_card_icon { font-size: 30px; }
.fc_adhan_card_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_adhan_card_txt b { font-size: 15.5px; } .fc_adhan_card_txt small { font-size: 12.5px; opacity: .9; }
.fc_adhan_card button { border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 16px; }
@keyframes fcAdhanIn { from { opacity: 0; transform: translate(-50%, -12px); } }
.fc_adh_preview { border: 0; padding: 6px 12px; border-radius: 12px; background: var(--adh-soft); color: var(--adh-x); font-weight: 800; font-size: 13px; }
.fc_adh_voice { padding: 14px; border-radius: 18px; background: #fff; border: 1.5px dashed var(--adh-line); display: grid; gap: 8px; }
.fc_adh_voice b { color: #1d2b36; font-size: 14.5px; } .fc_adh_voice small { color: #6a7d85; font-size: 12px; }
.fc_adh_voice_row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fc_adh_voice_row button { border: 0; padding: 8px 14px; border-radius: 14px; font-weight: 800; font-size: 13.5px; background: var(--adh-soft); color: var(--adh-x); }
.fc_adh_voice_row button.is-rec { background: #e0533d; color: #fff; animation: fcExamPulse 1.2s ease-in-out infinite; }
.fc_adh_voice_row button.is-main { background: var(--adh-m); color: #fff; }
.fc_adh_voice_row button[hidden] { display: none; }
.fc_adh_voice_note { font-size: 12.5px; color: #b26a00; }
.fc_adh_voice_note[hidden] { display: none; }
@keyframes fcExamPulse { 50% { transform: scale(1.05); } }

/* 🗑 delete a child's account */
.fc_danger_zone { max-width: 520px; margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: #fff5f3; border: 1.5px dashed #f2b8ad; }
.fc_danger_zone > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc_danger_zone b { color: #a8321f; } .fc_danger_zone small { color: #7a5a55; font-size: 12.5px; }
.fc_danger_btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border: 0; border-radius: 999px; background: #d64530; color: #fff !important; font-weight: 800; text-decoration: none !important; cursor: pointer; }
.fc_danger_btn:hover { filter: brightness(1.05); }
.fc_delete_card { max-width: 560px; }
.fc_delete_icon { font-size: 44px; text-align: center; }
.fc_delete_card h2 { text-align: center; font-weight: 900; font-size: 22px; margin: 6px 0 12px; }
.fc_delete_card ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 14px; line-height: 1.7; }
.fc_delete_card ul li { padding: 8px 12px; border-radius: 12px; background: #f8f6f2; }
.fc_delete_actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }

/* 💬 تواصل معنا (support chat) */
.fc_sup_page { --sup: var(--fc2-teal, #2fa87e); --sup-d: var(--fc2-teal-dark, #1f8a66); --sup-soft: color-mix(in srgb, var(--sup) 10%, #fff); --sup-line: color-mix(in srgb, var(--sup) 30%, #fff); }
.fc_sup_hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--sup), var(--sup-d)); box-shadow: 0 10px 24px color-mix(in srgb, var(--sup-d) 25%, transparent); }
.fc_sup_hero_icon { font-size: 40px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .18); flex: 0 0 64px; }
.fc_sup_hero h2 { margin: 0; color: #fff; font-weight: 900; font-size: 22px; } .fc_sup_hero p { margin: 4px 0 0; opacity: .93; font-size: 13.5px; }
.fc_sup_card { margin-top: 14px; padding: 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--sup-line); display: grid; gap: 8px; box-sizing: border-box; max-width: 100%; }
.fc_sup_card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: #1d2b36; }
.fc_sup_lbl { font-weight: 800; font-size: 13.5px; color: #33505a; margin: 4px 0 0; }
.fc_sup_input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #dfe4e1; background: #fbfbf9; font-size: 15px; }
.fc_sup_input:focus { outline: none; border-color: var(--sup); background: #fff; }
.fc_sup_cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fc_sup_cat { margin: 0; cursor: pointer; } .fc_sup_cat input { position: absolute; opacity: 0; pointer-events: none; }
.fc_sup_cat span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--sup-line); background: #fff; font-weight: 700; font-size: 13px; color: #33505a; }
.fc_sup_cat input:checked + span { background: var(--sup); border-color: var(--sup); color: #fff; }
.fc_sup_file { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #5a6d75; font-weight: 700; margin: 4px 0 0; }
.fc_sup_file input { font-size: 13px; max-width: 100%; }
.fc_sup_btn { margin-top: 6px; padding: 12px; border: 0; border-radius: 16px; background: linear-gradient(120deg, var(--sup), var(--sup-d)); color: #fff; font-weight: 900; font-size: 16px; }
.fc_sup_h { margin: 18px 0 8px; font-size: 17px; font-weight: 900; color: #1d2b36; } .fc_sup_h small { color: #8a97a0; font-size: 13px; }
.fc_sup_empty { color: #7a8a92; }
.fc_sup_row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; background: #fff; border: 1.5px solid #e6ece9; text-decoration: none !important; color: #1d2b36; }
.fc_sup_row.is-answered { border-color: var(--sup-line); background: var(--sup-soft); }
.fc_sup_row_icon { font-size: 22px; } .fc_sup_row_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc_sup_row_txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fc_sup_row_txt small { color: #7a8a92; font-size: 12px; }
.fc_sup_badge { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #e0533d; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.fc_sup_state { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #eef1f3; color: #5a6d75; white-space: nowrap; }
.fc_sup_state_answered { background: var(--fc2-tint-soft,#e3f7ec); color: var(--fc2-teal-deep,#12663f); } .fc_sup_state_waiting, .fc_sup_state_new { background: #fff3dc; color: #9a6400; } .fc_sup_state_closed { background: #eef0f2; color: #7a8a92; }
.fc_sup_chat { display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 1.5px solid var(--sup-line); overflow: hidden; min-height: 70vh; }
.fc_sup_chat_head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sup-soft); border-bottom: 1px solid var(--sup-line); }
.fc_sup_chat_head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fc_sup_chat_head b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc_sup_chat_head small { color: #6a7d85; font-size: 12px; }
.fc_sup_back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #33505a !important; text-decoration: none !important; }
.fc_sup_team { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sup); font-size: 20px; }
.fc_sup_note { margin: 10px 12px 0; padding: 10px 12px; border-radius: 14px; background: var(--fc2-tint-soft,#e8f8ef); color: var(--fc2-teal-deep,#12663f); font-weight: 700; font-size: 13.5px; }
.fc_sup_msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh;
  background: #faf8f4 radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .04) 1px, transparent 0) 0 0 / 20px 20px; }
.fc_sup_msg { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.fc_sup_msg.is-me { align-self: flex-start; background: var(--sup-soft); border: 1px solid var(--sup-line); border-start-start-radius: 4px; }
.fc_sup_msg.is-team { align-self: flex-end; background: #fff; border: 1px solid #ebe7df; border-start-end-radius: 4px; }
.fc_sup_who { font-size: 11.5px; font-weight: 800; color: var(--sup-d); } .fc_sup_msg.is-team .fc_sup_who { color: #b5651d; }
.fc_sup_body { font-size: 15px; line-height: 1.7; color: #1d2b36; } .fc_sup_body p { margin: 0; }
.fc_sup_msg time { font-size: 11px; color: #8a97a0; align-self: flex-end; direction: ltr; }
.fc_sup_atts { display: flex; flex-wrap: wrap; gap: 6px; }
.fc_sup_img img { max-width: 220px; max-height: 220px; border-radius: 12px; display: block; }
.fc_sup_att { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 10px; background: #f3f5f6; color: #33505a !important; font-size: 13px; text-decoration: none !important; }
.fc_sup_compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: #fff; }
.fc_sup_compose textarea { flex: 1; min-width: 0; resize: none; padding: 10px 12px; border-radius: 18px; border: 1.5px solid #dfe4e1; background: #fbfbf9; font-size: 15px; max-height: 160px; }
.fc_sup_compose textarea:focus { outline: none; border-color: var(--sup); }
.fc_sup_clip { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #f1f3f4; color: #5a6d75; cursor: pointer; margin: 0; flex: 0 0 42px; overflow: hidden; }
.fc_sup_clip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fc_sup_send { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: var(--sup); color: #fff; font-size: 17px; }
.fc_sup_closeform { padding: 0 12px 12px; } .fc_sup_closeform button { border: 0; background: none; color: #6a7d85; font-size: 13px; font-weight: 700; text-decoration: underline; }

/* 🎮 ألعابي */
.fc_gm_page { --g: var(--fc2-teal, #2fa87e); }
.fc_gm_hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, var(--fc2-teal, #2fa87e), var(--fc2-teal-deep, #145c43)); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.fc_gm_hero > div:nth-child(2) { flex: 1 1 200px; min-width: 0; } .fc_gm_hero h2 { margin: 0; color: #fff; font-weight: 900; } .fc_gm_hero p { margin: 4px 0 0; opacity: .93; font-size: 13.5px; }
.fc_gm_hero_icon { width: 66px; height: 66px; flex: 0 0 66px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .18); }
.fc_gm_today { display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, .18); }
.fc_gm_today b { font-size: 20px; } .fc_gm_today small { font-size: 11px; opacity: .9; }
.fc_gm_off { margin-top: 14px; padding: 16px; border-radius: 18px; background: #fff7e6; color: #8a5a00; font-weight: 800; text-align: center; }
.fc_gm_grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fc_gm_card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; border-radius: 22px; text-decoration: none !important; color: #1d2b36;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--g) 10%, #fff)); border: 2px solid color-mix(in srgb, var(--g) 30%, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--g) 15%, transparent); transition: transform .15s; }
.fc_gm_card:hover { transform: translateY(-3px); }
.fc_gm_emoji { font-size: 44px; line-height: 1.2; } .fc_gm_card b { font-size: 16px; font-weight: 900; color: color-mix(in srgb, var(--g) 70%, #1d2b36); }
.fc_gm_card small { font-size: 12px; color: #5a6d75; } .fc_gm_card em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #b5651d; }
.fc_gm_head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--g), color-mix(in srgb, var(--g) 65%, #000)); }
.fc_gm_head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fc_gm_head b { font-size: 18px; } .fc_gm_head small { opacity: .9; font-size: 12.5px; }
.fc_gm_head_emoji { font-size: 32px; } .fc_gm_best { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 13px; }
.fc_gm_back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff !important; text-decoration: none !important; }
.fc_gm_stage { position: relative; margin-top: 12px; padding: 14px; border-radius: 22px; background: #fff; border: 2px solid color-mix(in srgb, var(--g) 25%, #fff); min-height: 300px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fc_gm_toast { position: fixed; z-index: 1090; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); padding: 10px 18px; border-radius: 99px; background: #1d2b36; color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); text-align: center; }
.fc_gm_top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; width: 100%; }
.fc_gm_chip { border: 2px solid color-mix(in srgb, var(--g) 35%, #fff); background: #fff; color: #33505a; border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 14px; }
.fc_gm_chip.is-on { background: var(--g); border-color: var(--g); color: #fff; }
.fc_gm_stats { display: flex; gap: 14px; justify-content: center; font-weight: 800; color: #33505a; font-size: 15px; }
.fc_gm_btn { border: 0; border-radius: 16px; padding: 10px 18px; background: var(--g); color: #fff; font-weight: 900; font-size: 15px; }
.fc_gm_btn.is-soft { background: color-mix(in srgb, var(--g) 12%, #fff); color: color-mix(in srgb, var(--g) 70%, #1d2b36); }
.fc_gm_btn:disabled { opacity: .6; }
.fc_gm_win { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 20px; background: rgba(255, 255, 255, .95); text-align: center; padding: 20px; animation: fcAdhanIn .3s ease-out; }
.fc_gm_win span { font-size: 60px; } .fc_gm_win b { font-size: 22px; font-weight: 900; color: #1d2b36; } .fc_gm_win small { color: #5a6d75; font-size: 14px; }
/* draw */
.fc_dr_pages { display: flex; gap: 6px; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
.fc_dr_page { flex: 0 0 auto; border: 1.5px solid #e3e8ea; background: #fff; border-radius: 12px; padding: 6px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fc_dr_page.is-on { border-color: var(--g); background: color-mix(in srgb, var(--g) 12%, #fff); }
.fc_dr_bar { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.fc_dr_colors { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fc_dr_color { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); padding: 0; }
.fc_dr_color.is-on { outline: 3px solid var(--g); outline-offset: 2px; transform: scale(1.1); }
.fc_dr_tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fc_dr_tool, .fc_dr_size { border: 1.5px solid #e3e8ea; background: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; min-width: 40px; }
.fc_dr_tool.is-on, .fc_dr_size.is-on { border-color: var(--g); background: var(--g); color: #fff; }
.fc_dr_wrap { width: 100%; max-width: 640px; }
.fc_dr_canvas { width: 100%; height: auto; aspect-ratio: 600 / 480; border-radius: 16px; border: 2px dashed #d7dee1; background: #fff; touch-action: none; display: block; }
.fc_dr_acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* memory */
.fc_mem_grid { display: grid; gap: 8px; width: 100%; max-width: 460px; grid-template-columns: repeat(4, 1fr); }
.fc_mem_10 { grid-template-columns: repeat(5, 1fr); }
.fc_mem_card { position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--g), color-mix(in srgb, var(--g) 60%, #000)); color: #fff; font-size: 28px; padding: 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); transition: transform .2s; }
.fc_mem_card .fc_mem_face { display: none; } .fc_mem_card .fc_mem_back { font-weight: 900; opacity: .7; }
.fc_mem_card.is-open, .fc_mem_card.is-done { background: #fff; border: 2px solid color-mix(in srgb, var(--g) 40%, #fff); transform: rotateY(0) scale(1.03); }
.fc_mem_card.is-open .fc_mem_face, .fc_mem_card.is-done .fc_mem_face { display: inline; } .fc_mem_card.is-open .fc_mem_back, .fc_mem_card.is-done .fc_mem_back { display: none; }
.fc_mem_card.is-done { background: var(--fc2-tint-soft,#eafaf1); border-color: var(--fc2-line-mint,#8fd9b0); }
/* letters */
.fc_lt_hint { font-size: 64px; line-height: 1.1; }
.fc_lt_answer { display: flex; gap: 6px; justify-content: center; direction: rtl; flex-wrap: wrap; cursor: pointer; }
.fc_lt_slot { width: 46px; height: 52px; border-radius: 12px; border: 2px dashed #cfd8dc; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #1d2b36; }
.fc_lt_slot.is-full { border-style: solid; border-color: var(--g); background: color-mix(in srgb, var(--g) 10%, #fff); }
.fc_lt_answer.is-ok .fc_lt_slot { border-color: var(--fc2-teal,#27ae60); background: var(--fc2-tint-soft,#eafaf1); } .fc_lt_answer.is-bad { animation: fcShake .35s; } .fc_lt_answer.is-bad .fc_lt_slot { border-color: #e53935; }
@keyframes fcShake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.fc_lt_word { font-size: 34px; font-weight: 900; color: var(--g); min-height: 46px; }
.fc_lt_pool { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fc_lt_tile { width: 54px; height: 58px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #fff8e6, #ffe7b0); box-shadow: 0 3px 0 #e0b04a; font-size: 30px; font-weight: 900; color: #6b4300; }
.fc_lt_tile:disabled { opacity: .25; box-shadow: none; }
/* math */
.fc_mt_intro { display: flex; flex-direction: column; gap: 10px; align-items: stretch; width: 100%; max-width: 360px; text-align: center; }
.fc_mt_level { display: flex; flex-direction: column; padding: 14px; border-radius: 18px; border: 2px solid color-mix(in srgb, var(--g) 30%, #fff); background: #fff; font-weight: 900; font-size: 18px; }
.fc_mt_level small { font-size: 12.5px; color: #6a7d85; font-weight: 700; }
.fc_mt_q { font-size: 42px; font-weight: 900; direction: ltr; padding: 18px 26px; border-radius: 20px; background: color-mix(in srgb, var(--g) 10%, #fff); transition: background .15s; }
.fc_mt_q.is-ok { background: var(--fc2-tint-mint,#d9f6e5); } .fc_mt_q.is-bad { background: #ffe1dd; }
.fc_mt_opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 380px; }
.fc_mt_opt { padding: 16px 0; border: 0; border-radius: 16px; background: var(--g); color: #fff; font-size: 26px; font-weight: 900; box-shadow: 0 4px 0 color-mix(in srgb, var(--g) 60%, #000); }
/* xo */
.fc_xo_status { font-size: 18px; font-weight: 900; color: #33505a; }
.fc_xo_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 320px; }
.fc_xo_cell { aspect-ratio: 1; border: 0; border-radius: 18px; background: color-mix(in srgb, var(--g) 10%, #fff); font-size: 44px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g) 25%, #fff); }
.fc_xo_cell.is-win { background: #fff3c4; box-shadow: inset 0 0 0 3px #f2b705; }
.fc_gm_parent_form { display: contents; }
.fc_gm_parent_card { width: 100%; text-align: inherit; font: inherit; cursor: pointer; }
.fc_gm_parent_card .fc_gm_toggle_lbl { display: inline-flex !important; }

/* parent: the عبقرينو card on a child page shows its state clearly */
.fc_abq_child_card .fc_abq_state { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin: 2px auto 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .86rem; }
.fc_abq_child_card .fc_abq_on { background: var(--fc2-tint-faint,#e8fbf1); color: var(--fc2-teal-dark,#137a4b); }
.fc_abq_child_card .fc_abq_off { background: #f1eff7; color: #6b6590; }

/* ===== Quick tools strip: scrollable / draggable ===== */
.fc_qs_wrap { position: relative; }
.fc_quick_tools { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; }
.fc_quick_tools.fc_qs_drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.fc_quick_tool { flex: 0 0 92px; scroll-snap-align: start; }
.fc_qs_arrow { position: absolute; top: 50%; transform: translateY(-40%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fc2-teal, #2fa87e); color: #fff; font-size: 22px; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.25); z-index: 2; display: none; cursor: pointer; }
.fc_qs_arrow[hidden] { display: none !important; }
.fc_qs_left { left: 2px; } .fc_qs_right { right: 2px; }
@media (hover: hover) and (pointer: fine) { .fc_qs_arrow:not([hidden]) { display: grid; place-items: center; } }
