/* =====================================================================
   RAMANMED — ICE-GLASS THEME + STUDY CRAFT & TYPOGRAPHY UPGRADE (v5)
   Desktop (>= 900px) home layout preserved 100% untouched!
   ===================================================================== */
@property --p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

:root {
  --bg-ambient-from: #e1effe;
  --bg-ambient-via: #ebf3ff;
  --bg-ambient-to: #d8e8fc;
  --glass-surface: linear-gradient(155deg, rgba(255, 255, 255, 0.70) 0%, rgba(214, 230, 255, 0.44) 48%, rgba(236, 244, 255, 0.64) 100%);
  --glass-border: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(180, 208, 255, 0.48) 50%, rgba(255, 255, 255, 0.96) 100%);
  --glass-shadow: 0 20px 50px rgba(34, 72, 168, 0.14), 0 4px 18px rgba(108, 145, 245, 0.10), inset 0 2px 3px rgba(255, 255, 255, 0.96), inset 0 -8px 20px rgba(124, 160, 255, 0.16);
  --input-bg: linear-gradient(180deg, rgba(244, 249, 255, 0.92) 0%, rgba(226, 237, 255, 0.78) 100%);
  --input-border: rgba(255, 255, 255, 0.95);
  --text-primary: #0d225c;
  --text-secondary: #354b7c;
  --track-bg: linear-gradient(180deg, rgba(188, 209, 252, 0.52), rgba(216, 229, 255, 0.44));
  --pill-active-bg: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
  --pill-active-shadow: 0 4px 18px rgba(118, 52, 238, 0.32), 0 0 0 1.5px rgba(255, 255, 255, 0.98);
  --subcard-bg: linear-gradient(180deg, rgba(234, 243, 255, 0.72) 0%, rgba(216, 231, 255, 0.56) 100%);
}

html.dark, body.dark, .dark {
  --bg-ambient-from: #060914;
  --bg-ambient-via: #0b1129;
  --bg-ambient-to: #080c1f;
  --glass-surface: linear-gradient(155deg, rgba(23, 31, 64, 0.76) 0%, rgba(13, 20, 48, 0.60) 48%, rgba(28, 38, 80, 0.66) 100%);
  --glass-border: linear-gradient(135deg, rgba(147, 180, 255, 0.6) 0%, rgba(68, 97, 185, 0.35) 50%, rgba(175, 155, 255, 0.5) 100%);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(30, 44, 102, 0.3), inset 0 1.5px 2px rgba(190, 215, 255, 0.5), inset 0 -8px 22px rgba(16, 23, 56, 0.45);
  --input-bg: linear-gradient(180deg, rgba(17, 24, 53, 0.88) 0%, rgba(23, 32, 68, 0.74) 100%);
  --input-border: rgba(99, 131, 209, 0.4);
  --text-primary: #edf2ff;
  --text-secondary: #9eb1d9;
  --track-bg: linear-gradient(180deg, rgba(19, 27, 60, 0.75), rgba(28, 38, 78, 0.65));
  --pill-active-bg: linear-gradient(180deg, #2b3974 0%, #1c2755 100%);
  --pill-active-shadow: 0 4px 18px rgba(124, 29, 232, 0.45), 0 0 0 1.5px rgba(134, 168, 255, 0.6);
  --subcard-bg: linear-gradient(180deg, rgba(19, 27, 62, 0.68) 0%, rgba(26, 36, 80, 0.55) 100%);
}

html, body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
bdi { unicode-bidi: isolate; }

html:not(.dark) body:not(.dark) {
  background:
    radial-gradient(60% 26% at 12% 6%, #ffffffcc, transparent),
    radial-gradient(50% 28% at 95% 42%, #b4cdff99, transparent),
    linear-gradient(180deg, #e4edff, #d2e1ff 55%, #e3ecff) !important;
  background-attachment: fixed !important;
  color: var(--text-primary);
}

html.dark body, body.dark {
  background: radial-gradient(circle at 50% 15%, #101633 0%, #090e24 55%, #050713 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-primary);
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 28% at 18% 12%, rgba(0, 184, 255, 0.24), transparent 62%),
    radial-gradient(34% 28% at 86% 22%, rgba(124, 29, 232, 0.20), transparent 62%),
    radial-gradient(42% 34% at 50% 100%, rgba(29, 91, 245, 0.18), transparent 62%);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

#root { position: relative; z-index: 1; }

[aria-hidden="true"].fixed.inset-0 {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

.rm-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.rm-bg i { position: absolute; border-radius: 50%; filter: blur(46px); animation: drift 16s ease-in-out infinite alternate; }
.rm-bg .a { width: 300px; height: 300px; left: -90px; top: -70px; background: #8fd0ff99; }
.rm-bg .b { width: 340px; height: 340px; right: -140px; top: 36%; background: #b48cff66; animation-delay: -6s; }
.rm-bg .c { width: 280px; height: 280px; left: -60px; bottom: -60px; background: #7fa4ff77; animation-delay: -11s; }
.rm-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(1.2px); }
@keyframes drift { to { transform: translate3d(26px, 34px, 0) scale(1.12); } }

/* پنل‌های شیشه‌ای Optical Liquid Glass */
.liquid-glass-panel, .gl, .rm-g {
  background: var(--glass-surface) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 34%), var(--glass-surface) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--glass-shadow) !important;
  color: var(--text-primary);
  position: relative;
}
.dark .liquid-glass-panel, .dark .gl, .dark .rm-g {
  background-image: linear-gradient(180deg, rgba(160, 195, 255, 0.14), rgba(255, 255, 255, 0) 34%), var(--glass-surface) !important;
  border-color: rgba(147, 180, 255, 0.32) !important;
}

/* دکمه‌های ژله‌ای سه‌بعدی + دایره سفید داخل دکمه */
.glossy-gel-btn, .rm-btn, .cta, .cta2 {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 52%),
    linear-gradient(90deg, #00b8ff 0%, #1d5bf5 48%, #a338ff 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    0 12px 24px rgba(56, 82, 245, 0.34),
    inset 0 2px 3px rgba(255, 255, 255, 0.78),
    inset 0 -4px 8px rgba(22, 24, 104, 0.28) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s !important;
}
.glossy-gel-btn::after, .rm-btn::after, .cta::after, .cta2::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 130% 0;
  animation: rmSheen 3.8s ease-in-out infinite;
}
@keyframes rmSheen {
  0%, 55% { background-position: 130% 0; }
  100% { background-position: -60% 0; }
}
.rm-btn .go {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #7c1de8 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9999px !important;
  display: inline-grid !important;
  place-items: center !important;
  box-shadow: 0 3px 10px rgba(13, 34, 92, 0.22) !important;
  flex-shrink: 0 !important;
}
.rm-btn .go svg {
  stroke: #7c1de8 !important;
  fill: none !important;
  width: 15px !important;
  height: 15px !important;
  stroke-width: 2.6 !important;
}

/* حذف کادر مربعی دور ساعت شنی و آیکون مرور */
img[src*="home-hourglass.webp"] {
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%) !important;
  mask-image: radial-gradient(closest-side, #000 66%, transparent 100%) !important;
  mix-blend-mode: multiply;
  border-radius: 18px !important;
}
.dark img[src*="home-hourglass.webp"] { mix-blend-mode: normal; }
img[src*="tile-review.webp"] {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%) !important;
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%) !important;
}

/* کارت نقل‌قول بنفش با افکت نورانی قلب و موج قلبی */
.quote, .qt {
  background:
    radial-gradient(circle at 18% 85%, rgba(0, 184, 255, 0.34), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.42), transparent 55%),
    linear-gradient(135deg, #2c52d8, #4b3fc9 58%, #5a36c4) !important;
  box-shadow: 0 14px 30px rgba(59, 63, 211, 0.35) !important;
  color: #ffffff !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  position: relative !important;
}
.qt::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: -10px;
  width: 112px;
  height: 112px;
  pointer-events: none;
  opacity: 0.28;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%2338bdf8'/%3E%3Cstop offset='1' stop-color='%23f472b6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M60 104C60 104 14 76 14 42C14 24 28 14 42 14C51 14 57 19 60 25C63 19 69 14 78 14C92 14 106 24 106 42C106 76 60 104 60 104Z' fill='url(%23g)'/%3E%3Cpath d='M16 56H38L45 40L54 74L63 32L71 62L78 52H104' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.qt > * { position: relative; z-index: 1; }
.quote *, .qt * { color: #ffffff; }

/* انتقال بنر آپدیت PWA و Toast به پایین صفحه تا روی لوگو و عنوان فصل نیفتند */
button.rm-g[style*="z-index: 70"],
button.rm-g[style*="zIndex: 70"],
.rm-toast,
[role="status"].fixed,
div.fixed[class*="top-"] {
  top: auto !important;
  bottom: 108px !important;
  z-index: 65 !important;
}

/* داک شیشه‌ای شناور پایین */
.rm-dock, #bottomDockNav {
  background: var(--glass-surface) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--glass-shadow) !important;
}
.dark .rm-dock, .dark #bottomDockNav { border-color: rgba(147, 180, 255, 0.32) !important; }
.dk.on, .rm-dock .on {
  background: radial-gradient(circle at 35% 22%, #7aa8ff, #4b3df0 55%, #9b2cf5) !important;
  box-shadow: 0 10px 26px rgba(109, 63, 240, 0.54), inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  position: relative;
}

/* =====================================================================
   UNIVERSAL FLASHCARD DESIGN (MOBILE & DESKTOP) — MATCHING USER'S HTML
   ===================================================================== */

/* ۱) افزایش ۱ درجه‌ای و ایمن فونت داخل کارت مطالعه (صفر خروج از کادر) */
.q-keep {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.85 !important;
  color: var(--text-primary) !important;
  text-align: right !important;
  white-space: pre-line !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  margin-bottom: 12px !important;
}

[data-rm-study-card="1"] {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* ۲) جداول با خطوط جداکنندهٔ کامل سطر و ستون (دقیقاً مشابه هماتو / جراحی اطفال / ریه) */
.table-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  direction: rtl !important;
  text-align: right !important;
  margin: 10px 0 8px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(100, 134, 214, 0.55) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 6px 18px rgba(34, 72, 168, 0.08) !important;
}
.dark .table-scroll {
  border-color: rgba(116, 150, 235, 0.42) !important;
  background: rgba(15, 23, 46, 0.84) !important;
}

table.med-import {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  direction: rtl !important;
  table-layout: auto !important;
}
table.med-import[data-wide="1"] {
  min-width: 580px !important;
}

table.med-import thead th,
table.med-import tbody th,
table.med-import tbody td,
table.med-import th.sticky-col {
  border: 1px solid rgba(112, 144, 218, 0.45) !important;
  padding: 9px 7px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  vertical-align: middle !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}
.dark table.med-import thead th,
.dark table.med-import tbody th,
.dark table.med-import tbody td,
.dark table.med-import th.sticky-col {
  border-color: rgba(98, 132, 210, 0.36) !important;
}

/* سرستون‌های بالای جدول */
table.med-import thead th {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #0d225c !important;
  background: linear-gradient(180deg, rgba(210, 229, 255, 0.96), rgba(196, 220, 255, 0.90)) !important;
}
.dark table.med-import thead th {
  color: #7dd3fc !important;
  background: rgba(24, 37, 74, 0.96) !important;
}

/* ستون راست (نام ردیف‌ها: کلاس ۱ تا ۴ / پوست / فشار خون و...) */
table.med-import th.sticky-col,
table.med-import tbody th:first-child,
table.med-import tbody td:first-child {
  text-align: right !important;
  font-weight: 800 !important;
  color: #0d225c !important;
  background: rgba(232, 241, 255, 0.92) !important;
  min-width: 74px !important;
}
.dark table.med-import th.sticky-col,
.dark table.med-import tbody th:first-child,
.dark table.med-import tbody td:first-child {
  color: #f1f5f9 !important;
  background: rgba(28, 41, 80, 0.94) !important;
}

/* ردیف‌های یکی‌درمیان برای خوانایی بهتر جدول */
table.med-import tbody tr:nth-child(even) td {
  background: rgba(240, 246, 255, 0.52) !important;
}
.dark table.med-import tbody tr:nth-child(even) td {
  background: rgba(18, 28, 56, 0.55) !important;
}

/* دکمه «نمایش خانه» (مخفی) با حاشیه خط‌چین آبی-بنفش دقیقاً شبیه فایل HTML شما */
table.med-import td button,
table.med-import td button[data-rm-occ="hidden"] {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 7px 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  border-radius: 9px !important;
  border: 1.5px dashed rgba(99, 102, 241, 0.68) !important;
  background: rgba(238, 242, 255, 0.88) !important;
  color: #3730a3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  transition: all 0.18s ease !important;
}
.dark table.med-import td button,
.dark table.med-import td button[data-rm-occ="hidden"] {
  border-color: rgba(129, 140, 248, 0.7) !important;
  background: rgba(49, 46, 129, 0.28) !important;
  color: #c7d2fe !important;
}

/* خانهٔ بازشده (آشکارشده) با کادر سبز زمردی یکپارچه */
table.med-import td button[data-rm-occ="revealed"] {
  border: 1.5px solid #10b981 !important;
  background: rgba(209, 250, 229, 0.85) !important;
  color: #065f46 !important;
  font-weight: 800 !important;
  text-align: right !important;
  justify-content: flex-start !important;
}
.dark table.med-import td button[data-rm-occ="revealed"] {
  border-color: #22c55e !important;
  background: rgba(6, 78, 59, 0.72) !important;
  color: #d1fae5 !important;
}

.rm-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #1e40af;
  background: rgba(219, 234, 254, 0.82);
  border: 1px solid rgba(147, 197, 253, 0.8);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 auto 8px;
  width: fit-content;
}
.dark .rm-swipe-hint {
  color: #bae6fd;
  background: rgba(30, 58, 138, 0.5);
  border-color: rgba(56, 189, 248, 0.4);
}

/* ۳) کارت‌های چندمرحله‌ای / گام‌به‌گام (مطابق .stage-box در فایل‌های HTML شما) */
[data-rm-stage-box="1"] {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1.5px solid rgba(129, 156, 226, 0.55) !important;
  border-right: 4.5px solid #4f46e5 !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 6px 18px rgba(34, 72, 168, 0.08) !important;
  text-align: right !important;
}
.dark [data-rm-stage-box="1"] {
  background: rgba(22, 33, 64, 0.90) !important;
  border-color: rgba(99, 131, 209, 0.45) !important;
  border-right-color: #38bdf8 !important;
}

/* نشان شمارهٔ مرحله (۱، ۲، ۳...) */
[data-rm-stage-num="1"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  padding: 2px 10px !important;
  margin-bottom: 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(14, 165, 233, 0.16)) !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  color: #3730a3 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
.dark [data-rm-stage-num="1"] {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #7dd3fc !important;
}

/* متن سؤال داخل هر مرحله */
[data-rm-stage-q="1"] {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.75 !important;
  color: #0d225c !important;
  margin-bottom: 10px !important;
  overflow-wrap: anywhere !important;
}
.dark [data-rm-stage-q="1"] {
  color: #f8fafc !important;
}

/* دکمه «پاسخ این مرحله» واضح و قابل کلیک */
[data-rm-stage-btn="1"] {
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 12px !important;
  border: 1.5px dashed #4f46e5 !important;
  background: linear-gradient(135deg, rgba(224, 238, 255, 0.92), rgba(237, 233, 254, 0.92)) !important;
  color: #312e81 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.12) !important;
  transition: all 0.18s ease !important;
}
.dark [data-rm-stage-btn="1"] {
  border-color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.16) !important;
  color: #bae6fd !important;
}

/* ۴) باکس پاسخ بازشده (سبز زمردی واضح در گام‌به‌گام، QA، درخت تصمیم و...) */
[data-rm-ans-box="1"] {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.92), rgba(236, 253, 245, 0.96)) !important;
  border: 1.5px solid #10b981 !important;
  border-right: 4px solid #059669 !important;
  border-radius: 13px !important;
  padding: 11px 13px !important;
  color: #064e3b !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
  overflow-wrap: anywhere !important;
}
.dark [data-rm-ans-box="1"] {
  background: rgba(6, 78, 59, 0.65) !important;
  border-color: #22c55e !important;
  border-right-color: #34d399 !important;
  color: #ecfdf5 !important;
}

/* ۵) باکس‌های درخت تصمیم، دیاگرام، گزینه‌های MCQ و جای‌خالی (Cloze) */
[data-rm-study-card="1"] .cloze-blank,
[data-rm-study-card="1"] button[data-rm-cloze="1"] {
  font-size: 14px !important;
  padding: 2px 10px !important;
  border-width: 1.5px !important;
  border-radius: 9px !important;
}
[data-rm-study-card="1"] [data-rm-mcq-opt="1"] {
  font-size: 14.2px !important;
  line-height: 1.7 !important;
  padding: 11px 13px !important;
  border-width: 1.5px !important;
  border-color: rgba(124, 152, 220, 0.55) !important;
  border-radius: 14px !important;
  text-align: right !important;
}
.dark [data-rm-study-card="1"] [data-rm-mcq-opt="1"] {
  border-color: rgba(99, 131, 209, 0.45) !important;
}
[data-rm-study-card="1"] [data-rm-tree-node="1"] {
  border: 1.5px solid rgba(116, 146, 218, 0.55) !important;
  border-top: 3.5px solid #0ea5e9 !important;
  border-radius: 14px !important;
  padding: 11px 12px !important;
  background: rgba(255, 255, 255, 0.85) !important;
}
.dark [data-rm-study-card="1"] [data-rm-tree-node="1"] {
  background: rgba(22, 33, 64, 0.88) !important;
  border-color: rgba(99, 131, 209, 0.45) !important;
}

/* =====================================================================
   MOBILE-ONLY PRECISION FIXES (max-width: 899px) — Desktop Home Untouched!
   ===================================================================== */
@media (max-width: 899px) {

  /* ۱) بنر صفحه خانه: نمایش ۱۰۰٪ قطعی پزشک + مغز ۳بعدی */
  html body #root #screen-home .hero-wrap {
    position: relative !important;
    display: block !important;
    min-height: 222px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 28px !important;
    isolation: isolate !important;
  }
  html body #root #screen-home .hero-wrap::before { display: none !important; }
  html body #root #screen-home .hero-wrap img.hero-art,
  html body #root #screen-home img[src*="home-hero-brain.webp"] {
    all: unset !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 66% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 22% 16% !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }
  html body #root #screen-home .hero-wrap::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: linear-gradient(
      270deg,
      rgba(235, 244, 255, 0.98) 0%,
      rgba(235, 244, 255, 0.92) 38%,
      rgba(235, 244, 255, 0.45) 54%,
      rgba(235, 244, 255, 0.0) 70%
    ) !important;
  }
  html.dark body #root #screen-home .hero-wrap::after,
  body.dark #root #screen-home .hero-wrap::after {
    background: linear-gradient(
      270deg,
      rgba(13, 21, 52, 0.98) 0%,
      rgba(13, 21, 52, 0.92) 38%,
      rgba(13, 21, 52, 0.48) 54%,
      rgba(13, 21, 52, 0.0) 70%
    ) !important;
  }
  html body #root #screen-home .hero-txt {
    position: relative !important;
    z-index: 3 !important;
    width: 55% !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    padding: 15px 14px 15px 6px !important;
    text-align: right !important;
  }
  html body #root #screen-home .hero-txt h2 {
    font-size: clamp(17px, 4.8vw, 23px) !important;
    line-height: 1.38 !important;
  }
  html body #root #screen-home .hero-txt p {
    font-size: 11px !important;
    line-height: 1.65 !important;
    margin: 5px 0 11px !important;
  }
  html body #root #screen-home .hero-txt .rm-btn {
    height: 38px !important;
    padding: 0 13px 0 5px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 9999px !important;
  }
  html body #root #screen-home .hero-txt .rm-btn .go { width: 25px !important; height: 25px !important; }
  html body #root #screen-home .hero-wrap .dots {
    position: absolute !important;
    left: 10px !important;
    bottom: 10px !important;
    z-index: 4 !important;
    padding: 4px 8px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(8px);
  }

  /* ۲) ۴ کاشی صفحه خانه با فونت ۱ درجه بزرگ‌تر و هم‌تراز */
  #screen-home .tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 4px 10px !important;
    min-height: 140px !important;
    height: 100% !important;
  }
  #screen-home .tile img { width: 44px !important; height: 44px !important; object-fit: contain !important; }
  #screen-home .tile b { font-size: 11.5px !important; line-height: 1.3 !important; margin-top: 4px !important; }
  #screen-home .tile small { font-size: 9.5px !important; line-height: 1.3 !important; margin-bottom: 6px !important; }
  #screen-home .tile .go { margin-top: auto !important; width: 26px !important; height: 26px !important; }
  #screen-home .qt p { font-size: 14px !important; line-height: 1.75 !important; }

  /* ۳) جداول فلش‌کارت در موبایل: فونت +۱ درجه، خطوط کامل، بدون sticky خراب و بدون بریدگی */
  table.med-import th.sticky-col,
  table.med-import thead th,
  table.med-import tbody th,
  table.med-import tbody td {
    position: static !important;
    inset: auto !important;
    right: auto !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 7px 5px !important;
    font-size: 11.8px !important;
    line-height: 1.48 !important;
  }
  table.med-import thead th {
    font-size: 11.5px !important;
    padding: 8px 4px !important;
  }
  table.med-import th.sticky-col,
  table.med-import tbody th:first-child,
  table.med-import tbody td:first-child {
    min-width: 66px !important;
    max-width: 104px !important;
    width: 24% !important;
    padding: 7px 6px !important;
  }
  table.med-import td button {
    font-size: 11.5px !important;
    min-height: 36px !important;
    padding: 6px 4px !important;
  }

  /* ۴) فونت +۱ درجه در صفحه مطالعه موبایل بدون خروج از کادر */
  .q-keep {
    font-size: 15.5px !important;
    line-height: 1.82 !important;
  }
  [data-rm-stage-q="1"] { font-size: 14.8px !important; }
  [data-rm-ans-box="1"] { font-size: 14px !important; }
  [data-rm-stage-btn="1"] { font-size: 13.5px !important; }
  [data-rm-study-card="1"] .rm-btn {
    font-size: 14px !important;
    min-height: 48px !important;
  }
  [data-rm-study-card="1"] svg {
    max-width: 100% !important;
    height: auto !important;
  }

  /* بنر مرور و آمار در موبایل */
  #screen-review img[src*="review-brain.webp"],
  #screen-analytics img[src*="analytics-hero.webp"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
