/* ============================================================
   مذاكرتي — طبقة تحسين بصرية (راحة للعين + حركة ناعمة + تنسيق المحتوى)
   تُحمّل بعد CSS الأساسي، وتضيف فقط ولا تكسر التصميم الأصلي.
   ============================================================ */

:root {
  color-scheme: dark;
  --mzk-bg: #0a1120;
  --mzk-bg-soft: #0e1728;
  --mzk-surface: #111c30;
  --mzk-line: rgba(148, 163, 184, 0.16);
  --mzk-accent: #f59e0b;
  --mzk-accent-2: #f43f5e;
  --mzk-text: #e5ecf6;
  --mzk-text-dim: #9fb0c7;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--mzk-bg) !important;
  background-image:
    radial-gradient(1100px 520px at 100% -8%, rgba(30, 58, 95, 0.55) 0%, rgba(10, 17, 32, 0) 62%),
    radial-gradient(900px 460px at -12% 108%, rgba(63, 32, 74, 0.45) 0%, rgba(10, 17, 32, 0) 58%),
    linear-gradient(180deg, #0b1322 0%, #090f1c 100%);
  background-attachment: fixed;
  color: var(--mzk-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

/* مساحة تنفّس للنصوص العربية */
.markdown-body p,
.markdown-body li,
.summary-content p,
.summary-content li {
  line-height: 2;
  letter-spacing: 0;
}

/* لمسات خفيفة على العناوين الكبيرة */
h1, h2, h3 {
  letter-spacing: -0.2px;
}

/* إزالة وميض اللمس الأزرق على أندرويد واستبداله بتأثير ناعم */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* حلقة تركيز واضحة ومريحة بلون دافئ */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.7);
  outline-offset: 2px;
}

/* تحديد النص */
::selection {
  background: rgba(245, 158, 11, 0.32);
  color: #fff;
}

/* شريط تمرير رفيع متناسق مع الثيم */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.18));
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* ===================== الحركة والانتقالات ===================== */

@keyframes mzk-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mzk-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mzk-pop-in {
  0%   { opacity: 0; transform: scale(0.965); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes mzk-sheen {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes mzk-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* دخول الصفحة عند تبديل التبويبات */
#root > div {
  animation: mzk-fade-up 0.32s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

/* النوافذ والطبقات المنبثقة
   مهم: لا نطبّق الحركة على الطبقات المغلقة (opacity-0 / pointer-events-none)
   لأن animation fill-mode:both كانت بتفرض opacity:1 وتخلّي الخلفية الضبابية
   ظاهرة على طول فوق كل التطبيق. */
.fixed.inset-0:not(.opacity-0):not(.pointer-events-none) {
  animation: mzk-fade-in 0.2s ease-out both;
}
.fixed.inset-0 > div:not(.opacity-0):not(.pointer-events-none) {
  animation: mzk-pop-in 0.24s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

/* تدرّج دخول عناصر المحتوى المكتوب */
.markdown-body > * {
  animation: mzk-fade-up 0.42s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.markdown-body > *:nth-child(1)  { animation-delay: 0.01s; }
.markdown-body > *:nth-child(2)  { animation-delay: 0.03s; }
.markdown-body > *:nth-child(3)  { animation-delay: 0.05s; }
.markdown-body > *:nth-child(4)  { animation-delay: 0.07s; }
.markdown-body > *:nth-child(5)  { animation-delay: 0.09s; }
.markdown-body > *:nth-child(6)  { animation-delay: 0.11s; }
.markdown-body > *:nth-child(7)  { animation-delay: 0.13s; }
.markdown-body > *:nth-child(n + 8) { animation-delay: 0.15s; }

/* ===================== تنسيق محتوى الملخصات والدروس ===================== */

.markdown-body {
  font-size: 15.5px;
  line-height: 2;
  color: #dde6f2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.markdown-body h1 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 1.4rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.32);
  color: #f8fafc;
}

.markdown-body h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 1.35rem 0 0.6rem;
  color: #fbbf24;
}

.markdown-body h2::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b, #f43f5e);
}

.markdown-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.1rem 0 0.45rem;
  color: #e8eefb;
}

.markdown-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0.95rem 0 0.4rem;
  color: #c7d3e6;
}

.markdown-body p {
  margin: 0.55rem 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.6rem 0;
  padding-inline-start: 1.4rem;
}

.markdown-body li {
  margin: 0.32rem 0;
}

.markdown-body li::marker {
  color: var(--mzk-accent);
  font-weight: 700;
}

.markdown-body strong {
  color: #fde68a;
  font-weight: 800;
}

.markdown-body em {
  color: #b9c4ff;
}

.markdown-body blockquote {
  margin: 0.9rem 0;
  padding: 0.7rem 0.95rem;
  border-inline-start: 3px solid var(--mzk-accent);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 12px 12px 0;
  color: #cfd9e8;
}

.markdown-body code {
  background: rgba(148, 163, 184, 0.16);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.markdown-body pre {
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  margin: 0.9rem 0;
  padding: 0.9rem;
  background: #0a1120;
  border: 1px solid var(--mzk-line);
  border-radius: 14px;
}

.markdown-body pre code {
  background: none;
  padding: 0;
}

.markdown-body table {
  width: 100%;
  margin: 0.9rem 0;
  border-collapse: collapse;
  font-size: 0.93em;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--mzk-line);
  padding: 0.5rem 0.6rem;
  text-align: right;
  vertical-align: top;
}

.markdown-body th {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-weight: 800;
}

.markdown-body tbody tr:nth-child(even) td {
  background: rgba(148, 163, 184, 0.05);
}

.markdown-body hr {
  height: 1px;
  border: 0;
  margin: 1.3rem 0;
  background: linear-gradient(90deg, transparent, var(--mzk-line), transparent);
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  margin: 0.6rem 0;
  border-radius: 14px;
}

.markdown-body a {
  color: #fbbf24;
  text-decoration: none;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.45);
}

.markdown-body > :first-child {
  margin-top: 0;
}

/* فواصل الأجزاء في الملخص التفصيلي */
.summary-content hr {
  border: 0;
  height: 2px;
  margin: 1.6rem 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
}

/* ===================== مشغل الفيديو ===================== */
/* كل الأنماط هنا مكتوبة يدويًا لأن Tailwind مبني مسبقًا (precompiled)
   والكلاسات الجديدة مثل bottom-[104px] غير موجودة فيه. */
.mzk-vp {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
  direction: rtl;
}

/* شريط علوي (وضع النافذة) */
.mzk-vp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.mzk-vp-top-info {
  min-width: 0;
  flex: 1;
}
.mzk-vp-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.mzk-vp-sub {
  font-size: 9px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.mzk-stage {
  position: relative;
  flex: 1;
  background: #000;
  overflow: hidden;
  min-height: 0;
}
.mzk-stage-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.mzk-frame-box {
  position: relative;
  overflow: hidden;
  background: #000;
}
.mzk-frame {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  pointer-events: none;
  user-select: none;
}

/* طبقة اللمس: لا تغطي شريط التحكم */
.mzk-tap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 104px;
  z-index: 10;
}

.mzk-topfade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38px;
  z-index: 11;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.mzk-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  user-select: none;
}
.mzk-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.9);
}
.mzk-badge-text {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mzk-exit {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.mzk-exit:active {
  transform: scale(0.9);
  background: rgba(0, 0, 0, 0.8);
}

/* شريط التحكم */
.mzk-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 34px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.mzk-progrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mzk-time {
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
  flex-shrink: 0;
}
.mzk-time.is-total {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.mzk-btnrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.mzk-spacer {
  flex: 1;
}

/* أزرار التحكم */
.mzk-ctrl {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.mzk-ctrl:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.22);
}
.mzk-ctrl-label {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}
.mzk-chip {
  height: 36px;
  padding: 0 11px;
  flex-shrink: 0;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease, background 0.15s ease;
}
.mzk-chip:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.22);
}

/* قائمة السرعة */
.mzk-rate-wrap {
  position: relative;
  flex-shrink: 0;
}
.mzk-menu {
  position: absolute;
  bottom: 44px;
  right: 0;
  z-index: 40;
  width: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mzk-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 0;
  transition: background 0.12s ease;
}
.mzk-menu-item:active {
  background: rgba(255, 255, 255, 0.12);
}
.mzk-menu-item.is-on {
  background: rgba(244, 63, 94, 0.22);
  color: #fecdd3;
}

/* زر التشغيل الكبير في المنتصف */
.mzk-bigplay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  border: 0;
}
.mzk-bigplay-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(225, 29, 72, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.55);
  color: #fff;
}

/* شريط السابق/التالي (وضع النافذة) */
.mzk-prevnext {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}
.mzk-pn-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: #1e293b;
  color: #e2e8f0;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}
.mzk-pn-count {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

/* شريط تقدّم حقيقي */
.mzk-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 16px;
  background: transparent;
  cursor: pointer;
  outline: none;
  touch-action: none;
}
.mzk-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #f43f5e 0%,
    #f43f5e var(--p, 0%),
    rgba(255, 255, 255, 0.28) var(--p, 0%),
    rgba(255, 255, 255, 0.28) 100%
  );
}
.mzk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.95), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.mzk-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

/* ===== إخفاء تلقائي لأدوات التحكم بعد 3 ثوانٍ ===== */
.mzk-bar,
.mzk-badge,
.mzk-topfade {
  transition: opacity 0.28s ease;
}
.mzk-exit {
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.28s ease;
}
.mzk-vp.is-ui-hidden .mzk-bar,
.mzk-vp.is-ui-hidden .mzk-exit,
.mzk-vp.is-ui-hidden .mzk-badge,
.mzk-vp.is-ui-hidden .mzk-topfade {
  opacity: 0;
  pointer-events: none;
}
/* لما الأدوات تختفي، كل الشاشة تبقى قابلة للمس لإظهارها من جديد */
.mzk-vp.is-ui-hidden .mzk-tap {
  bottom: 0;
}

/* ===================== الطبقات والتنقل ===================== */

/* نرفع شريط التنقل فوق خلفيات المودالات فقط بـ z-index،
   بدون لمس position (لمس position على عنصر fixed يخرجه من التخطيط
   ويدمّر تركيب الشاشة: القائمة الجانبية كانت تنزل في نص الشاشة). */
nav,
.bottom-nav,
.mobile-bottom-nav,
[role="navigation"] {
  z-index: 60 !important;
  pointer-events: auto !important;
}

/* الخلفية المغلقة (opacity-0 / pointer-events-none) تبقى غير قابلة للتفاعل */
.fixed.inset-0.pointer-events-none,
.fixed.inset-0.opacity-0 {
  pointer-events: none !important;
}

/* محتوى المودال المفتوح يبقى قابل للضغط */
[role="dialog"]:not(.pointer-events-none),
[aria-modal="true"]:not(.pointer-events-none) {
  pointer-events: auto;
}

/* ===================== تفاصيل صغيرة ===================== */

/* صورة/بطاقة تتحرك بلطف عند الظهور في الشبكات */
.grid > .group,
.grid > article,
.grid > .card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .grid > .group:hover {
    transform: translateY(-2px);
        box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  }
}

/* شريط علوي زجاجي أكثر نعومة */
.sticky.backdrop-blur-lg,
.sticky.backdrop-blur-md {
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.95);
}

/* الأزرار المعطّلة أوضح */
button:disabled {
  cursor: not-allowed;
}

/* احترام تقليل الحركة في إعدادات النظام */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   مقياس الهاتف: تصغير الجذر تدريجياً على الشاشات الضيقة
   (كل مقاسات Tailwind مبنية على rem، فيصغر التخطيط كله بتناسق
   بدل ما يفيض أفقياً أو يبان ضخماً على الأجهزة الصغيرة)
   ============================================================ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}
@media (max-width: 400px) {
  html {
    font-size: 14.5px;
  }
}
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }
}
@media (max-width: 320px) {
  html {
    font-size: 13px;
  }
}

body {
  max-width: 100vw;
  overflow-x: clip;
}

/* منع التكبير التلقائي عند الضغط المزدوج داخل الواجهة (إحساس تطبيق أصلي) */
button,
a,
input,
select,
textarea,
[role="button"],
[role="tab"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   قسم «فيديوهات شرح» — نسخة مخصّصة للهاتف
   البطاقات على الهاتف أفقية (صورة صغيرة + نص) بدل صورة 16:9 ضخمة
   ============================================================ */
.mzk-vids {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.mzk-vids-head {
  padding: 0.6rem 0.75rem;
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9)) !important;
  box-shadow: 0 12px 26px -22px #000;
}

.mzk-vids-title {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.mzk-vids-sub {
  font-size: 0.64rem;
  color: #94a3b8;
}

.mzk-vids-logo {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 0.8rem !important;
}

.mzk-vids-logo svg {
  width: 1rem;
  height: 1rem;
}

.mzk-vids-icon-btn {
  width: 2.05rem !important;
  height: 2.05rem !important;
  border-radius: 0.65rem !important;
}

.mzk-vids-admin-btn {
  height: 2.05rem !important;
  padding-inline: 0.6rem !important;
  border-radius: 0.65rem !important;
  font-size: 0.68rem !important;
}

.mzk-vids-toolbar {
  margin-top: 0.55rem;
  gap: 0.4rem;
}

/* زر «أضف فيديو الآن»: الأبرز في الشاشة */
.mzk-vids-add {
  padding-block: 0.62rem !important;
  border-radius: 0.85rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  color: #fff !important;
  background-image: linear-gradient(115deg, #fb7185 0%, #e11d48 42%, #b91c1c 78%, #e11d48 100%) !important;
  background-size: 240% 100% !important;
  box-shadow: 0 12px 26px -14px rgba(225, 29, 72, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  animation: mzkVidsCta 7s ease-in-out infinite;
}

.mzk-vids-add:active {
  transform: scale(0.985);
}

.mzk-vids-add-ico {
  width: 1.05rem !important;
  height: 1.05rem !important;
  stroke-width: 2.6;
}

@keyframes mzkVidsCta {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.mzk-vids-danger,
.mzk-vids-logout {
  padding: 0.55rem 0.6rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.66rem !important;
}

.mzk-vids-filters {
  padding: 0.6rem 0.75rem 0;
}

.mzk-vids-filters input {
  font-size: 0.82rem;
  padding-block: 0.55rem;
  border-radius: 0.85rem;
}

.mzk-vids-filters select {
  font-size: 0.66rem;
  padding-block: 0.35rem;
}

.mzk-vids-grid {
  padding: 0.7rem;
  gap: 0.6rem;
}

.mzk-vids-card {
  border-radius: 1rem !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
  background: linear-gradient(180deg, #0f1a2c 0%, #0b1424 100%) !important;
  box-shadow: 0 16px 34px -26px #000;
}

.mzk-vids-fab {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: rgba(225, 29, 72, 0.92);
}

.mzk-vids-shade {
  opacity: 0.9;
}

.mzk-vids-del {
  width: 1.9rem !important;
  height: 1.9rem !important;
  border-radius: 0.6rem !important;
}

.mzk-vids-count {
  font-size: 0.58rem !important;
  padding: 0.1rem 0.4rem !important;
  border-radius: 0.45rem !important;
}

.mzk-vids-name {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.mzk-vids-play {
  padding-block: 0.42rem !important;
  font-size: 0.68rem !important;
  border-radius: 0.6rem !important;
}

@media (max-width: 639px) {
  .mzk-vids-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  .mzk-vids-card {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: stretch;
  }

  .mzk-vids-thumb {
    aspect-ratio: auto !important;
    height: 100%;
    min-height: 5.4rem;
    border-radius: 0.9rem 0 0 0.9rem;
  }

  .mzk-vids-body {
    padding: 0.45rem 0.55rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    min-width: 0;
  }

  .mzk-vids-body > div {
    gap: 0.25rem !important;
  }

  .mzk-vids-body > div:last-child {
    padding-top: 0.1rem !important;
  }

  .mzk-vids-fab {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
  }

  .mzk-vids-fab svg {
    width: 0.8rem;
    height: 0.8rem;
  }

  .mzk-vids-shade {
    display: none;
  }

  .mzk-vids-name {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .mzk-vids-play {
    flex: 0 0 auto !important;
    align-self: flex-start;
    padding: 0.3rem 0.6rem !important;
  }
}

/* عارض قائمة التشغيل */
.mzk-pl-head {
  padding: 0.55rem 0.7rem;
  padding-top: calc(0.55rem + env(safe-area-inset-top));
  gap: 0.45rem;
}

.mzk-pl-head h2 {
  font-size: 0.8rem;
}

.mzk-pl-head p {
  font-size: 0.62rem;
}

.mzk-pl-head > button:last-child {
  padding: 0.42rem 0.6rem !important;
  border-radius: 0.7rem !important;
  font-size: 0.66rem !important;
}

.mzk-pl-list {
  padding: 0.6rem;
}

.mzk-pl-list > * + * {
  margin-top: 0.45rem !important;
}

.mzk-pl-row {
  padding: 0.38rem !important;
  border-radius: 0.85rem !important;
  gap: 0.5rem !important;
}

.mzk-pl-row > button:first-child {
  width: 4.9rem !important;
  border-radius: 0.6rem !important;
}

.mzk-pl-row h4 {
  font-size: 0.7rem !important;
  line-height: 1.45;
}

.mzk-pl-row p {
  font-size: 0.56rem !important;
}

.mzk-pl-row > button:not(:first-child) {
  width: 1.85rem !important;
  height: 1.85rem !important;
  border-radius: 0.5rem !important;
}

/* على الشاشات الصغيرة جداً: نُخفي نص زر الحذف ونضغط الأزرار
   حتى يبقى زر «أضف فيديو الآن» واضحاً وواسعاً */
@media (max-width: 400px) {
  .mzk-vids-danger {
    padding: 0.55rem 0.5rem !important;
  }
  .mzk-vids-danger span {
    display: none;
  }
  .mzk-vids-logout {
    padding: 0.55rem 0.45rem !important;
  }
  .mzk-vids-add {
    font-size: 0.76rem !important;
    padding-block: 0.58rem !important;
  }
}


/* ============================================================
   2.3.7 — شاشة البداية (Onboarding)
   كل الأنماط مكتوبة يدوياً: حزمة Tailwind المشحونة مُجمَّعة مسبقاً
   ولا تحتوي أي فئة جديدة.
   ============================================================ */

.mzk-onb-stage {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(900px 520px at 100% -10%, rgba(245, 158, 11, 0.16) 0%, rgba(10, 17, 32, 0) 62%),
    radial-gradient(700px 420px at -10% 110%, rgba(244, 63, 94, 0.13) 0%, rgba(10, 17, 32, 0) 60%),
    linear-gradient(180deg, #0b1322 0%, #080d18 100%);
  color: var(--mzk-text);
  direction: rtl;
}

/* ---------- الشاشة الأولى ---------- */

.mzk-onb-splash {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.35rem calc(1.6rem + env(safe-area-inset-bottom));
  text-align: center;
  overflow: hidden;
}

.mzk-onb-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.6;
  animation: mzkOnbGlow 9s ease-in-out infinite alternate;
}

.mzk-onb-glow.a {
  width: 17rem;
  height: 17rem;
  top: -6rem;
  right: -5rem;
  background: rgba(245, 158, 11, 0.3);
}

.mzk-onb-glow.b {
  width: 14rem;
  height: 14rem;
  bottom: -4.5rem;
  left: -4rem;
  background: rgba(244, 63, 94, 0.24);
  animation-delay: -3s;
}

@keyframes mzkOnbGlow {
  from {
    transform: scale(0.92);
    opacity: 0.42;
  }
  to {
    transform: scale(1.08);
    opacity: 0.78;
  }
}

@keyframes mzkOnbUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mzk-onb-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  animation: mzkOnbUp 0.5s ease-out;
}

.mzk-onb-logo {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(249, 115, 22, 0.16));
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mzk-onb-logo svg {
  width: 2.6rem !important;
  height: 2.6rem !important;
  color: #fbbf24;
}

.mzk-onb-name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #f8fafc;
}

.mzk-onb-tag {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #93a4bb;
}

.mzk-onb-stars {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  margin-top: 0.15rem;
}

.mzk-onb-star {
  width: 0.85rem;
  height: 0.85rem;
  color: #fbbf24;
  fill: #fbbf24;
}

.mzk-onb-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 22rem;
}

.mzk-onb-pills span {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
  color: #cbd8ea;
  background: rgba(17, 28, 48, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9999px;
  padding: 0.34rem 0.66rem;
  white-space: nowrap;
}

.mzk-onb-cta {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 13rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  color: #0b1322;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.36);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mzk-onb-cta:active {
  transform: scale(0.97);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.mzk-onb-cta svg {
  width: 1.05rem;
  height: 1.05rem;
}

.mzk-onb-note {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 19rem;
  font-size: 0.62rem;
  line-height: 1.8;
  color: #7b8ba2;
}

/* ---------- خطوات التسجيل ---------- */

.mzk-onb-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 0.85rem calc(1.1rem + env(safe-area-inset-bottom));
}

.mzk-onb-card {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(19, 30, 50, 0.98), rgba(12, 20, 34, 0.99));
  box-shadow: 0 24px 60px rgba(2, 6, 16, 0.55);
  animation: mzkOnbUp 0.32s ease-out;
}

.mzk-onb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mzk-onb-top-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
}

.mzk-onb-mini {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}

.mzk-onb-mini svg {
  width: 0.85rem;
  height: 0.85rem;
}

.mzk-onb-dots {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.mzk-onb-dots span {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

.mzk-onb-dots span.on {
  width: 1.05rem;
  background: linear-gradient(90deg, #fbbf24, #f97316);
}

.mzk-onb-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mzk-onb-step {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 9999px;
  padding: 0.16rem 0.52rem;
}

.mzk-onb-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.4;
  color: #ffffff;
}

.mzk-onb-sub {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.8;
  color: #93a4bb;
}

.mzk-onb-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.mzk-onb-google:active {
  transform: scale(0.99);
}

.mzk-onb-google:disabled {
  opacity: 0.6;
}

.mzk-onb-google svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mzk-onb-spin {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 9999px;
  border: 2px solid rgba(31, 41, 55, 0.2);
  border-top-color: #1f2937;
  animation: mzkSpin 0.7s linear infinite;
}

@keyframes mzkSpin {
  to {
    transform: rotate(360deg);
  }
}

.mzk-onb-account {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.9rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.mzk-onb-avatar {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  object-fit: cover;
  background: #0b1322;
}

.mzk-onb-avatar.is-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: #0b1322;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.mzk-onb-acc-info {
  flex: 1 1 auto;
  min-width: 0;
}

.mzk-onb-acc-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mzk-onb-acc-mail {
  font-size: 0.62rem;
  color: #93a4bb;
  direction: ltr;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mzk-onb-unlink {
  flex: 0 0 auto;
  padding: 0.3rem 0.62rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 800;
}

.mzk-onb-or {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mzk-onb-or span {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(148, 163, 184, 0.16);
}

.mzk-onb-or em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  color: #7b8ba2;
  white-space: nowrap;
}

.mzk-onb-field {
  position: relative;
  display: flex;
  align-items: center;
}

.mzk-onb-field-ico {
  position: absolute;
  inset-inline-start: 0.7rem;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  pointer-events: none;
}

.mzk-onb-input {
  width: 100%;
  padding-block: 0.72rem;
  padding-inline: 2.25rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0b1322;
  color: #e5ecf6;
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mzk-onb-input:focus {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}

.mzk-onb-input::placeholder {
  color: #64748b;
}

.mzk-onb-msg {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.7;
}

.mzk-onb-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.mzk-onb-back {
  flex: 0 0 auto;
  padding: 0.68rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.mzk-onb-next {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1rem;
  border-radius: 0.85rem;
  border: 0;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0b1322;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.mzk-onb-next:disabled {
  opacity: 0.42;
  box-shadow: none;
}

.mzk-onb-back:active,
.mzk-onb-next:active {
  transform: scale(0.985);
}

.mzk-onb-next svg {
  width: 0.95rem;
  height: 0.95rem;
}

.mzk-onb-fine {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.7;
  color: #7b8ba2;
  text-align: center;
}

.mzk-onb-stages {
  display: flex;
  gap: 0.4rem;
}

.mzk-onb-stagebtn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.5rem 0.3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0b1322;
  color: #93a4bb;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mzk-onb-stagebtn.is-sel {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.mzk-onb-emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.mzk-onb-grades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.mzk-onb-grade {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  padding: 0.55rem 0.62rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0b1322;
  color: #dbe4f0;
  font-family: inherit;
  text-align: start;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mzk-onb-grade.is-sel {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.12);
}

.mzk-onb-grade-name {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
}

.mzk-onb-grade-sub {
  font-size: 0.58rem;
  color: #7b8ba2;
}

.mzk-onb-grade.is-sel .mzk-onb-grade-sub {
  color: #fbbf24;
}

.mzk-onb-foot {
  margin: 0;
  max-width: 20rem;
  font-size: 0.6rem;
  line-height: 1.8;
  color: #6d7d94;
  text-align: center;
}

/* ============================================================
   2.3.7 — «اسأل المعلم»: نص مريح للقراءة + ملء الشاشة
   ============================================================ */

.mzk-ask-log {
  scrollbar-width: thin;
}

.mzk-ask-log::-webkit-scrollbar {
  width: 6px;
}

.mzk-ask-log::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 9999px;
}

.mzk-ask-bubble {
  font-size: 0.8125rem;
  line-height: 1.95;
}

.mzk-ask-bubble p {
  margin: 0.35rem 0;
}

.mzk-ask-bubble p:first-child {
  margin-top: 0;
}

.mzk-ask-bubble p:last-child {
  margin-bottom: 0;
}

.mzk-ask-bubble ul,
.mzk-ask-bubble ol {
  margin: 0.4rem 0;
  padding-inline-start: 1.1rem;
}

.mzk-ask-bubble li {
  margin: 0.18rem 0;
}

.mzk-ask-bubble h1,
.mzk-ask-bubble h2,
.mzk-ask-bubble h3,
.mzk-ask-bubble h4 {
  margin: 0.6rem 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.5;
}

.mzk-ask-bubble table {
  width: 100%;
  margin: 0.5rem 0;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.mzk-ask-bubble th,
.mzk-ask-bubble td {
  padding: 0.3rem 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  text-align: start;
}

.mzk-ask-bubble code {
  padding: 0.05rem 0.25rem;
  border-radius: 0.3rem;
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.75rem;
}

.mzk-ask-fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.42rem 0.72rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease;
}

.mzk-ask-fs-btn:active {
  transform: scale(0.96);
  background: rgba(251, 191, 36, 0.2);
}

.mzk-ask-fs-btn svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* زر الخروج: مخفي في الوضع العادي، ويظهر فقط داخل ملء الشاشة */
.mzk-ask-exit {
  display: none;
}

.mzk-ask.is-fs {
  position: fixed;
  inset: 0;
  z-index: 100;
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  margin: 0;
  padding: calc(0.5rem + env(safe-area-inset-top)) 0.55rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
  border-radius: 0;
  background: linear-gradient(180deg, #0b1322 0%, #080d18 100%);
}

/* في ملء الشاشة يبقى المحادثة + مربع الكتابة فقط */
.mzk-ask.is-fs .mzk-ask-head,
.mzk-ask.is-fs .mzk-ask-sugg {
  display: none !important;
}

.mzk-ask.is-fs .mzk-ask-log {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 2.6rem;
  border-radius: 1rem;
}

.mzk-ask.is-fs .mzk-ask-form {
  flex: 0 0 auto;
  border-radius: 1rem;
}

.mzk-ask.is-fs .mzk-ask-exit {
  position: fixed;
  top: calc(0.5rem + env(safe-area-inset-top));
  inset-inline-end: 0.65rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.45rem 0.78rem;
  border-radius: 9999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(12, 20, 34, 0.94);
  color: #fca5a5;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(2, 6, 16, 0.6);
  transition: transform 0.16s ease, background 0.16s ease;
}

.mzk-ask.is-fs .mzk-ask-exit:active {
  transform: scale(0.95);
  background: rgba(12, 20, 34, 1);
}

.mzk-ask-exit svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 420px) {
  .mzk-onb-splash {
    gap: 0.85rem;
    padding-inline: 1.05rem;
  }

  .mzk-onb-name {
    font-size: 1.7rem;
  }

  .mzk-onb-card {
    padding: 0.85rem 0.85rem 1rem;
    border-radius: 1.3rem;
  }

  .mzk-onb-title {
    font-size: 1.1rem;
  }

  .mzk-onb-fs-btn span {
    display: none;
  }

  .mzk-ask-fs-btn {
    padding: 0.42rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mzk-onb-glow,
  .mzk-onb-hero,
  .mzk-onb-card,
  .mzk-onb-spin {
    animation: none !important;
  }
}
