/* ==========================================================================

   🦄 MASTER UNICORN THEME (ثيم اليونيكورن السحري الموحد) 🦄

   منصة أميرة اليونيكورن ميمي التعليمية - الصف الخامس الابتدائي

   ========================================================================== */



@import url('https://fonts.googleapis.com/css2?family=Changa:wght@500;600;700;800;900&family=Marhey:wght@500;600;700&family=Tajawal:wght@400;500;700;800;900&display=swap');



:root {

  /* Pastel Unicorn Palette */

  --unicorn-pink: #f472b6;

  --unicorn-magenta: #ec4899;

  --unicorn-purple: #c084fc;

  --unicorn-lavender: #a855f7;

  --unicorn-deep: #7e22ce;

  --unicorn-cyan: #38bdf8;

  --unicorn-mint: #2dd4bf;

  --unicorn-gold: #fbbf24;

  --unicorn-starlight: #fef08a;

  --unicorn-bg: #fdf4ff;

  --unicorn-card-bg: rgba(255, 255, 255, 0.94);

  --unicorn-card-border: rgba(244, 114, 182, 0.35);

  --unicorn-shadow: 0 12px 32px rgba(192, 132, 252, 0.22);

  --unicorn-font-main: 'Tajawal', sans-serif;

  --unicorn-font-title: 'Marhey', 'Changa', sans-serif;

  --unicorn-font-action: 'Changa', sans-serif;



  /* Aliases to override older themes */

  --primary: #c084fc !important;

  --primary-light: #e879f9 !important;

  --primary-dark: #7e22ce !important;

  --secondary: #ec4899 !important;

  --accent: #38bdf8 !important;

  --gold: #fbbf24 !important;

  --bg-main: #fdf4ff !important;

  --rose-pink: #f472b6 !important;

  --rose-red: #ec4899 !important;

  --rose-crimson: #a855f7 !important;

}



/* --------------------------------------------------------------------------

   1. GLOBAL BODY & UNIFIED IRIDESCENT BACKGROUND

   -------------------------------------------------------------------------- */

html, body {

  font-family: var(--unicorn-font-main) !important;

  color: #334155 !important;

  direction: rtl;

}



body {

  background-color: #fdf4ff !important;

  background-image: 

    radial-gradient(circle at 12% 15%, rgba(192, 132, 252, 0.24) 0%, transparent 45%),

    radial-gradient(circle at 88% 20%, rgba(244, 114, 182, 0.24) 0%, transparent 45%),

    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.16) 0%, transparent 55%),

    radial-gradient(circle at 20% 85%, rgba(251, 191, 36, 0.18) 0%, transparent 45%),

    radial-gradient(circle at 82% 85%, rgba(236, 72, 153, 0.2) 0%, transparent 45%),

    linear-gradient(135deg, #fff5f7 0%, #fdf4ff 35%, #f5f3ff 70%, #f0f9ff 100%) !important;

  background-attachment: fixed !important;

  min-height: 100vh;

}



/* Unified Unicorn Scrollbar */

::-webkit-scrollbar {

  width: 12px !important;

  height: 12px !important;

}

::-webkit-scrollbar-track {

  background: #faf5ff !important;

}

::-webkit-scrollbar-thumb {

  background: linear-gradient(180deg, #ec4899, #a855f7, #38bdf8) !important;

  border-radius: 10px !important;

  border: 2px solid #faf5ff !important;

}

::-webkit-scrollbar-thumb:hover {

  background: linear-gradient(180deg, #d946ef, #9333ea, #0284c7) !important;

}



/* --------------------------------------------------------------------------

   2. AMBIENT FLOATING UNICORN DECORATIONS

   -------------------------------------------------------------------------- */

.bg-decorations, .unicorn-ambient-decor {

  position: fixed !important;

  inset: 0 !important;

  pointer-events: none !important;

  z-index: 0 !important;

  overflow: hidden !important;

}



.floating-shape, .ambient-flower {

  position: absolute !important;

  opacity: 0.18 !important;

  filter: drop-shadow(0 8px 18px rgba(192, 132, 252, 0.25)) !important;

  animation: unicornFloat 20s infinite ease-in-out alternate !important;

  font-size: 80px !important;

  user-select: none !important;

}



.shape-1, .ambient-1 { top: 6% !important; left: 4% !important; animation-duration: 22s !important; font-size: 110px !important; }

.shape-2, .ambient-2 { bottom: 10% !important; right: 5% !important; animation-duration: 26s !important; animation-delay: -5s !important; font-size: 95px !important; }

.shape-3, .ambient-3 { top: 48% !important; right: 3% !important; animation-duration: 19s !important; animation-delay: -8s !important; font-size: 85px !important; }

.shape-4, .ambient-4 { bottom: 35% !important; left: 3% !important; animation-duration: 24s !important; animation-delay: -3s !important; font-size: 90px !important; }



.shape-1::after, .ambient-1::after { content: '🦄' !important; }

.shape-2::after, .ambient-2::after { content: '🌈' !important; }

.shape-3::after, .ambient-3::after { content: '✨' !important; }

.shape-4::after, .ambient-4::after { content: '⭐' !important; }



@keyframes unicornFloat {

  0% { transform: translateY(0) rotate(0deg) scale(1); }

  50% { transform: translateY(-24px) rotate(6deg) scale(1.06); }

  100% { transform: translateY(18px) rotate(-6deg) scale(0.96); }

}



/* --------------------------------------------------------------------------

   3. UNIFIED UNICORN HERO HEADER

   -------------------------------------------------------------------------- */

.hero-header,

.mc-hero-header,

.unicorn-hero-header,

.garden-navbar {

  background: rgba(255, 255, 255, 0.92) !important;

  backdrop-filter: blur(18px) !important;

  -webkit-backdrop-filter: blur(18px) !important;

  border: 2px solid rgba(244, 114, 182, 0.4) !important;

  box-shadow: 0 12px 36px rgba(192, 132, 252, 0.18), 0 2px 8px rgba(236, 72, 153, 0.1) !important;

  border-radius: 28px !important;

  padding: 16px 24px !important;

  margin-bottom: 24px !important;

  display: flex !important;

  justify-content: space-between !important;

  align-items: center !important;

  gap: 16px !important;

  flex-wrap: wrap !important;

  position: relative !important;

  z-index: 40 !important;

}



/* Profile Section */

.hero-profile,

.hero-profile-tag {

  display: flex !important;

  align-items: center !important;

  gap: 16px !important;

}



/* Unicorn Avatar Wrap */

.minecraft-avatar-wrap,

.unicorn-avatar-wrap,

.hero-avatar-frame {

  position: relative !important;

  width: 76px !important;

  height: 76px !important;

  border-radius: 50% !important;

  padding: 3px !important;

  background: linear-gradient(135deg, #f472b6, #c084fc, #38bdf8) !important;

  box-shadow: 0 0 22px rgba(236, 72, 153, 0.4), 0 0 10px rgba(192, 132, 252, 0.3) !important;

  cursor: default !important;

  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;

  flex-shrink: 0 !important;

}



.minecraft-avatar-wrap:hover,

.unicorn-avatar-wrap:hover,

.hero-avatar-frame:hover {

  transform: scale(1.08) rotate(4deg) !important;

  box-shadow: 0 0 30px rgba(236, 72, 153, 0.6), 0 0 15px rgba(56, 189, 248, 0.4) !important;

}



.minecraft-avatar-img,

.unicorn-avatar-img,

.hero-avatar-frame img {

  width: 100% !important;

  height: 100% !important;

  border-radius: 50% !important;

  object-fit: cover !important;

  border: 3px solid #ffffff !important;

  display: block !important;

}



.mc-avatar-crown,

.unicorn-avatar-crown {

  position: absolute !important;

  top: -12px !important;

  right: -6px !important;

  font-size: 24px !important;

  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)) !important;

  animation: crownBob 3s ease-in-out infinite alternate !important;

  z-index: 2 !important;

}



@keyframes crownBob {

  0% { transform: translateY(0) rotate(0deg); }

  100% { transform: translateY(-5px) rotate(8deg); }

}



/* Titles */

.hero-title,

.hero-title-group {

  display: flex !important;

  flex-direction: column !important;

  gap: 4px !important;

}



.mc-edition-tag,

.unicorn-edition-tag {

  display: inline-flex !important;

  align-items: center !important;

  gap: 6px !important;

  background: linear-gradient(135deg, #fdf2f8, #f5f3ff) !important;

  border: 1.5px solid #f0abfc !important;

  color: #9333ea !important;

  padding: 3px 12px !important;

  border-radius: 20px !important;

  font-size: 11px !important;

  font-weight: 800 !important;

  font-family: var(--unicorn-font-action) !important;

  letter-spacing: 0.5px !important;

  width: fit-content !important;

  box-shadow: 0 2px 8px rgba(192, 132, 252, 0.15) !important;

}



.hero-title h1,

.unicorn-hero-header h1,

.hero-title-group h1 {

  font-size: 1.5rem !important;

  font-weight: 900 !important;

  font-family: var(--unicorn-font-title) !important;

  background: linear-gradient(135deg, #db2777 0%, #9333ea 50%, #0284c7 100%) !important;

  -webkit-background-clip: text !important;

  -webkit-text-fill-color: transparent !important;

  margin: 0 !important;

  line-height: 1.3 !important;

}



.hero-title p,

.unicorn-hero-header p,

.hero-title-group p {

  font-size: 0.95rem !important;

  color: #64748b !important;

  font-weight: 600 !important;

  margin: 0 !important;

}



/* XP Bar & Levels */

.mc-xp-container {

  display: flex !important;

  flex-direction: column !important;

  gap: 4px !important;

  margin-top: 6px !important;

  width: 100% !important;

  max-width: 360px !important;

}



.mc-xp-bar {

  background: rgba(243, 232, 255, 0.8) !important;

  border: 1.5px solid #e9d5ff !important;

  height: 12px !important;

  border-radius: 10px !important;

  overflow: hidden !important;

  position: relative !important;

  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;

}



.mc-xp-bar-fill {

  height: 100% !important;

  background: linear-gradient(90deg, #ec4899, #c084fc, #38bdf8, #ec4899) !important;

  background-size: 200% 100% !important;

  animation: rainbowFlow 4s linear infinite !important;

  border-radius: 8px !important;

  transition: width 0.6s ease !important;

}



@keyframes rainbowFlow {

  0% { background-position: 0% 50%; }

  100% { background-position: 200% 50%; }

}



.mc-xp-labels {

  display: flex !important;

  justify-content: space-between !important;

  align-items: center !important;

  font-size: 11px !important;

  font-weight: 700 !important;

  color: #7e22ce !important;

}



.mc-level-badge,

.unicorn-level-badge,

.level-badge {

  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;

  color: #78350f !important;

  padding: 4px 12px !important;

  border-radius: 20px !important;

  font-weight: 900 !important;

  font-family: var(--unicorn-font-action) !important;

  font-size: 12px !important;

  box-shadow: 0 3px 10px rgba(251, 191, 36, 0.4) !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 4px !important;

  border: 1px solid #fef08a !important;

}



/* --------------------------------------------------------------------------

   4. UNIFIED TOP NAVIGATION BUTTONS & STATS BADGES

   -------------------------------------------------------------------------- */

.stats-badges,

.stats-hub {

  display: flex !important;

  align-items: center !important;

  gap: 10px !important;

  flex-wrap: wrap !important;

}



/* Home Button */

.mc-btn-home,

.unicorn-btn-home {

  background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%) !important;

  color: #9333ea !important;

  border: 1.5px solid #e9d5ff !important;

  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.2) !important;

  padding: 8px 16px !important;

  border-radius: 20px !important;

  font-size: 13px !important;

  font-weight: 800 !important;

  font-family: var(--unicorn-font-action) !important;

  text-decoration: none !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 6px !important;

  cursor: default !important;

  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

}



.mc-btn-home:hover,

.unicorn-btn-home:hover {

  transform: translateY(-2px) scale(1.03) !important;

  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;

  border-color: #c084fc !important;

  box-shadow: 0 8px 22px rgba(192, 132, 252, 0.35) !important;

  color: #7e22ce !important;

}



/* Game Oasis Button */

.mc-btn-play-steve,

.unicorn-btn-game {

  background: linear-gradient(135deg, #ec4899 0%, #c084fc 50%, #38bdf8 100%) !important;

  color: #ffffff !important;

  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;

  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35) !important;

  padding: 8px 18px !important;

  border-radius: 20px !important;

  font-size: 13px !important;

  font-weight: 800 !important;

  font-family: var(--unicorn-font-action) !important;

  text-decoration: none !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 6px !important;

  cursor: default !important;

  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;

}



.mc-btn-play-steve:hover,

.unicorn-btn-game:hover {

  transform: translateY(-2px) scale(1.04) !important;

  box-shadow: 0 8px 26px rgba(236, 72, 153, 0.5) !important;

  background: linear-gradient(135deg, #db2777 0%, #a855f7 50%, #0284c7 100%) !important;

}



/* Stat Counter Pills */

.mc-stat-item,

.stat-badge {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1.5px solid #f0abfc !important;

  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.15) !important;

  padding: 6px 14px !important;

  border-radius: 18px !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 8px !important;

  font-family: var(--unicorn-font-action) !important;

  font-weight: 800 !important;

  color: #7e22ce !important;

  font-size: 12px !important;

}



.mc-stat-item .stat-icon,

.stat-badge span:first-child {

  font-size: 18px !important;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;

}



.mc-stat-item .stat-val,

.stat-badge span:last-child {

  font-size: 14px !important;

  font-weight: 900 !important;

  color: #db2777 !important;

}



/* Sound Toggle Button & Nav Icon Buttons */

.sound-toggle-btn,

.mc-btn-sound,

.nav-btn {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1.5px solid #e9d5ff !important;

  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.18) !important;

  color: #7e22ce !important;

  width: 40px !important;

  height: 40px !important;

  border-radius: 50% !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  font-size: 16px !important;

  cursor: default !important;

  transition: all 0.22s ease !important;

  text-decoration: none !important;

}



.sound-toggle-btn:hover,

.mc-btn-sound:hover,

.nav-btn:hover {

  transform: translateY(-2px) scale(1.08) !important;

  background: #fdf4ff !important;

  border-color: #f472b6 !important;

  color: #db2777 !important;

  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3) !important;

}



/* --------------------------------------------------------------------------

   5. UNIFIED NAVIGATION TABS (الوحدات، الفصول، الدروس)

   -------------------------------------------------------------------------- */

.navigation-tabs,

.locker-room {

  display: flex !important;

  gap: 10px !important;

  flex-wrap: wrap !important;

  margin-bottom: 20px !important;

  padding: 6px !important;

  background: rgba(255, 255, 255, 0.6) !important;

  border-radius: 24px !important;

  border: 1px solid rgba(244, 114, 182, 0.2) !important;

}



.nav-btn,

.unit-btn,

.chapter-tab,

.lesson-tab,

.tab-btn {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1.5px solid #f0abfc !important;

  color: #7e22ce !important;

  padding: 8px 18px !important;

  border-radius: 18px !important;

  font-family: var(--unicorn-font-action) !important;

  font-weight: 800 !important;

  font-size: 13px !important;

  cursor: default !important;

  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

  box-shadow: 0 3px 10px rgba(192, 132, 252, 0.12) !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 6px !important;

  text-decoration: none !important;

  width: auto !important;

  height: auto !important;

}



.nav-btn:hover,

.unit-btn:hover,

.chapter-tab:hover,

.lesson-tab:hover,

.tab-btn:hover {

  transform: translateY(-2px) !important;

  background: linear-gradient(135deg, #fdf2f8, #f5f3ff) !important;

  border-color: #ec4899 !important;

  color: #db2777 !important;

  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.25) !important;

}



.nav-btn.active,

.unit-btn.active,

.chapter-tab.active,

.lesson-tab.active,

.tab-btn.active {

  background: linear-gradient(135deg, #ec4899 0%, #c084fc 100%) !important;

  color: #ffffff !important;

  border-color: #f472b6 !important;

  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35) !important;

  transform: scale(1.03) !important;

}



/* --------------------------------------------------------------------------

   6. UNIFIED GLASS CARDS & CONTENT CONTAINERS

   -------------------------------------------------------------------------- */

.glass-card,

.unit-card,

.lesson-card,

.app-container,

.main-stage,

.garden-canvas-area,

.portal-card {

  background: rgba(255, 255, 255, 0.94) !important;

  backdrop-filter: blur(14px) !important;

  -webkit-backdrop-filter: blur(14px) !important;

  border: 2px solid rgba(244, 114, 182, 0.32) !important;

  border-radius: 26px !important;

  box-shadow: 0 12px 34px rgba(192, 132, 252, 0.16) !important;

}



.section-title,

.lesson-title,

.unit-title {

  font-family: var(--unicorn-font-title) !important;

  color: #7e22ce !important;

  font-weight: 800 !important;

}



/* --------------------------------------------------------------------------

   7. UNIFIED ACTION BUTTONS & QUIZ OPTIONS

   -------------------------------------------------------------------------- */

.btn,

.btn-primary,

.option-btn,

.mini-game-btn,

.action-btn,

.unit-action-btn,

.lesson-btn-action {

  background: linear-gradient(135deg, #ec4899 0%, #c084fc 50%, #818cf8 100%) !important;

  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;

  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3) !important;

  color: #ffffff !important;

  padding: 10px 22px !important;

  font-family: var(--unicorn-font-action) !important;

  font-size: 1rem !important;

  font-weight: 800 !important;

  border-radius: 20px !important;

  cursor: default !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;

  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

  text-decoration: none !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 8px !important;

}



.btn:hover,

.btn-primary:hover,

.option-btn:hover,

.mini-game-btn:hover,

.action-btn:hover,

.unit-action-btn:hover,

.lesson-btn-action:hover {

  transform: translateY(-2px) scale(1.02) !important;

  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.45) !important;

  background: linear-gradient(135deg, #db2777 0%, #a855f7 50%, #6366f1 100%) !important;

}



/* Floating Whiteboard Button - Small Circular */
#openWhiteboardBtn {
  position: fixed !important;
  bottom: 22px !important;
  left: 22px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  animation: none !important;
  outline: none !important;
}

.floating-board-btn.visible,
#openWhiteboardBtn.visible {
  display: flex !important;
}

#openWhiteboardBtn:hover {
  transform: scale(1.14) translateY(-3px) !important;
  background: linear-gradient(135deg, #f43f5e 0%, #d946ef 50%, #8b5cf6 100%) !important;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6), 0 0 15px rgba(236, 72, 153, 0.5) !important;
}

.floating-board-btn:active,
#openWhiteboardBtn:active {
  transform: scale(0.92) !important;
}



/* Secondary Button */

.btn-secondary,

.btn-outline {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1.5px solid #f0abfc !important;

  color: #7e22ce !important;

  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.15) !important;

  text-shadow: none !important;

}



.btn-secondary:hover,

.btn-outline:hover {

  background: linear-gradient(135deg, #fdf2f8, #f5f3ff) !important;

  color: #db2777 !important;

}



/* --------------------------------------------------------------------------

   8. UNIFIED MODALS & CELEBRATION BOX

   -------------------------------------------------------------------------- */

.modal,

.modal-overlay,

.steve-modal-overlay,

.whiteboard-modal {

  backdrop-filter: blur(8px) !important;

  -webkit-backdrop-filter: blur(8px) !important;

}



.modal-content,

.steve-modal-box,

.unicorn-celebration-box,

.whiteboard-container {

  background: rgba(255, 255, 255, 0.97) !important;

  border: 2.5px solid #f472b6 !important;

  border-radius: 30px !important;

  box-shadow: 0 20px 50px rgba(192, 132, 252, 0.35) !important;

}



/* --------------------------------------------------------------------------

   9. UNIFIED FOOTER

   -------------------------------------------------------------------------- */

footer,

.platform-footer,

.mc-footer,

.portal-footer {

  margin-top: 40px !important;

  padding: 24px 16px !important;

  text-align: center !important;

  font-family: var(--unicorn-font-main) !important;

  color: #64748b !important;

  font-size: 13px !important;

  font-weight: 600 !important;

  border-top: 1.5px solid rgba(244, 114, 182, 0.25) !important;

  background: rgba(255, 255, 255, 0.5) !important;

  border-radius: 24px 24px 0 0 !important;

}



footer a,

.platform-footer a,

.mc-footer a,

.portal-footer a {

  color: #a855f7 !important;

  font-weight: 800 !important;

  text-decoration: none !important;

  transition: color 0.2s ease !important;

}



footer a:hover,

.platform-footer a:hover,

.mc-footer a:hover,

.portal-footer a:hover {

  color: #ec4899 !important;

}

/* --------------------------------------------------------------------------

   10. UNIFIED GAME KINGDOM STYLES (مملكة الألعاب التفاعلية)

   -------------------------------------------------------------------------- */

.garden-toolbar-wrap {

  background: rgba(255, 255, 255, 0.96) !important;

  border: 2px solid #f0abfc !important;

  border-radius: 32px !important;

  box-shadow: 0 10px 36px rgba(192, 132, 252, 0.3) !important;

}



.tool-btn {

  background: #ffffff !important;

  border: 2px solid #f0abfc !important;

  border-radius: 24px !important;

  color: #7e22ce !important;

  font-family: var(--unicorn-font-action) !important;

  font-weight: 800 !important;

  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

}



.tool-btn:hover {

  transform: translateY(-3px) scale(1.05) !important;

  border-color: #ec4899 !important;

  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.25) !important;

}



.tool-btn.active {

  background: linear-gradient(135deg, #ec4899, #c084fc) !important;

  color: #ffffff !important;

  border-color: #ffffff !important;

  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4) !important;

  transform: translateY(-4px) scale(1.08) !important;

}



.seed-drawer {

  background: rgba(255, 255, 255, 0.98) !important;

  border: 2.5px solid #f0abfc !important;

  border-radius: 28px !important;

  box-shadow: 0 14px 40px rgba(192, 132, 252, 0.35) !important;

}



.seed-chip {

  background: #fdf4ff !important;

  border: 2px solid #e9d5ff !important;

  color: #7e22ce !important;

  border-radius: 20px !important;

  font-family: var(--unicorn-font-action) !important;

  font-weight: 800 !important;

  transition: all 0.2s ease !important;

}



.seed-chip:hover {

  border-color: #ec4899 !important;

  transform: scale(1.04) !important;

}



.seed-chip.selected {

  background: linear-gradient(135deg, #ec4899, #c084fc) !important;

  color: #ffffff !important;

  border-color: #ffffff !important;

  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35) !important;

}



.stage-banner {

  background: rgba(255, 255, 255, 0.94) !important;

  border: 2px solid rgba(244, 114, 182, 0.35) !important;

  border-radius: 24px !important;

  margin: 0 16px 16px 16px !important;

  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.15) !important;

  backdrop-filter: blur(12px) !important;

}



.weather-btn {

  background: #fdf4ff !important;

  border: 1.5px solid #e9d5ff !important;

  border-radius: 50% !important;

  color: #7e22ce !important;

  transition: all 0.2s ease !important;

}



.weather-btn:hover {

  transform: scale(1.1) !important;

  border-color: #ec4899 !important;

}



.weather-btn.active {

  background: linear-gradient(135deg, #ec4899, #c084fc) !important;

  color: #ffffff !important;

  border-color: #ffffff !important;

  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;

}





/* Unified Unicorn Hero Header Watermark (استبدال المعول باليونيكورن) */

.hero-header::after,

.mc-hero-header::after,

.unicorn-hero-header::after {

  content: '🦄' !important;

  position: absolute !important;

  left: 20px !important;

  bottom: -15px !important;

  font-size: 115px !important;

  opacity: 0.16 !important;

  transform: rotate(-12deg) scale(1.05) !important;

  pointer-events: none !important;

  user-select: none !important;

  z-index: 0 !important;

  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.45)) !important;

}





/* --------------------------------------------------------------------------

   11. COMPLETE SOCIAL STUDIES OVERHAUL (منصة الاجتماعيات بتنسيق موحد 100%)

   -------------------------------------------------------------------------- */



/* Navigation Container (Locker Room) */

.locker-room,

#main-nav {

  background: rgba(255, 255, 255, 0.92) !important;

  backdrop-filter: blur(16px) !important;

  -webkit-backdrop-filter: blur(16px) !important;

  border: 2px solid rgba(244, 114, 182, 0.35) !important;

  border-radius: 28px !important;

  box-shadow: 0 12px 36px rgba(192, 132, 252, 0.18) !important;

  padding: 18px 24px !important;

  margin-bottom: 24px !important;

  outline: none !important;

}



/* Nav Levels (Inside locker-room) */

.nav-level {

  display: flex !important;

  justify-content: center !important;

  align-items: center !important;

  flex-wrap: wrap !important;

  gap: 12px !important;

  width: 100% !important;

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  padding: 0 !important;

  margin: 0 !important;

}



.nav-level.hidden,

.hidden {

  display: none !important;

}



/* Base Nav & Action Buttons in Social Studies */

.locker-room .nav-btn,

.nav-btn.unit-btn,

.nav-btn.chapter-btn,

.nav-btn.lesson-btn,

.nav-btn.back-btn,

.nav-btn.mc-home-btn {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1.5px solid #f0abfc !important;

  outline: none !important;

  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.15) !important;

  color: #7e22ce !important;

  border-radius: 22px !important;

  padding: 10px 20px !important;

  font-family: var(--unicorn-font-action) !important;

  font-size: 13.5px !important;

  font-weight: 800 !important;

  text-shadow: none !important;

  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

  cursor: default !important;

  display: inline-flex !important;

  align-items: center !important;

  gap: 8px !important;

  width: auto !important;

}



.locker-room .nav-btn:hover,

.nav-btn.unit-btn:hover,

.nav-btn.chapter-btn:hover,

.nav-btn.lesson-btn:hover,

.nav-btn.back-btn:hover,

.nav-btn.mc-home-btn:hover {

  transform: translateY(-2px) scale(1.02) !important;

  background: linear-gradient(135deg, #fdf4ff, #fae8ff) !important;

  border-color: #ec4899 !important;

  color: #db2777 !important;

  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.28) !important;

}



/* Active Nav Button */

.nav-btn.active,

.unit-btn.active,

.chapter-btn.active,

.lesson-btn.active {

  background: linear-gradient(135deg, #ec4899 0%, #c084fc 100%) !important;

  color: #ffffff !important;

  border-color: #ffffff !important;

  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4) !important;

  transform: translateY(-2px) scale(1.03) !important;

}



/* Exam / Special Challenge Button */

.nav-btn.match-btn,

.nav-btn.final-exam-btn {

  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #c084fc 100%) !important;

  color: #ffffff !important;

  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;

  box-shadow: 0 8px 26px rgba(244, 63, 94, 0.35) !important;

  border-radius: 24px !important;

  font-family: var(--unicorn-font-action) !important;

  font-size: 14px !important;

  font-weight: 900 !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;

}



.nav-btn.match-btn:hover,

.nav-btn.final-exam-btn:hover {

  transform: translateY(-3px) scale(1.03) !important;

  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.45) !important;

  background: linear-gradient(135deg, #e11d48 0%, #db2777 50%, #a855f7 100%) !important;

}



/* Main Area Container */

.pitch.mc-main-area {

  background: transparent !important;

  background-image: none !important;

  border: none !important;

  box-shadow: none !important;

  padding: 0 !important;

  display: flex !important;

  justify-content: center !important;

  width: 100% !important;

}



/* Content Container (Parchment Card) */

.content-container.mc-parchment {

  background: rgba(255, 255, 255, 0.94) !important;

  backdrop-filter: blur(16px) !important;

  -webkit-backdrop-filter: blur(16px) !important;

  border: 2px solid rgba(244, 114, 182, 0.35) !important;

  border-radius: 28px !important;

  box-shadow: 0 14px 40px rgba(192, 132, 252, 0.18) !important;

  outline: none !important;

  padding: 32px 28px !important;

  max-width: 980px !important;

  width: 100% !important;

  color: #334155 !important;

}



/* Stats Badges in Social Header */

.stats-badges .stat-item.mc-stat-item {

  background: rgba(255, 255, 255, 0.95) !important;

  border: 1.5px solid #f0abfc !important;

  outline: none !important;

  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.15) !important;

  border-radius: 20px !important;

  color: #7e22ce !important;

  padding: 6px 14px !important;

}



/* Welcome Badge */

.mc-welcome-badge {

  background: linear-gradient(135deg, #fdf2f8, #f5f3ff) !important;

  border: 1.5px solid #f0abfc !important;

  color: #9333ea !important;

  padding: 6px 16px !important;

  border-radius: 20px !important;

  box-shadow: 0 2px 8px rgba(192, 132, 252, 0.15) !important;

  font-family: var(--unicorn-font-action) !important;

  font-weight: 800 !important;

  font-size: 13px !important;

  text-shadow: none !important;

}



/* Lesson Sections */

.lesson-section {

  background: #ffffff !important;

  border: 2px solid #f0abfc !important;

  border-radius: 24px !important;

  padding: 24px !important;

  margin-bottom: 24px !important;

  box-shadow: 0 8px 22px rgba(192, 132, 252, 0.12) !important;

}



.lesson-section h3 {

  font-family: var(--unicorn-font-title) !important;

  color: #7e22ce !important;

  font-size: 1.3rem !important;

  margin-bottom: 14px !important;

}



/* Question Cards & Option Buttons */

.question-card {

  background: #ffffff !important;

  border: 2px solid #f0abfc !important;

  border-radius: 24px !important;

  padding: 26px !important;

  margin-bottom: 24px !important;

  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.12) !important;

}



.option-btn {

  background: #ffffff !important;

  color: #475569 !important;

  border: 2px solid #e9d5ff !important;

  outline: none !important;

  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.1) !important;

  padding: 14px 20px !important;

  border-radius: 20px !important;

  font-family: var(--unicorn-font-main) !important;

  font-size: 1.05rem !important;

  font-weight: 700 !important;

  text-shadow: none !important;

  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;

}



.option-btn:hover {

  transform: translateY(-2px) scale(1.02) !important;

  background: linear-gradient(135deg, #fdf4ff, #fae8ff) !important;

  border-color: #ec4899 !important;

  color: #db2777 !important;

  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.22) !important;

}



.option-btn.correct,

.option-btn.mc-option-correct {

  background: linear-gradient(135deg, #10b981, #059669) !important;

  color: #ffffff !important;

  border-color: #ffffff !important;

  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;

}



.option-btn.incorrect,

.option-btn.mc-option-wrong {

  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;

  color: #ffffff !important;

  border-color: #ffffff !important;

  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35) !important;

}



/* Nav Titles & Groups */

.nav-title {
  font-family: var(--unicorn-font-title) !important;
  color: #7e22ce !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  filter: none !important;
  border-bottom: 2.5px solid #f0abfc !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  text-align: center !important;
}





/* FORCE HIDDEN RULE */

.hidden,

.nav-level.hidden,

.unit-chapters-group.hidden,

.chapter-lessons.hidden {

  display: none !important;

}



/* ========================================================

   INTERACTIVE SVG & RICH INFORMATION DISPLAY SYSTEM 🦄✨

   ======================================================== */

.interactive-svg-wrap {

  width: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  margin: 20px 0;

  background: linear-gradient(135deg, rgba(253, 244, 255, 0.95), rgba(245, 243, 255, 0.95), rgba(240, 253, 244, 0.85));

  border-radius: 26px;

  padding: 22px 18px;

  border: 2px solid #f0abfc;

  box-shadow: 0 10px 30px rgba(192, 132, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);

  position: relative;

  overflow: hidden;

  transition: all 0.3s ease;

}



.interactive-svg-wrap:hover {

  border-color: #ec4899;

  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.22);

}



.interactive-svg-title {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-family: 'Marhey', 'Changa', sans-serif;

  font-size: 1.15rem;

  font-weight: 800;

  color: #7e22ce;

  background: rgba(255, 255, 255, 0.9);

  padding: 6px 18px;

  border-radius: 20px;

  border: 1.5px solid #f0abfc;

  margin-bottom: 14px;

  box-shadow: 0 3px 10px rgba(192, 132, 252, 0.12);

}



.interactive-svg-wrap svg {

  max-width: 100%;

  height: auto;

  border-radius: 18px;

  filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.08));

}



.interactive-hotspot {

  cursor: pointer;

  transition: filter 0.22s ease, opacity 0.22s ease;

}



.interactive-hotspot:hover {

  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12)) brightness(1.04);

}



.interactive-hotspot.active {

  filter: drop-shadow(0 4px 10px rgba(126, 34, 206, 0.28));

}



.interactive-hotspot.active > path,

.interactive-hotspot.active > rect,

.interactive-hotspot.active > circle,

.interactive-hotspot.active > polygon,

.interactive-hotspot.active > ellipse {

  stroke: #9333ea !important;

  stroke-width: 2.6px !important;

}



.interactive-hotspot.dimmed {

  opacity: 0.85 !important;

}



.interactive-info-panel {

  width: 100%;

  max-width: 640px;

  margin-top: 16px;

  background: #ffffff;

  border: 2px solid #f0abfc;

  border-radius: 22px;

  padding: 16px 22px;

  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.18);

  text-align: center;

  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  animation: popIn 0.35s ease-out;

}



@keyframes popIn {

  0% { transform: scale(0.95); opacity: 0; }

  100% { transform: scale(1); opacity: 1; }

}



.interactive-info-header {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  font-family: 'Changa', 'Marhey', sans-serif;

  font-size: 1.25rem;

  font-weight: 900;

  color: #9333ea;

  margin-bottom: 6px;

}



.interactive-info-desc {

  font-family: 'Tajawal', sans-serif;

  font-size: 1.05rem;

  color: #475569;

  line-height: 1.7;

  font-weight: 600;

}



.interactive-tabs-row {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  justify-content: center;

  margin: 12px 0 16px 0;

}



.interactive-pill-btn {

  background: #ffffff;

  border: 1.5px solid #f0abfc;

  color: #7e22ce;

  font-family: 'Changa', sans-serif;

  font-size: 12.5px;

  font-weight: 800;

  padding: 6px 16px;

  border-radius: 20px;

  cursor: pointer;

  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);

  box-shadow: 0 3px 10px rgba(192, 132, 252, 0.12);

  display: inline-flex;

  align-items: center;

  gap: 6px;

}



.interactive-pill-btn:hover {

  transform: translateY(-2px) scale(1.03);

  background: linear-gradient(135deg, #fdf4ff, #fae8ff);

  border-color: #ec4899;

  color: #db2777;

  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);

}



.interactive-pill-btn.active {

  background: linear-gradient(135deg, #ec4899 0%, #c084fc 100%);

  color: #ffffff;

  border-color: #ffffff;

  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);

  transform: translateY(-2px) scale(1.05);

}



.magic-fact-card {

  background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%);

  border: 2px dashed #f0abfc;

  border-radius: 22px;

  padding: 16px 20px;

  margin: 16px 0;

  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.12);

  transition: all 0.25s ease;

}



.magic-fact-card:hover {

  border-color: #ec4899;

  transform: translateY(-2px);

  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);

}



.magic-fact-trigger {

  width: 100%;

  background: transparent;

  border: none;

  display: flex;

  align-items: center;

  justify-content: space-between;

  cursor: pointer;

  font-family: 'Marhey', 'Changa', sans-serif;

  font-size: 1.1rem;

  font-weight: 800;

  color: #9333ea;

  padding: 4px;

}



.magic-fact-content {

  margin-top: 10px;

  padding-top: 10px;

  border-top: 1.5px solid #f5d0fe;

  font-family: 'Tajawal', sans-serif;

  font-size: 1.05rem;

  color: #475569;

  line-height: 1.7;

  animation: fadeIn 0.3s ease;

}



.interactive-hint {

  font-family: 'Tajawal', sans-serif;

  font-size: 12px;

  font-weight: 700;

  color: #a855f7;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin-top: 8px;

}


/* Floating Whiteboard Button - Small Circular */
.floating-board-btn,
#openWhiteboardBtn {
  position: fixed !important;
  bottom: 22px !important;
  left: 22px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  animation: none !important;
  outline: none !important;
}

.floating-board-btn.visible,
#openWhiteboardBtn.visible {
  display: flex !important;
}

.floating-board-btn:hover,
#openWhiteboardBtn:hover {
  transform: scale(1.14) translateY(-3px) !important;
  background: linear-gradient(135deg, #f43f5e 0%, #d946ef 50%, #8b5cf6 100%) !important;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6), 0 0 15px rgba(236, 72, 153, 0.5) !important;
}

.floating-board-btn:active,
#openWhiteboardBtn:active {
  transform: scale(0.92) !important;
}

/* ========================================================
   🦄 UNICORN WHITEBOARD COMPREHENSIVE STYLING (سبورة اليونيكورن السحرية) 🦄
   ======================================================== */
.whiteboard-modal {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(49, 16, 66, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.whiteboard-container {
  background: #ffffff !important;
  width: min(94vw, 920px) !important;
  height: min(84vh, 640px) !important;
  border-radius: 28px !important;
  border: 3.5px solid #f472b6 !important;
  outline: none !important;
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.35), 0 0 35px rgba(192, 132, 252, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.whiteboard-header {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f5f3ff 100%) !important;
  border-bottom: 2px solid #fbcfe8 !important;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.1) !important;
  padding: 10px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
}

.whiteboard-tools {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.whiteboard-tools .color-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 2.5px solid #ffffff !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  padding: 0 !important;
}

.whiteboard-tools .color-btn:hover,
.whiteboard-tools .color-btn.active {
  transform: scale(1.25) !important;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.6) !important;
  border-color: #ffffff !important;
}

.whiteboard-tools .tool-btn {
  background: #ffffff !important;
  border: 1.5px solid #f472b6 !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15) !important;
  padding: 6px 14px !important;
  font-size: 1.1rem !important;
  color: #be185d !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  font-family: 'Changa', 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  outline: none !important;
}

.whiteboard-tools .tool-btn:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: scale(1.08) translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25) !important;
}

.whiteboard-tools .tool-btn.active,
.whiteboard-tools .tool-btn.rainbow-active {
  background: linear-gradient(135deg, #ec4899 0%, #c084fc 100%) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.5) !important;
}

.close-board-btn {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-family: 'Tajawal', 'Changa', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.close-board-btn:hover {
  background: linear-gradient(135deg, #e11d48 0%, #ec4899 100%) !important;
  transform: scale(1.06) translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.5) !important;
}

.canvas-wrapper {
  flex-grow: 1 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  background: #ffffff !important;
  cursor: crosshair !important;
}

#whiteboardCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Hide all emoji overlays from profile avatars across all platforms */
.mc-avatar-crown,
.unicorn-avatar-crown,
.avatar-crown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
