/**
 * ============================================================================
 * PRYASKAY ABDY — INSIDE APPLICATION MODERN HERITAGE / MANUSCRIPT LUXE THEME
 * Extends the outer landing page Modern Heritage aesthetic into every inside
 * section of #mainApp: Top Header, Classrooms Lobby, Classroom Chat Stage,
 * Members Sidebar, Main Menu Drawer, Feed Cards & All Inside Modals.
 * Palette preserved: Sufi Sage (#EAF2F6), Warm Parchment (#e3d5c8 / #dccbc0 /
 * #FAF6F0), Espresso Ink (#1E242B / #3B4650), Royal Amber Gold (#347493/#235B78).
 * ============================================================================
 */

/* ==========================================================================
   1. TOP NAVIGATION BAR (#mainApp > header) — MANUSCRIPT GLASS HEADER
   ========================================================================== */
#mainApp > header {
  background: rgba(219, 202, 188, 0.96) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border-bottom: 1px solid rgba(35, 91, 120, 0.26) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.65),
    0 10px 26px -10px rgba(56, 40, 28, 0.16) !important;
  min-height: 58px !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

/* Jewel-Crafted Brand Logo & Visible Calligraphic Brand Title */
#mainApp > header img[alt*="پریاسکە"] {
  border: 1.5px solid rgba(35, 91, 120, 0.36) !important;
  box-shadow:
    0 4px 12px -2px rgba(56, 40, 28, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  background: #eef2e4 !important;
  padding: 2px !important;
}

#mainApp > header h2 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #1E242B !important;
  color: #1E242B !important;
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

#mainApp > header #onlineCountText {
  color: #235B78 !important;
  font-weight: 700 !important;
}

/* Header Action Pills: Back, Active Room, Dreams, Home, Push Bell, Menu */
#backToClassroomsLobbyBtn,
#headerActiveRoomBadge,
#dreamAdminNavBtn,
#topExecutiveHubBtn,
#btnThemeToggle,
#pushNotificationBtn,
#mainMenuBtn {
  background: linear-gradient(145deg, rgba(243, 246, 236, 0.98) 0%, rgba(208, 190, 175, 0.95) 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.38) !important;
  color: #1E242B !important;
  border-radius: 0.85rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 3px 8px -2px rgba(56, 40, 28, 0.10) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#backToClassroomsLobbyBtn:hover,
#dreamAdminNavBtn:hover,
#topExecutiveHubBtn:hover,
#btnThemeToggle:hover,
#pushNotificationBtn:hover,
#mainMenuBtn:hover {
  background: linear-gradient(135deg, #5696B2 0%, #347493 100%) !important;
  border-color: rgba(108, 122, 69, 0.55) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 14px -3px rgba(108, 122, 69, 0.30) !important;
}

#backToClassroomsLobbyBtn i,
#headerActiveRoomBadge i,
#dreamAdminNavBtn i,
#topExecutiveHubBtn i,
#btnThemeToggle i,
#pushNotificationBtn i,
#mainMenuBtn i {
  color: #347493 !important;
  transition: color 0.2s ease !important;
}

#backToClassroomsLobbyBtn:hover i,
#dreamAdminNavBtn:hover i,
#topExecutiveHubBtn:hover i,
#btnThemeToggle:hover i,
#pushNotificationBtn:hover i,
#mainMenuBtn:hover i {
  color: #ffffff !important;
}

#dreamAdminNavBtn span:not(#dreamUnreadBadge),
#topExecutiveHubBtn span,
#btnThemeToggle span,
#pushNotificationBtn span,
#mainMenuBtn span:not(#mainMenuBadgeDot),
#headerActiveRoomBadge span {
  color: inherit !important;
}

#dreamAdminNavBtn #dreamUnreadBadge {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(35, 91, 120, 0.34) !important;
}

/* Live Lesson Nav Pill (Warm Heritage Crimson-Ivory when inside classroom) */
#liveLessonNavBtn {
  background: linear-gradient(145deg, #fdf3f2 0%, #f5dbd8 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
  border-radius: 0.85rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 3px 8px -2px rgba(108, 122, 69, 0.14) !important;
}

#liveLessonNavBtn:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  border-color: rgba(35, 91, 120, 0.55) !important;
  color: #ffffff !important;
}

#liveLessonNavBtn i {
  color: #be123c !important;
}

#liveLessonNavBtn:hover i,
#liveLessonNavBtn:hover span {
  color: #ffffff !important;
}

#liveLessonPulseDot {
  background: #e11d48 !important;
  border-color: rgba(255, 228, 230, 0.8) !important;
}

#liveLessonActiveBadge {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
}

/* Header User Profile Pill */
#mainApp > header div[onclick="openMyProfile()"] {
  background: linear-gradient(145deg, #FAF6F0 0%, #EDE0D0 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.38) !important;
  border-radius: 0.95rem !important;
  padding: 0.3rem 0.75rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 3px 8px -2px rgba(56, 40, 28, 0.10) !important;
  transition: all 0.2s ease !important;
}

#mainApp > header div[onclick="openMyProfile()"]:hover {
  border-color: rgba(108, 122, 69, 0.55) !important;
  background: linear-gradient(145deg, #ffffff 0%, #e3d5c8 100%) !important;
}

#mainApp > header #headerFullName {
  color: #1E242B !important;
  font-weight: 800 !important;
}

#mainApp > header #headerRoleBadge {
  background: rgba(108, 122, 69, 0.22) !important;
  border: 1px solid rgba(108, 122, 69, 0.30) !important;
  color: #7b4f36 !important;
  border-radius: 999px !important;
  padding: 0.08rem 0.45rem !important;
}

#mainApp > header #headerRoleBadge i {
  color: #235B78 !important;
}

#mainApp > header #headerStarBadge,
#mainApp > header #headerStarCount {
  color: #764b33 !important;
}

/* Notification & Curfew Banners */
#notificationPermissionBanner,
#nightCurfewBanner {
  background: linear-gradient(90deg, rgba(239, 243, 229, 0.98) 0%, rgba(214, 197, 182, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #1E242B !important;
}

/* ==========================================================================
   2. CLASSROOMS LOBBY (#classroomsLobbyView) — VELVETY SAGE + MANUSCRIPT FOLIOS
   ========================================================================== */
html:not(.dark) #mainApp #classroomsLobbyView,
html:not(.dark) #classroomsLobbyView,
body.light-theme #mainApp #classroomsLobbyView,
body.light-mode #mainApp #classroomsLobbyView {
  background-color: #EAF2F6 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23235B78%22%20stroke-width%3D%220.95%22%20opacity%3D%220.14%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23B67943%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23B67943%22%20fill-opacity%3D%220.12%22%20opacity%3D%220.165%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 85% 55% at 50% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(35, 91, 120, 0.14) 0%, transparent 60%) !important;
  background-size: 160px 160px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
}

/* Lobby Hero Header Ribbon */
#classroomsLobbyView > div:first-child,
body.light-theme #classroomsLobbyView > div:first-child,
body.light-mode #classroomsLobbyView > div:first-child {
  background: linear-gradient(168deg, rgba(227, 213, 200, 0.98) 0%, rgba(208, 190, 175, 0.96) 100%) !important;
  border-bottom: 1px solid rgba(35, 91, 120, 0.26) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.65),
    0 12px 28px -12px rgba(56, 40, 28, 0.20) !important;
  padding: 1rem 1.25rem !important;
}

/* Jewel Graduation Cap Emblem in Lobby Header */
#classroomsLobbyView > div:first-child .w-9.h-9 {
  width: 2.85rem !important;
  height: 2.85rem !important;
  border-radius: 0.95rem !important;
  background: linear-gradient(145deg, #5696B2 0%, #347493 55%, #235B78 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #1E242B !important;
  box-shadow:
    0 8px 18px -4px rgba(35, 91, 120, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.72) !important;
}

#classroomsLobbyView > div:first-child .w-9.h-9 i {
  color: #1E242B !important;
}

#classroomsLobbyView > div:first-child h2 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 700 !important;
  color: #1E242B !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

#classroomsLobbyView > div:first-child p {
  color: #3B4650 !important;
  font-size: 0.78rem !important;
}

#classroomsTotalCountBadge {
  background: linear-gradient(145deg, #eef2e4, #d4c1b1) !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
  color: #235B78 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

#classroomsSearchInput {
  background: #ffffff !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
  border-radius: 0.85rem !important;
  color: #1E242B !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: inset 0 1px 3px rgba(56, 40, 28, 0.06) !important;
}

#classroomsSearchInput:focus {
  border-color: rgba(35, 91, 120, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(116, 131, 76, 0.20) !important;
}

#createClassroomBtn {
  background: linear-gradient(135deg, #5696B2 0%, #347493 55%, #235B78 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(35, 91, 120, 0.36) !important;
  border-radius: 0.85rem !important;
  padding: 0.52rem 0.95rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 6px 16px -4px rgba(35, 91, 120, 0.28) !important;
  transition: all 0.22s ease !important;
}

#createClassroomBtn *,
#createClassroomBtn span,
#createClassroomBtn i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#createClassroomBtn:hover {
  transform: translateY(-1.5px) !important;
  filter: brightness(1.05) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 22px -4px rgba(35, 91, 120, 0.34) !important;
}

/* Classrooms Cards Grid — Compact Warm Parchment Rectangles */
#classroomsGridContainer {
  gap: 0.85rem !important;
  padding-top: 0.35rem !important;
}

#classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card,
#classroomsLobbyView .classroom-lobby-card,
.classroom-lobby-card,
body.light-theme .classroom-lobby-card,
body.light-mode .classroom-lobby-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: right !important;
  gap: 0.75rem !important;
  padding: 0.85rem 1rem !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  border-radius: 1rem !important;
  background: linear-gradient(166deg, rgba(237, 241, 226, 0.98) 0%, rgba(208, 190, 175, 0.97) 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.38) !important;
  box-shadow:
    0 8px 20px -8px rgba(56, 40, 28, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.classroom-lobby-card::before {
  display: none !important;
  content: none !important;
}

.classroom-lobby-card:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(166deg, rgba(243, 246, 236, 0.99) 0%, rgba(218, 201, 187, 0.98) 100%) !important;
  border-color: rgba(108, 122, 69, 0.55) !important;
  box-shadow:
    0 12px 24px -8px rgba(56, 40, 28, 0.22),
    0 0 0 1px rgba(108, 122, 69, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* Right Side Content inside Compact Rectangular Card */
.classroom-lobby-card .pryaska-card-body {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  text-align: right !important;
  gap: 0.75rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Jewel Golden Icon Tile */
.classroom-lobby-card .pryaska-card-icon {
  width: 2.55rem !important;
  height: 2.55rem !important;
  border-radius: 0.85rem !important;
  background: linear-gradient(145deg, #5696B2 0%, #347493 55%, #235B78 100%) !important;
  border: 1px solid rgba(208, 218, 186, 0.75) !important;
  color: #1E242B !important;
  font-size: 1rem !important;
  box-shadow:
    0 6px 12px -4px rgba(35, 91, 120, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.75) !important;
}

.classroom-lobby-card .pryaska-card-icon i {
  color: #1E242B !important;
}

.classroom-lobby-card.is-live {
  border-color: rgba(225, 29, 72, 0.45) !important;
}

.classroom-lobby-card.is-live .pryaska-card-icon {
  background: linear-gradient(145deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  border-color: rgba(254, 205, 211, 0.65) !important;
}

.classroom-lobby-card.is-live .pryaska-card-icon i {
  color: #ffffff !important;
}

.classroom-lobby-card h3 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #1E242B !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.classroom-lobby-card .text-amber-300,
.classroom-lobby-card .text-amber-300\/80 {
  color: #235B78 !important;
}

.classroom-lobby-card .text-slate-400,
.classroom-lobby-card .text-slate-400\/80 {
  color: #3B4650 !important;
}

/* "سەرەکی" Pill inside Main Classroom Card */
.classroom-lobby-card span.bg-amber-400\/20 {
  background: rgba(108, 122, 69, 0.28) !important;
  border: 1px solid rgba(35, 91, 120, 0.28) !important;
  color: #7b4f36 !important;
  border-radius: 999px !important;
  padding: 0.08rem 0.5rem !important;
}

/* Left Side Compact Action Strip */
.classroom-lobby-card .pryaska-card-actions {
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.4rem !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top: none !important;
  flex-shrink: 0 !important;
}

/* Circular Antique Gold Enter Arrow */
.classroom-lobby-card .pryaska-enter-arrow {
  width: 1.95rem !important;
  height: 1.95rem !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(116, 131, 76, 0.22) 0%, rgba(92, 105, 57, 0.14) 100%) !important;
  border: 1px solid rgba(108, 122, 69, 0.36) !important;
  color: #235B78 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.classroom-lobby-card:hover .pryaska-enter-arrow {
  background: linear-gradient(135deg, #5696B2 0%, #347493 60%, #235B78 100%) !important;
  border-color: rgba(108, 122, 69, 0.58) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px -2px rgba(35, 91, 120, 0.26) !important;
}

/* Admin Edit / Delete Mini Buttons on Classroom Card */
.classroom-lobby-card button[onclick*="openCreateClassroomModal"],
.classroom-lobby-card button[onclick*="deleteClassroom"] {
  width: 1.85rem !important;
  height: 1.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.55rem !important;
  background: rgba(245, 247, 239, 0.88) !important;
  border: 1px solid rgba(128, 86, 61, 0.28) !important;
  color: #5e4c3e !important;
}

.classroom-lobby-card button[onclick*="openCreateClassroomModal"]:hover {
  background: rgba(116, 131, 76, 0.20) !important;
  border-color: rgba(35, 91, 120, 0.34) !important;
  color: #235B78 !important;
}

.classroom-lobby-card button[onclick*="deleteClassroom"]:hover {
  background: rgba(225, 29, 72, 0.12) !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: #be123c !important;
}

/* ==========================================================================
   3. MEMBERS SIDEBAR (#membersSidebar & #classroomMembersSidebar)
   ========================================================================== */
#membersSidebar,
#classroomMembersSidebar,
body.light-theme #membersSidebar,
body.light-mode #membersSidebar {
  background: linear-gradient(180deg, rgba(225, 210, 196, 0.98) 0%, rgba(208, 190, 175, 0.98) 100%) !important;
  border-color: rgba(35, 91, 120, 0.26) !important;
  box-shadow: 4px 0 24px -10px rgba(56, 40, 28, 0.14) !important;
}

#membersSidebar > div:first-child,
#classroomMembersSidebar > div:first-child {
  background: rgba(219, 202, 188, 0.95) !important;
  border-bottom: 1px solid rgba(128, 86, 61, 0.28) !important;
  padding: 0.9rem 1rem !important;
}

#membersSidebar > div:first-child i.fa-users {
  color: #347493 !important;
  font-size: 1rem !important;
}

#membersSidebar > div:first-child h3 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1E242B !important;
}

#membersSidebarCount {
  background: linear-gradient(145deg, #eef2e4, #d4c1b1) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
  font-weight: 800 !important;
}

/* Segmented Filter Tab Bar (Matching Auth Screen Tab Switcher) */
#membersSidebar > div:nth-child(2) {
  background: #efe6d6 !important;
  border: 1px solid rgba(128, 86, 61, 0.30) !important;
  border-radius: 0.95rem !important;
  margin: 0.65rem 0.75rem 0.35rem 0.75rem !important;
  padding: 0.25rem !important;
  gap: 0.2rem !important;
  box-shadow: inset 0 1px 3px rgba(56, 40, 28, 0.08) !important;
}

#membersSidebar #tabMemberAll,
#membersSidebar #tabMemberStudents,
#membersSidebar #tabMemberAdmins {
  background: transparent !important;
  border: none !important;
  border-radius: 0.72rem !important;
  color: #3B4650 !important;
  padding: 0.42rem 0.5rem !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

#membersSidebar #tabMemberAll:hover,
#membersSidebar #tabMemberStudents:hover,
#membersSidebar #tabMemberAdmins:hover {
  color: #1E242B !important;
  background: rgba(255, 255, 255, 0.45) !important;
}

#membersSidebar #tabMemberAll.bg-rose-600,
#membersSidebar #tabMemberStudents.bg-rose-600,
#membersSidebar #tabMemberAdmins.bg-rose-600 {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 10px -2px rgba(108, 122, 69, 0.36) !important;
  font-weight: 800 !important;
}

/* Members Search Box Container */
#membersSidebar > div:nth-child(3) {
  background: transparent !important;
  border-bottom: 1px solid rgba(128, 86, 61, 0.20) !important;
  padding: 0.45rem 0.75rem 0.7rem 0.75rem !important;
}

#membersSearchInput {
  background: #ffffff !important;
  border: 1px solid rgba(128, 86, 61, 0.35) !important;
  border-radius: 0.85rem !important;
  color: #1E242B !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  box-shadow: inset 0 1px 3px rgba(56, 40, 28, 0.05) !important;
}

#membersSearchInput:focus {
  border-color: rgba(35, 91, 120, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(116, 131, 76, 0.20) !important;
}

/* Individual Member Cards (#membersListContainer > div) */
#membersListContainer > div {
  background: linear-gradient(166deg, #FAF6F0 0%, #eef4f0 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.30) !important;
  border-radius: 1.1rem !important;
  padding: 0.72rem 0.8rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 12px -4px rgba(56, 40, 28, 0.08) !important;
  transition: all 0.22s ease !important;
}

#membersListContainer > div:hover {
  border-color: rgba(35, 91, 120, 0.36) !important;
  transform: translateY(-1.5px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px -6px rgba(56, 40, 28, 0.14) !important;
}

/* Member Avatar Frame (Luminous Sunlit Parchment + Gold Rim) */
#membersListContainer > div .w-9.h-9.rounded-xl {
  width: 2.55rem !important;
  height: 2.55rem !important;
  border-radius: 0.85rem !important;
  background: linear-gradient(145deg, #FAF6F0 0%, #efe6d6 100%) !important;
  border: 1.5px solid rgba(108, 122, 69, 0.36) !important;
  color: #235B78 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 3px 8px -2px rgba(56, 40, 28, 0.10) !important;
}

/* Info Button on Member Cards */
#membersListContainer > div button[onclick*="openUserProfileModal"] {
  background: rgba(108, 122, 69, 0.10) !important;
  border: 1px solid rgba(108, 122, 69, 0.22) !important;
  color: #235B78 !important;
  border-radius: 0.65rem !important;
}

#membersListContainer > div button[onclick*="openUserProfileModal"]:hover {
  background: linear-gradient(135deg, #5696B2 0%, #347493 100%) !important;
  color: #ffffff !important;
  border-color: rgba(35, 91, 120, 0.34) !important;
}

/* Harmonized Role & Star Badges (Replacing Neon Blue & Neon Yellow) */
.badge-student {
  background: linear-gradient(135deg, #e5d6ca 0%, #e5d6ca 100%) !important;
  border: 1px solid rgba(108, 122, 69, 0.40) !important;
  color: #7b4f36 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  padding: 0.15rem 0.6rem !important;
}

.badge-student-girl {
  background: linear-gradient(135deg, #fbeae8 0%, #f5d8d5 100%) !important;
  border: 1px solid rgba(136, 90, 64, 0.28) !important;
  color: #7b4f36 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  padding: 0.15rem 0.6rem !important;
}

.badge-new-student,
.badge-new-student-girl,
.badge-guest {
  background: linear-gradient(135deg, #e5d8cc 0%, #efe6d6 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.38) !important;
  color: #235B78 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  padding: 0.15rem 0.6rem !important;
}

.role-text-teacher {
  color: #6D28D9 !important;
}

.role-text-admin {
  color: #B45309 !important;
}

/* Distinct Display Role Name Colors (Light & Dark Modes) */
html:not(.dark) .user-name-teacher,
body.light-theme .user-name-teacher {
  color: #6D28D9 !important;
  text-shadow: none !important;
}

html.dark .user-name-teacher,
body.dark-theme .user-name-teacher {
  color: #C4B5FD !important;
  text-shadow: 0 0 8px rgba(196, 181, 253, 0.25) !important;
}

html:not(.dark) .user-name-boy,
body.light-theme .user-name-boy {
  color: #1E6B52 !important;
  text-shadow: none !important;
}

html.dark .user-name-boy,
body.dark-theme .user-name-boy {
  color: #6EE7B7 !important;
}

html:not(.dark) .user-name-girl,
body.light-theme .user-name-girl {
  color: #BE185D !important;
  text-shadow: none !important;
}

html.dark .user-name-girl,
body.dark-theme .user-name-girl {
  color: #F9A8D4 !important;
}

html:not(.dark) .user-name-admin,
body.light-theme .user-name-admin {
  color: #B45309 !important;
  text-shadow: none !important;
}

html.dark .user-name-admin,
body.dark-theme .user-name-admin {
  color: #FBBF24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3) !important;
}

html:not(.dark) .user-name-guest,
body.light-theme .user-name-guest {
  color: #475569 !important;
  text-shadow: none !important;
}

html.dark .user-name-guest,
body.dark-theme .user-name-guest {
  color: #CBD5E1 !important;
}

html.dark .role-text-teacher,
body.dark-theme .role-text-teacher {
  color: #C4B5FD !important;
}

html.dark .role-text-admin,
body.dark-theme .role-text-admin {
  color: #FBBF24 !important;
}

.star-badge {
  background: linear-gradient(145deg, #e8eedb 0%, #d4dec0 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
  border-radius: 999px !important;
  padding: 0.14rem 0.55rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

/* ==========================================================================
   4. CLASSROOM CHAT STAGE (#classroomChatStage & #messagesContainer)
   ========================================================================== */
html:not(.dark) #mainApp #classroomChatStage,
html:not(.dark) #mainApp #messagesContainer,
html:not(.dark) #mainApp #chatMessagesArea,
#classroomChatStage,
#messagesContainer,
#chatMessagesArea {
  background-color: #EAF2F6 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23235B78%22%20stroke-width%3D%220.95%22%20opacity%3D%220.14%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23B67943%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23B67943%22%20fill-opacity%3D%220.12%22%20opacity%3D%220.165%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(35, 91, 120, 0.14) 0%, transparent 60%) !important;
  background-size: 160px 160px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
}

/* Top Podium Ribbon inside Classroom Chat */
#topPodiumWidget {
  background: linear-gradient(180deg, rgba(225, 210, 196, 0.97) 0%, rgba(212, 195, 180, 0.96) 100%) !important;
  border-bottom: 1px solid rgba(35, 91, 120, 0.24) !important;
  box-shadow: 0 6px 16px -8px rgba(56, 40, 28, 0.14) !important;
}

#togglePodiumBtn {
  background: linear-gradient(145deg, #e8eedb 0%, #cfd9b8 100%) !important;
  border: 1px solid rgba(108, 122, 69, 0.36) !important;
  color: #235B78 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

#togglePodiumBtn:hover {
  background: linear-gradient(135deg, #5696B2 0%, #347493 100%) !important;
  color: #ffffff !important;
}

#togglePodiumBtn i {
  color: #347493 !important;
}

#topPodiumWidget button[onclick="openLeaderboardModal()"] {
  color: #235B78 !important;
  background: rgba(245, 247, 239, 0.8) !important;
  border: 1px solid rgba(128, 86, 61, 0.28) !important;
}

#topPodiumWidget button[onclick="openLeaderboardModal()"]:hover {
  background: rgba(116, 131, 76, 0.20) !important;
  color: #1E242B !important;
}

/* Slide-Down Chat Search Bar */
#chatSearchBar {
  background: linear-gradient(180deg, rgba(227, 213, 200, 0.98) 0%, rgba(212, 195, 180, 0.97) 100%) !important;
  border-bottom: 1px solid rgba(35, 91, 120, 0.26) !important;
  box-shadow: 0 8px 20px -8px rgba(56, 40, 28, 0.16) !important;
}

#chatSearchInput {
  background: #ffffff !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
  color: #1E242B !important;
}

#chatSearchResultsDropdown {
  background: #FAF6F0 !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
  color: #1E242B !important;
}

/* Chat Lock Banner (Warm Heritage Rose Parchment) */
#chatLockBanner {
  background: linear-gradient(90deg, #fdf2f2 0%, #fae4e4 100%) !important;
  border-top: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
}

/* Own Chat Bubbles (Warm Royal Amber replacing cold Indigo) */
[id^="msg-bubble-"].from-rose-600,
.chat-msg-item [id^="msg-bubble-"].bg-gradient-to-r.from-rose-600 {
  background: linear-gradient(135deg, #235B78 0%, #347493 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -6px rgba(118, 76, 52, 0.36) !important;
}

[id^="msg-bubble-"].from-rose-600 *,
.chat-msg-item [id^="msg-bubble-"].bg-gradient-to-r.from-rose-600 * {
  color: #ffffff !important;
}

/* Others' & Teacher Chat Bubbles */
.chat-msg-item [id^="msg-bubble-"]:not(.from-rose-600) {
  background: linear-gradient(166deg, #FAF6F0 0%, #eef4f0 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #1E242B !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 20px -8px rgba(56, 40, 28, 0.16) !important;
}

/* Double-Hairline Heritage Frame on Rich Feed Cards inside Chat */
div.poll-card,
div[id^="poll-card-"],
div.alarm-card,
div[id^="alarm-card-"],
.question-glow,
.revealed-answers-card,
.attendance-card {
  position: relative !important;
  border-radius: 1.5rem !important;
  background: linear-gradient(166deg, rgba(253, 251, 246, 0.99) 0%, rgba(244, 237, 224, 0.98) 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.28) !important;
  box-shadow:
    0 18px 40px -12px rgba(56, 40, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

div.poll-card::before,
div[id^="poll-card-"]::before,
div.alarm-card::before,
div[id^="alarm-card-"]::before,
.question-glow::before,
.revealed-answers-card::before,
.attendance-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 1.15rem;
  border: 1px solid rgba(128, 86, 61, 0.18);
  pointer-events: none;
  z-index: 1;
}

div.poll-card > *,
div[id^="poll-card-"] > *,
div.alarm-card > *,
div[id^="alarm-card-"] > *,
.question-glow > *,
.revealed-answers-card > *,
.attendance-card > * {
  position: relative;
  z-index: 2;
}

/* Chat Input Dock & Messenger-Style Pill + Tools Sheet */
#chatInputBar,
#customGroupInputBar {
  background: rgba(247, 243, 234, 0.97) !important;
  border-top: 1px solid rgba(35, 91, 120, 0.24) !important;
  box-shadow: 0 -8px 24px -10px rgba(56, 40, 28, 0.14) !important;
}

#chatInputBar form,
#customGroupInputBar form,
#customGroupChatForm {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.messenger-composer-pill {
  background: #ffffff !important;
  border: 1.5px solid rgba(35, 91, 120, 0.28) !important;
  box-shadow: 0 2px 10px rgba(36, 56, 44, 0.07), inset 0 1px 2px rgba(56, 40, 28, 0.03) !important;
  border-radius: 9999px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.messenger-composer-pill:focus-within {
  border-color: rgba(35, 91, 120, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(35, 91, 120, 0.16) !important;
}

#chatInputBar #messageInput,
#customGroupChatForm #customGroupTextInput {
  background: transparent !important;
  border: none !important;
  color: #1E242B !important;
  box-shadow: none !important;
}

#chatInputBar #messageInput:focus,
#customGroupChatForm #customGroupTextInput:focus {
  border: none !important;
  box-shadow: none !important;
}

#chatInputBar #sendBtn,
#customGroupSendBtn {
  background: linear-gradient(135deg, #5696B2 0%, #347493 55%, #235B78 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.50) !important;
  border-radius: 9999px !important;
  box-shadow: 0 6px 16px -3px rgba(35, 91, 120, 0.34) !important;
}

#chatInputBar #sendBtn i,
#customGroupSendBtn i {
  color: #ffffff !important;
}

.messenger-pill-icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b7462 !important;
  background: transparent !important;
  border: none !important;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.messenger-pill-icon-btn:hover {
  background: rgba(35, 91, 120, 0.14) !important;
  color: #235B78 !important;
}

.messenger-pill-plus-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(35, 91, 120, 0.15) !important;
  border: 1px solid rgba(35, 91, 120, 0.25) !important;
  color: #235B78 !important;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, color 0.16s ease !important;
}

.messenger-pill-plus-btn:hover {
  background: rgba(35, 91, 120, 0.25) !important;
}

.messenger-tools-sheet {
  background: linear-gradient(170deg, #FAF6F0 0%, #f1e7d6 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.30) !important;
  backdrop-filter: blur(18px) !important;
  box-shadow:
    0 18px 40px -10px rgba(38, 48, 40, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.messenger-tool-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  padding: 0.35rem 0.5rem;
  border-radius: 1rem;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.messenger-tool-circle-btn:hover {
  transform: translateY(-2px);
}

.messenger-tool-circle-btn span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2f2419 !important;
}

.messenger-tool-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(36, 48, 40, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.messenger-tool-circle-btn:hover .messenger-tool-circle {
  transform: scale(1.07);
}

.messenger-tool-circle--camera {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
}

.messenger-tool-circle--mic {
  background: linear-gradient(135deg, #C4844A 0%, #B67943 100%) !important;
}

.messenger-tool-circle--poll {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
}

.messenger-tool-circle--alarm {
  background: linear-gradient(135deg, #5696B2 0%, #B67943 100%) !important;
}

#composerEmojiPopover {
  position: absolute !important;
  bottom: calc(100% + 0.65rem) !important;
  top: auto !important;
  left: 0.25rem !important;
  right: auto !important;
  z-index: 65 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: min(94vw, 340px);
  padding: 0.45rem 0.55rem;
  border-radius: 1.15rem;
  background: #FAF6F0;
  border: 1.5px solid rgba(35, 91, 120, 0.34);
  box-shadow: 0 16px 34px -8px rgba(32, 46, 38, 0.26);
}

#composerEmojiPopover button {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  font-size: 1.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, transform 0.14s ease;
}

#composerEmojiPopover button:hover {
  background: rgba(35, 91, 120, 0.16);
  transform: scale(1.14);
}

/* ==========================================================================
   5. MAIN MENU DRAWER (#mainMenuDrawerPanel) — ILLUMINATED NAVIGATION FOLIO
   ========================================================================== */
#mainMenuDrawerPanel {
  background: linear-gradient(175deg, #e5d8cc 0%, #d4c0af 100%) !important;
  border-left: 1.5px solid rgba(35, 91, 120, 0.32) !important;
  box-shadow: -16px 0 44px rgba(56, 40, 28, 0.24) !important;
}

#mainMenuDrawerPanel > div:first-child {
  border-bottom: 1px solid rgba(128, 86, 61, 0.28) !important;
}

#mainMenuDrawerPanel > div:first-child h3 {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 1.25rem !important;
  color: #1E242B !important;
}

#drawerGeneralHeader,
#drawerStaffHeader {
  color: #235B78 !important;
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 0.95rem !important;
  border-bottom: 1px solid rgba(128, 86, 61, 0.20) !important;
  padding-bottom: 0.35rem !important;
}

/* Custom Private Groups Section (#drawerCustomGroupsSection) — Warm Manuscript Card */
#drawerCustomGroupsSection,
body.light-theme #drawerCustomGroupsSection {
  background: linear-gradient(166deg, rgba(245, 247, 239, 0.88) 0%, rgba(222, 206, 193, 0.82) 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.28) !important;
  border-radius: 1.1rem !important;
  padding: 0.8rem 0.85rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 4px 12px -6px rgba(56, 40, 28, 0.12) !important;
}

#drawerCustomGroupsSection > div:first-child > span,
body.light-theme #drawerCustomGroupsSection > div:first-child > span,
#drawerCustomGroupsSection > div:first-child > span span {
  color: #235B78 !important;
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  font-size: 0.96rem !important;
}

#drawerCustomGroupsSection > div:first-child > span i,
body.light-theme #drawerCustomGroupsSection > div:first-child > span i {
  color: #347493 !important;
}

#drawerCustomGroupsSection #drawerCreateGroupBtn,
body.light-theme #mainMenuDrawerPanel .overflow-y-auto #drawerCreateGroupBtn {
  background: linear-gradient(145deg, rgba(35, 91, 120, 0.20) 0%, rgba(92, 105, 57, 0.12) 100%) !important;
  border: 1px solid rgba(108, 122, 69, 0.36) !important;
  color: #235B78 !important;
  border-radius: 0.85rem !important;
  padding: 0.35rem 0.75rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

#drawerCustomGroupsSection #drawerCreateGroupBtn span,
#drawerCustomGroupsSection #drawerCreateGroupBtn i,
body.light-theme #drawerCustomGroupsSection #drawerCreateGroupBtn span,
body.light-theme #drawerCustomGroupsSection #drawerCreateGroupBtn i {
  color: #235B78 !important;
}

#drawerCustomGroupsSection #drawerCreateGroupBtn:hover {
  background: linear-gradient(145deg, rgba(116, 131, 76, 0.28) 0%, rgba(92, 105, 57, 0.20) 100%) !important;
  border-color: rgba(108, 122, 69, 0.55) !important;
}

#drawerCustomGroupsList p,
body.light-theme #drawerCustomGroupsSection #drawerCustomGroupsList p {
  color: #5e4c3e !important;
}

#mainMenuDrawerPanel div[onclick*="openMyProfile"] {
  background: linear-gradient(166deg, #FAF6F0 0%, #f4ede1 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 20px -8px rgba(56, 40, 28, 0.14) !important;
}

/* Remove legacy blue pill wrapper from #drawerUserRoleBadge and hide empty role slots */
#drawerUserRoleBadge,
body.light-theme #drawerUserRoleBadge {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#drawerUserRoleBadge:empty,
#headerRoleBadge:empty {
  display: none !important;
}

/* All Drawer Tool Tiles (Explicitly overriding dark !from-*-950/40 Tailwind rules) */
#mainMenuDrawerPanel .drawer-tool-btn,
#mainMenuDrawerPanel #drawerDreamAdminBtn,
#mainMenuDrawerPanel #drawerDreamPostsManageBtn,
#mainMenuDrawerPanel #drawerAzadAddPoemBtn,
#mainMenuDrawerPanel #drawerArticlesAdminBtn {
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  background-image: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.32) !important;
  border-radius: 1.15rem !important;
  color: #1E242B !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 5px 14px -4px rgba(56, 40, 28, 0.10) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mainMenuDrawerPanel .drawer-tool-btn:hover,
#mainMenuDrawerPanel #drawerDreamAdminBtn:hover,
#mainMenuDrawerPanel #drawerDreamPostsManageBtn:hover,
#mainMenuDrawerPanel #drawerAzadAddPoemBtn:hover,
#mainMenuDrawerPanel #drawerArticlesAdminBtn:hover {
  transform: translateX(-3px) !important;
  border-color: rgba(108, 122, 69, 0.52) !important;
  background: linear-gradient(166deg, #ffffff 0%, #e3e9d4 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px -6px rgba(56, 40, 28, 0.16) !important;
}

#mainMenuDrawerPanel .drawer-tool-icon-box {
  background: linear-gradient(145deg, #5696B2 0%, #347493 55%, #235B78 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #1E242B !important;
  box-shadow:
    0 6px 14px -3px rgba(35, 91, 120, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.72) !important;
}

#mainMenuDrawerPanel .drawer-tool-icon-box i {
  color: #1E242B !important;
  transition: color 0.18s ease !important;
}

#mainMenuDrawerPanel .drawer-tool-btn:hover .drawer-tool-icon-box i,
html:not(.dark) #mainMenuDrawerPanel .overflow-y-auto button:not([onclick*="handleLogout"]):hover i {
  color: #7b4f36 !important;
}

#mainMenuDrawerPanel .drawer-tool-title {
  color: #1E242B !important;
  font-weight: 800 !important;
}

#drawerSettingsSection,
#drawerSettingsList {
  background: rgba(239, 243, 229, 0.85) !important;
  border-color: rgba(128, 86, 61, 0.28) !important;
}

/* Harmonized Heritage Logout Button inside Drawer */
#mainMenuDrawerPanel button[onclick*="handleLogout"] {
  background: linear-gradient(145deg, #fdf2f2 0%, #f7dcdc 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 4px 12px -4px rgba(108, 122, 69, 0.14) !important;
}

#mainMenuDrawerPanel button[onclick*="handleLogout"]:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  border-color: rgba(35, 91, 120, 0.55) !important;
  color: #ffffff !important;
}

#mainMenuDrawerPanel button[onclick*="handleLogout"]:hover * {
  color: #ffffff !important;
}

html:not(.dark) /* ==========================================================================
   6. ALL INSIDE MODALS — MANUSCRIPT LUXE SHELLS, html:not(.dark) HEADERS, html:not(.dark) TABS & SUB-PANELS
   ========================================================================== */
div[id$="Modal"]:not(#authScreen){
  background: rgba(34, 38, 28, 0.62) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html:not(.dark) div[id$="Modal"]:not(#authScreen):not(#imageZoomModal):not(#logoPopupModal) > div:not(.absolute.inset-0){
  background: linear-gradient(166deg, rgba(253, 251, 246, 0.99) 0%, rgba(207, 189, 174, 0.98) 100%) !important;
  border: 1.5px solid rgba(128, 86, 61, 0.44) !important;
  box-shadow:
    0 28px 64px -16px rgba(56, 40, 28, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  color: #1E242B !important;
}

/* Sweep ALL remaining dark modal headers & gradient ribbons across every modal */
html:not(.dark) div[id$="Modal"] :is(
  [class*="from-purple-950"],
  [class*="from-rose-950"],
  [class*="from-amber-950"],
  [class*="from-amber-950"],
  [class*="from-amber-950"],
  [class*="from-rose-950"],
  [class*="from-rose-950"],
  [class*="from-slate-9"],
  [class*="via-slate-9"],
  [class*="via-rose-950"],
  [class*="via-amber-950"],
  [class*="via-rose-950"],
  [class*="via-rose-950"],
  [class*="bg-purple-950"],
  [class*="bg-amber-950"],
  [class*="bg-rose-950"],
  [class*="bg-amber-950"]
):not(.fixed.inset-0):not(video):not([class*="bg-rose-6"]):not([class*="bg-amber-6"]){
  background-color: #d8e0c4 !important;
  background-image: linear-gradient(166deg, #e7ecda 0%, #d7c4b4 100%) !important;
  border-color: rgba(128, 86, 61, 0.32) !important;
  color: #1E242B !important;
}

/* Calligraphic Amiri Titles in All Modal Headers */
html:not(.dark) div[id$="Modal"] h2,
html:not(.dark) div[id$="Modal"] h3{
  font-family: 'Amiri', 'Noto Naskh Arabic', serif !important;
  color: #1E242B !important;
}

/* Refined Close (×) Buttons across Inside Modals */
html:not(.dark) div[id$="Modal"] button[onclick*="close"]:not([class*="from-amber-"]):not([class*="from-amber-"]):not([class*="from-rose-"]){
  background: rgba(245, 247, 239, 0.90) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #5e4c3e !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html:not(.dark) div[id$="Modal"] button[onclick*="close"]:not([class*="from-amber-"]):not([class*="from-amber-"]):not([class*="from-rose-"]):hover{
  background: rgba(225, 29, 72, 0.14) !important;
  border-color: rgba(225, 29, 72, 0.38) !important;
  color: #be123c !important;
}

html:not(.dark) /* Modal Inputs, html:not(.dark) Textareas & Selects: Crisp Ivory + Gold Focus Halo */
div[id$="Modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
html:not(.dark) div[id$="Modal"] textarea,
html:not(.dark) div[id$="Modal"] select{
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
  color: #1E242B !important;
  box-shadow: inset 0 1px 3px rgba(56, 40, 28, 0.05) !important;
}

html:not(.dark) div[id$="Modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus,
html:not(.dark) div[id$="Modal"] textarea:focus,
html:not(.dark) div[id$="Modal"] select:focus{
  outline: none !important;
  border-color: rgba(35, 91, 120, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(116, 131, 76, 0.20) !important;
}

/* --- 6A. ADMIN CONTROL PANEL (#adminModal) --- */
html:not(.dark) .admin-subtab-tile,
html:not(.dark) #adminModal .admin-subtab-tile{
  background: linear-gradient(166deg, #FAF6F0 0%, #f4ede1 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #3B4650 !important;
  border-radius: 1rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 4px 10px -4px rgba(56, 40, 28, 0.10) !important;
  transition: all 0.22s ease !important;
}

html:not(.dark) .admin-subtab-tile:hover,
html:not(.dark) #adminModal .admin-subtab-tile:hover{
  background: linear-gradient(166deg, #ffffff 0%, #e5d8cc 100%) !important;
  border-color: rgba(108, 122, 69, 0.52) !important;
  color: #1E242B !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) .admin-subtab-tile.active,
html:not(.dark) #adminModal .admin-subtab-tile.active{
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  border: 1.5px solid rgba(108, 122, 69, 0.65) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 18px -4px rgba(108, 122, 69, 0.40) !important;
}

html:not(.dark) .admin-subtab-tile.active *,
html:not(.dark) .admin-subtab-tile.active .admin-tile-label,
html:not(.dark) .admin-subtab-tile.active i{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html:not(.dark) .admin-subtab-tile.active .admin-subtab-icon-box{
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

html:not(.dark) #pendingUsersList > div,
html:not(.dark) #allUsersList > div,
html:not(.dark) #profileChangesList > div,
html:not(.dark) #passwordResetsList > div,
html:not(.dark) #adminBackupsList > div{
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.32) !important;
  border-radius: 1.15rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 5px 14px -5px rgba(56, 40, 28, 0.10) !important;
}

/* --- 6B. USER PROFILE MODAL (#userProfileModal) --- */
html:not(.dark) #profRegularStatsGrid > div,
html:not(.dark) #profStarsBox,
html:not(.dark) #profPublishDreamPostContainer,
html:not(.dark) #profPublishPoemContainer,
html:not(.dark) #profStarsAdjustContainer,
html:not(.dark) #profSpecialBadgeAdminCard,
html:not(.dark) #profBadgesOverviewCard,
html:not(.dark) #profCoursesViewCard,
html:not(.dark) #profCoursesEditCard,
html:not(.dark) #profNotificationContainer{
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  background-image: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  border-radius: 1.25rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 16px -6px rgba(56, 40, 28, 0.10) !important;
}

html:not(.dark) #badgeBtnBlue,
html:not(.dark) #badgeBtnRed,
html:not(.dark) #badgeBtnPurple{
  background: linear-gradient(166deg, #FAF6F0 0%, #f2e4ce 100%) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #1E242B !important;
}

html:not(.dark) #badgeBtnBlue:hover,
html:not(.dark) #badgeBtnRed:hover,
html:not(.dark) #badgeBtnPurple:hover{
  border-color: rgba(108, 122, 69, 0.55) !important;
  background: #ffffff !important;
}

/* --- 6C. DIGITAL LIBRARY (#libraryModal) & RECORDED LESSONS (#recordedLessonsModal) --- */
html:not(.dark) #libraryModal #libViewGridBtn,
html:not(.dark) #libraryModal #libViewAuthorBtn{
  border-radius: 0.7rem !important;
}

html:not(.dark) #libraryModal .bg-rose-600{
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #ffffff !important;
  border-color: rgba(47, 102, 82, 0.45) !important;
}

html:not(.dark) #libraryModal .library-book-card,
html:not(.dark) #recordedLessonsModal .lesson-card,
html:not(.dark) #recordedLessonsModal .folder-card,
html:not(.dark) #leaderboardList > div,
html:not(.dark) #questionsArchiveList > div{
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border: 1px solid rgba(128, 86, 61, 0.32) !important;
  border-radius: 1.2rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 16px -6px rgba(56, 40, 28, 0.12) !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

html:not(.dark) #libraryModal .library-book-card:hover,
html:not(.dark) #recordedLessonsModal .lesson-card:hover,
html:not(.dark) #recordedLessonsModal .folder-card:hover,
html:not(.dark) #leaderboardList > div:hover{
  transform: translateY(-2px) !important;
  border-color: rgba(108, 122, 69, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px -8px rgba(56, 40, 28, 0.16) !important;
}

/* --- 6D. LIVE LESSON ROOM (#liveLessonModal) --- */
html:not(.dark) #liveLessonModal #liveParticipantsList,
html:not(.dark) #liveLessonModal .flex-1.bg-slate-950\/95{
  background-color: #EAF2F6 !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23235B78%22%20stroke-width%3D%220.95%22%20opacity%3D%220.14%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23B67943%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23B67943%22%20fill-opacity%3D%220.12%22%20opacity%3D%220.165%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E") !important;
  background-size: 160px 160px !important;
  background-repeat: repeat !important;
}

html:not(.dark) #liveLessonModal .live-action-dock{
  background: linear-gradient(166deg, #f7f3ea 0%, #d6c3b3 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.32) !important;
  box-shadow:
    0 14px 32px -8px rgba(56, 40, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

/* --- 6E. SPLIT-PANEL CHATS (#dreamAdminModal, #privateChatModal, #customGroupChatModal, #aiAdvisorModal) --- */
html:not(.dark) #customGroupMessagesContainer,
html:not(.dark) #privateChatMessagesContainer,
html:not(.dark) #dreamAdminMessagesContainer,
html:not(.dark) #aiAdvisorMessagesContainer{
  background: linear-gradient(180deg, #f7f3ea 0%, #dde4ca 100%) !important;
}

html:not(.dark) #dreamAdminSessionsSidebar,
html:not(.dark) #dreamSubmissionsSidebar{
  background: linear-gradient(180deg, #EFE3D4 0%, #efe6d6 100%) !important;
  border-color: rgba(35, 91, 120, 0.24) !important;
}

html:not(.dark) #dreamSessionsList > div.bg-purple-950\/70,
html:not(.dark) #dreamSessionsList > div.ring-1{
  background: linear-gradient(145deg, #e7f0ea 0%, #d4e4da 100%) !important;
  border: 1.5px solid rgba(47, 102, 82, 0.58) !important;
  box-shadow: 0 6px 16px -4px rgba(47, 102, 82, 0.16) !important;
}

html:not(.dark) #customGroupVoiceRecordSection,
html:not(.dark) #dreamAdminVoiceBar{
  background: linear-gradient(90deg, #fdf2f2 0%, #fae4e4 100%) !important;
  border-top: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
}

html:not(.dark) #customGroupAdvisorTyping{
  background: linear-gradient(90deg, #F1F7FA 0%, #e5d6ca 100%) !important;
  border-top: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #7b4f36 !important;
}

html:not(.dark) /* --- 6F. EXECUTIVE HUB, html:not(.dark) COMPLAINTS, html:not(.dark) ACTIVITY DB & AI SECURITY --- */
#executiveHubModal .bg-slate-800,
html:not(.dark) #executiveHubModal .bg-slate-800\/50,
html:not(.dark) #executiveHubModal .bg-slate-900\/80,
html:not(.dark) #complaintsModal .bg-slate-800\/60,
html:not(.dark) #activityDatabaseModal .bg-slate-800\/60{
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border-color: rgba(128, 86, 61, 0.32) !important;
  color: #1E242B !important;
}

/* ==========================================================================
   7. MOBILE RESPONSIVE PROTECTION (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  #classroomsGridContainer {
    gap: 0.65rem !important;
    padding-top: 0.25rem !important;
  }

  #classroomsLobbyView .classroom-lobby-card,
  .classroom-lobby-card,
  body.light-theme .classroom-lobby-card,
  body.light-mode .classroom-lobby-card {
    padding: 0.68rem 0.82rem !important;
    min-height: 0 !important;
    border-radius: 0.9rem !important;
    gap: 0.6rem !important;
  }

  .classroom-lobby-card .pryaska-card-icon {
    width: 2.3rem !important;
    height: 2.3rem !important;
    font-size: 0.92rem !important;
    border-radius: 0.75rem !important;
  }

  .classroom-lobby-card h3 {
    font-size: 0.95rem !important;
  }

  /* Keep Compact Mobile Icon Rail cleanly centered (matching style.css:12771) */
  #mainMenuDrawerPanel .drawer-tool-btn,
  #mainMenuDrawerPanel #drawerDreamAdminBtn,
  #mainMenuDrawerPanel #drawerDreamPostsManageBtn,
  #mainMenuDrawerPanel #drawerAzadAddPoemBtn,
  #mainMenuDrawerPanel #drawerArticlesAdminBtn {
    border-radius: 1rem !important;
  }

  #mainMenuDrawerPanel .drawer-tool-btn:hover,
  #mainMenuDrawerPanel #drawerDreamAdminBtn:hover,
  #mainMenuDrawerPanel #drawerDreamPostsManageBtn:hover,
  #mainMenuDrawerPanel #drawerAzadAddPoemBtn:hover,
  #mainMenuDrawerPanel #drawerArticlesAdminBtn:hover {
    transform: none !important;
  }
}

/* Dream Management Top Header (#dreamAdminModalHeader) — Clean Single-Row Manuscript Polish */
html:not(.dark) #dreamAdminModalHeader{
  min-height: 58px !important;
  padding: 0.6rem 0.9rem !important;
  background: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  border-bottom: 1px solid rgba(128, 86, 61, 0.28) !important;
  box-shadow: 0 2px 10px -4px rgba(56, 40, 28, 0.12) !important;
}

html:not(.dark) #dreamAdminModalHeader #dreamDownloadAllAudioBtn,
html:not(.dark) #dreamAdminModalHeader #dreamAvailabilityToggleBtn,
html:not(.dark) #dreamAdminModalHeader #dreamPublicPostsLinkBtn,
html:not(.dark) #dreamAdminModalHeader #dreamAdminCloseBtn{
  height: 2.25rem !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 1px 3px rgba(56, 40, 28, 0.08) !important;
}

html:not(.dark) #dreamAdminModalHeader #dreamDownloadAllAudioBtn{
  background: #FAF3E8 !important;
  border: 1px solid rgba(182, 121, 67, 0.35) !important;
  color: #854f22 !important;
}

html:not(.dark) #dreamAdminModalHeader #dreamPublicPostsLinkBtn{
  background: #EAF2ED !important;
  border: 1px solid rgba(47, 102, 82, 0.30) !important;
  color: #2F6652 !important;
}

html:not(.dark) #dreamAdminModalHeader #dreamPublicPostsLinkBtn i{
  color: #2F6652 !important;
}

html:not(.dark) #dreamAdminModalHeader #dreamAdminCloseBtn{
  width: 2.25rem !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(128, 86, 61, 0.26) !important;
  color: #3B4650 !important;
}

html:not(.dark) #dreamAdminModalHeader #dreamAdminCloseBtn:hover{
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #b91c1c !important;
}

/* Compact Waveform Voice Player inside Dream Chat Bubbles */
.dream-chat-voice-player {
  width: clamp(235px, 60vw, 295px) !important;
  max-width: 100% !important;
  padding: 0.48rem 0.62rem !important;
  border-radius: 0.95rem !important;
}

.dream-chat-voice-player .voice-player-inner {
  gap: 0.55rem !important;
  align-items: center !important;
}

.dream-chat-voice-player .voice-play-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  font-size: 0.85rem !important;
}

.dream-chat-voice-player .voice-track-col {
  gap: 0.25rem !important;
}

.dream-chat-voice-player .voice-waveform-container {
  height: 26px !important;
  padding: 3px 7px !important;
  gap: 2px !important;
  border-radius: 0.6rem !important;
}

.dream-chat-voice-player .voice-bottom-meta {
  font-size: 0.68rem !important;
  padding: 0 2px !important;
  gap: 0.35rem !important;
}

.dream-chat-voice-player .voice-time-label {
  font-size: 0.7rem !important;
}

.dream-chat-voice-player .voice-speed-pill {
  padding: 0.12rem 0.42rem !important;
  font-size: 0.64rem !important;
  border-radius: 0.45rem !important;
  color: #5C4A3A !important;
  font-weight: 800 !important;
}

.dream-chat-voice-download-btn {
  font-size: 0.65rem !important;
  padding: 0.14rem 0.44rem !important;
  border-radius: 0.45rem !important;
  background: rgba(47, 102, 82, 0.12) !important;
  border: 1px solid rgba(47, 102, 82, 0.28) !important;
  color: #2F6652 !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.22rem !important;
  text-decoration: none !important;
}

.dream-chat-voice-download-btn:hover {
  background: #2F6652 !important;
  color: #ffffff !important;
}

html.dark .dream-chat-voice-player {
  background: linear-gradient(166deg, rgba(31, 36, 45, 0.96) 0%, rgba(22, 26, 33, 0.98) 100%) !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
  color: #f5f2ec !important;
}

html.dark .dream-chat-voice-player .voice-waveform-container {
  background: rgba(16, 19, 25, 0.85) !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
}

html.dark .dream-chat-voice-player .voice-time-label {
  color: #f0dec6 !important;
}

html.dark .dream-chat-voice-player .voice-speed-pill {
  background: rgba(44, 50, 62, 0.95) !important;
  border-color: rgba(182, 121, 67, 0.35) !important;
  color: #e6b984 !important;
}

html.dark .dream-chat-voice-download-btn {
  background: rgba(47, 102, 82, 0.28) !important;
  border-color: rgba(142, 201, 173, 0.35) !important;
  color: #8ec9ad !important;
}

/* Native Mobile / Capacitor iOS & Android Safe-Area Insets */
@supports (padding-top: env(safe-area-inset-top)) {
  #mainApp > header,
  #landingHeader,
  #mainMenuDrawerPanel > div:first-child {
    padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
  }
  #chatInputBar,
  #mainMenuDrawerPanel > div.border-t {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
  }
}

/* Vivid Green Unread Private Message Count Badges on Account Name & Inside Profile */
#headerPrivateUnreadBadge,
#drawerProfilePrivateUnreadBadge,
#profPrivateUnreadBadge {
  background: #16a34a !important;
  background-image: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid #bbf7d0 !important;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.50) !important;
}


/**
 * ============================================================================
 * PRYASKAY ABDY — INSIDE APP DARK MODE (NOCTURNAL EMERALD-OBSIDIAN & GOLD)
 * Loaded AFTER app-heritage.css so every html.dark selector strictly wins
 * over light parchment rules across the entire inside application.
 * ============================================================================
 */

/* 1. GLOBAL APP VIEWPORT, LOBBY & CHAT CANVAS */
html.dark #mainApp,
html.dark #classroomChatStage,
html.dark #messagesContainer,
html.dark #chatMessagesArea,
body.dark-theme #mainApp,
body.dark-theme #classroomChatStage,
body.dark-theme #messagesContainer,
body.dark-theme #chatMessagesArea,
body.dark-mode #mainApp,
body.dark-mode #classroomChatStage,
body.dark-mode #messagesContainer,
body.dark-mode #chatMessagesArea {
  background-color: #151A20 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23c88a4b%22%20stroke-width%3D%220.95%22%20opacity%3D%220.08%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23b69570%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23b69570%22%20fill-opacity%3D%220.10%22%20opacity%3D%220.095%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(182, 121, 67, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(10, 12, 16, 0.7) 0%, transparent 60%) !important;
  background-size: 160px 160px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
  color: #f5f2ec !important;
}

html.dark #mainApp #classroomsLobbyView,
html.dark #mainApp #chatView,
html.dark #classroomsLobbyView,
html.dark #chatView,
body.dark-theme #classroomsLobbyView,
body.dark-theme #chatView,
body.dark-mode #classroomsLobbyView,
body.dark-mode #chatView {
  background-color: transparent !important;
  background: transparent !important;
  color: #f5f2ec !important;
}

/* 2. INSIDE APP TOP HEADER (#mainApp > header) */
html.dark #mainApp > header,
body.dark-theme #mainApp > header,
body.dark-mode #mainApp > header {
  background: rgba(20, 23, 28, 0.95) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 10px 26px -10px rgba(0, 0, 0, 0.72) !important;
  color: #f5f2ec !important;
}

html.dark #mainApp > header img[alt*="پریاسکە"],
body.dark-theme #mainApp > header img[alt*="پریاسکە"] {
  background: #1E242B !important;
  border: 1.5px solid rgba(182, 121, 67, 0.45) !important;
}

html.dark #mainApp > header h2,
html.dark #mainApp > header #headerFullName,
body.dark-theme #mainApp > header h2,
body.dark-theme #mainApp > header #headerFullName {
  color: #f5f2ec !important;
  -webkit-text-fill-color: #f5f2ec !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

html.dark #mainApp > header #onlineCountText,
body.dark-theme #mainApp > header #onlineCountText {
  color: #e6b984 !important;
}

html.dark #mainApp > header #backToClassroomsLobbyBtn,
html.dark #mainApp > header #headerActiveRoomBadge,
html.dark #mainApp > header #dreamAdminNavBtn,
html.dark #mainApp > header #topExecutiveHubBtn,
html.dark #mainApp > header #btnThemeToggle,
html.dark #mainApp > header #pushNotificationBtn,
html.dark #mainApp > header #mainMenuBtn,
html.dark #mainApp > header div[onclick="openMyProfile()"],
body.dark-theme #mainApp > header #backToClassroomsLobbyBtn,
body.dark-theme #mainApp > header #headerActiveRoomBadge,
body.dark-theme #mainApp > header #dreamAdminNavBtn,
body.dark-theme #mainApp > header #topExecutiveHubBtn,
body.dark-theme #mainApp > header #btnThemeToggle,
body.dark-theme #mainApp > header #pushNotificationBtn,
body.dark-theme #mainApp > header #mainMenuBtn,
body.dark-theme #mainApp > header div[onclick="openMyProfile()"] {
  background: linear-gradient(145deg, rgba(37, 42, 52, 0.96) 0%, rgba(26, 30, 37, 0.96) 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.34) !important;
  color: #f0dec6 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 3px 10px -2px rgba(0, 0, 0, 0.45) !important;
}

html.dark #mainApp > header #backToClassroomsLobbyBtn:hover,
html.dark #mainApp > header #dreamAdminNavBtn:hover,
html.dark #mainApp > header #topExecutiveHubBtn:hover,
html.dark #mainApp > header #btnThemeToggle:hover,
html.dark #mainApp > header #pushNotificationBtn:hover,
html.dark #mainApp > header #mainMenuBtn:hover,
html.dark #mainApp > header div[onclick="openMyProfile()"]:hover {
  background: linear-gradient(135deg, #d89b5c 0%, #955B28 100%) !important;
  border-color: rgba(230, 185, 132, 0.5) !important;
  color: #ffffff !important;
}

html.dark #mainApp > header #backToClassroomsLobbyBtn i,
html.dark #mainApp > header #headerActiveRoomBadge i,
html.dark #mainApp > header #dreamAdminNavBtn i,
html.dark #mainApp > header #topExecutiveHubBtn i,
html.dark #mainApp > header #btnThemeToggle i,
html.dark #mainApp > header #pushNotificationBtn i,
html.dark #mainApp > header #mainMenuBtn i {
  color: #d89b5c !important;
}

html.dark #mainApp > header #backToClassroomsLobbyBtn:hover i,
html.dark #mainApp > header #dreamAdminNavBtn:hover i,
html.dark #mainApp > header #topExecutiveHubBtn:hover i,
html.dark #mainApp > header #btnThemeToggle:hover i,
html.dark #mainApp > header #pushNotificationBtn:hover i,
html.dark #mainApp > header #mainMenuBtn:hover i,
html.dark #mainApp > header div[onclick="openMyProfile()"]:hover #headerFullName {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html.dark #mainApp > header #dreamAdminNavBtn #dreamUnreadBadge,
body.dark-theme #mainApp > header #dreamAdminNavBtn #dreamUnreadBadge {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #091312 !important;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.5) !important;
}

html.dark #mainApp > header #liveLessonNavBtn {
  background: rgba(182, 121, 67, 0.25) !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  color: #fecdd3 !important;
}

html.dark #mainApp > header #headerRoleBadge {
  background: rgba(182, 121, 67, 0.16) !important;
  border-color: rgba(182, 121, 67, 0.35) !important;
  color: #e6b984 !important;
}

/* 3. CLASSROOMS LOBBY (#classroomsLobbyView & .classroom-lobby-card) */
html.dark #classroomsLobbyView > div:first-child,
body.dark-theme #classroomsLobbyView > div:first-child {
  background: rgba(26, 30, 37, 0.94) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.22) !important;
}

html.dark #classroomsLobbyView h2,
html.dark #classroomsLobbyView h3,
body.dark-theme #classroomsLobbyView h2,
body.dark-theme #classroomsLobbyView h3 {
  color: #f5f2ec !important;
  -webkit-text-fill-color: #f5f2ec !important;
}

html.dark #classroomsLobbyView p,
body.dark-theme #classroomsLobbyView p {
  color: #d4d8e0 !important;
}

html.dark #classroomsTotalCountBadge,
body.dark-theme #classroomsTotalCountBadge {
  background: rgba(182, 121, 67, 0.16) !important;
  border: 1px solid rgba(182, 121, 67, 0.35) !important;
  color: #e6b984 !important;
}

html.dark #classroomsSearchInput,
html.dark #membersSearchInput,
body.dark-theme #classroomsSearchInput,
body.dark-theme #membersSearchInput {
  background: #1E242B !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  color: #f5f2ec !important;
}

html.dark #classroomsSearchInput::placeholder,
html.dark #membersSearchInput::placeholder {
  color: #8b92a0 !important;
}

html.dark #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card,
html.dark #classroomsLobbyView .classroom-lobby-card,
html.dark .classroom-lobby-card,
html.dark #classroomsLobbyView .grid > div,
body.dark-theme #classroomsLobbyView .classroom-lobby-card,
body.dark-theme .classroom-lobby-card {
  background: linear-gradient(165deg, rgba(32, 36, 44, 0.96) 0%, rgba(23, 27, 33, 0.98) 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.55) !important;
  color: #d4d8e0 !important;
  overflow: hidden !important;
}

html.dark .classroom-lobby-card:hover,
body.dark-theme .classroom-lobby-card:hover {
  background: linear-gradient(165deg, rgba(40, 45, 56, 0.98) 0%, rgba(23, 27, 33, 0.99) 100%) !important;
  border-color: rgba(216, 155, 92, 0.55) !important;
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.72), 0 0 18px rgba(182, 121, 67, 0.16) !important;
}

html.dark .classroom-lobby-card h3,
html.dark .classroom-lobby-card .font-black,
body.dark-theme .classroom-lobby-card h3,
body.dark-theme .classroom-lobby-card .font-black {
  color: #f5f2ec !important;
  -webkit-text-fill-color: #f5f2ec !important;
}

html.dark .classroom-lobby-card:hover h3,
body.dark-theme .classroom-lobby-card:hover h3 {
  color: #e6b984 !important;
  -webkit-text-fill-color: #e6b984 !important;
}

html.dark .classroom-lobby-card span,
body.dark-theme .classroom-lobby-card span {
  color: #ece9e2 !important;
}

html.dark .classroom-lobby-card .text-amber-300,
html.dark .classroom-lobby-card .text-amber-300\/80,
html.dark .classroom-lobby-card .text-amber-300\/80 span,
body.dark-theme .classroom-lobby-card .text-amber-300,
body.dark-theme .classroom-lobby-card .text-amber-300\/80,
body.dark-theme .classroom-lobby-card .text-amber-300\/80 span {
  color: #e0a76a !important;
}

html.dark .classroom-lobby-card .text-slate-400,
html.dark .classroom-lobby-card .text-slate-400\/80,
html.dark .classroom-lobby-card .text-slate-500,
html.dark .classroom-lobby-card p,
body.dark-theme .classroom-lobby-card .text-slate-400,
body.dark-theme .classroom-lobby-card .text-slate-400\/80,
body.dark-theme .classroom-lobby-card .text-slate-500,
body.dark-theme .classroom-lobby-card p {
  color: #d4d8e0 !important;
}

html.dark .classroom-lobby-card span.bg-amber-400\/20,
body.dark-theme .classroom-lobby-card span.bg-amber-400\/20 {
  background: rgba(165, 105, 48, 0.18) !important;
  border: 1px solid rgba(216, 155, 92, 0.36) !important;
  color: #e6b984 !important;
}

html.dark .classroom-lobby-card .pryaska-card-actions {
  border-top: none !important;
}

html.dark .classroom-lobby-card .pryaska-enter-arrow,
html.dark .classroom-lobby-card button[onclick*="openCreateClassroomModal"],
html.dark .classroom-lobby-card button[onclick*="deleteClassroom"] {
  background: rgba(40, 45, 56, 0.94) !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  color: #e6b984 !important;
}

html.dark .classroom-lobby-card:hover .pryaska-enter-arrow {
  background: linear-gradient(135deg, #d89b5c 0%, #955B28 100%) !important;
  color: #ffffff !important;
}

/* 4. MEMBERS SIDEBAR (#membersSidebar & #classroomMembersSidebar) */
html.dark #membersSidebar,
html.dark #classroomMembersSidebar,
body.dark-theme #membersSidebar,
body.dark-theme #classroomMembersSidebar {
  background: linear-gradient(180deg, rgba(26, 30, 37, 0.98) 0%, rgba(17, 20, 25, 0.98) 100%) !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
  color: #f5f2ec !important;
}

html.dark #membersSidebar h3,
html.dark #membersSidebar h4 {
  color: #f5f2ec !important;
}

html.dark #membersSidebarCount {
  background: rgba(182, 121, 67, 0.16) !important;
  border: 1px solid rgba(182, 121, 67, 0.35) !important;
  color: #e6b984 !important;
}

html.dark #membersSidebar .border-b {
  border-color: rgba(182, 121, 67, 0.20) !important;
}

html.dark #membersSidebar #tabMemberAll,
html.dark #membersSidebar #tabMemberStudents,
html.dark #membersSidebar #tabMemberAdmins,
html.dark #membersSidebar .bg-slate-950\/60,
html.dark #membersSidebar .bg-slate-950\/40,
html.dark #membersSidebar .bg-slate-800\/90 {
  background: rgba(34, 39, 48, 0.94) !important;
  border: 1px solid rgba(182, 121, 67, 0.25) !important;
  color: #f0dec6 !important;
}

html.dark #membersSidebar #tabMemberAll.bg-rose-600,
html.dark #membersSidebar #tabMemberStudents.bg-rose-600,
html.dark #membersSidebar #tabMemberAdmins.bg-rose-600 {
  background: linear-gradient(135deg, #B67943 0%, #955B28 100%) !important;
  border-color: rgba(230, 185, 132, 0.4) !important;
  color: #ffffff !important;
}

html.dark #membersListContainer > div {
  background: rgba(34, 39, 48, 0.94) !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  color: #f5f2ec !important;
}

html.dark #membersListContainer > div:hover {
  background: rgba(43, 49, 60, 0.98) !important;
  border-color: rgba(182, 121, 67, 0.48) !important;
}

html.dark #membersListContainer > div .font-bold,
html.dark #membersListContainer > div .font-black {
  color: #f5f2ec !important;
}

html.dark #membersListContainer > div .text-slate-400,
html.dark #membersListContainer > div .text-slate-500 {
  color: #9aa1ae !important;
}

html.dark .badge-student {
  background: rgba(165, 105, 48, 0.16) !important;
  border-color: rgba(216, 155, 92, 0.35) !important;
  color: #e6b984 !important;
}

html.dark .badge-student-girl {
  background: rgba(244, 63, 94, 0.16) !important;
  border-color: rgba(251, 113, 133, 0.35) !important;
  color: #fda4af !important;
}

html.dark .star-badge {
  background: rgba(182, 121, 67, 0.16) !important;
  border-color: rgba(182, 121, 67, 0.38) !important;
  color: #e6b984 !important;
}

/* 5. PODIUM, BANNERS, CHAT BUBBLES, POLLS & INPUT BAR */
html.dark #topPodiumWidget,
html.dark #notificationPermissionBanner,
html.dark #nightCurfewBanner,
html.dark #chatSearchBar,
html.dark #chatSearchResultsDropdown,
html.dark #recordingBar,
html.dark #dreamVoiceRecordingBar,
html.dark #privateRecordingBar,
html.dark #imagePreviewBar,
html.dark #chatLockBanner,
html.dark #chatReplyPreviewBar {
  background: rgba(26, 30, 37, 0.96) !important;
  background-image: none !important;
  border-color: rgba(182, 121, 67, 0.25) !important;
  color: #f5f2ec !important;
}

html.dark #togglePodiumBtn,
html.dark #topPodiumWidget button[onclick="openLeaderboardModal()"] {
  background: rgba(37, 42, 52, 0.95) !important;
  border-color: rgba(182, 121, 67, 0.35) !important;
  color: #e6b984 !important;
}

html.dark #topPodiumWidget #podiumItems,
html.dark #topPodiumWidget #podiumItems span,
html.dark #notificationPermissionBanner p,
html.dark #nightCurfewBanner span {
  color: #ece9e2 !important;
}

html.dark #chatSearchInput {
  background: #1E242B !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
  color: #f5f2ec !important;
}

html.dark #chatInputBar input,
html.dark #chatInputBar textarea,
html.dark #messageInput,
html.dark #customGroupTextInput {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #f5f2ec !important;
}

html.dark #messageInput::placeholder,
html.dark #customGroupTextInput::placeholder,
html.dark #chatSearchInput::placeholder {
  color: #9ca3af !important;
}

html.dark #chatInputBar,
html.dark #customGroupInputBar,
html.dark [id$="ChatInputBar"] {
  background: rgba(15, 18, 22, 0.98) !important;
  background-image: none !important;
  border-top: 1px solid rgba(182, 121, 67, 0.22) !important;
  color: #f5f2ec !important;
}

html.dark #chatInputBar form,
html.dark #customGroupInputBar form,
html.dark #customGroupChatForm {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html.dark .messenger-composer-pill {
  background: #2b2f38 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: none !important;
}

html.dark .messenger-composer-pill:focus-within {
  border-color: rgba(182, 121, 67, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(182, 121, 67, 0.16) !important;
}

html.dark .messenger-pill-icon-btn {
  color: #b4bcc9 !important;
}

html.dark .messenger-pill-icon-btn:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
}

html.dark .messenger-pill-plus-btn {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e5e7eb !important;
}

html.dark .messenger-tools-sheet,
html.dark #publicChatToolsMenu,
html.dark #customGroupToolsMenu,
html.dark [id^="reaction-picker-"] {
  background: rgba(23, 27, 33, 0.98) !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  color: #f5f2ec !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85) !important;
}

html.dark .messenger-tool-circle-btn span {
  color: #f3f4f6 !important;
}

html.dark #composerEmojiPopover {
  background: #1d222b !important;
  border-color: rgba(182, 121, 67, 0.36) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72) !important;
}

/* Others' & Teacher Chat Bubbles */
html.dark .chat-msg-item [id^="msg-bubble-"]:not(.from-rose-600),
html.dark .chat-msg-item .bg-slate-800\/90,
html.dark .chat-msg-item .bg-slate-800,
html.dark .chat-msg-item .bg-slate-900\/95,
html.dark .chat-msg-item .bg-slate-900,
html.dark [id^="msg-"] .max-w-xl.rounded-3xl:not(.from-rose-600) {
  background: linear-gradient(166deg, rgba(34, 39, 48, 0.98) 0%, rgba(23, 27, 33, 0.97) 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6) !important;
}

/* Poll, Alarm, Attendance, Question Cards */
html.dark div.poll-card,
html.dark div[id^="poll-card-"],
html.dark div.alarm-card,
html.dark div[id^="alarm-card-"],
html.dark .question-glow,
html.dark .revealed-answers-card,
html.dark .attendance-card,
html.dark [data-attendance-session] > div {
  background: linear-gradient(165deg, rgba(37, 42, 52, 0.98) 0%, rgba(20, 23, 28, 0.97) 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.34) !important;
  color: #f5f2ec !important;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7) !important;
}

html.dark [id^="poll-card-"] h3,
html.dark [id^="poll-card-"] h4,
html.dark [id^="alarm-card-"] h3,
html.dark [id^="alarm-card-"] h4,
html.dark .question-glow h3,
html.dark .question-glow h4,
html.dark .revealed-answers-card h3 {
  color: #f5f2ec !important;
}

html.dark [id^="poll-card-"] span,
html.dark [id^="poll-card-"] p,
html.dark [id^="alarm-card-"] span,
html.dark [id^="alarm-card-"] p,
html.dark .question-glow p,
html.dark .revealed-answers-card p {
  color: #ece9e2 !important;
}

html.dark [id^="poll-card-"] .relative.overflow-hidden.rounded-2xl,
html.dark [id^="alarm-card-"] .bg-slate-950\/80,
html.dark [id^="alarm-timer-box-"] > div {
  background: rgba(20, 23, 28, 0.95) !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

/* 6. MAIN MENU DRAWER PANEL (#mainMenuDrawerPanel) */
html.dark #mainMenuDrawerPanel,
body.dark-theme #mainMenuDrawerPanel,
body.dark-mode #mainMenuDrawerPanel {
  background: linear-gradient(180deg, rgba(26, 30, 37, 0.99) 0%, rgba(23, 27, 33, 0.99) 100%) !important;
  border-left: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

html.dark #mainMenuDrawerPanel > div:first-child {
  background: linear-gradient(156deg, #274A3B 0%, #1B3329 58%, #12201A 100%) !important;
  border-bottom: 1px solid rgba(110, 163, 137, 0.30) !important;
}

html.dark #mainMenuDrawerPanel h3,
html.dark #mainMenuDrawerPanel h4,
html.dark #mainMenuDrawerPanel #drawerUserName {
  color: #f5f2ec !important;
}

html.dark #mainMenuDrawerPanel p {
  color: #9aa1ae !important;
}

html.dark #mainMenuDrawerPanel div[onclick*="openMyProfile"] {
  background: rgba(34, 39, 48, 0.94) !important;
  border: 1px solid rgba(182, 121, 67, 0.30) !important;
}

html.dark #drawerUserRoleBadge {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

html.dark #drawerUserRoleBadge:empty,
html.dark #headerRoleBadge:empty {
  display: none !important;
}

html.dark #drawerCustomGroupsSection,
body.dark-theme #drawerCustomGroupsSection,
body.dark-mode #drawerCustomGroupsSection {
  background: rgba(23, 27, 33, 0.88) !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  border-radius: 1.1rem !important;
  padding: 0.8rem 0.85rem !important;
  box-shadow: none !important;
}

html.dark #drawerCustomGroupsSection > div:first-child > span,
html.dark #drawerCustomGroupsSection > div:first-child > span span,
body.dark-theme #drawerCustomGroupsSection > div:first-child > span {
  color: #f0dec6 !important;
}

html.dark #drawerCustomGroupsSection > div:first-child > span i {
  color: #d89b5c !important;
}

html.dark #drawerCustomGroupsSection #drawerCreateGroupBtn,
body.dark-theme #mainMenuDrawerPanel .overflow-y-auto #drawerCreateGroupBtn {
  background: rgba(182, 121, 67, 0.16) !important;
  border: 1px solid rgba(182, 121, 67, 0.38) !important;
  color: #e6b984 !important;
  border-radius: 0.85rem !important;
  padding: 0.35rem 0.75rem !important;
}

html.dark #drawerCustomGroupsSection #drawerCreateGroupBtn span,
html.dark #drawerCustomGroupsSection #drawerCreateGroupBtn i {
  color: #e6b984 !important;
}

html.dark #drawerCustomGroupsList p {
  color: #9aa1ae !important;
}

html.dark #mainMenuDrawerPanel button[onclick="closeMainMenuDrawer()"] {
  background: rgba(37, 42, 52, 0.94) !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  color: #f0dec6 !important;
}

html.dark #mainMenuDrawerPanel .drawer-tool-btn,
html.dark #mainMenuDrawerPanel #drawerDreamAdminBtn,
html.dark #mainMenuDrawerPanel #drawerDreamPostsManageBtn,
html.dark #mainMenuDrawerPanel #drawerArticlesAdminBtn,
html.dark #mainMenuDrawerPanel .overflow-y-auto button:not(#drawerCreateGroupBtn):not([onclick*="logout"]):not([onclick*="Logout"]) {
  background: rgba(34, 39, 48, 0.94) !important;
  background-image: none !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #f5f2ec !important;
}

html.dark #mainMenuDrawerPanel .drawer-tool-btn:hover,
html.dark #mainMenuDrawerPanel #drawerDreamAdminBtn:hover,
html.dark #mainMenuDrawerPanel #drawerDreamPostsManageBtn:hover,
html.dark #mainMenuDrawerPanel #drawerArticlesAdminBtn:hover {
  background: rgba(37, 42, 52, 0.98) !important;
  background-image: none !important;
  border-color: rgba(182, 121, 67, 0.55) !important;
}

html.dark #mainMenuDrawerPanel .drawer-tool-title {
  color: #f5f2ec !important;
}

html.dark #mainMenuDrawerPanel .drawer-tool-icon-box {
  background: rgba(182, 121, 67, 0.16) !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
  color: #e6b984 !important;
}

html.dark #mainMenuDrawerPanel#mainMenuDrawerPanel .overflow-y-auto .drawer-tool-icon-box i,
html.dark #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box i,
body.dark-theme #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box i {
  color: #e6b984 !important;
}

html.dark #mainMenuDrawerPanel .drawer-tool-badge,
html.dark #drawerNotificationStatusBadge,
html.dark #drawerAllChatNotificationBadge {
  background: rgba(182, 121, 67, 0.16) !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  color: #e6b984 !important;
}

html.dark #drawerSettingsSection,
html.dark #drawerSettingsList,
html.dark #drawerSettingsSection .bg-slate-900\/60,
html.dark #drawerSettingsList .bg-slate-900\/60 {
  background: rgba(26, 30, 37, 0.95) !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
}

html.dark #mainMenuDrawerPanel > div.border-t {
  background: rgba(18, 21, 26, 0.96) !important;
  border-top: 1px solid rgba(182, 121, 67, 0.22) !important;
}

html.dark #mainMenuDrawerPanel button[onclick*="handleLogout"] {
  background: rgba(182, 121, 67, 0.22) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #fecdd3 !important;
}
html.dark #mainMenuDrawerPanel button[onclick*="handleLogout"]:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
}

/* 7. ALL INSIDE MODALS & SPLIT-PANEL CHATS IN DARK MODE */
html.dark div[id$="Modal"]:not(#authScreen):not(#imageZoomModal):not(#logoPopupModal) > div:not(.absolute.inset-0),
html.dark #authScreen .auth-royal-card,
html.dark #dreamDirectPromptModal > div,
html.dark #dreamChatModal > div {
  background: linear-gradient(166deg, rgba(37, 42, 52, 0.99) 0%, rgba(18, 21, 26, 0.98) 100%) !important;
  background-image: linear-gradient(166deg, rgba(37, 42, 52, 0.99) 0%, rgba(18, 21, 26, 0.98) 100%) !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
  color: #f5f2ec !important;
}

html.dark div[id$="Modal"] > div > div:first-child,
html.dark div[id$="Modal"] [class*="bg-gradient-to-r"][class*="border-b"],
html.dark #dreamChatModal > div > div:first-child {
  background: rgba(20, 23, 28, 0.96) !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
  color: #f5f2ec !important;
}

html.dark div[id$="Modal"] h2,
html.dark div[id$="Modal"] h3,
html.dark div[id$="Modal"] h4,
html.dark #authScreen h1,
html.dark #authScreen h2 {
  color: #f5f2ec !important;
  -webkit-text-fill-color: #f5f2ec !important;
}

html.dark div[id$="Modal"] p,
html.dark div[id$="Modal"] label,
html.dark #authScreen label,
html.dark #authScreen p {
  color: #d4d8e0 !important;
}

html.dark div[id$="Modal"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.dark div[id$="Modal"] textarea,
html.dark div[id$="Modal"] select,
html.dark #authScreen input,
html.dark #dreamChatModal #dreamTextInput,
html.dark #dreamDirectPromptModal #directDreamerName {
  background: #1E242B !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
  color: #f5f2ec !important;
}

html.dark #dreamChatModal #dreamMessagesContainer {
  background: #151A20 !important;
}

html.dark #dreamChatModal #dreamChatInputBar,
html.dark #dreamChatModal #dreamVoiceRecordingBar {
  background: rgba(20, 23, 28, 0.96) !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
}

html.dark #dreamChatModal #dreamRecordVoiceBtn {
  background: #1E242B !important;
  border-color: rgba(182, 121, 67, 0.35) !important;
  color: #e6aa68 !important;
}

html.dark #dreamAdminModal > div > div > aside,
html.dark #dreamAdminModal #dreamAdminSessionsSidebar,
html.dark #dreamSubmissionsSidebar,
html.dark #dreamSubmissionsSidebar > div,
html.dark #dreamAdminSessionsSidebar > div,
html.dark #libraryModal > div,
html.dark #recordedLessonsModal > div,
html.dark #liveLessonModal .bg-slate-950\/95,
html.dark #liveLessonModal #liveParticipantsList,
html.dark #liveLessonModal .live-action-dock {
  background: rgba(26, 30, 37, 0.98) !important;
  background-image: none !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #f5f2ec !important;
}

html.dark #dreamSessionsList > div,
html.dark .dream-session-item,
html.dark .dream-submission-card,
html.dark #aiSecurityModal .grid > div,
html.dark #activityDatabaseModal [class*="rounded-2xl"] {
  background: rgba(34, 39, 48, 0.95) !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #f5f2ec !important;
}

/* 8. COMPLETE HERITAGE-LIGHT-OVERRIDE COUNTERMEASURES FOR DARK MODE
   Covers every modal subcard, list item, split-panel chat, profile card,
   library, recorded lessons, leaderboard, questions bank & admin tabs! */
html.dark div[id$="Modal"] :is(
  [class*="from-purple-950"],
  [class*="from-rose-950"],
  [class*="from-amber-950"],
  [class*="from-amber-950"],
  [class*="from-amber-950"],
  [class*="from-rose-950"],
  [class*="from-rose-950"],
  [class*="from-slate-9"],
  [class*="via-slate-9"],
  [class*="via-rose-950"],
  [class*="via-amber-950"],
  [class*="via-rose-950"],
  [class*="via-rose-950"],
  [class*="bg-purple-950"],
  [class*="bg-amber-950"],
  [class*="bg-rose-950"],
  [class*="bg-amber-950"]
):not(.fixed.inset-0):not(video):not([class*="bg-rose-6"]):not([class*="bg-amber-6"]),
body.dark-theme div[id$="Modal"] :is(
  [class*="from-purple-950"],
  [class*="from-rose-950"],
  [class*="from-amber-950"],
  [class*="from-amber-950"],
  [class*="from-amber-950"],
  [class*="from-rose-950"],
  [class*="from-rose-950"],
  [class*="from-slate-9"],
  [class*="via-slate-9"],
  [class*="via-rose-950"],
  [class*="via-amber-950"],
  [class*="via-rose-950"],
  [class*="via-rose-950"],
  [class*="bg-purple-950"],
  [class*="bg-amber-950"],
  [class*="bg-rose-950"],
  [class*="bg-amber-950"]
):not(.fixed.inset-0):not(video):not([class*="bg-rose-6"]):not([class*="bg-amber-6"]) {
  background-color: #1E242B !important;
  background-image: linear-gradient(166deg, rgba(34, 39, 48, 0.98) 0%, rgba(23, 27, 33, 0.98) 100%) !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

/* Profile Modal Inner Cards & Badges */
html.dark #profRegularStatsGrid > div,
html.dark #profStarsBox,
html.dark #profPublishDreamPostContainer,
html.dark #profPublishPoemContainer,
html.dark #profStarsAdjustContainer,
html.dark #profSpecialBadgeAdminCard,
html.dark #profBadgesOverviewCard,
html.dark #profCoursesViewCard,
html.dark #profCoursesEditCard,
html.dark #profNotificationContainer,
html.dark #badgeBtnBlue,
html.dark #badgeBtnRed,
html.dark #badgeBtnPurple,
body.dark-theme #profRegularStatsGrid > div,
body.dark-theme #profStarsBox,
body.dark-theme #profPublishDreamPostContainer,
body.dark-theme #profPublishPoemContainer,
body.dark-theme #profStarsAdjustContainer,
body.dark-theme #profSpecialBadgeAdminCard,
body.dark-theme #profBadgesOverviewCard,
body.dark-theme #profCoursesViewCard,
body.dark-theme #profCoursesEditCard,
body.dark-theme #profNotificationContainer,
body.dark-theme #badgeBtnBlue,
body.dark-theme #badgeBtnRed,
body.dark-theme #badgeBtnPurple {
  background: linear-gradient(166deg, rgba(34, 39, 48, 0.96) 0%, rgba(23, 27, 33, 0.96) 100%) !important;
  background-image: linear-gradient(166deg, rgba(34, 39, 48, 0.96) 0%, rgba(23, 27, 33, 0.96) 100%) !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55) !important;
}

html.dark #userProfileModalDialog .prof-section-card span,
html.dark #userProfileModalDialog .prof-inset-tile span,
html.dark #userProfileModalDialog .prof-stat-tile span,
html.dark #profCoursesRowsList > div {
  color: #f0dec6 !important;
}

html.dark #userProfileModalDialog .prof-section-card .opacity-75,
html.dark #userProfileModalDialog .prof-inset-tile .opacity-75 {
  color: #d4d8e0 !important;
  opacity: 0.9 !important;
}

/* Admin Panel Sub-Tabs & User Lists */
html.dark .admin-subtab-tile,
html.dark #adminModal .admin-subtab-tile,
html.dark #pendingUsersList > div,
html.dark #allUsersList > div,
html.dark #profileChangesList > div,
html.dark #passwordResetsList > div,
html.dark #adminBackupsList > div,
body.dark-theme .admin-subtab-tile,
body.dark-theme #adminModal .admin-subtab-tile,
body.dark-theme #pendingUsersList > div,
body.dark-theme #allUsersList > div,
body.dark-theme #profileChangesList > div,
body.dark-theme #passwordResetsList > div,
body.dark-theme #adminBackupsList > div {
  background: linear-gradient(166deg, rgba(34, 39, 48, 0.96) 0%, rgba(23, 27, 33, 0.96) 100%) !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

html.dark .admin-subtab-tile:hover,
html.dark #adminModal .admin-subtab-tile:hover {
  background: rgba(37, 42, 52, 0.98) !important;
  border-color: rgba(182, 121, 67, 0.52) !important;
  color: #e6b984 !important;
}

html.dark .admin-subtab-tile.active,
html.dark #adminModal .admin-subtab-tile.active {
  background: linear-gradient(135deg, #B67943 0%, #955B28 100%) !important;
  color: #ffffff !important;
}
html.dark .admin-subtab-tile.active *,
html.dark .admin-subtab-tile.active .admin-tile-label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Library, Recorded Lessons, Leaderboard, Questions Archive */
html.dark #libraryModal .library-book-card,
html.dark #recordedLessonsModal .lesson-card,
html.dark #recordedLessonsModal .folder-card,
html.dark #leaderboardList > div,
html.dark #questionsArchiveList > div,
body.dark-theme #libraryModal .library-book-card,
body.dark-theme #recordedLessonsModal .lesson-card,
body.dark-theme #recordedLessonsModal .folder-card,
body.dark-theme #leaderboardList > div,
body.dark-theme #questionsArchiveList > div {
  background: linear-gradient(166deg, rgba(34, 39, 48, 0.96) 0%, rgba(23, 27, 33, 0.96) 100%) !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

html.dark #libraryModal .library-book-card *,
html.dark #recordedLessonsModal .lesson-card *,
html.dark #recordedLessonsModal .folder-card *,
html.dark #leaderboardList > div *,
html.dark #questionsArchiveList > div * {
  border-color: rgba(182, 121, 67, 0.20);
}

/* Split-Panel Chats, Voice Bars & Live Lesson Stage */
html.dark #customGroupMessagesContainer,
html.dark #privateChatMessagesContainer,
html.dark #dreamAdminMessagesContainer,
html.dark #aiAdvisorMessagesContainer,
body.dark-theme #customGroupMessagesContainer,
body.dark-theme #privateChatMessagesContainer,
body.dark-theme #dreamAdminMessagesContainer,
body.dark-theme #aiAdvisorMessagesContainer {
  background: #151A20 !important;
}

html.dark #dreamSessionsList > div.bg-purple-950\/70,
html.dark #dreamSessionsList > div.ring-1 {
  background: linear-gradient(145deg, rgba(46, 52, 64, 0.98) 0%, rgba(37, 42, 52, 0.98) 100%) !important;
  border-color: rgba(216, 155, 92, 0.6) !important;
  color: #f5f2ec !important;
}

html.dark #customGroupVoiceRecordSection,
html.dark #dreamAdminVoiceBar,
html.dark #customGroupAdvisorTyping {
  background: rgba(34, 39, 48, 0.96) !important;
  border-top-color: rgba(182, 121, 67, 0.28) !important;
  color: #e6b984 !important;
}

html.dark #liveLessonModal #liveParticipantsList,
html.dark #liveLessonModal .flex-1.bg-slate-950\/95 {
  background-color: #111318 !important;
  background-image: none !important;
  color: #f5f2ec !important;
}

/* Executive Hub, Complaints, Activity DB, Poems Modal */
html.dark #executiveHubModal .bg-slate-800,
html.dark #executiveHubModal .bg-slate-800\/50,
html.dark #executiveHubModal .bg-slate-900\/80,
html.dark #complaintsModal .bg-slate-800\/60,
html.dark #activityDatabaseModal .bg-slate-800\/60 {
  background: linear-gradient(166deg, rgba(34, 39, 48, 0.96) 0%, rgba(23, 27, 33, 0.96) 100%) !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

/* Members Sidebar Segmented Tab Bar & Controls in Dark Mode */
html.dark #membersSidebar > div:nth-child(2) {
  background: rgba(20, 23, 28, 0.92) !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
}

html.dark #membersSidebar > div:first-child {
  background: rgba(20, 23, 28, 0.95) !important;
  border-bottom-color: rgba(182, 121, 67, 0.22) !important;
}

html.dark #membersListContainer > div .w-9.h-9.rounded-xl {
  background: linear-gradient(145deg, #262b35 0%, #171a20 100%) !important;
  border-color: rgba(182, 121, 67, 0.35) !important;
  color: #d89b5c !important;
}

/* Modal Close Buttons & Header Buttons in Dark Mode */
html.dark div[id$="Modal"] button[onclick*="close"]:not([class*="from-amber-"]):not([class*="from-amber-"]):not([class*="from-rose-"]) {
  background: rgba(37, 42, 52, 0.92) !important;
  border-color: rgba(182, 121, 67, 0.30) !important;
  color: #e6b984 !important;
}

/* Top Podium Ribbon in Dark Mode */
html.dark #topPodiumWidget {
  background: linear-gradient(180deg, rgba(26, 30, 37, 0.98) 0%, rgba(18, 21, 26, 0.98) 100%) !important;
  border-bottom-color: rgba(182, 121, 67, 0.24) !important;
  color: #f5f2ec !important;
}

/* Ensure modals with hardcoded light bg-[#f5f2ec] / text-amber-950 stay readable in Dark Mode */
html.dark div[id$="Modal"] .bg-\[\#f5f2ec\],
html.dark div[id$="Modal"] .bg-\[\#ebe8e0\],
html.dark div[id$="Modal"] .bg-\[\#ebe8e0\] {
  background: rgba(34, 39, 48, 0.96) !important;
  color: #f5f2ec !important;
}

html.dark div[id$="Modal"] .text-\[\#1c1f24\],
html.dark div[id$="Modal"] .text-\[\#4b5262\],
html.dark div[id$="Modal"] .text-amber-950,
html.dark div[id$="Modal"] .text-slate-900,
html.dark div[id$="Modal"] .text-slate-950 {
  color: #f5f2ec !important;
}

/* Dream Management Top Header in Dark Mode */
html.dark #dreamAdminModalHeader {
  background: linear-gradient(165deg, rgba(26, 30, 37, 0.98) 0%, rgba(17, 20, 25, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

html.dark #dreamAdminModalHeader #dreamDownloadAllAudioBtn,
html.dark #dreamAdminModalHeader #dreamPublicPostsLinkBtn,
html.dark #dreamAdminModalHeader #dreamAdminCloseBtn {
  background: rgba(37, 42, 52, 0.95) !important;
  border: 1px solid rgba(182, 121, 67, 0.30) !important;
  color: #f0dec6 !important;
}

html.dark #dreamAdminModalHeader #dreamPublicPostsLinkBtn i,
html.dark #dreamAdminModalHeader #dreamDownloadAllAudioBtn i {
  color: #d89b5c !important;
}

html.dark #dreamAdminModalHeader #dreamAdminCloseBtn:hover {
  background: rgba(239, 68, 68, 0.20) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #fecaca !important;
}

/* Vivid Green Unread Private Message Count Badges on Account Name & Inside Profile (Dark Mode) */
html.dark #headerPrivateUnreadBadge,
html.dark #drawerProfilePrivateUnreadBadge,
html.dark #profPrivateUnreadBadge,
body.dark-theme #headerPrivateUnreadBadge,
body.dark-theme #drawerProfilePrivateUnreadBadge,
body.dark-theme #profPrivateUnreadBadge {
  background: #16a34a !important;
  background-image: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid #86efac !important;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.55) !important;
}


/* ============================================================================
   LIGHT MODE: SOFTENED OLIVE GREEN SHIRT (#6d7c46 / #EAF2F6) + WARM BROWN TROUSERS (#347493 / #dfd0c4)
   ============================================================================ */

body.light-theme,
body.light-mode {
  background-color: #EAF2F6 !important;
  color: #1E242B !important;
}

html.dark body,
body.dark-theme,
body.dark-mode {
  background-color: #151A20 !important;
  color: #f5f2ec !important;
}

/* TOP HEADER: Velvety Sage-Emerald Glass + Native Mobile App Icons (4-ID specificity beats style.css) */
html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header,
html:not(.dark) body #mainApp#mainApp#mainApp#mainApp > header,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header,
body.light-mode #mainApp#mainApp#mainApp#mainApp > header {
  background-color: #4A7D66 !important;
  background-image:
    radial-gradient(ellipse 90% 80% at 85% 0%, rgba(218, 194, 170, 0.22) 0%, transparent 62%),
    linear-gradient(156deg, #6EA389 0%, #4A7D66 48%, #315B48 100%) !important;
  backdrop-filter: blur(18px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 28px -10px rgba(30, 56, 44, 0.28) !important;
}

html:not(.dark) #mainApp > header h2,
body.light-theme #mainApp > header h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #headerFullName,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #headerFullName {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(30, 36, 43, 0.28) !important;
}

html:not(.dark) #mainApp > header #onlineCountText,
body.light-theme #mainApp > header #onlineCountText {
  color: #EBF3F7 !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header img[alt*="خەوچن"],
body.light-theme #mainApp#mainApp#mainApp#mainApp > header img[alt*="خەوچن"] {
  border: none !important;
  border-radius: 0.78rem !important;
  box-shadow: none !important;
  background: #FFFFFF !important;
}

html:not(.dark) body #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn, div[onclick="openMyProfile()"]),
html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn, div[onclick="openMyProfile()"]),
body.light-theme #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn, div[onclick="openMyProfile()"]) {
  background: rgba(30, 36, 43, 0.28) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(30, 36, 43, 0.28) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 0.8rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 12px -3px rgba(30, 36, 43, 0.24) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn):hover,
html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header div[onclick="openMyProfile()"]:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn) i,
html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn) span:not(#dreamUnreadBadge):not(#mainMenuBadgeDot),
body.light-theme #mainApp#mainApp#mainApp#mainApp > header :is(#backToClassroomsLobbyBtn, #headerActiveRoomBadge, #dreamAdminNavBtn, #topExecutiveHubBtn, #headerHomeLandingBtn, #btnThemeToggle, #pushNotificationBtn, #mainMenuBtn) i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: drop-shadow(0 1px 1px rgba(30, 36, 43, 0.22)) !important;
}

/* MAIN LOBBY CANVAS: Distinctly Soft Light Olive Green (#EAF2F6) */
html:not(.dark) #mainApp #classroomsLobbyView,
html:not(.dark) #classroomsLobbyView,
body.light-theme #mainApp #classroomsLobbyView,
body.light-mode #mainApp #classroomsLobbyView,
html:not(.dark) #mainApp,
body.light-theme #mainApp,
body.light-mode #mainApp,
html:not(.dark) #classroomChatStage,
html:not(.dark) #messagesContainer,
html:not(.dark) #chatMessagesArea {
  background-color: #EAF2F6 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23235B78%22%20stroke-width%3D%220.95%22%20opacity%3D%220.14%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23B67943%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23B67943%22%20fill-opacity%3D%220.12%22%20opacity%3D%220.165%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 85% 50% at 50% 0%, rgba(255, 255, 255, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(35, 91, 120, 0.10) 0%, transparent 60%) !important;
  background-size: 160px 160px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
}

/* LOBBY TOP HERO RIBBON: Light Warm Cocoa (کاکاوی - lighter than brown) */
html:not(.dark) #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child,
body.light-theme #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child,
body.light-mode #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child {
  background-color: #EFE3D4 !important;
  background-image: linear-gradient(135deg, #F8F2EA 0%, #E5D4C1 100%) !important;
  border-bottom: 1.5px solid rgba(35, 91, 120, 0.26) !important;
}

html:not(.dark) #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child .w-9.h-9 i,
body.light-theme #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child .w-9.h-9 i {
  color: #ffffff !important;
}

html:not(.dark) #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView #classroomsSearchInput,
body.light-theme #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView #classroomsSearchInput {
  background: #FAF6F0 !important;
  border-color: rgba(35, 91, 120, 0.26) !important;
  color: #1E242B !important;
}

html:not(.dark) #classroomsLobbyView > div:first-child .w-9.h-9 {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  color: #ffffff !important;
  border-color: rgba(35, 91, 120, 0.45) !important;
}

html:not(.dark) #classroomsLobbyView > div:first-child h3,
html:not(.dark) #classroomsLobbyView > div:first-child p {
  color: #1E242B !important;
}

/* MEMBERS SIDEBAR: Light Warm Cocoa (کاکاوی - matching Lobby Ribbon) + Warm Brown Header */
html:not(.dark) #membersSidebar#membersSidebar#membersSidebar#membersSidebar,
html:not(.dark) #classroomMembersSidebar#classroomMembersSidebar#classroomMembersSidebar#classroomMembersSidebar,
body.light-theme #membersSidebar#membersSidebar#membersSidebar#membersSidebar,
body.light-mode #membersSidebar#membersSidebar#membersSidebar#membersSidebar {
  background-color: #EFE3D4 !important;
  background-image: linear-gradient(180deg, #F8F2EA 0%, #E5D4C1 100%) !important;
  border-color: rgba(35, 91, 120, 0.26) !important;
}

html:not(.dark) #membersSidebar > div:first-child,
html:not(.dark) #classroomMembersSidebar > div:first-child,
body.light-theme #membersSidebar > div:first-child,
body.light-theme #classroomMembersSidebar > div:first-child {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  border-bottom: 1px solid rgba(35, 91, 120, 0.30) !important;
}

html:not(.dark) #membersSidebar > div:first-child h3,
html:not(.dark) #membersSidebar > div:first-child i.fa-users,
body.light-theme #membersSidebar > div:first-child h3,
body.light-theme #membersSidebar > div:first-child i.fa-users {
  color: #ffffff !important;
}

html:not(.dark) #membersSidebarCount,
body.light-theme #membersSidebarCount {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #235B78 !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

html:not(.dark) #membersSidebar > div:nth-child(2) {
  background: #EFE3D4 !important;
  border-color: rgba(35, 91, 120, 0.20) !important;
}

html:not(.dark) #membersSidebar #membersSearchInput,
body.light-theme #membersSidebar #membersSearchInput {
  background: #FAF6F0 !important;
  border-color: rgba(35, 91, 120, 0.22) !important;
  color: #1E242B !important;
}

html:not(.dark) #membersSidebar #membersListContainer > div,
body.light-theme #membersSidebar #membersListContainer > div {
  background: #FAF6F0 !important;
  border-color: rgba(35, 91, 120, 0.20) !important;
  color: #1E242B !important;
}

html:not(.dark) #membersSidebar #tabMemberAll.bg-rose-600,
html:not(.dark) #membersSidebar #tabMemberStudents.bg-rose-600,
html:not(.dark) #membersSidebar #tabMemberAdmins.bg-rose-600,
html:not(.dark) #classroomsLobbyView > div:first-child button[onclick*="openCreateClassroomModal"],
body.light-theme #classroomsLobbyView > div:first-child button[onclick*="openCreateClassroomModal"] {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  border-color: rgba(35, 91, 120, 0.55) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* CLASSROOM CARDS: Crisp Soft Olive-White (#FAF6F0) with Warm Brown Icon + Olive Border */
html:not(.dark) .classroom-lobby-card,
body.light-theme .classroom-lobby-card {
  background: linear-gradient(155deg, #FAF6F0 0%, #F2E7DA 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.30) !important;
  box-shadow: 0 10px 24px -10px rgba(30, 36, 43, 0.16) !important;
}

html:not(.dark) .classroom-lobby-card .pryaska-card-icon,
body.light-theme .classroom-lobby-card .pryaska-card-icon {
  background: linear-gradient(135deg, #C4844A 0%, #B67943 100%) !important;
  border-color: rgba(217, 119, 6, 0.50) !important;
  color: #ffffff !important;
}

html:not(.dark) .classroom-lobby-card .pryaska-enter-arrow,
body.light-theme .classroom-lobby-card .pryaska-enter-arrow {
  background: #E2EEF4 !important;
  border-color: rgba(35, 91, 120, 0.34) !important;
  color: #235B78 !important;
}

html:not(.dark) .classroom-lobby-card:hover .pryaska-enter-arrow,
body.light-theme .classroom-lobby-card:hover .pryaska-enter-arrow {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  color: #ffffff !important;
}

html:not(.dark) .classroom-lobby-card span.bg-amber-400\/20,
body.light-theme .classroom-lobby-card span.bg-amber-400\/20 {
  background: #fef3c7 !important;
  border-color: rgba(136, 90, 64, 0.40) !important;
  color: #92400e !important;
}

/* DRAWER IN LIGHT MODE: Harmonized Soft Olive + Warm Cocoa + Crisp White Icons (4-ID specificity beats style.css) */
html:not(.dark) #mainMenuDrawer#mainMenuDrawer#mainMenuDrawer#mainMenuDrawer,
body.light-theme #mainMenuDrawer#mainMenuDrawer#mainMenuDrawer#mainMenuDrawer {
  background: transparent !important;
}

html:not(.dark) #mainMenuDrawerBackdrop#mainMenuDrawerBackdrop#mainMenuDrawerBackdrop#mainMenuDrawerBackdrop,
body.light-theme #mainMenuDrawerBackdrop#mainMenuDrawerBackdrop#mainMenuDrawerBackdrop#mainMenuDrawerBackdrop {
  background: rgba(30, 36, 43, 0.52) !important;
  background-color: rgba(30, 36, 43, 0.52) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel,
body.light-mode #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel {
  background-color: #EAF2F6 !important;
  background-image: linear-gradient(180deg, #F1F7FA 0%, #DFECF2 100%) !important;
  border-left: 2px solid #347493 !important;
  box-shadow: -16px 0 42px rgba(30, 36, 43, 0.20) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child {
  background-color: #4A7D66 !important;
  background-image: linear-gradient(156deg, #6EA389 0%, #4A7D66 55%, #315B48 100%) !important;
  border-bottom: 2px solid rgba(182, 121, 67, 0.44) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child h3,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child p,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child p {
  color: #E2EFE8 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child .w-10,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child .w-10 {
  background: rgba(255, 255, 255, 0.18) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child .w-10 i,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div:first-child .w-10 i {
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick="closeMainMenuDrawer()"],
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick="closeMainMenuDrawer()"] {
  background: rgba(255, 255, 255, 0.94) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
  color: #315B48 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"],
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] {
  background-color: #FFFFFF !important;
  background-image: linear-gradient(135deg, #FFFFFF 0%, #F1F5F8 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 16px -6px rgba(34, 48, 42, 0.14) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerUserName,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerUserStars,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerUserName {
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child {
  background: linear-gradient(135deg, #5C9479 0%, #3E6E58 100%) !important;
  border-color: rgba(49, 91, 72, 0.55) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child i {
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerGeneralHeader,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerStaffHeader,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerGeneralHeader,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerStaffHeader {
  color: #315B48 !important;
  border-bottom: 1.5px solid rgba(74, 125, 102, 0.20) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerGeneralHeader i,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerStaffHeader i,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerGeneralHeader i,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerStaffHeader i {
  color: #4A7D66 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-btn:not(#drawerSettingsToggleBtn),
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerDreamAdminBtn,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerDreamPostsManageBtn,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerAzadAddPoemBtn,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerArticlesAdminBtn,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerPrivacyTermsBtn,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-btn:not(#drawerSettingsToggleBtn) {
  background: linear-gradient(145deg, #FFFFFF 0%, #F3F6F8 100%) !important;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F3F6F8 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.22) !important;
  box-shadow: 0 4px 12px -4px rgba(30, 36, 43, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #1E242B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-btn:not(#drawerSettingsToggleBtn):hover,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerPrivacyTermsBtn:hover {
  background: linear-gradient(145deg, #FFFFFF 0%, #E9F1ED 100%) !important;
  border-color: rgba(74, 125, 102, 0.55) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerCustomGroupsSection {
  background: linear-gradient(145deg, #F8FAFC 0%, #EAF0EE 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.22) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerCreateGroupBtn {
  background: linear-gradient(135deg, #5C9479 0%, #3E6E58 100%) !important;
  border-color: rgba(49, 91, 72, 0.55) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerCreateGroupBtn span,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerCreateGroupBtn i {
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box,
body.light-mode #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box {
  background: linear-gradient(145deg, #6EA389 0%, #4A7D66 55%, #315B48 100%) !important;
  border: 1px solid rgba(49, 91, 72, 0.42) !important;
  box-shadow: 0 4px 10px -3px rgba(49, 91, 72, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .overflow-y-auto .drawer-tool-icon-box i,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box i,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-btn:hover .drawer-tool-icon-box i,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box i,
body.light-mode #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-icon-box i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-title {
  color: #1E242B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-badge,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel .drawer-tool-badge {
  background: #EAF0F2 !important;
  border: 1px solid rgba(74, 125, 102, 0.26) !important;
  color: #315B48 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .overflow-y-auto button .fa-chevron-left,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .fa-chevron-left,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel .fa-chevron-down,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel .fa-chevron-left {
  color: #4A7D66 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerStaffSection {
  border-top-color: rgba(74, 125, 102, 0.20) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsSection,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsSection {
  background-color: #EDF2F4 !important;
  background-image: none !important;
  border: 1.5px solid rgba(74, 125, 102, 0.24) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsToggleBtn,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsToggleBtn {
  background-color: #FFFFFF !important;
  background-image: linear-gradient(135deg, #FFFFFF 0%, #F1F5F7 100%) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList {
  background-color: #E4EAEE !important;
  background-image: none !important;
  border-top: 1px solid rgba(74, 125, 102, 0.18) !important;
}

/* Compact 3-Column Square Settings Grid (All Themes) */
#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 10px !important;
  align-items: stretch !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList.hidden {
  display: none !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > .drawer-setting-tile {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 86px !important;
  padding: 8px 5px !important;
  margin: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border-radius: 15px !important;
  text-align: center !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > .drawer-setting-tile > div.flex:not(.drawer-setting-badge-row):not(.drawer-delete-icon-box) {
  width: 100% !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 0 !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList .drawer-tool-icon-box,
#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList .drawer-delete-icon-box {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 9px !important;
  font-size: 0.85rem !important;
  margin: 0 auto !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList .drawer-setting-tile .drawer-tool-title,
#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList #drawerDeleteMyAccountBtn > span {
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList .drawer-setting-tile .drawer-tool-badge,
#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList #drawerNotificationStatusBadge,
#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerAllChatNotificationBadge {
  font-size: 0.56rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  padding: 2px 6px !important;
  border-radius: 9999px !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList .drawer-setting-badge-row {
  max-width: 100% !important;
}

#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerLangPickerOptions,
#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerFontPickerOptions {
  grid-column: 1 / -1 !important;
  padding: 8px !important;
  border-radius: 14px !important;
  margin: 0 !important;
}

/* Light Mode Settings Tiles & Pickers */
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > .drawer-setting-tile:not(#drawerDeleteMyAccountBtn),
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > .drawer-setting-tile:not(#drawerDeleteMyAccountBtn) {
  background-color: #FFFFFF !important;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F3F6F8 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.22) !important;
  color: #1E242B !important;
  box-shadow: 0 3px 10px -4px rgba(30, 36, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > .drawer-setting-tile:not(#drawerDeleteMyAccountBtn) .drawer-tool-title,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > .drawer-setting-tile:not(#drawerDeleteMyAccountBtn) .drawer-tool-title {
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerDeleteMyAccountBtn,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerDeleteMyAccountBtn {
  background-color: #FFFFFF !important;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #FDF2F2 100%) !important;
  border: 1.5px solid rgba(185, 28, 28, 0.24) !important;
  color: #991B1B !important;
  box-shadow: 0 3px 10px -4px rgba(153, 27, 27, 0.10) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerDeleteMyAccountBtn .drawer-delete-icon-box,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerDeleteMyAccountBtn .drawer-delete-icon-box {
  background: rgba(185, 28, 28, 0.10) !important;
  border: 1px solid rgba(185, 28, 28, 0.22) !important;
  color: #991B1B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerDeleteMyAccountBtn > span,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerDeleteMyAccountBtn > span {
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerLangPickerOptions,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerFontPickerOptions,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerLangPickerOptions,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerSettingsList > #drawerFontPickerOptions {
  background-color: #FFFFFF !important;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F3F6F8 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.22) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerNotificationStatusBadge,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerAllChatNotificationBadge,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerNotificationStatusBadge,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel #drawerAllChatNotificationBadge {
  background-color: #EAF0F2 !important;
  background-image: none !important;
  border: 1px solid rgba(74, 125, 102, 0.28) !important;
  color: #315B48 !important;
  -webkit-text-fill-color: #315B48 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerLangPickerOptions button,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerFontPickerOptions button {
  background: #F4F7F9 !important;
  border: 1px solid rgba(74, 125, 102, 0.24) !important;
  color: #315B48 !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerLangPickerOptions button.from-amber-600,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerFontPickerOptions button.from-amber-500 {
  background: linear-gradient(135deg, #5C9479 0%, #3E6E58 100%) !important;
  border-color: #315B48 !important;
  color: #ffffff !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div.border-t,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel > div.border-t {
  background-color: #EAEFF3 !important;
  background-image: linear-gradient(135deg, #F1F5F8 0%, #E1E7EC 100%) !important;
  border-top: 1.5px solid rgba(74, 125, 102, 0.22) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"],
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"] {
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1.5px solid rgba(185, 28, 28, 0.34) !important;
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
  box-shadow: 0 4px 12px -4px rgba(34, 48, 42, 0.14) !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"] *,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"] * {
  color: #991B1B !important;
  -webkit-text-fill-color: #991B1B !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"]:hover,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"]:hover {
  background-color: #991B1B !important;
  background-image: none !important;
  border-color: #7F1D1D !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"]:hover *,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel#mainMenuDrawerPanel button[onclick*="handleLogout"]:hover * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Auth Screen: Light Mode (Soft Olive + Soft Brown) & Dark Mode (Charcoal + Copper) */
#authScreen {
  background: radial-gradient(circle at 20% 15%, rgba(255, 250, 235, 0.18) 0%, transparent 45%),
              linear-gradient(155deg, #5696B2 0%, #235B78 100%) !important;
}

html.dark #authScreen,
body.dark-theme #authScreen {
  background: radial-gradient(circle at 20% 15%, rgba(182, 121, 67, 0.16) 0%, transparent 45%),
              linear-gradient(155deg, #222932 0%, #151A20 100%) !important;
}

#authScreen .auth-royal-card {
  background: linear-gradient(180deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.36) !important;
  color: #1E242B !important;
  box-shadow: 0 28px 70px -15px rgba(30, 36, 43, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.72) inset !important;
}

html.dark #authScreen .auth-royal-card,
body.dark-theme #authScreen .auth-royal-card {
  background: linear-gradient(180deg, #232B34 0%, #181b20 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.35) !important;
  color: #f5f2ec !important;
}

#authScreen h1 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #1E242B !important;
  color: #1E242B !important;
}

html.dark #authScreen h1,
body.dark-theme #authScreen h1 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #f5f2ec !important;
  color: #f5f2ec !important;
}

#authScreen label,
#authScreen #authUsernameLabel,
#authScreen #authPasswordLabel {
  color: #3a3228 !important;
}

html.dark #authScreen label,
html.dark #authScreen #authUsernameLabel,
html.dark #authScreen #authPasswordLabel,
body.dark-theme #authScreen label {
  color: #e6dfd5 !important;
}

#authScreen input:not([type="checkbox"]):not([type="radio"]) {
  background-color: #fafbf7 !important;
  border-color: rgba(136, 90, 64, 0.35) !important;
  color: #1E242B !important;
}

#authScreen input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: #347493 !important;
  box-shadow: 0 0 0 3px rgba(35, 91, 120, 0.22) !important;
}

html.dark #authScreen input:not([type="checkbox"]):not([type="radio"]),
body.dark-theme #authScreen input:not([type="checkbox"]):not([type="radio"]) {
  background-color: #151A20 !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #f5f2ec !important;
}

#authScreen #tabLogin.bg-amber-600,
#authScreen #tabRegister.bg-amber-600,
#authScreen #loginSubmitBtn,
#authScreen #regSubmitBtn,
#authScreen #forgotSubmitBtn {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  border-color: rgba(35, 91, 120, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px -8px rgba(30, 36, 43, 0.26) !important;
}

#authScreen button[onclick="openDreamSection()"] {
  background: linear-gradient(135deg, #5696B2 0%, #B67943 58%, #235B78 100%) !important;
  border-color: rgba(140, 198, 222, 0.65) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(7, 45, 74, 0.28) !important;
}

html.dark #authScreen #tabLogin.bg-amber-600,
html.dark #authScreen #tabRegister.bg-amber-600,
html.dark #authScreen #loginSubmitBtn,
html.dark #authScreen #regSubmitBtn,
html.dark #authScreen #forgotSubmitBtn {
  background: linear-gradient(135deg, #252930 0%, #1c1f24 58%, #9d6431 140%) !important;
  border-color: rgba(182, 121, 67, 0.55) !important;
  color: #faf7f0 !important;
}

html.dark #authScreen button[onclick="openDreamSection()"] {
  background: linear-gradient(135deg, #B67943 0%, #9b6028 100%) !important;
  border-color: rgba(182, 121, 67, 0.55) !important;
  color: #ffffff !important;
}

#authScreen #authLangBtn,
#authScreen #authLangDropdown,
#authScreen #authLangNotice {
  background-color: #EFE3D4 !important;
  border-color: rgba(136, 90, 64, 0.38) !important;
  color: #1E242B !important;
}

html.dark #authScreen #authLangBtn,
html.dark #authScreen #authLangDropdown,
html.dark #authScreen #authLangNotice,
body.dark-theme #authScreen #authLangBtn,
body.dark-theme #authScreen #authLangDropdown,
body.dark-theme #authScreen #authLangNotice {
  background-color: #232730 !important;
  border-color: rgba(182, 121, 67, 0.35) !important;
  color: #f5f2ec !important;
}

div[id$="Modal"]:not(#authScreen) {
  background: rgba(38, 42, 30, 0.58) !important;
}

html.dark div[id$="Modal"]:not(#authScreen),
body.dark-theme div[id$="Modal"]:not(#authScreen) {
  background: rgba(10, 12, 16, 0.78) !important;
}

#dreamAuthModal > div {
  background: linear-gradient(170deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.34) !important;
  color: #1E242B !important;
}

html.dark #dreamAuthModal > div,
body.dark-theme #dreamAuthModal > div {
  background: linear-gradient(170deg, #232B34 0%, #171a20 100%) !important;
  border: 1.5px solid rgba(182, 121, 67, 0.35) !important;
  color: #f5f2ec !important;
}

#dreamAuthModal button[onclick="submitDreamerStart()"] {
  background: linear-gradient(135deg, #569177 0%, #3f7860 100%) !important;
  color: #ffffff !important;
  border-color: rgba(63, 120, 96, 0.55) !important;
}

html.dark #dreamAuthModal button[onclick="submitDreamerStart()"] {
  background: linear-gradient(135deg, #252930 0%, #1c1f24 55%, #b47439 135%) !important;
  color: #ffffff !important;
  border-color: rgba(182, 121, 67, 0.6) !important;
}



html.dark #membersSidebar > div:first-child,
html.dark #classroomMembersSidebar > div:first-child,
body.dark-theme #membersSidebar > div:first-child,
body.dark-theme #classroomMembersSidebar > div:first-child {
  background: #1A2027 !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark #membersSidebar > div:first-child h3,
body.dark-theme #membersSidebar > div:first-child h3 {
  color: #f5f2ec !important;
}

html.dark #membersListContainer > div[class*="border"],
html.dark #membersListContainer .bg-slate-800\/40,
html.dark #membersListContainer .bg-slate-900\/40 {
  background: #1E242B !important;
  border-color: rgba(182, 121, 67, 0.22) !important;
  color: #d4d8e0 !important;
}

html.dark #classroomsLobbyView > div:first-child button[onclick*="openCreateClassroomModal"] {
  background: linear-gradient(135deg, #B67943 0%, #955B28 100%) !important;
  color: #ffffff !important;
  border-color: rgba(230, 185, 132, 0.5) !important;
}


/* LIVE LESSON MODAL: Crisp Participant Pill Contrast + Mobile No-Scroll Action Dock */
html:not(.dark) #liveLessonModal #liveParticipantsList .bg-black\/85,
body.light-theme #liveLessonModal #liveParticipantsList .bg-black\/85 {
  background: rgba(30, 36, 43, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

html:not(.dark) #liveLessonModal #liveParticipantsList .bg-black\/85 span,
body.light-theme #liveLessonModal #liveParticipantsList .bg-black\/85 span {
  color: #ffffff !important;
}

html:not(.dark) #liveLessonModal #liveParticipantsList .bg-black\/85 span.text-amber-400,
body.light-theme #liveLessonModal #liveParticipantsList .bg-black\/85 span.text-amber-400 {
  color: #fcd34d !important;
}

html:not(.dark) #liveLessonModal .border-t.bg-slate-950\/90,
body.light-theme #liveLessonModal .border-t.bg-slate-950\/90 {
  background: linear-gradient(135deg, #F8F2EA 0%, #EFE3D4 100%) !important;
  border-top: 1.5px solid rgba(35, 91, 120, 0.25) !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock {
  background: linear-gradient(145deg, #FAF6F0 0%, #EFF5F8 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.28) !important;
  box-shadow: 0 10px 26px -8px rgba(30, 36, 43, 0.18) !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn,
html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn span,
html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn,
html.dark #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 55%, #9f1239 100%) !important;
  border: 1px solid rgba(254, 205, 211, 0.52) !important;
  box-shadow: 0 6px 18px -3px rgba(190, 18, 60, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn:hover,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn:hover,
html.dark #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock button:not(#liveStartEndBtn) span {
  color: #1E242B !important;
}

@media (max-width: 639px) {
  #liveLessonModal .live-action-dock {
    overflow-x: visible !important;
    flex-wrap: wrap !important;
    border-radius: 1.15rem !important;
    width: 100% !important;
  }
  #liveLessonModal .live-action-dock > button,
  #liveLessonModal .live-action-dock > div {
    flex: 1 1 30% !important;
    min-width: 0 !important;
  }
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock button:not(#liveStartEndBtn):not(.is-hand-raised) i,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock button:not(#liveStartEndBtn):not(.is-hand-raised) i {
  color: #B67943 !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveMicIcon.fa-microphone-slash,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock #liveMicIcon.fa-microphone-slash {
  color: #991b1b !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveRaiseHandBtn.is-hand-raised,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock #liveRaiseHandBtn.is-hand-raised {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  color: #ffffff !important;
}

html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveRaiseHandBtn.is-hand-raised span,
html:not(.dark) #liveLessonModal#liveLessonModal .live-action-dock #liveRaiseHandBtn.is-hand-raised i,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock #liveRaiseHandBtn.is-hand-raised span,
body.light-theme #liveLessonModal#liveLessonModal .live-action-dock #liveRaiseHandBtn.is-hand-raised i {
  color: #ffffff !important;
}

/* HEADER STICKY LOCK ON MOBILE KEYBOARD + CLEAN LIVE BUTTON & LARGER HEADER ICONS */
html.in-app-mode,
html.in-app-mode body:not(.in-landing) {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#mainApp {
  position: fixed !important;
  top: var(--app-vp-top, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--app-vh, 100dvh) !important;
  max-height: var(--app-vh, 100dvh) !important;
  overflow: hidden !important;
}

#mainApp > header {
  position: relative !important;
  top: 0 !important;
  z-index: 40 !important;
  flex-shrink: 0 !important;
}

#classroomChatStage {
  min-height: 0 !important;
  flex: 1 1 0% !important;
  overflow: hidden !important;
}

#chatInputBar {
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 35 !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active),
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active),
html.dark #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) {
  background: rgba(190, 18, 60, 0.86) !important;
  background-image: linear-gradient(135deg, rgba(225, 29, 72, 0.90) 0%, rgba(190, 18, 60, 0.94) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(254, 205, 211, 0.58) !important;
  border-radius: 0.8rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 5px 14px -3px rgba(159, 18, 57, 0.38) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active):hover,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active):hover,
html.dark #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active):hover {
  background-image: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) i,
html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) span,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) i,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) span,
html.dark #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) i,
html.dark #mainApp#mainApp#mainApp#mainApp > header #liveLessonNavBtn:not(.is-live-active) span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html:not(.dark) #mainApp > header #liveLessonNavBtn.is-live-active,
body.light-theme #mainApp > header #liveLessonNavBtn.is-live-active {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  border: 1.5px solid rgba(254, 202, 202, 0.85) !important;
  color: #ffffff !important;
}

html:not(.dark) #mainApp > header #liveLessonNavBtn.is-live-active i,
html:not(.dark) #mainApp > header #liveLessonNavBtn.is-live-active span,
body.light-theme #mainApp > header #liveLessonNavBtn.is-live-active i,
body.light-theme #mainApp > header #liveLessonNavBtn.is-live-active span {
  color: #ffffff !important;
}

#mainApp > header #backToClassroomsLobbyBtn.hidden,
#mainApp > header #liveLessonNavBtn.hidden,
#mainApp > header #headerActiveRoomBadge.hidden {
  display: none !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #headerStarBadge,
html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header #headerStarCount,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #headerStarBadge,
body.light-theme #mainApp#mainApp#mainApp#mainApp > header #headerStarCount {
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
}

/* IN-CHAT LIVE LESSON SCREEN JOIN CARD (#chatLiveScreenCard) */
html:not(.dark) #chatLiveScreenCard,
body.light-theme #chatLiveScreenCard {
  background: linear-gradient(135deg, #235B78 0%, #235B78 55%, #1B4B64 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 12px 28px -8px rgba(30, 36, 43, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html:not(.dark) #chatLiveScreenCard:hover,
body.light-theme #chatLiveScreenCard:hover {
  border-color: rgba(253, 230, 138, 0.55) !important;
}

html:not(.dark) #chatLiveScreenCard .chat-live-screen-icon,
body.light-theme #chatLiveScreenCard .chat-live-screen-icon {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

html:not(.dark) #chatLiveScreenCard #chatLiveScreenPresenter,
body.light-theme #chatLiveScreenCard #chatLiveScreenPresenter {
  color: #fde68a !important;
}

html:not(.dark) #chatLiveScreenCard #chatLiveScreenTitle,
body.light-theme #chatLiveScreenCard #chatLiveScreenTitle {
  color: #ffffff !important;
}

html:not(.dark) #chatLiveScreenCard .chat-live-enter-btn,
body.light-theme #chatLiveScreenCard .chat-live-enter-btn {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #235B78 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 10px -2px rgba(30, 36, 43, 0.22) !important;
}

html.dark #chatLiveScreenCard,
body.dark-theme #chatLiveScreenCard {
  background: linear-gradient(135deg, #252930 0%, #171a20 65%, #3d2817 100%) !important;
  border: 1.5px solid rgba(182, 121, 67, 0.45) !important;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #f5f2ec !important;
}

html.dark #chatLiveScreenCard .chat-live-screen-icon,
body.dark-theme #chatLiveScreenCard .chat-live-screen-icon {
  background: rgba(182, 121, 67, 0.18) !important;
  border: 1px solid rgba(182, 121, 67, 0.4) !important;
  color: #e6b984 !important;
}

html.dark #chatLiveScreenCard #chatLiveScreenPresenter,
body.dark-theme #chatLiveScreenCard #chatLiveScreenPresenter {
  color: #e6b984 !important;
}

html.dark #chatLiveScreenCard .chat-live-enter-btn,
body.dark-theme #chatLiveScreenCard .chat-live-enter-btn {
  background: linear-gradient(135deg, #B67943 0%, #9b6028 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(230, 185, 132, 0.5) !important;
}

/* COMPACT CLASSROOM LOBBY CARD */
#classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card,
#classroomsLobbyView .classroom-lobby-card,
html:not(.dark) .classroom-lobby-card,
html.dark .classroom-lobby-card {
  padding: 0.42rem 0.62rem !important;
  border-radius: 0.85rem !important;
  gap: 0.55rem !important;
  width: fit-content !important;
  min-width: 176px !important;
  max-width: 215px !important;
}

#classroomsLobbyView .classroom-lobby-card.is-live,
html:not(.dark) .classroom-lobby-card.is-live,
html.dark .classroom-lobby-card.is-live {
  max-width: 300px !important;
}

.classroom-lobby-card .pryaska-card-body,
html:not(.dark) .classroom-lobby-card .pryaska-card-body,
html.dark .classroom-lobby-card .pryaska-card-body {
  gap: 0.52rem !important;
  flex: 0 1 auto !important;
}

.classroom-lobby-card .pryaska-card-icon,
html:not(.dark) .classroom-lobby-card .pryaska-card-icon,
html.dark .classroom-lobby-card .pryaska-card-icon {
  width: 2rem !important;
  height: 2rem !important;
  font-size: 0.85rem !important;
  border-radius: 0.65rem !important;
}

.classroom-lobby-card .pryaska-enter-arrow,
html:not(.dark) .classroom-lobby-card .pryaska-enter-arrow,
html.dark .classroom-lobby-card .pryaska-enter-arrow {
  width: 1.65rem !important;
  height: 1.65rem !important;
  font-size: 0.72rem !important;
}

.classroom-lobby-card h3,
html:not(.dark) .classroom-lobby-card h3,
html.dark .classroom-lobby-card h3 {
  font-size: 0.88rem !important;
}

/* LANDING PAGE (#landingPage) — KINGFISHER IRIDESCENT TEAL WING, CHESTNUT COPPER & WARM SAND */
html:not(.dark) body.in-landing,
body.light-theme.in-landing,
body.light-mode.in-landing,
html:not(.dark) #landingPage#landingPage#landingPage#landingPage,
body.light-theme #landingPage#landingPage#landingPage#landingPage,
body.light-mode #landingPage#landingPage#landingPage#landingPage {
  background:
    radial-gradient(ellipse 88% 46% at 50% 6%, rgba(218, 194, 170, 0.24) 0%, transparent 62%),
    radial-gradient(ellipse 62% 44% at 14% 72%, rgba(182, 121, 67, 0.22) 0%, transparent 64%),
    radial-gradient(ellipse 55% 40% at 88% 82%, rgba(86, 150, 178, 0.28) 0%, transparent 62%),
    linear-gradient(170deg, #74B1CA 0%, #5696B2 36%, #316D8B 74%, #235B78 100%) !important;
  background-color: #235B78 !important;
  color: #1E242B !important;
}

html:not(.dark) #landingPage#landingPage#landingPage#landingPage > main,
body.light-theme #landingPage#landingPage#landingPage#landingPage > main {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

html:not(.dark) #landingPage#landingPage#landingPage#landingPage #landingHeader,
body.light-theme #landingPage#landingPage#landingPage#landingPage #landingHeader {
  background: rgba(248, 243, 236, 0.96) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.44) !important;
  box-shadow: 0 8px 24px -10px rgba(30, 36, 43, 0.18), inset 0 -1px 0 rgba(218, 194, 170, 0.55) !important;
}

html:not(.dark) #landingPage#landingPage #landingHeader .landing-brand-word,
body.light-theme #landingPage#landingPage #landingHeader .landing-brand-word {
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  background: none !important;
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  animation: none !important;
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
}

html:not(.dark) #landingHeader .landing-nav-login-btn,
body.light-theme #landingHeader .landing-nav-login-btn {
  background: rgba(86, 150, 178, 0.26) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(124, 188, 214, 0.34) 48%, rgba(86, 150, 178, 0.30) 100%) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  border: 1.5px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    inset 0 -1px 0 rgba(35, 91, 120, 0.18),
    0 6px 16px -4px rgba(35, 91, 120, 0.25) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

html:not(.dark) #landingHeader .landing-nav-login-btn:hover,
body.light-theme #landingHeader .landing-nav-login-btn:hover {
  background: rgba(86, 150, 178, 0.38) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(124, 188, 214, 0.44) 50%, rgba(86, 150, 178, 0.38) 100%) !important;
  color: #151A20 !important;
  -webkit-text-fill-color: #151A20 !important;
  border-color: rgba(255, 255, 255, 0.90) !important;
}

html:not(.dark) #landingHeader .landing-nav-icon-btn,
body.light-theme #landingHeader .landing-nav-icon-btn {
  background: #FAF6F0 !important;
  border: 1.5px solid rgba(182, 121, 67, 0.42) !important;
  color: #B67943 !important;
  box-shadow: 0 3px 10px -2px rgba(182, 121, 67, 0.18) !important;
}

html:not(.dark) #landingHeader .landing-nav-icon-btn i,
body.light-theme #landingHeader .landing-nav-icon-btn i {
  color: #B67943 !important;
}

html:not(.dark) #landingPage#landingPage#landingPage#landingPage #heroTitle,
body.light-theme #landingPage#landingPage#landingPage#landingPage #heroTitle {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(2.65rem, 6.2vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.44 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  text-shadow: 0 1px 0 rgba(239, 224, 206, 0.78), 0 0 20px rgba(218, 194, 170, 0.42), 0 5px 14px rgba(15, 23, 30, 0.22) !important;
}

html:not(.dark) #landingPage#landingPage #heroSubtitle,
body.light-theme #landingPage#landingPage #heroSubtitle {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  font-size: clamp(1.24rem, 2.35vw, 1.54rem) !important;
  font-weight: 700 !important;
  line-height: 1.82 !important;
  text-shadow: 0 1px 0 rgba(242, 226, 208, 0.72), 0 0 14px rgba(218, 194, 170, 0.34) !important;
}

html:not(.dark) #landingPage .quran-hero-search-bar,
body.light-theme #landingPage .quran-hero-search-bar {
  background: #FAF6F0 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.92) !important;
  box-shadow: 0 14px 32px -10px rgba(30, 36, 43, 0.26), 0 0 0 1px rgba(182, 121, 67, 0.22) !important;
}

html:not(.dark) #landingPage #heroInlineSearchInput,
html.dark #landingPage #heroInlineSearchInput {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

html:not(.dark) #landingPage .quran-hero-search-input,
body.light-theme #landingPage .quran-hero-search-input {
  color: #1E242B !important;
}

html:not(.dark) #landingPage .quran-hero-search-icon,
body.light-theme #landingPage .quran-hero-search-icon {
  color: #B67943 !important;
}

html:not(.dark) #landingPage .quran-hero-pill-primary,
body.light-theme #landingPage .quran-hero-pill-primary {
  background: rgba(86, 150, 178, 0.28) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(124, 188, 214, 0.34) 48%, rgba(86, 150, 178, 0.32) 100%) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  border: 1.5px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(35, 91, 120, 0.18),
    0 8px 22px -6px rgba(35, 91, 120, 0.32) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html:not(.dark) #landingPage .quran-hero-pill-primary:hover,
body.light-theme #landingPage .quran-hero-pill-primary:hover {
  background: rgba(86, 150, 178, 0.40) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0%, rgba(124, 188, 214, 0.44) 50%, rgba(86, 150, 178, 0.40) 100%) !important;
  color: #151A20 !important;
  -webkit-text-fill-color: #151A20 !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
}

html:not(.dark) #landingPage .quran-hero-pill-outline,
body.light-theme #landingPage .quran-hero-pill-outline {
  background: linear-gradient(165deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  color: #1E242B !important;
  border: 1.5px solid rgba(182, 121, 67, 0.48) !important;
  box-shadow: 0 6px 16px -6px rgba(30, 36, 43, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html:not(.dark) #landingPage .quran-hero-pill-outline i,
body.light-theme #landingPage .quran-hero-pill-outline i {
  color: #B67943 !important;
}

html:not(.dark) #landingPage #postsHeaderTitle,
html:not(.dark) #landingPage #postsHeaderTitle span,
body.light-theme #landingPage #postsHeaderTitle,
body.light-theme #landingPage #postsHeaderTitle span {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
}

html:not(.dark) #landingPage #postsHeaderSubtitle,
body.light-theme #landingPage #postsHeaderSubtitle {
  color: #EFE3D4 !important;
}

html:not(.dark) #landingPage .landing-section-icon-badge,
html:not(.dark) #landingPage .landing-counter-pill,
html:not(.dark) #landingPage .landing-carousel-arrow,
body.light-theme #landingPage .landing-carousel-arrow {
  background: linear-gradient(165deg, #FAF6F0 0%, #EFE3D4 100%) !important;
  color: #1E242B !important;
  border: 1.5px solid rgba(182, 121, 67, 0.40) !important;
  box-shadow: 0 4px 12px -4px rgba(30, 36, 43, 0.22) !important;
}

html:not(.dark) #landingPage .landing-section-icon-badge i,
body.light-theme #landingPage .landing-section-icon-badge i {
  color: #B67943 !important;
}

html:not(.dark) #landingPage #announcementActiveCard,
body.light-theme #landingPage #announcementActiveCard {
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE2D2 100%) !important;
  border: 1.5px solid rgba(218, 194, 170, 0.92) !important;
  border-right: 4.5px solid #B67943 !important;
  color: #1E242B !important;
  box-shadow: 0 18px 36px -12px rgba(30, 36, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html:not(.dark) #landingPage #annActiveTitle,
html:not(.dark) #landingPage #annActiveContent,
html:not(.dark) #landingPage #annActiveDate,
html:not(.dark) #landingPage .landing-ann-author,
body.light-theme #landingPage #annActiveTitle {
  color: #1E242B !important;
}

html:not(.dark) #landingPage #annActiveContent {
  color: #36434E !important;
}

html:not(.dark) #landingPage .landing-ann-tag,
body.light-theme #landingPage .landing-ann-tag {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid rgba(217, 119, 6, 0.28) !important;
}

html:not(.dark) #landingPage #btnAdminAddAnn,
body.light-theme #landingPage #btnAdminAddAnn {
  background: rgba(86, 150, 178, 0.28) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(124, 188, 214, 0.34) 48%, rgba(86, 150, 178, 0.32) 100%) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  border: 1.5px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(35, 91, 120, 0.18),
    0 6px 18px -4px rgba(35, 91, 120, 0.30) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

html:not(.dark) #landingPage #btnAdminAddAnn:hover,
body.light-theme #landingPage #btnAdminAddAnn:hover {
  background: rgba(86, 150, 178, 0.40) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0%, rgba(124, 188, 214, 0.44) 50%, rgba(86, 150, 178, 0.40) 100%) !important;
  color: #151A20 !important;
  -webkit-text-fill-color: #151A20 !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
}

html:not(.dark) #landingPage #emptyPostSlot,
body.light-theme #landingPage #emptyPostSlot {
  background: rgba(250, 246, 238, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  color: #1E242B !important;
}

html:not(.dark) #landingPage #emptyPostSlot *,
body.light-theme #landingPage #emptyPostSlot * {
  color: #1E242B !important;
}

html:not(.dark) #landingPage#landingPage .landing-footer,
html:not(.dark) #landingPage#landingPage .landing-footer *,
body.light-theme #landingPage#landingPage .landing-footer,
body.light-theme #landingPage#landingPage .landing-footer * {
  background-color: transparent !important;
  color: #DAC2AA !important;
}

html:not(.dark) #landingPage#landingPage .landing-footer,
body.light-theme #landingPage#landingPage .landing-footer {
  background: linear-gradient(180deg, rgba(30, 36, 43, 0.90) 0%, rgba(20, 26, 32, 0.96) 100%) !important;
  border-top: 2px solid rgba(182, 121, 67, 0.65) !important;
}

html.dark #landingPage,
body.dark-theme #landingPage {
  background:
    radial-gradient(ellipse 80% 45% at 50% 10%, rgba(86, 150, 178, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 65% 45% at 15% 75%, rgba(182, 121, 67, 0.12) 0%, transparent 65%),
    linear-gradient(170deg, #1E242B 0%, #14191F 100%) !important;
  color: #FAF6F0 !important;
}

html.dark #landingPage #landingHeader,
body.dark-theme #landingPage #landingHeader {
  background: rgba(20, 25, 31, 0.94) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.36) !important;
}

html.dark #landingHeader .landing-nav-login-btn,
html.dark #landingPage .quran-hero-pill-primary,
html.dark #landingPage #btnAdminAddAnn {
  background: rgba(86, 150, 178, 0.22) !important;
  background-image: linear-gradient(180deg, rgba(140, 198, 222, 0.22) 0%, rgba(86, 150, 178, 0.24) 100%) !important;
  backdrop-filter: blur(12px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(145%) !important;
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
  border: 1.5px solid rgba(140, 198, 222, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 20px -6px rgba(35, 91, 120, 0.42) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

html.dark #landingHeader .landing-nav-login-btn:hover,
html.dark #landingPage .quran-hero-pill-primary:hover,
html.dark #landingPage #btnAdminAddAnn:hover {
  background: rgba(86, 150, 178, 0.32) !important;
  color: #fef08a !important;
  -webkit-text-fill-color: #fef08a !important;
  border-color: rgba(218, 194, 170, 0.72) !important;
}

html.dark #landingHeader .landing-nav-login-btn span,
html.dark #landingHeader .landing-nav-login-btn i,
html.dark #landingPage .quran-hero-pill-primary span,
html.dark #landingPage .quran-hero-pill-primary i,
html.dark #landingPage #btnAdminAddAnn span,
html.dark #landingPage #btnAdminAddAnn i {
  color: #fde68a !important;
  -webkit-text-fill-color: #fde68a !important;
}

html.dark #landingPage #announcementActiveCard {
  background: linear-gradient(166deg, #222A33 0%, #192027 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  border-right: 4px solid #B67943 !important;
  color: #f4f1ea !important;
}

/* ==========================================================================
   EXTERIOR STOREFRONT ORNAMENTAL PATTERN (ISLAMIC 8-POINTED ROSETTE & CRESCENT)
   ========================================================================== */
html:not(.dark) #landingPage .landing-ambient-backdrop .landing-orb-gold,
body.light-theme #landingPage .landing-ambient-backdrop .landing-orb-gold {
  background: radial-gradient(circle, rgba(254, 243, 199, 0.34) 0%, transparent 70%) !important;
  opacity: 0.75 !important;
}

html:not(.dark) #landingPage .landing-ambient-backdrop .landing-orb-sapphire,
body.light-theme #landingPage .landing-ambient-backdrop .landing-orb-sapphire {
  background: radial-gradient(circle, rgba(86, 150, 178, 0.20) 0%, transparent 72%) !important;
  opacity: 0.65 !important;
}

html:not(.dark) #landingPage .landing-ambient-backdrop .landing-orb-emerald,
body.light-theme #landingPage .landing-ambient-backdrop .landing-orb-emerald {
  background: radial-gradient(circle, rgba(35, 91, 120, 0.32) 0%, transparent 72%) !important;
  opacity: 0.7 !important;
}

html:not(.dark) #landingPage .landing-grid-pattern,
body.light-theme #landingPage .landing-grid-pattern,
body.light-mode #landingPage .landing-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%20fill%3D%22none%22%3E%20%3Cg%20stroke%3D%22%23ffffff%22%20stroke-width%3D%220.95%22%20opacity%3D%220.19%22%3E%20%3Crect%20x%3D%2257%22%20y%3D%2257%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C43.3%20136.7%2C90%2090%2C136.7%2043.3%2C90%22%2F%3E%20%3Crect%20x%3D%2266%22%20y%3D%2266%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C56.1%20123.9%2C90%2090%2C123.9%2056.1%2C90%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%2219%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%2253%22%20stroke-dasharray%3D%223%204%22%2F%3E%20%3Crect%20x%3D%22-33%22%20y%3D%22-33%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%220%2C-46.7%2046.7%2C0%200%2C46.7%20-46.7%2C0%22%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%2219%22%2F%3E%20%3Crect%20x%3D%22147%22%20y%3D%22-33%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%22180%2C-46.7%20226.7%2C0%20180%2C46.7%20133.3%2C0%22%2F%3E%20%3Crect%20x%3D%22156%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%22180%22%20cy%3D%220%22%20r%3D%2219%22%2F%3E%20%3Crect%20x%3D%22-33%22%20y%3D%22147%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%220%2C133.3%2046.7%2C180%200%2C226.7%20-46.7%2C180%22%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22156%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%220%22%20cy%3D%22180%22%20r%3D%2219%22%2F%3E%20%3Crect%20x%3D%22147%22%20y%3D%22147%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%22180%2C133.3%20226.7%2C180%20180%2C226.7%20133.3%2C180%22%2F%3E%20%3Crect%20x%3D%22156%22%20y%3D%22156%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%22180%22%20cy%3D%22180%22%20r%3D%2219%22%2F%3E%20%3Cpath%20d%3D%22M90%200%20L103%2021.5%20L90%2043.3%20L77%2021.5%20Z%22%2F%3E%20%3Cpath%20d%3D%22M90%20136.7%20L103%20158.5%20L90%20180%20L77%20158.5%20Z%22%2F%3E%20%3Cpath%20d%3D%22M0%2090%20L21.5%2077%20L43.3%2090%20L21.5%20103%20Z%22%2F%3E%20%3Cpath%20d%3D%22M136.7%2090%20L158.5%2077%20L180%2090%20L158.5%20103%20Z%22%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2026%2057%2057%20M156%2024%20Q128%2026%20123%2057%20M24%20156%20Q52%20154%2057%20123%20M156%20156%20Q128%20154%20123%20123%22%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q26%2052%2057%2057%20M156%2024%20Q154%2052%20123%2057%20M24%20156%20Q26%20128%2057%20123%20M156%20156%20Q154%20128%20123%20123%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%23DAC2AA%22%20fill%3D%22%23DAC2AA%22%20fill-opacity%3D%220.22%22%20stroke-width%3D%220.9%22%20opacity%3D%220.28%22%3E%20%3Cpath%20d%3D%22M93.5%2081.2%20A9.2%209.2%200%201%200%2098.8%2094.5%20A7.4%207.4%200%201%201%2093.5%2081.2%20Z%22%2F%3E%20%3Ccircle%20cx%3D%2296.5%22%20cy%3D%2287.8%22%20r%3D%221.3%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C17%2093%2C21.5%2090%2C26%2087%2C21.5%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C154%2093%2C158.5%2090%2C163%2087%2C158.5%22%2F%3E%20%3Cpolygon%20points%3D%2217%2C90%2021.5%2C87%2026%2C90%2021.5%2C93%22%2F%3E%20%3Cpolygon%20points%3D%22154%2C90%20158.5%2C87%20163%2C90%20158.5%2C93%22%2F%3E%20%3Ccircle%20cx%3D%2245%22%20cy%3D%2245%22%20r%3D%222.2%22%2F%3E%20%3Ccircle%20cx%3D%22135%22%20cy%3D%2245%22%20r%3D%222.2%22%2F%3E%20%3Ccircle%20cx%3D%2245%22%20cy%3D%22135%22%20r%3D%222.2%22%2F%3E%20%3Ccircle%20cx%3D%22135%22%20cy%3D%22135%22%20r%3D%222.2%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E") !important;
  background-size: 180px 180px !important;
  background-repeat: repeat !important;
  background-position: center top !important;
  mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, rgba(0, 0, 0, 0.96) 28%, rgba(0, 0, 0, 0.45) 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, rgba(0, 0, 0, 0.96) 28%, rgba(0, 0, 0, 0.45) 100%) !important;
}

html.dark #landingPage .landing-grid-pattern,
body.dark-theme #landingPage .landing-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%20fill%3D%22none%22%3E%20%3Cg%20stroke%3D%22%23B67943%22%20stroke-width%3D%220.95%22%20opacity%3D%220.15%22%3E%20%3Crect%20x%3D%2257%22%20y%3D%2257%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C43.3%20136.7%2C90%2090%2C136.7%2043.3%2C90%22%2F%3E%20%3Crect%20x%3D%2266%22%20y%3D%2266%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C56.1%20123.9%2C90%2090%2C123.9%2056.1%2C90%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%2219%22%2F%3E%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2290%22%20r%3D%2253%22%20stroke-dasharray%3D%223%204%22%2F%3E%20%3Crect%20x%3D%22-33%22%20y%3D%22-33%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%220%2C-46.7%2046.7%2C0%200%2C46.7%20-46.7%2C0%22%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%2219%22%2F%3E%20%3Crect%20x%3D%22147%22%20y%3D%22-33%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%22180%2C-46.7%20226.7%2C0%20180%2C46.7%20133.3%2C0%22%2F%3E%20%3Crect%20x%3D%22156%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%22180%22%20cy%3D%220%22%20r%3D%2219%22%2F%3E%20%3Crect%20x%3D%22-33%22%20y%3D%22147%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%220%2C133.3%2046.7%2C180%200%2C226.7%20-46.7%2C180%22%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22156%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%220%22%20cy%3D%22180%22%20r%3D%2219%22%2F%3E%20%3Crect%20x%3D%22147%22%20y%3D%22147%22%20width%3D%2266%22%20height%3D%2266%22%2F%3E%20%3Cpolygon%20points%3D%22180%2C133.3%20226.7%2C180%20180%2C226.7%20133.3%2C180%22%2F%3E%20%3Crect%20x%3D%22156%22%20y%3D%22156%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%20%3Ccircle%20cx%3D%22180%22%20cy%3D%22180%22%20r%3D%2219%22%2F%3E%20%3Cpath%20d%3D%22M90%200%20L103%2021.5%20L90%2043.3%20L77%2021.5%20Z%22%2F%3E%20%3Cpath%20d%3D%22M90%20136.7%20L103%20158.5%20L90%20180%20L77%20158.5%20Z%22%2F%3E%20%3Cpath%20d%3D%22M0%2090%20L21.5%2077%20L43.3%2090%20L21.5%20103%20Z%22%2F%3E%20%3Cpath%20d%3D%22M136.7%2090%20L158.5%2077%20L180%2090%20L158.5%20103%20Z%22%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2026%2057%2057%20M156%2024%20Q128%2026%20123%2057%20M24%20156%20Q52%20154%2057%20123%20M156%20156%20Q128%20154%20123%20123%22%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q26%2052%2057%2057%20M156%2024%20Q154%2052%20123%2057%20M24%20156%20Q26%20128%2057%20123%20M156%20156%20Q154%20128%20123%20123%22%2F%3E%20%3C%2Fg%3E%20%3Cg%20stroke%3D%22%235696B2%22%20fill%3D%22%235696B2%22%20fill-opacity%3D%220.22%22%20stroke-width%3D%220.9%22%20opacity%3D%220.18%22%3E%20%3Cpath%20d%3D%22M93.5%2081.2%20A9.2%209.2%200%201%200%2098.8%2094.5%20A7.4%207.4%200%201%201%2093.5%2081.2%20Z%22%2F%3E%20%3Ccircle%20cx%3D%2296.5%22%20cy%3D%2287.8%22%20r%3D%221.3%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C17%2093%2C21.5%2090%2C26%2087%2C21.5%22%2F%3E%20%3Cpolygon%20points%3D%2290%2C154%2093%2C158.5%2090%2C163%2087%2C158.5%22%2F%3E%20%3Cpolygon%20points%3D%2217%2C90%2021.5%2C87%2026%2C90%2021.5%2C93%22%2F%3E%20%3Cpolygon%20points%3D%22154%2C90%20158.5%2C87%20163%2C90%20158.5%2C93%22%2F%3E%20%3Ccircle%20cx%3D%2245%22%20cy%3D%2245%22%20r%3D%222.2%22%2F%3E%20%3Ccircle%20cx%3D%22135%22%20cy%3D%2245%22%20r%3D%222.2%22%2F%3E%20%3Ccircle%20cx%3D%2245%22%20cy%3D%22135%22%20r%3D%222.2%22%2F%3E%20%3Ccircle%20cx%3D%22135%22%20cy%3D%22135%22%20r%3D%222.2%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E") !important;
  background-size: 180px 180px !important;
  background-repeat: repeat !important;
  background-position: center top !important;
  mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, rgba(0, 0, 0, 0.95) 28%, rgba(0, 0, 0, 0.40) 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, rgba(0, 0, 0, 0.95) 28%, rgba(0, 0, 0, 0.40) 100%) !important;
}

/* ICON-ONLY BACK-TO-MENU BUTTON INSIDE ALL MENU MODALS */
html:not(.dark) .menu-return-icon-btn,
body.light-theme .menu-return-icon-btn {
  background: linear-gradient(145deg, #FAF6F0 0%, #EAF2F6 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.36) !important;
  color: #235B78 !important;
}

html:not(.dark) .menu-return-icon-btn:hover,
body.light-theme .menu-return-icon-btn:hover {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
  color: #ffffff !important;
  border-color: rgba(35, 91, 120, 0.6) !important;
}

html.dark .menu-return-icon-btn,
body.dark-theme .menu-return-icon-btn {
  background: #1E242B !important;
  border: 1px solid rgba(182, 121, 67, 0.38) !important;
  color: #f4d08a !important;
}

html.dark .menu-return-icon-btn:hover,
body.dark-theme .menu-return-icon-btn:hover {
  background: rgba(182, 121, 67, 0.22) !important;
  color: #ffffff !important;
}

/* MESSENGER-STYLE COMPOSER SPECIFICITY LOCK (BEATS LEGACY style.css & app-dark-theme.css) */
html:not(.dark) #chatInputBar#chatInputBar form,
body.light-theme #chatInputBar#chatInputBar form,
html.dark #chatInputBar#chatInputBar form,
body.dark-theme #chatInputBar#chatInputBar form,
html:not(.dark) #customGroupInputBar#customGroupInputBar form,
body.light-theme #customGroupInputBar#customGroupInputBar form,
html.dark #customGroupInputBar#customGroupInputBar form,
#customGroupChatForm#customGroupChatForm {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html:not(.dark) #chatInputBar#chatInputBar #messageInput,
body.light-theme #chatInputBar#chatInputBar #messageInput,
html.dark #chatInputBar#chatInputBar #messageInput,
body.dark-theme #chatInputBar#chatInputBar #messageInput,
html:not(.dark) #customGroupChatForm#customGroupChatForm #customGroupTextInput,
body.light-theme #customGroupChatForm#customGroupChatForm #customGroupTextInput,
html.dark #customGroupChatForm#customGroupChatForm #customGroupTextInput {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

html:not(.dark) #chatInputBar#chatInputBar #publicChatToolsBtn,
body.light-theme #chatInputBar#chatInputBar #publicChatToolsBtn,
html:not(.dark) #customGroupChatForm#customGroupChatForm #customGroupToolsBtn,
body.light-theme #customGroupChatForm#customGroupChatForm #customGroupToolsBtn {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 9999px !important;
  background: rgba(35, 91, 120, 0.14) !important;
  border: 1px solid rgba(35, 91, 120, 0.24) !important;
  color: #235B78 !important;
  box-shadow: none !important;
}

html.dark #chatInputBar#chatInputBar #publicChatToolsBtn,
body.dark-theme #chatInputBar#chatInputBar #publicChatToolsBtn,
html.dark #customGroupChatForm#customGroupChatForm #customGroupToolsBtn,
body.dark-theme #customGroupChatForm#customGroupChatForm #customGroupToolsBtn {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
}

html:not(.dark) #chatInputBar#chatInputBar #sendBtn,
body.light-theme #chatInputBar#chatInputBar #sendBtn {
  background: linear-gradient(135deg, #5696B2 0%, #347493 55%, #235B78 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

html.dark #chatInputBar#chatInputBar #sendBtn,
body.dark-theme #chatInputBar#chatInputBar #sendBtn {
  background: linear-gradient(135deg, #5696B2 0%, #235B78 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

html:not(.dark) #customGroupChatForm#customGroupChatForm #customGroupSendBtn,
body.light-theme #customGroupChatForm#customGroupChatForm #customGroupSendBtn,
html.dark #customGroupChatForm#customGroupChatForm #customGroupSendBtn,
body.dark-theme #customGroupChatForm#customGroupChatForm #customGroupSendBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 4px 12px -2px rgba(47, 102, 82, 0.35) !important;
}

/* MESSENGER-STYLE 4-CIRCLE TOOLS SHEET POSITION & BUTTONS (BEATS LEGACY style.css & app-heritage.css) */
#publicChatToolsMenu#publicChatToolsMenu.hidden,
#customGroupToolsMenu#customGroupToolsMenu.hidden {
  display: none !important;
}

#publicChatToolsMenu#publicChatToolsMenu:not(.hidden),
#customGroupToolsMenu#customGroupToolsMenu:not(.hidden) {
  display: block !important;
  position: absolute !important;
  bottom: calc(100% + 0.75rem) !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.9rem 1rem !important;
  border-radius: 1.5rem !important;
  z-index: 60 !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tools-grid,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tools-grid {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-around !important;
  gap: 0.5rem 1rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

html:not(.dark) #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn,
body.light-theme #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn,
html.dark #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn,
html:not(.dark) #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn,
body.light-theme #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn,
html.dark #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.42rem !important;
  width: auto !important;
  min-width: 68px !important;
  height: auto !important;
  padding: 0.35rem 0.45rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 1rem !important;
}

html:not(.dark) #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn:hover,
body.light-theme #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn:hover,
html:not(.dark) #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn:hover,
body.light-theme #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn:hover {
  background: rgba(35, 91, 120, 0.10) !important;
}

html.dark #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn:hover,
html.dark #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn > div.messenger-tool-circle,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn > div.messenger-tool-circle {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn > div.messenger-tool-circle i,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn > div.messenger-tool-circle i {
  color: #ffffff !important;
  font-size: 1.12rem !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle--camera,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle--camera {
  background: linear-gradient(135deg, #347493 0%, #235B78 100%) !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle--mic,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle--mic {
  background: linear-gradient(135deg, #C4844A 0%, #B67943 100%) !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle--poll,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle--poll {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle--alarm,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle--alarm {
  background: linear-gradient(135deg, #5696B2 0%, #B67943 100%) !important;
}

html:not(.dark) #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn span,
body.light-theme #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn span,
html:not(.dark) #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn span,
body.light-theme #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn span {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
  margin: 0 !important;
}

html.dark #publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn span,
html.dark #customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn span {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #f3f4f6 !important;
  margin: 0 !important;
}

#publicChatToolsMenu#publicChatToolsMenu .messenger-tool-circle-btn.hidden,
#customGroupToolsMenu#customGroupToolsMenu .messenger-tool-circle-btn.hidden {
  display: none !important;
}

/* ==========================================================================
   LOBBY FROSTED BLUR VS. CRISP CLEAR IN-ROOM SVG PATTERN
   - Lobby (#classroomsLobbyView): softly frosted / gently blurred backdrop over
     #mainApp's SVG pattern so room cards pop clearly.
   - Inside any room (#classroomChatStage, #messagesContainer, #chatMessagesArea,
     #customGroupMessagesContainer): zero blur — crisp, vivid SVG pattern.
   ========================================================================== */
html:not(.dark) #mainApp #classroomsLobbyView#classroomsLobbyView,
html:not(.dark) #classroomsLobbyView#classroomsLobbyView,
body.light-theme #mainApp #classroomsLobbyView#classroomsLobbyView,
body.light-mode #mainApp #classroomsLobbyView#classroomsLobbyView {
  background-color: rgba(232, 241, 245, 0.54) !important;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 255, 255, 0.46) 0%, transparent 70%),
    radial-gradient(ellipse 95% 55% at 50% 100%, rgba(86, 150, 178, 0.24) 0%, transparent 65%),
    linear-gradient(170deg, rgba(236, 244, 248, 0.52) 0%, rgba(222, 236, 243, 0.46) 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
  backdrop-filter: blur(5px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(5px) saturate(110%) !important;
}

html.dark #mainApp #classroomsLobbyView#classroomsLobbyView,
html.dark #classroomsLobbyView#classroomsLobbyView,
body.dark-theme #mainApp #classroomsLobbyView#classroomsLobbyView,
body.dark-mode #mainApp #classroomsLobbyView#classroomsLobbyView {
  background-color: rgba(18, 22, 27, 0.58) !important;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(182, 121, 67, 0.12) 0%, transparent 70%),
    linear-gradient(170deg, rgba(20, 24, 30, 0.56) 0%, rgba(14, 17, 22, 0.52) 100%) !important;
  background-size: 100% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
  backdrop-filter: blur(5px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(5px) saturate(108%) !important;
}

html:not(.dark) #classroomChatStage#classroomChatStage,
html:not(.dark) #messagesContainer#messagesContainer,
html:not(.dark) #chatMessagesArea#chatMessagesArea {
  background-color: #EAF2F6 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23235B78%22%20stroke-width%3D%220.95%22%20opacity%3D%220.14%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23B67943%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23B67943%22%20fill-opacity%3D%220.12%22%20opacity%3D%220.165%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(35, 91, 120, 0.14) 0%, transparent 60%) !important;
  background-size: 160px 160px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.dark #customGroupMessagesContainer#customGroupMessagesContainer,
body.dark-theme #customGroupMessagesContainer#customGroupMessagesContainer {
  background-color: #151A20 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23c88a4b%22%20stroke-width%3D%220.95%22%20opacity%3D%220.08%22%3E%20%3Crect%20x%3D%2256%22%20y%3D%2256%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C46.06%20113.94%2C80%2080%2C113.94%2046.06%2C80%22%20%2F%3E%20%3Crect%20x%3D%2261.5%22%20y%3D%2261.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C53.84%20106.16%2C80%2080%2C106.16%2053.84%2C80%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-33.94%2033.94%2C0%200%2C33.94%20-33.94%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C-26.16%2026.16%2C0%200%2C26.16%20-26.16%2C0%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22-24%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-33.94%20193.94%2C0%20160%2C33.94%20126.06%2C0%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22-18.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C-26.16%20186.16%2C0%20160%2C26.16%20133.84%2C0%22%20%2F%3E%20%3Crect%20x%3D%22-24%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C126.06%2033.94%2C160%200%2C193.94%20-33.94%2C160%22%20%2F%3E%20%3Crect%20x%3D%22-18.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%220%2C133.84%2026.16%2C160%200%2C186.16%20-26.16%2C160%22%20%2F%3E%20%3Crect%20x%3D%22136%22%20y%3D%22136%22%20width%3D%2248%22%20height%3D%2248%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C126.06%20193.94%2C160%20160%2C193.94%20126.06%2C160%22%20%2F%3E%20%3Crect%20x%3D%22141.5%22%20y%3D%22141.5%22%20width%3D%2237%22%20height%3D%2237%22%20%2F%3E%20%3Cpolygon%20points%3D%22160%2C133.84%20186.16%2C160%20160%2C186.16%20133.84%2C160%22%20%2F%3E%20%3Cpath%20d%3D%22M80%200%20L98%2022%20L80%2044%20L62%2022%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%20116%20L98%20138%20L80%20160%20L62%20138%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%2080%20L22%2062%20L44%2080%20L22%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M116%2080%20L138%2062%20L160%2080%20L138%2098%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q52%2024%2062%2040%20M136%2024%20Q108%2024%2098%2040%20M24%20136%20Q52%20136%2062%20120%20M136%20136%20Q108%20136%2098%20120%22%20%2F%3E%20%3Cpath%20d%3D%22M24%2024%20Q24%2052%2040%2062%20M136%2024%20Q136%2052%20120%2062%20M24%20136%20Q24%20108%2040%2098%20M136%20136%20Q136%20108%20120%2098%22%20%2F%3E%20%3C%2Fg%3E%3Cg%20stroke%3D%22%23b69570%22%20stroke-width%3D%220.95%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20fill%3D%22%23b69570%22%20fill-opacity%3D%220.10%22%20opacity%3D%220.095%22%3E%20%3Cpath%20d%3D%22M80%2074.8%20C76.2%2071.8%2C%2071.5%2072%2C%2068.2%2074%20L68.2%2084.4%20C71.8%2083%2C%2076.4%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M80%2074.8%20C83.8%2071.8%2C%2088.5%2072%2C%2091.8%2074%20L91.8%2084.4%20C88.2%2083%2C%2083.6%2083.6%2C%2080%2086.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M66.6%2075.6%20L66.6%2086%20C71.2%2084.8%2C%2075.8%2085.5%2C%2080%2088.2%20C84.2%2085.5%2C%2088.8%2084.8%2C%2093.4%2086%20L93.4%2075.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M70.6%2076.8%20Q74.2%2075.5%2077.4%2077.4%20M70.6%2079.7%20Q74.2%2078.4%2077.4%2080.3%20M70.6%2082.4%20Q74.2%2081.2%2077.4%2083%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M89.4%2076.8%20Q85.8%2075.5%2082.6%2077.4%20M89.4%2079.7%20Q85.8%2078.4%2082.6%2080.3%20M89.4%2082.4%20Q85.8%2081.2%2082.6%2083%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C-3.8%20-8.2%2C%20-8.5%20-8%2C%20-11.8%20-6%20L-11.8%204.4%20C-8.2%203%2C%20-3.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20-5.2%20C3.8%20-8.2%2C%208.5%20-8%2C%2011.8%20-6%20L11.8%204.4%20C8.2%203%2C%203.6%203.6%2C%200%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20-4.4%20L-13.4%206%20C-8.8%204.8%2C%20-4.2%205.5%2C%200%208.2%20C4.2%205.5%2C%208.8%204.8%2C%2013.4%206%20L13.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20-3.2%20Q-5.8%20-4.5%20-2.6%20-2.6%20M-9.4%20-0.3%20Q-5.8%20-1.6%20-2.6%200.3%20M-9.4%202.4%20Q-5.8%201.2%20-2.6%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20-3.2%20Q5.8%20-4.5%202.6%20-2.6%20M9.4%20-0.3%20Q5.8%20-1.6%202.6%200.3%20M9.4%202.4%20Q5.8%201.2%202.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C156.2%20-8.2%2C%20151.5%20-8%2C%20148.2%20-6%20L148.2%204.4%20C151.8%203%2C%20156.4%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20-5.2%20C163.8%20-8.2%2C%20168.5%20-8%2C%20171.8%20-6%20L171.8%204.4%20C168.2%203%2C%20163.6%203.6%2C%20160%206.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20-4.4%20L146.6%206%20C151.2%204.8%2C%20155.8%205.5%2C%20160%208.2%20C164.2%205.5%2C%20168.8%204.8%2C%20173.4%206%20L173.4%20-4.4%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20-3.2%20Q154.2%20-4.5%20157.4%20-2.6%20M150.6%20-0.3%20Q154.2%20-1.6%20157.4%200.3%20M150.6%202.4%20Q154.2%201.2%20157.4%203%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20-3.2%20Q165.8%20-4.5%20162.6%20-2.6%20M169.4%20-0.3%20Q165.8%20-1.6%20162.6%200.3%20M169.4%202.4%20Q165.8%201.2%20162.6%203%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C-3.8%20151.8%2C%20-8.5%20152%2C%20-11.8%20154%20L-11.8%20164.4%20C-8.2%20163%2C%20-3.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M0%20154.8%20C3.8%20151.8%2C%208.5%20152%2C%2011.8%20154%20L11.8%20164.4%20C8.2%20163%2C%203.6%20163.6%2C%200%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-13.4%20155.6%20L-13.4%20166%20C-8.8%20164.8%2C%20-4.2%20165.5%2C%200%20168.2%20C4.2%20165.5%2C%208.8%20164.8%2C%2013.4%20166%20L13.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M-9.4%20156.8%20Q-5.8%20155.5%20-2.6%20157.4%20M-9.4%20159.7%20Q-5.8%20158.4%20-2.6%20160.3%20M-9.4%20162.4%20Q-5.8%20161.2%20-2.6%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M9.4%20156.8%20Q5.8%20155.5%202.6%20157.4%20M9.4%20159.7%20Q5.8%20158.4%202.6%20160.3%20M9.4%20162.4%20Q5.8%20161.2%202.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C156.2%20151.8%2C%20151.5%20152%2C%20148.2%20154%20L148.2%20164.4%20C151.8%20163%2C%20156.4%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M160%20154.8%20C163.8%20151.8%2C%20168.5%20152%2C%20171.8%20154%20L171.8%20164.4%20C168.2%20163%2C%20163.6%20163.6%2C%20160%20166.4%20Z%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M146.6%20155.6%20L146.6%20166%20C151.2%20164.8%2C%20155.8%20165.5%2C%20160%20168.2%20C164.2%20165.5%2C%20168.8%20164.8%2C%20173.4%20166%20L173.4%20155.6%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M150.6%20156.8%20Q154.2%20155.5%20157.4%20157.4%20M150.6%20159.7%20Q154.2%20158.4%20157.4%20160.3%20M150.6%20162.4%20Q154.2%20161.2%20157.4%20163%22%20%2F%3E%20%3Cpath%20fill%3D%22none%22%20d%3D%22M169.4%20156.8%20Q165.8%20155.5%20162.6%20157.4%20M169.4%20159.7%20Q165.8%20158.4%20162.6%20160.3%20M169.4%20162.4%20Q165.8%20161.2%20162.6%20163%22%20%2F%3E%20%3Cpath%20d%3D%22M38%2038%20C46%2038%2050%2042%2050%2050%20C42%2050%2038%2046%2038%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%2038%20C114%2038%20110%2042%20110%2050%20C118%2050%20122%2046%20122%2038%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M38%20122%20C46%20122%2050%20118%2050%20110%20C42%20110%2038%20114%2038%20122%20Z%22%20%2F%3E%20%3Cpath%20d%3D%22M122%20122%20C114%20122%20110%20118%20110%20110%20C118%20110%20122%20114%20122%20122%20Z%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C14%2086%2C22%2080%2C30%2074%2C22%22%20%2F%3E%20%3Cpolygon%20points%3D%2280%2C130%2086%2C138%2080%2C146%2074%2C138%22%20%2F%3E%20%3Cpolygon%20points%3D%2214%2C80%2022%2C74%2030%2C80%2022%2C86%22%20%2F%3E%20%3Cpolygon%20points%3D%22130%2C80%20138%2C74%20146%2C80%20138%2C86%22%20%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(182, 121, 67, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(10, 12, 16, 0.7) 0%, transparent 60%) !important;
  background-size: 160px 160px, 100% 100%, 100% 100% !important;
  background-repeat: repeat, no-repeat, no-repeat !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   HEADER SITE LOGO: LARGER + FROSTED GLASS BEZEL & GLOSSY REFLECTION
   ========================================================================== */
#mainApp > header .header-logo-glass-frame {
  width: 2.75rem !important;
  height: 2.75rem !important;
  padding: 3px !important;
  border-radius: 1rem !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 48%, rgba(30, 36, 43, 0.24) 100%) !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.56) !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.68),
    inset 0 -1px 1px rgba(30, 36, 43, 0.22),
    0 6px 16px -3px rgba(30, 36, 43, 0.34) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

@media (min-width: 640px) {
  #mainApp > header .header-logo-glass-frame {
    width: 3rem !important;
    height: 3rem !important;
    padding: 0 !important;
    border-radius: 0.95rem !important;
  }
}

#mainApp > header .header-logo-glass-frame::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 56%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

html:not(.dark) #mainApp#mainApp#mainApp#mainApp > header .header-logo-glass-frame img[alt*="خەوچن"],
body.light-theme #mainApp#mainApp#mainApp#mainApp > header .header-logo-glass-frame img[alt*="خەوچن"],
html.dark #mainApp#mainApp#mainApp#mainApp > header .header-logo-glass-frame img[alt*="خەوچن"] {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0.82rem !important;
  border: none !important;
  box-shadow: none !important;
  background: #FFFFFF !important;
  opacity: 1 !important;
}

html.dark #mainApp > header .header-logo-glass-frame {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(182, 121, 67, 0.14) 50%, rgba(16, 26, 22, 0.45) 100%) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    0 6px 16px -3px rgba(0, 0, 0, 0.48) !important;
}

/* ==========================================================================
   MOBILE & SITEWIDE READABILITY, VIBRANCY & HIGH-CONTRAST TYPOGRAPHY UPGRADE
   Crisp Vazirmatn UI font, comfortable mobile sizes, and rich contrast colors
   ========================================================================== */
html,
body,
button,
input,
textarea,
select {
  font-family: 'Vazirmatn', 'Noto Naskh Arabic', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-latin,
.font-mono {
  font-family: 'Plus Jakarta Sans', 'Vazirmatn', sans-serif !important;
}

#heroTitle,
.landing-brand-word,
.logo-popup-title {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
}

.quran-ayah-text,
.poem-verse-text {
  font-family: 'Amiri', 'Vazirmatn', serif !important;
}

/* --- 1. LANDING PAGE: VIVID, CLEAR & EASY ON THE EYES --- */
html:not(.dark) #landingPage#landingPage #landingHeader .landing-brand-word,
body.light-theme #landingPage#landingPage #landingHeader .landing-brand-word {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.24rem, 2.8vw, 1.56rem) !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  text-shadow: 0 1px 0 rgba(255, 252, 244, 0.92), 0 2px 6px rgba(11, 53, 54, 0.14) !important;
}

html.dark #landingPage#landingPage #landingHeader .landing-brand-word,
body.dark-theme #landingPage#landingPage #landingHeader .landing-brand-word {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.24rem, 2.8vw, 1.56rem) !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  color: #fef3c7 !important;
  -webkit-text-fill-color: #fef3c7 !important;
}

html:not(.dark) #landingPage#landingPage#landingPage#landingPage #heroTitle,
body.light-theme #landingPage#landingPage#landingPage#landingPage #heroTitle {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(2.65rem, 6.2vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.44 !important;
  padding-top: 0.08rem;
  padding-bottom: 0.12rem;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  text-shadow: 0 1px 0 rgba(239, 224, 206, 0.78), 0 0 20px rgba(218, 194, 170, 0.42), 0 5px 14px rgba(15, 23, 30, 0.22) !important;
}

html.dark #landingPage#landingPage#landingPage#landingPage #heroTitle,
body.dark-theme #landingPage#landingPage#landingPage#landingPage #heroTitle {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(2.65rem, 6.2vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.44 !important;
  color: #DAC2AA !important;
  -webkit-text-fill-color: #DAC2AA !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55) !important;
}

html:not(.dark) #landingPage#landingPage #heroSubtitle,
body.light-theme #landingPage#landingPage #heroSubtitle {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.24rem, 2.35vw, 1.54rem) !important;
  font-weight: 700 !important;
  line-height: 1.82 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  text-shadow: 0 1px 0 rgba(242, 226, 208, 0.72), 0 0 14px rgba(218, 194, 170, 0.34) !important;
}

html.dark #landingPage#landingPage #heroSubtitle,
body.dark-theme #landingPage#landingPage #heroSubtitle {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.24rem, 2.35vw, 1.54rem) !important;
  font-weight: 700 !important;
  line-height: 1.82 !important;
  color: #74B4CF !important;
  -webkit-text-fill-color: #74B4CF !important;
}

html:not(.dark) #landingPage .quran-hero-search-input,
body.light-theme #landingPage .quran-hero-search-input {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1E242B !important;
}

html:not(.dark) #landingPage .quran-hero-search-input::placeholder,
body.light-theme #landingPage .quran-hero-search-input::placeholder {
  color: #4A5A68 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

html:not(.dark) #landingHeader .landing-nav-login-btn,
body.light-theme #landingHeader .landing-nav-login-btn,
html:not(.dark) #landingPage .quran-hero-pill-primary,
body.light-theme #landingPage .quran-hero-pill-primary,
html:not(.dark) #landingPage #btnAdminAddAnn,
body.light-theme #landingPage #btnAdminAddAnn {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
}

html:not(.dark) #landingHeader .landing-nav-login-btn span,
html:not(.dark) #landingHeader .landing-nav-login-btn i,
body.light-theme #landingHeader .landing-nav-login-btn span,
body.light-theme #landingHeader .landing-nav-login-btn i,
html:not(.dark) #landingPage .quran-hero-pill-primary span,
html:not(.dark) #landingPage .quran-hero-pill-primary i,
body.light-theme #landingPage .quran-hero-pill-primary span,
body.light-theme #landingPage .quran-hero-pill-primary i,
html:not(.dark) #landingPage #btnAdminAddAnn span,
html:not(.dark) #landingPage #btnAdminAddAnn i,
body.light-theme #landingPage #btnAdminAddAnn span,
body.light-theme #landingPage #btnAdminAddAnn i {
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  font-size: 1.08rem !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.52)) !important;
}

html:not(.dark) #landingHeader .landing-nav-login-btn,
body.light-theme #landingHeader .landing-nav-login-btn {
  height: auto !important;
  min-height: 2.65rem !important;
  padding: 0.48rem 1.15rem !important;
}

html:not(.dark) #landingPage .quran-hero-pill-primary,
body.light-theme #landingPage .quran-hero-pill-primary {
  padding: 0.72rem 1.4rem !important;
}

html:not(.dark) #landingPage #btnAdminAddAnn,
body.light-theme #landingPage #btnAdminAddAnn {
  min-height: 2.55rem !important;
  padding: 0.48rem 1.1rem !important;
  border-radius: 9999px !important;
}

html:not(.dark) #landingPage .quran-hero-pill-outline,
body.light-theme #landingPage .quran-hero-pill-outline {
  font-size: 1.04rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  padding: 0.72rem 1.35rem !important;
}

html:not(.dark) #landingPage .quran-hero-pill-outline,
body.light-theme #landingPage .quran-hero-pill-outline {
  color: #1E242B !important;
}

html:not(.dark) #landingPage #postsHeaderTitle,
html:not(.dark) #landingPage #postsHeaderTitle span,
body.light-theme #landingPage #postsHeaderTitle,
body.light-theme #landingPage #postsHeaderTitle span {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.5rem, 2.8vw, 1.92rem) !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  text-shadow: 0 1px 0 rgba(242, 226, 208, 0.76), 0 0 16px rgba(218, 194, 170, 0.36) !important;
}

html.dark #landingPage #postsHeaderTitle,
html.dark #landingPage #postsHeaderTitle span,
body.dark-theme #landingPage #postsHeaderTitle,
body.dark-theme #landingPage #postsHeaderTitle span {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.5rem, 2.8vw, 1.92rem) !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  color: #DAC2AA !important;
  -webkit-text-fill-color: #DAC2AA !important;
}

html:not(.dark) #landingPage #postsHeaderSubtitle,
body.light-theme #landingPage #postsHeaderSubtitle {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #EFE3D4 !important;
}

html:not(.dark) #landingPage .landing-counter-pill,
body.light-theme #landingPage .landing-counter-pill {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

/* Announcement Card — Deep Ink, Larger Type, Warm Accent */
html:not(.dark) #landingPage #announcementActiveCard,
body.light-theme #landingPage #announcementActiveCard {
  border-right: 5px solid #B67943 !important;
}

html:not(.dark) #landingPage #annActiveTitle,
body.light-theme #landingPage #annActiveTitle {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  color: #1E242B !important;
}

html:not(.dark) #landingPage #annActiveContent,
body.light-theme #landingPage #annActiveContent {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1rem, 1.6vw, 1.12rem) !important;
  font-weight: 500 !important;
  line-height: 1.88 !important;
  color: #28333D !important;
}

html.dark #landingPage #annActiveTitle,
body.dark-theme #landingPage #annActiveTitle {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

html.dark #landingPage #annActiveContent,
body.dark-theme #landingPage #annActiveContent {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1rem, 1.6vw, 1.12rem) !important;
  font-weight: 500 !important;
  line-height: 1.88 !important;
  color: #e2e8f0 !important;
}

html:not(.dark) #landingPage .landing-ann-tag,
body.light-theme #landingPage .landing-ann-tag {
  background: #F4E6D6 !important;
  color: #8A4D1D !important;
  border: 1px solid rgba(182, 121, 67, 0.45) !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
}

html:not(.dark) #landingPage #annActiveDate,
html:not(.dark) #landingPage .landing-ann-author,
html:not(.dark) #landingPage #btnEditCurrentAnn,
html:not(.dark) #landingPage #btnDeleteCurrentAnn,
body.light-theme #landingPage #annActiveDate,
body.light-theme #landingPage .landing-ann-author {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #235B78 !important;
}

html:not(.dark) #landingPage #emptyPostSlot #postSlotTitle,
body.light-theme #landingPage #emptyPostSlot #postSlotTitle {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

html:not(.dark) #landingPage #emptyPostSlot #postSlotDesc,
body.light-theme #landingPage #emptyPostSlot #postSlotDesc {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #384652 !important;
  opacity: 1 !important;
}

html:not(.dark) #landingPage#landingPage .landing-footer,
html:not(.dark) #landingPage#landingPage .landing-footer *,
body.light-theme #landingPage#landingPage .landing-footer,
body.light-theme #landingPage#landingPage .landing-footer * {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #DAC2AA !important;
  opacity: 1 !important;
}

html:not(.dark) #landingPage#landingPage .landing-footer .landing-footer-brand,
body.light-theme #landingPage#landingPage .landing-footer .landing-footer-brand {
  color: #FAF6F0 !important;
}

/* --- 2. INSIDE APP, CHAT & MODALS: COMFORTABLE MOBILE READING --- */
html:not(.dark) #mainApp > header h2,
body.light-theme #mainApp > header h2 {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.12rem, 2.3vw, 1.32rem) !important;
  font-weight: 700 !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

html:not(.dark) #mainApp > header #onlineCountText,
body.light-theme #mainApp > header #onlineCountText {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #DAC2AA !important;
}

/* Chat Messages & Dream Chat Readability */
#messagesContainer .chat-msg-item p,
#customGroupMessagesContainer .chat-msg-item p,
#privateChatMessagesContainer p,
#dreamMessagesContainer p,
#dreamAdminMessagesContainer p,
.msg-text-student,
.msg-text-teacher,
.msg-text-super-admin {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(0.96rem, 1.5vw, 1.05rem) !important;
  line-height: 1.78 !important;
  font-weight: 500 !important;
}

html:not(.dark) #messagesContainer .msg-text-student,
html:not(.dark) #customGroupMessagesContainer .msg-text-student,
html:not(.dark) #dreamMessagesContainer p {
  color: #0f172a !important;
}

html.dark #messagesContainer .msg-text-student,
html.dark #customGroupMessagesContainer .msg-text-student,
html.dark #dreamMessagesContainer p {
  color: #f8fafc !important;
}

/* Chat Inputs — 16px prevents mobile zoom & is crisp to read */
#messageInput,
#dreamTextInput,
#customGroupTextInput,
#privateChatInput,
#classroomsSearchInput,
#membersSearchInput,
#directDreamerName,
#dreamerNameInput,
#dreamerAgeInput,
#dreamerCityInput,
#dreamerJobInput {
  font-size: 1rem !important;
  font-weight: 500 !important;
}

html:not(.dark) #messageInput::placeholder,
html:not(.dark) #dreamTextInput::placeholder,
html:not(.dark) #customGroupTextInput::placeholder,
html:not(.dark) #classroomsSearchInput::placeholder,
html:not(.dark) #membersSearchInput::placeholder {
  color: #4A5A68 !important;
  opacity: 0.9 !important;
}

/* Classroom Lobby & Cards */
html:not(.dark) #classroomsLobbyView > div:first-child h2,
body.light-theme #classroomsLobbyView > div:first-child h2 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1.25rem, 2.4vw, 1.62rem) !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

html:not(.dark) #classroomsLobbyView > div:first-child p,
body.light-theme #classroomsLobbyView > div:first-child p {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #1c3d30 !important;
}

html:not(.dark) .classroom-lobby-card h3,
body.light-theme .classroom-lobby-card h3 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 1.06rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
}

html:not(.dark) .classroom-lobby-card p,
html:not(.dark) .classroom-lobby-card .text-slate-400,
body.light-theme .classroom-lobby-card p {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #214536 !important;
}

/* Drawer & Modals Contrast + Size */
html:not(.dark) #mainMenuDrawerPanel .drawer-tool-title,
body.light-theme #mainMenuDrawerPanel .drawer-tool-title {
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  color: #1E242B !important;
}

html:not(.dark) #mainMenuDrawerPanel #drawerUserName,
body.light-theme #mainMenuDrawerPanel #drawerUserName {
  font-size: 1.06rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
}

html:not(.dark) div[id$="Modal"] h3,
html:not(.dark) div[id$="Modal"] h4,
body.light-theme div[id$="Modal"] h3,
body.light-theme div[id$="Modal"] h4 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

html:not(.dark) div[id$="Modal"] p,
html:not(.dark) div[id$="Modal"] label,
body.light-theme div[id$="Modal"] p,
body.light-theme div[id$="Modal"] label {
  font-size: 0.94rem !important;
  line-height: 1.72 !important;
  font-weight: 600 !important;
  color: #28333D !important;
}

html:not(.dark) #dreamMessagesContainer .text-center,
body.light-theme #dreamMessagesContainer .text-center {
  font-size: 0.94rem !important;
  line-height: 1.85 !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

/* Dreams Dedicated Feed Page (/dreams) */
#dreamPostsFeed .fb-post-title {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1.16rem, 2vw, 1.42rem) !important;
  font-weight: 800 !important;
}

#dreamPostsFeed .fb-post-text,
#dreamPostsFeed .fb-post-dream-box,
#dreamPostsFeed .fb-post-interpretation-box {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem) !important;
  line-height: 1.88 !important;
  font-weight: 500 !important;
}

@media (max-width: 640px) {
  #landingHeader .landing-nav-login-btn,
  #landingPage #btnAdminAddAnn {
    padding: 0.45rem 0.95rem !important;
    font-size: 1.02rem !important;
  }
  #landingHeader .landing-nav-login-btn span,
  #landingHeader .landing-nav-login-btn i,
  #landingPage #btnAdminAddAnn span,
  #landingPage #btnAdminAddAnn i {
    font-size: 1.02rem !important;
  }
  #landingPage .quran-hero-pill-primary,
  #landingPage .quran-hero-pill-outline {
    padding: 0.68rem 1.2rem !important;
    font-size: 1.02rem !important;
  }
  #landingPage .quran-hero-pill-primary span,
  #landingPage .quran-hero-pill-primary i {
    font-size: 1.02rem !important;
  }
  #landingPage #announcementActiveCard {
    padding: 1.25rem 1.15rem !important;
  }
  #landingPage #emptyPostSlot {
    padding: 1rem !important;
  }
}


/* ==========================================================================
   NATIVE MOBILE APP EXTERIOR SHELL (#landingPage.app-exterior-shell)
   Best-of-Both Hybrid: FastPay Overlapping Curved Canopy + 2x2 Quick Tiles +
   Center Raised Bottom FAB & Islamic Hadith App Cleanliness in Kingfisher Palette
   ========================================================================== */
html:not(.dark) {
  background: #4A7D66 !important;
  background-color: #4A7D66 !important;
}

html.dark {
  background: #162921 !important;
  background-color: #162921 !important;
}

html:not(.dark) body.in-landing,
body.light-theme.in-landing,
body.light-mode.in-landing {
  background: #DCE2E8 !important;
  background-color: #DCE2E8 !important;
  color: #1E242B !important;
  -webkit-tap-highlight-color: transparent;
}

html:not(.dark) #landingPage#landingPage#landingPage#landingPage.app-exterior-shell,
body.light-theme #landingPage#landingPage#landingPage#landingPage.app-exterior-shell,
body.light-mode #landingPage#landingPage#landingPage#landingPage.app-exterior-shell {
  background-color: #F4EFE6 !important;
  background-image:
    radial-gradient(ellipse 68% 72% at 50% 45%, rgba(244, 239, 230, 0.94) 0%, rgba(244, 239, 230, 0.70) 56%, rgba(244, 239, 230, 0.08) 100%),
    url("/images/exterior-gold-pattern.svg?v=3.0"),
    linear-gradient(180deg, #F7F3EB 0%, #EDE5D7 100%) !important;
  background-size: 100% 100%, min(414px, 100%) auto, 100% 100% !important;
  background-position: 0 0, left top, 0 0 !important;
  background-repeat: no-repeat, repeat-y, no-repeat !important;
  color: #1E242B !important;
  -webkit-tap-highlight-color: transparent;
}

html.dark body.in-landing,
body.dark-theme.in-landing,
html.dark #landingPage#landingPage#landingPage#landingPage.app-exterior-shell,
body.dark-theme #landingPage#landingPage#landingPage#landingPage.app-exterior-shell {
  background: linear-gradient(180deg, #12171D 0%, #161C24 100%) !important;
  background-color: #12171D !important;
  color: #FAF6F0 !important;
  -webkit-tap-highlight-color: transparent;
}

/* Hide legacy website ambient orbs & website footer inside Native App Shell */
#landingPage.app-exterior-shell .landing-ambient-backdrop,
#landingPage.app-exterior-shell footer.landing-footer {
  display: none !important;
}

/* 1. CURVED VELVETY SAGE-EMERALD TOP CANOPY & DELICATE ARABESQUE LATTICE */
#landingPage.app-exterior-shell .app-top-canopy {
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(218, 194, 170, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 65% 60% at 12% 88%, rgba(182, 121, 67, 0.20) 0%, transparent 62%),
    linear-gradient(156deg, #6EA389 0%, #4A7D66 48%, #315B48 100%) !important;
  border-radius: 0 0 30px 30px !important;
  border-bottom: 2px solid rgba(182, 121, 67, 0.56) !important;
  padding-top: max(0.3rem, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 4.85rem !important;
  box-shadow: 0 12px 30px -12px rgba(30, 36, 43, 0.34) !important;
  overflow: hidden;
}

html.dark #landingPage.app-exterior-shell .app-top-canopy,
body.dark-theme #landingPage.app-exterior-shell .app-top-canopy {
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(110, 163, 137, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 55% at 15% 85%, rgba(182, 121, 67, 0.16) 0%, transparent 62%),
    linear-gradient(156deg, #274A3B 0%, #1B3329 58%, #12201A 100%) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.42) !important;
}

#landingPage.app-exterior-shell .app-canopy-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20800%20180%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23FAF6F0%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M-20%20132%20Q220%2048%20460%20112%20T840%2076%22%20stroke-width%3D%220.75%22%20opacity%3D%220.16%22%2F%3E%3Cpath%20d%3D%22M-20%20150%20Q260%2088%20520%20134%20T840%20106%22%20stroke-width%3D%220.55%22%20opacity%3D%220.11%22%2F%3E%3Cpath%20d%3D%22M120%2016%20Q380%2096%20680%2034%22%20stroke-width%3D%220.55%22%20stroke-dasharray%3D%222%205%22%20opacity%3D%220.14%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23DAC2AA%22%3E%3Cpath%20d%3D%22M236%2044%20A9%209%200%201%200%20243%2056%20A7.2%207.2%200%201%201%20236%2044%20Z%22%20opacity%3D%220.24%22%2F%3E%3Ccircle%20cx%3D%22250%22%20cy%3D%2243%22%20r%3D%221.2%22%20opacity%3D%220.28%22%2F%3E%3Ccircle%20cx%3D%22155%22%20cy%3D%2272%22%20r%3D%220.9%22%20opacity%3D%220.20%22%2F%3E%3Ccircle%20cx%3D%22318%22%20cy%3D%2234%22%20r%3D%221.0%22%20opacity%3D%220.22%22%2F%3E%3Ccircle%20cx%3D%22395%22%20cy%3D%2286%22%20r%3D%221.1%22%20opacity%3D%220.18%22%2F%3E%3Ccircle%20cx%3D%22445%22%20cy%3D%2248%22%20r%3D%220.85%22%20opacity%3D%220.24%22%2F%3E%3Ccircle%20cx%3D%22512%22%20cy%3D%2274%22%20r%3D%221.15%22%20opacity%3D%220.19%22%2F%3E%3Ccircle%20cx%3D%22584%22%20cy%3D%2236%22%20r%3D%220.9%22%20opacity%3D%220.22%22%2F%3E%3Ccircle%20cx%3D%22642%22%20cy%3D%2268%22%20r%3D%221.2%22%20opacity%3D%220.20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Native Top App Bar inside Canopy */
html:not(.dark) #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #landingHeader,
body.light-theme #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #landingHeader,
html.dark #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #landingHeader,
body.dark-theme #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #landingHeader {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

@keyframes appBrandPenWriteLoop {
  0%, 3% {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
  26% {
    -webkit-mask-position: 50% 0;
    mask-position: 50% 0;
  }
  68% {
    -webkit-mask-position: 50% 0;
    mask-position: 50% 0;
  }
  94%, 100% {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
}

@keyframes appBrandGoldGlintSweep {
  0%, 30% {
    background-position: 140% 0;
  }
  58%, 100% {
    background-position: -140% 0;
  }
}

@keyframes appBrandCalligraphyRule {
  0%, 3% {
    transform-origin: right center;
    transform: scaleX(0);
    opacity: 0;
  }
  26% {
    transform-origin: right center;
    transform: scaleX(1);
    opacity: 0.9;
  }
  68% {
    transform-origin: left center;
    transform: scaleX(1);
    opacity: 0.78;
  }
  94%, 100% {
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
  }
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell #landingHeader .landing-brand-word,
body.light-theme #landingPage#landingPage.app-exterior-shell #landingHeader .landing-brand-word,
html.dark #landingPage#landingPage.app-exterior-shell #landingHeader .landing-brand-word,
body.dark-theme #landingPage#landingPage.app-exterior-shell #landingHeader .landing-brand-word {
  position: relative !important;
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  font-size: clamp(1.26rem, 3.3vw, 1.56rem) !important;
  line-height: 1.28 !important;
  padding: 0.08rem 0.14rem 0.26rem !important;
  display: inline-block !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  text-shadow: 0 1px 6px rgba(15, 25, 32, 0.24);
  -webkit-mask-image: none !important;
  mask-image: none !important;
  animation: none !important;
}

#landingPage.app-exterior-shell #landingHeader .landing-brand-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font: inherit;
  font-weight: 400 !important;
  line-height: inherit;
  letter-spacing: inherit;
  padding: inherit;
  white-space: nowrap;
  pointer-events: none;
  background-image: linear-gradient(
    112deg,
    transparent 0%,
    transparent 38%,
    rgba(229, 184, 92, 0.92) 46%,
    rgba(255, 251, 234, 1) 50%,
    rgba(229, 184, 92, 0.9) 54%,
    transparent 62%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  animation: appBrandGoldGlintSweep 12.5s cubic-bezier(0.36, 0, 0.24, 1) infinite;
}

#landingPage.app-exterior-shell #landingHeader .landing-brand-word::before {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 0.02rem;
  width: 84%;
  height: 1.25px;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent 0%, rgba(235, 198, 114, 0.88) 50%, transparent 100%);
  transform-origin: right center;
  pointer-events: none;
  animation: appBrandCalligraphyRule 12.5s cubic-bezier(0.36, 0, 0.24, 1) infinite;
}

#landingPage.app-exterior-shell .landing-emblem-box {
  background: #FFFFFF !important;
  padding: 0 !important;
  border: 1.5px solid rgba(250, 246, 240, 0.65) !important;
  box-shadow: 0 4px 12px rgba(15, 25, 32, 0.25) !important;
}

html:not(.dark) #landingPage.app-exterior-shell .app-topbar-circle-btn,
body.light-theme #landingPage.app-exterior-shell .app-topbar-circle-btn,
html.dark #landingPage.app-exterior-shell .app-topbar-circle-btn,
body.dark-theme #landingPage.app-exterior-shell .app-topbar-circle-btn {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #FAF6F0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 4px 12px -4px rgba(15, 25, 32, 0.28) !important;
}

html:not(.dark) #landingPage.app-exterior-shell .app-topbar-circle-btn i,
body.light-theme #landingPage.app-exterior-shell .app-topbar-circle-btn i,
html.dark #landingPage.app-exterior-shell .app-topbar-circle-btn i,
body.dark-theme #landingPage.app-exterior-shell .app-topbar-circle-btn i {
  color: #FAF6F0 !important;
}

#landingPage.app-exterior-shell #btnLoginPublic.app-topbar-circle-btn.is-logged-in {
  background: rgba(182, 121, 67, 0.34) !important;
  border-color: rgba(218, 194, 170, 0.72) !important;
}

/* 2. MAIN APP FEED SPACING (Leaves clean breathing room above Bottom Tab Bar) */
#landingPage.app-exterior-shell .app-exterior-main {
  margin-top: -4.15rem !important;
  padding-top: 0 !important;
  padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* 3. OVERLAPPING FLOATING HERO & SEARCH CARD */
html:not(.dark) #landingPage.app-exterior-shell #landingQuranHero.app-hero-floating-card,
body.light-theme #landingPage.app-exterior-shell #landingQuranHero.app-hero-floating-card {
  background: linear-gradient(170deg, #FFFDF9 0%, #FAF4EC 100%) !important;
  border: 1.5px solid rgba(218, 194, 170, 0.82) !important;
  border-top: 2.5px solid rgba(217, 138, 60, 0.72) !important;
  border-radius: 24px !important;
  padding: 1.15rem 1.15rem 1.1rem !important;
  box-shadow:
    0 18px 40px -16px rgba(30, 36, 43, 0.22),
    0 4px 12px -4px rgba(194, 107, 34, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  text-align: right !important;
}

html.dark #landingPage.app-exterior-shell #landingQuranHero.app-hero-floating-card,
body.dark-theme #landingPage.app-exterior-shell #landingQuranHero.app-hero-floating-card {
  background: linear-gradient(170deg, #1E252E 0%, #181E26 100%) !important;
  border: 1.5px solid rgba(86, 150, 178, 0.28) !important;
  border-radius: 24px !important;
  padding: 1.15rem 1.15rem 1.1rem !important;
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.56) !important;
  text-align: right !important;
}

#landingPage.app-exterior-shell .app-hero-date-pill {
  background: #FFF3DB !important;
  color: #9E5A1E !important;
  border: 1px solid rgba(217, 142, 60, 0.45) !important;
}
#landingPage.app-exterior-shell .app-hero-date-pill i {
  color: #D98A3C !important;
}

html.dark #landingPage.app-exterior-shell .app-hero-date-pill,
body.dark-theme #landingPage.app-exterior-shell .app-hero-date-pill {
  background: rgba(182, 121, 67, 0.18) !important;
  color: #E2B78B !important;
  border: 1px solid rgba(182, 121, 67, 0.38) !important;
}

html:not(.dark) #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #heroTitle,
body.light-theme #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #heroTitle {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.58rem, 4.6vw, 2.15rem) !important;
  line-height: 1.38 !important;
  color: #174B36 !important;
  background: linear-gradient(135deg, #174B36 0%, #2B6D51 55%, #9B5D25 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0.15rem 0 0.25rem !important;
}

html.dark #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #heroTitle,
body.dark-theme #landingPage#landingPage#landingPage#landingPage.app-exterior-shell #heroTitle {
  font-family: 'Aref Ruqaa', 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.75rem, 5.2vw, 2.35rem) !important;
  line-height: 1.38 !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0.15rem 0 0.25rem !important;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell #heroSubtitle,
body.light-theme #landingPage#landingPage.app-exterior-shell #heroSubtitle {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.06rem, 2.4vw, 1.24rem) !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  color: #7A4E28 !important;
  -webkit-text-fill-color: #7A4E28 !important;
  text-shadow: none !important;
  margin: 0 !important;
}

/* Quick Hero CTA Buttons inside #landingQuranHero */
html:not(.dark) #landingPage.app-exterior-shell .hero-cta-primary,
body.light-theme #landingPage.app-exterior-shell .hero-cta-primary {
  background: linear-gradient(135deg, #E59238 0%, #C26B22 100%) !important;
  color: #FFFDF9 !important;
  -webkit-text-fill-color: #FFFDF9 !important;
  border: 1px solid rgba(255, 240, 210, 0.55) !important;
  box-shadow: 0 8px 20px -6px rgba(194, 107, 34, 0.52) !important;
}
html:not(.dark) #landingPage.app-exterior-shell .hero-cta-primary i,
html:not(.dark) #landingPage.app-exterior-shell .hero-cta-primary span,
body.light-theme #landingPage.app-exterior-shell .hero-cta-primary i,
body.light-theme #landingPage.app-exterior-shell .hero-cta-primary span {
  color: #FFFDF9 !important;
  -webkit-text-fill-color: #FFFDF9 !important;
}
html:not(.dark) #landingPage.app-exterior-shell .hero-cta-primary:hover,
body.light-theme #landingPage.app-exterior-shell .hero-cta-primary:hover {
  filter: brightness(1.06);
}
html:not(.dark) #landingPage.app-exterior-shell .hero-cta-secondary,
body.light-theme #landingPage.app-exterior-shell .hero-cta-secondary {
  background: #EAF4EE !important;
  color: #245A43 !important;
  -webkit-text-fill-color: #245A43 !important;
  border: 1px solid rgba(47, 133, 90, 0.32) !important;
}
html:not(.dark) #landingPage.app-exterior-shell .hero-cta-secondary:hover,
body.light-theme #landingPage.app-exterior-shell .hero-cta-secondary:hover {
  background: #DCEEE4 !important;
}
html.dark #landingPage.app-exterior-shell .hero-cta-primary,
body.dark-theme #landingPage.app-exterior-shell .hero-cta-primary {
  background: linear-gradient(135deg, #D19155 0%, #965B2B 100%) !important;
  color: #FAF6F0 !important;
  border: 1px solid rgba(250, 246, 240, 0.28) !important;
}
html.dark #landingPage.app-exterior-shell .hero-cta-secondary,
body.dark-theme #landingPage.app-exterior-shell .hero-cta-secondary {
  background: rgba(110, 163, 137, 0.16) !important;
  color: #E2D5C3 !important;
  border: 1px solid rgba(110, 163, 137, 0.35) !important;
}

html.dark #landingPage#landingPage.app-exterior-shell #heroSubtitle,
body.dark-theme #landingPage#landingPage.app-exterior-shell #heroSubtitle {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: clamp(1.06rem, 2.4vw, 1.24rem) !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  color: #74B4CF !important;
  -webkit-text-fill-color: #74B4CF !important;
  text-shadow: none !important;
  margin: 0 !important;
}

/* Smart Status / Login Pill inside Hero Card (FastPay Verified-Pill Vibe) */
html:not(.dark) #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill,
body.light-theme #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill {
  background: linear-gradient(135deg, rgba(86, 150, 178, 0.20) 0%, rgba(35, 91, 120, 0.16) 100%) !important;
  border: 1.5px solid rgba(35, 91, 120, 0.34) !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  border-radius: 9999px !important;
  padding: 0.45rem 0.9rem !important;
  min-height: 2.25rem !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px -4px rgba(35, 91, 120, 0.20) !important;
  text-shadow: none !important;
}

html:not(.dark) #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill span,
html:not(.dark) #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill i,
body.light-theme #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill span,
body.light-theme #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill i {
  font-size: 0.86rem !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  filter: none !important;
}

html:not(.dark) #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill.is-logged-in,
body.light-theme #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill.is-logged-in {
  background: linear-gradient(135deg, #2B6987 0%, #235B78 100%) !important;
  border-color: rgba(182, 121, 67, 0.55) !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill.is-logged-in span,
html:not(.dark) #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill.is-logged-in i {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

html.dark #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill,
body.dark-theme #landingPage.app-exterior-shell #btnLoginPublic.app-status-login-pill {
  background: rgba(86, 150, 178, 0.22) !important;
  border: 1px solid rgba(116, 180, 207, 0.42) !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  border-radius: 9999px !important;
  padding: 0.45rem 0.9rem !important;
  min-height: 2.25rem !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
}

/* Integrated Soft App Search Bar inside Hero Card */
html:not(.dark) #landingPage.app-exterior-shell .app-soft-search-bar,
body.light-theme #landingPage.app-exterior-shell .app-soft-search-bar {
  background: #F3ECE3 !important;
  border: 1px solid rgba(218, 194, 170, 0.82) !important;
  border-radius: 15px !important;
  box-shadow: inset 0 1px 2px rgba(30, 36, 43, 0.05) !important;
}

html.dark #landingPage.app-exterior-shell .app-soft-search-bar,
body.dark-theme #landingPage.app-exterior-shell .app-soft-search-bar {
  background: #13181F !important;
  border: 1px solid rgba(86, 150, 178, 0.28) !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

html.dark #landingPage.app-exterior-shell .quran-hero-search-input,
body.dark-theme #landingPage.app-exterior-shell .quran-hero-search-input {
  color: #FAF6F0 !important;
}

html.dark #landingPage.app-exterior-shell .quran-hero-search-input::placeholder,
body.dark-theme #landingPage.app-exterior-shell .quran-hero-search-input::placeholder {
  color: #9BAAB6 !important;
}

/* 4. 2×2 NATIVE APP QUICK ACTION TILES (FastPay Soft Tactile Cards) */
html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile {
  display: flex !important;
  align-items: center !important;
  gap: 0.72rem !important;
  width: 100% !important;
  padding: 0.86rem 0.88rem !important;
  border-radius: 18px !important;
  background: #FFFDF9 !important;
  background-image: linear-gradient(165deg, #FFFDF9 0%, #FAF4EC 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid rgba(218, 194, 170, 0.72) !important;
  box-shadow:
    0 6px 18px -10px rgba(30, 36, 43, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  text-shadow: none !important;
  user-select: none;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile:hover,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile:hover {
  border-color: rgba(182, 121, 67, 0.62) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px -10px rgba(35, 91, 120, 0.22) !important;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile.app-tile-copper,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile.app-tile-copper {
  border-color: rgba(182, 121, 67, 0.50) !important;
}

html.dark #landingPage#landingPage.app-exterior-shell .app-quick-tile,
body.dark-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile {
  display: flex !important;
  align-items: center !important;
  gap: 0.72rem !important;
  width: 100% !important;
  padding: 0.86rem 0.88rem !important;
  border-radius: 18px !important;
  background: linear-gradient(165deg, #1E252E 0%, #192028 100%) !important;
  border: 1px solid rgba(86, 150, 178, 0.26) !important;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45) !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  text-shadow: none !important;
  user-select: none;
}

#landingPage.app-exterior-shell .app-tile-icon-box {
  width: 2.65rem !important;
  height: 2.65rem !important;
  border-radius: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  shrink: 0;
  flex-shrink: 0 !important;
  font-size: 1.12rem !important;
}

#landingPage.app-exterior-shell .app-tile-icon-copper {
  background: #F6E6D7 !important;
  color: #B67943 !important;
}
#landingPage.app-exterior-shell .app-tile-icon-copper i {
  color: #B67943 !important;
  -webkit-text-fill-color: #B67943 !important;
  font-size: 1.12rem !important;
}

#landingPage.app-exterior-shell .app-tile-icon-teal {
  background: #E2EFF5 !important;
  color: #235B78 !important;
}
#landingPage.app-exterior-shell .app-tile-icon-teal i {
  color: #235B78 !important;
  -webkit-text-fill-color: #235B78 !important;
  font-size: 1.12rem !important;
}

#landingPage.app-exterior-shell .app-tile-icon-cerulean {
  background: #E1F2F8 !important;
  color: #2F7697 !important;
}
#landingPage.app-exterior-shell .app-tile-icon-cerulean i {
  color: #2F7697 !important;
  -webkit-text-fill-color: #2F7697 !important;
  font-size: 1.12rem !important;
}

#landingPage.app-exterior-shell .app-tile-icon-charcoal {
  background: #EAE7E1 !important;
  color: #1E242B !important;
}
#landingPage.app-exterior-shell .app-tile-icon-charcoal i {
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  font-size: 1.12rem !important;
}

html.dark #landingPage.app-exterior-shell .app-tile-icon-copper { background: rgba(182, 121, 67, 0.22) !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-copper i { color: #E2B384 !important; -webkit-text-fill-color: #E2B384 !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-teal { background: rgba(86, 150, 178, 0.20) !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-teal i { color: #7CC0DC !important; -webkit-text-fill-color: #7CC0DC !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-cerulean { background: rgba(86, 150, 178, 0.24) !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-cerulean i { color: #8AC8E2 !important; -webkit-text-fill-color: #8AC8E2 !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-charcoal { background: rgba(218, 194, 170, 0.16) !important; }
html.dark #landingPage.app-exterior-shell .app-tile-icon-charcoal i { color: #DAC2AA !important; -webkit-text-fill-color: #DAC2AA !important; }

#landingPage.app-exterior-shell .app-tile-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.1rem !important;
  line-height: 1.25 !important;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-title,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-title {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
  -webkit-text-fill-color: #1E242B !important;
  filter: none !important;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-sub,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-sub {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #546471 !important;
  -webkit-text-fill-color: #546471 !important;
  filter: none !important;
}

html.dark #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-title {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

html.dark #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-sub {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #A9B8C4 !important;
  -webkit-text-fill-color: #A9B8C4 !important;
}

/* 5. FEATURED SPIRITUAL DREAM CALLOUT BANNER */
#landingPage.app-exterior-shell .app-featured-dream-banner {
  background:
    radial-gradient(circle at 12% 50%, rgba(182, 121, 67, 0.36) 0%, transparent 55%),
    linear-gradient(135deg, #255E7B 0%, #1C455C 58%, #1E242B 100%) !important;
  border-radius: 22px !important;
  padding: 1.05rem 1.15rem !important;
  border: 1.5px solid rgba(182, 121, 67, 0.44) !important;
  box-shadow: 0 14px 30px -12px rgba(30, 36, 43, 0.32) !important;
  user-select: none;
}

#landingPage.app-exterior-shell .app-banner-eyebrow {
  background: rgba(182, 121, 67, 0.26) !important;
  color: #F4D8BA !important;
  border: 1px solid rgba(218, 194, 170, 0.35) !important;
}

#landingPage.app-exterior-shell .app-banner-heading {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: clamp(1.02rem, 2.5vw, 1.18rem) !important;
  font-weight: 800 !important;
  color: #FAF6F0 !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

#landingPage.app-exterior-shell .app-banner-desc {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #DAC2AA !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

#landingPage.app-exterior-shell .app-banner-cta-circle {
  width: 2.85rem !important;
  height: 2.85rem !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #D19155 0%, #B67943 60%, #965B2B 100%) !important;
  color: #FAF6F0 !important;
  border: 1.5px solid rgba(250, 246, 240, 0.45) !important;
  box-shadow: 0 8px 18px -4px rgba(182, 121, 67, 0.55) !important;
  font-size: 1.05rem !important;
}

/* 6. ANNOUNCEMENTS SECTION IN NATIVE APP MODE */
html:not(.dark) #landingPage.app-exterior-shell #postsHeaderTitle,
html:not(.dark) #landingPage.app-exterior-shell #postsHeaderTitle span,
body.light-theme #landingPage.app-exterior-shell #postsHeaderTitle,
body.light-theme #landingPage.app-exterior-shell #postsHeaderTitle span {
  font-family: 'Aref Ruqaa', 'Amiri', serif !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  font-size: clamp(1.48rem, 3.8vw, 1.84rem) !important;
  line-height: 1.32 !important;
  color: #A8551B !important;
  background: linear-gradient(135deg, #C46D28 0%, #964916 60%, #70330C 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 1px 2px rgba(196, 109, 40, 0.12) !important;
}

html.dark #landingPage.app-exterior-shell #postsHeaderTitle,
html.dark #landingPage.app-exterior-shell #postsHeaderTitle span,
body.dark-theme #landingPage.app-exterior-shell #postsHeaderTitle,
body.dark-theme #landingPage.app-exterior-shell #postsHeaderTitle span {
  font-family: 'Aref Ruqaa', 'Amiri', serif !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  font-size: clamp(1.48rem, 3.8vw, 1.84rem) !important;
  line-height: 1.32 !important;
  color: #E2B78B !important;
  -webkit-text-fill-color: #E2B78B !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementsSection .landing-badge-sapphire,
body.light-theme #landingPage.app-exterior-shell #announcementsSection .landing-badge-sapphire {
  background: linear-gradient(145deg, #FFEEDB 0%, #FCE0C1 100%) !important;
  border-color: rgba(217, 107, 39, 0.42) !important;
  color: #D96B27 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementsSection .landing-badge-sapphire i,
body.light-theme #landingPage.app-exterior-shell #announcementsSection .landing-badge-sapphire i {
  color: #D96B27 !important;
  -webkit-text-fill-color: #D96B27 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #postsHeaderSubtitle,
body.light-theme #landingPage.app-exterior-shell #postsHeaderSubtitle {
  color: #6B5038 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard {
  background: #FFFDF9 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.78) !important;
  border-right: 4.5px solid #B67943 !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 26px -12px rgba(49, 91, 72, 0.14) !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard .landing-ann-tag,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard .landing-ann-tag {
  background: #E3F6EB !important;
  color: #1B6B44 !important;
  -webkit-text-fill-color: #1B6B44 !important;
  border: 1px solid rgba(27, 107, 68, 0.28) !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard .landing-ann-tag i,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard .landing-ann-tag i {
  color: #1B6B44 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard #annActiveTitle,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard #annActiveTitle {
  color: #1B4D38 !important;
  -webkit-text-fill-color: #1B4D38 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard #annActiveDate,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard #annActiveDate {
  background: rgba(244, 238, 229, 0.52) !important;
  color: rgba(78, 70, 62, 0.58) !important;
  -webkit-text-fill-color: rgba(78, 70, 62, 0.58) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.14rem 0.55rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(156, 136, 114, 0.16) !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

html.dark #landingPage.app-exterior-shell #announcementActiveCard #annActiveDate,
body.dark-theme #landingPage.app-exterior-shell #announcementActiveCard #annActiveDate {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(226, 232, 240, 0.52) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.52) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.14rem 0.55rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard .landing-ann-author,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard .landing-ann-author {
  color: #256B4E !important;
  -webkit-text-fill-color: #256B4E !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard #btnEditCurrentAnn,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard #btnEditCurrentAnn {
  background: #EEF6F9 !important;
  color: #1E5A78 !important;
  -webkit-text-fill-color: #1E5A78 !important;
  border: 1px solid rgba(35, 91, 120, 0.26) !important;
}

html:not(.dark) #landingPage.app-exterior-shell #announcementActiveCard #btnDeleteCurrentAnn,
body.light-theme #landingPage.app-exterior-shell #announcementActiveCard #btnDeleteCurrentAnn {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  -webkit-text-fill-color: #B91C1C !important;
  border: 1px solid rgba(185, 28, 28, 0.24) !important;
}

#landingPage.app-exterior-shell #announcementActiveCard .ann-card-watermark {
  position: absolute !important;
  left: 1.35rem !important;
  bottom: 2.6rem !important;
  font-size: 5.2rem !important;
  line-height: 1 !important;
  color: #B67943 !important;
  opacity: 0.055 !important;
  z-index: 0 !important;
  transform: rotate(-14deg);
}
html.dark #landingPage.app-exterior-shell #announcementActiveCard .ann-card-watermark {
  color: #E2B78B !important;
  opacity: 0.06 !important;
}

html:not(.dark) #landingPage.app-exterior-shell #btnAdminAddAnn,
body.light-theme #landingPage.app-exterior-shell #btnAdminAddAnn {
  background: linear-gradient(135deg, #2F855A 0%, #1E6342 100%) !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  border: 1px solid rgba(217, 142, 60, 0.45) !important;
  box-shadow: 0 8px 18px -6px rgba(30, 99, 66, 0.45) !important;
  font-size: 0.85rem !important;
  padding: 0.42rem 0.9rem !important;
  min-height: 2.15rem !important;
  text-shadow: none !important;
}

html:not(.dark) #landingPage.app-exterior-shell #btnAdminAddAnn span,
html:not(.dark) #landingPage.app-exterior-shell #btnAdminAddAnn i {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  font-size: 0.85rem !important;
  filter: none !important;
}

html:not(.dark) #landingPage.app-exterior-shell #emptyPostSlot,
body.light-theme #landingPage.app-exterior-shell #emptyPostSlot {
  background: rgba(255, 253, 249, 0.86) !important;
  border: 1.5px dashed rgba(182, 121, 67, 0.48) !important;
  border-radius: 20px !important;
}

/* 7. NATIVE APP BOTTOM TAB BAR WITH RAISED CENTER FLOATING ACTION BUTTON */
#landingPage.app-exterior-shell #appBottomNav.app-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 45 !important;
  background: rgba(255, 253, 249, 0.96) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border-top: 1.5px solid rgba(182, 121, 67, 0.34) !important;
  box-shadow: 0 -10px 30px -10px rgba(49, 91, 72, 0.16) !important;
  padding: 0.35rem 0.5rem max(0.45rem, env(safe-area-inset-bottom, 0px)) !important;
  user-select: none;
}

html.dark #landingPage.app-exterior-shell #appBottomNav.app-bottom-nav,
body.dark-theme #landingPage.app-exterior-shell #appBottomNav.app-bottom-nav {
  background: rgba(22, 28, 35, 0.95) !important;
  border-top: 1px solid rgba(86, 150, 178, 0.28) !important;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.55) !important;
}

@media (min-width: 769px) {
  #landingPage.app-exterior-shell #appBottomNav.app-bottom-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 2rem)) !important;
    bottom: 14px !important;
    border-radius: 26px !important;
    border: 1.5px solid rgba(218, 194, 170, 0.85) !important;
    padding: 0.38rem 0.75rem 0.45rem !important;
    box-shadow: 0 16px 38px -12px rgba(30, 36, 43, 0.24) !important;
  }
  html.dark #landingPage.app-exterior-shell #appBottomNav.app-bottom-nav {
    border-color: rgba(86, 150, 178, 0.35) !important;
  }
}

#landingPage.app-exterior-shell .app-bottom-nav-inner {
  max-width: 440px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: 0.25rem !important;
}

#landingPage.app-exterior-shell .app-nav-tab {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  padding: 0.22rem 0.15rem 0.12rem !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, filter 0.16s ease !important;
}

#landingPage.app-exterior-shell .app-nav-tab:hover {
  transform: translateY(-1px) !important;
}

#landingPage.app-exterior-shell .app-nav-tab:active {
  transform: scale(0.92) !important;
}

#landingPage.app-exterior-shell .app-nav-tab i {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.02rem !important;
  line-height: 1 !important;
  transition: background-color 0.18s ease, transform 0.18s ease !important;
}

#landingPage.app-exterior-shell .app-nav-tab span {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Tab 1 (Right in RTL): گەڕان -> Emerald Mint (#2D6B4F on #EAF5EF) */
html:not(.dark) #landingPage.app-exterior-shell #appTabSearch,
body.light-theme #landingPage.app-exterior-shell #appTabSearch {
  color: #2D6B4F !important;
}
html:not(.dark) #landingPage.app-exterior-shell #appTabSearch i,
body.light-theme #landingPage.app-exterior-shell #appTabSearch i {
  background: #EAF5EF !important;
  color: #2D6B4F !important;
  border: 1px solid rgba(45, 107, 79, 0.20) !important;
}
html:not(.dark) #landingPage.app-exterior-shell #appTabSearch span,
body.light-theme #landingPage.app-exterior-shell #appTabSearch span {
  color: #265C43 !important;
}

/* Tab 3 (Left in RTL): خەونەکان -> Turquoise-Sapphire (#215E7A on #EAF3F8) */
html:not(.dark) #landingPage.app-exterior-shell #appTabDreams,
body.light-theme #landingPage.app-exterior-shell #appTabDreams {
  color: #215E7A !important;
}
html:not(.dark) #landingPage.app-exterior-shell #appTabDreams i,
body.light-theme #landingPage.app-exterior-shell #appTabDreams i {
  background: #EAF3F8 !important;
  color: #215E7A !important;
  border: 1px solid rgba(33, 94, 122, 0.20) !important;
}
html:not(.dark) #landingPage.app-exterior-shell #appTabDreams span,
body.light-theme #landingPage.app-exterior-shell #appTabDreams span {
  color: #1D536D !important;
}

/* Dark Mode Variants for Side Tabs */
html.dark #landingPage.app-exterior-shell #appTabSearch,
body.dark-theme #landingPage.app-exterior-shell #appTabSearch {
  color: #72C19C !important;
}
html.dark #landingPage.app-exterior-shell #appTabSearch i,
body.dark-theme #landingPage.app-exterior-shell #appTabSearch i {
  background: rgba(110, 163, 137, 0.16) !important;
  color: #72C19C !important;
  border: 1px solid rgba(110, 163, 137, 0.28) !important;
}

html.dark #landingPage.app-exterior-shell #appTabDreams,
body.dark-theme #landingPage.app-exterior-shell #appTabDreams {
  color: #74B4CF !important;
}
html.dark #landingPage.app-exterior-shell #appTabDreams i,
body.dark-theme #landingPage.app-exterior-shell #appTabDreams i {
  background: rgba(116, 180, 207, 0.16) !important;
  color: #74B4CF !important;
  border: 1px solid rgba(116, 180, 207, 0.28) !important;
}

/* Center Raised Circular FAB (ناردنی خەون) -> Radiant Golden Copper Matching Hero CTA */
#landingPage.app-exterior-shell .app-nav-fab-slot {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  position: relative !important;
  margin-top: -1.75rem !important;
}

#landingPage.app-exterior-shell .app-nav-fab-btn {
  width: 3.45rem !important;
  height: 3.45rem !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #E59238 0%, #C26B22 100%) !important;
  color: #FFFDF9 !important;
  border: 4px solid #FFFDF9 !important;
  box-shadow:
    0 10px 24px -5px rgba(194, 107, 34, 0.62),
    0 0 18px rgba(229, 146, 56, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.48) !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease !important;
}

#landingPage.app-exterior-shell .app-nav-fab-btn i {
  font-size: 1.32rem !important;
  color: #FFFDF9 !important;
}

#landingPage.app-exterior-shell .app-nav-fab-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  filter: brightness(1.05);
}

#landingPage.app-exterior-shell .app-nav-fab-btn:active {
  transform: scale(0.93) !important;
}

html.dark #landingPage.app-exterior-shell .app-nav-fab-btn {
  border-color: #161C23 !important;
}

#landingPage.app-exterior-shell .app-nav-fab-label {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #B45A14 !important;
  margin-top: 0.18rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

html.dark #landingPage.app-exterior-shell .app-nav-fab-label {
  color: #F0B775 !important;
}

/* 8. NATIVE iOS-STYLE MORE BOTTOM SHEET */
#landingPage.app-exterior-shell #appMoreBottomSheet.app-bottom-sheet-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 90 !important;
  background: rgba(18, 23, 29, 0.56) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
}

#landingPage.app-exterior-shell #appMoreBottomSheet.app-bottom-sheet-overlay.hidden {
  display: none !important;
}

#landingPage.app-exterior-shell .app-bottom-sheet-panel {
  width: 100% !important;
  max-width: 520px !important;
  background: #FFFDF9 !important;
  border-radius: 28px 28px 0 0 !important;
  border-top: 1.5px solid rgba(218, 194, 170, 0.85) !important;
  padding: 0.5rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -16px 46px rgba(18, 23, 29, 0.28) !important;
  animation: appSheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.dark #landingPage.app-exterior-shell .app-bottom-sheet-panel,
body.dark-theme #landingPage.app-exterior-shell .app-bottom-sheet-panel {
  background: #1B222A !important;
  border-top-color: rgba(86, 150, 178, 0.32) !important;
}

@keyframes appSheetSlideUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

#landingPage.app-exterior-shell .app-sheet-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.7rem;
  cursor: pointer;
}

#landingPage.app-exterior-shell .app-sheet-handle {
  width: 2.75rem;
  height: 0.3rem;
  border-radius: 9999px;
  background: rgba(182, 121, 67, 0.42);
}

#landingPage.app-exterior-shell .app-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(218, 194, 170, 0.65);
}

html.dark #landingPage.app-exterior-shell .app-sheet-header {
  border-bottom-color: rgba(86, 150, 178, 0.22);
}

#landingPage.app-exterior-shell .app-sheet-brand-title {
  font-family: 'Aref Ruqaa', 'Scheherazade New', serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1E242B !important;
  margin: 0 !important;
}

html.dark #landingPage.app-exterior-shell .app-sheet-brand-title {
  color: #FAF6F0 !important;
}

#landingPage.app-exterior-shell .app-sheet-brand-sub {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #546471 !important;
  margin: 0 !important;
}

html.dark #landingPage.app-exterior-shell .app-sheet-brand-sub {
  color: #9FB1BF !important;
}

#landingPage.app-exterior-shell .app-sheet-close-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  background: #F3ECE3 !important;
  color: #1E242B !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html.dark #landingPage.app-exterior-shell .app-sheet-close-btn {
  background: #252E38 !important;
  color: #FAF6F0 !important;
}

#landingPage.app-exterior-shell .app-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#landingPage.app-exterior-shell .app-sheet-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  padding: 0.72rem 0.8rem !important;
  border-radius: 16px !important;
  background: #F7F1E9 !important;
  border: 1px solid rgba(218, 194, 170, 0.55) !important;
  text-align: right !important;
  cursor: pointer !important;
  transition: transform 0.14s ease, border-color 0.16s ease !important;
}

#landingPage.app-exterior-shell .app-sheet-row:active {
  transform: scale(0.98) !important;
}

html.dark #landingPage.app-exterior-shell .app-sheet-row {
  background: #232B35 !important;
  border-color: rgba(86, 150, 178, 0.20) !important;
}

#landingPage.app-exterior-shell .app-sheet-row-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

#landingPage.app-exterior-shell .app-sheet-row-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

#landingPage.app-exterior-shell .app-sheet-row-body strong {
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

#landingPage.app-exterior-shell .app-sheet-row-body small {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #5A6B78 !important;
}

html.dark #landingPage.app-exterior-shell .app-sheet-row-body strong {
  color: #FAF6F0 !important;
}

html.dark #landingPage.app-exterior-shell .app-sheet-row-body small {
  color: #9EB0BE !important;
}

#landingPage.app-exterior-shell .app-sheet-chevron {
  color: #B67943 !important;
  font-size: 0.8rem !important;
  opacity: 0.8;
}

#landingPage.app-exterior-shell .app-sheet-footer-note {
  margin-top: 0.95rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #6B7A87;
}

html.dark #landingPage.app-exterior-shell .app-sheet-footer-note {
  color: #8CA0AF;
}

/* Mobile-specific micro-tuning */
@media (max-width: 640px) {
  #landingPage.app-exterior-shell .app-top-canopy {
    padding-bottom: 4.65rem !important;
  }
  #landingPage.app-exterior-shell .app-exterior-main {
    margin-top: -3.95rem !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }
  #landingPage#landingPage.app-exterior-shell .app-quick-tile {
    padding: 0.82rem 0.75rem !important;
    gap: 0.6rem !important;
  }
  #landingPage.app-exterior-shell .app-tile-icon-box {
    width: 2.45rem !important;
    height: 2.45rem !important;
    font-size: 1.05rem !important;
  }
  #landingPage#landingPage.app-exterior-shell .app-quick-tile .app-tile-title {
    font-size: 0.92rem !important;
  }
}


/* Micro-polish: Native iOS Vertical Rhythm, Tile 1 Copper Icon & Dark-Mode Admin Row */
#landingPage#landingPage.app-exterior-shell .app-exterior-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.95rem !important;
}

#landingPage#landingPage.app-exterior-shell #announcementsSection {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.7rem !important;
}

#landingPage#landingPage.app-exterior-shell .landing-section-header {
  border-bottom: none !important;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile.quran-hero-pill-primary .app-tile-icon-copper i,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile.quran-hero-pill-primary .app-tile-icon-copper i {
  color: #B67943 !important;
  -webkit-text-fill-color: #B67943 !important;
}

html:not(.dark) #landingPage#landingPage.app-exterior-shell .app-quick-tile.quran-hero-pill-outline .app-tile-icon-teal i,
body.light-theme #landingPage#landingPage.app-exterior-shell .app-quick-tile.quran-hero-pill-outline .app-tile-icon-teal i {
  color: #235B78 !important;
  -webkit-text-fill-color: #235B78 !important;
}

#landingPage.app-exterior-shell .app-topbar-circle-btn:focus {
  outline: none !important;
}

#landingPage.app-exterior-shell .app-topbar-circle-btn:focus-visible {
  outline: 2px solid rgba(250, 246, 240, 0.75) !important;
  outline-offset: 2px !important;
}

html.dark #landingPage.app-exterior-shell #btnAdminAddAnn,
body.dark-theme #landingPage.app-exterior-shell #btnAdminAddAnn {
  font-size: 0.84rem !important;
  padding: 0.42rem 0.85rem !important;
  min-height: 2.15rem !important;
}

html.dark #landingPage.app-exterior-shell #btnAdminAddAnn span,
html.dark #landingPage.app-exterior-shell #btnAdminAddAnn i,
body.dark-theme #landingPage.app-exterior-shell #btnAdminAddAnn span,
body.dark-theme #landingPage.app-exterior-shell #btnAdminAddAnn i {
  font-size: 0.84rem !important;
}

/* ==========================================================================
   INSIDE APP 100% NATIVE MOBILE APP SHELL (#mainApp.app-inside-shell)
   Unified Kingfisher Teal, Chestnut Copper & Warm Sand Companion to Exterior
   ========================================================================== */

/* 1. WARM SAND / MIDNIGHT CANVAS */
html:not(.dark) body.in-app,
body.light-theme.in-app,
body.light-mode.in-app,
html:not(.dark) #mainApp#mainApp.app-inside-shell,
body.light-theme #mainApp#mainApp.app-inside-shell,
html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView {
  background: linear-gradient(180deg, #F5EFE6 0%, #EFE6DA 100%) !important;
  background-color: #F5EFE6 !important;
  color: #1E242B !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomChatStage,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomChatStage {
  background: linear-gradient(180deg, #F2EDE4 0%, #EAE3D7 100%) !important;
  background-color: #EFEAE1 !important;
  color: #1E242B !important;
}

html.dark #mainApp#mainApp.app-inside-shell,
body.dark-theme #mainApp#mainApp.app-inside-shell,
html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView,
html.dark #mainApp#mainApp.app-inside-shell #classroomChatStage,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomChatStage {
  background: #12171D !important;
  background-color: #12171D !important;
  color: #FAF6F0 !important;
}

/* 2. VELVETY SAGE-EMERALD NATIVE TOP APP HEADER (Matches Exterior Canopy — 4-ID specificity) */
html:not(.dark) #mainApp#mainApp#mainApp#mainApp.app-inside-shell > header,
body.light-theme #mainApp#mainApp#mainApp#mainApp.app-inside-shell > header {
  background-color: #4A7D66 !important;
  background-image:
    radial-gradient(ellipse 90% 80% at 85% 0%, rgba(218, 194, 170, 0.22) 0%, transparent 62%),
    linear-gradient(156deg, #6EA389 0%, #4A7D66 48%, #315B48 100%) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.52) !important;
  box-shadow: 0 8px 22px -10px rgba(30, 56, 44, 0.42) !important;
  padding-top: calc(0.45rem + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 0.5rem !important;
  min-height: 58px !important;
}

html.dark #mainApp#mainApp#mainApp#mainApp.app-inside-shell > header,
body.dark-theme #mainApp#mainApp#mainApp#mainApp.app-inside-shell > header {
  background-color: #1B3329 !important;
  background-image: linear-gradient(156deg, #274A3B 0%, #1B3329 58%, #12201A 100%) !important;
  border-bottom: 1px solid rgba(110, 163, 137, 0.30) !important;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.6) !important;
  padding-top: calc(0.45rem + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 0.5rem !important;
  min-height: 58px !important;
}

/* Header User Pill & Frosted Controls */
#mainApp#mainApp.app-inside-shell > header div[onclick="openMyProfile()"] {
  background: rgba(255, 253, 249, 0.15) !important;
  border: 1px solid rgba(250, 246, 240, 0.28) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 0.3rem 0.72rem !important;
  border-radius: 9999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

#mainApp#mainApp.app-inside-shell > header #headerFullName {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

#mainApp#mainApp.app-inside-shell > header #headerStarBadge,
#mainApp#mainApp.app-inside-shell > header #headerStarCount {
  color: #F4D7B6 !important;
  -webkit-text-fill-color: #F4D7B6 !important;
  font-size: 0.72rem !important;
}

#mainApp#mainApp.app-inside-shell > header #mainMenuBtn,
#mainApp#mainApp.app-inside-shell > header #btnThemeToggle,
#mainApp#mainApp.app-inside-shell > header #headerHomeLandingBtn,
#mainApp#mainApp.app-inside-shell > header #dreamAdminNavBtn,
#mainApp#mainApp.app-inside-shell > header #pushNotificationBtn {
  background: rgba(255, 253, 249, 0.14) !important;
  border: 1px solid rgba(250, 246, 240, 0.26) !important;
  color: #FAF6F0 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

#mainApp#mainApp.app-inside-shell > header #mainMenuBtn i,
#mainApp#mainApp.app-inside-shell > header #btnThemeToggle i,
#mainApp#mainApp.app-inside-shell > header #btnThemeToggle span,
#mainApp#mainApp.app-inside-shell > header #headerHomeLandingBtn i,
#mainApp#mainApp.app-inside-shell > header #headerHomeLandingBtn span,
#mainApp#mainApp.app-inside-shell > header #dreamAdminNavBtn i,
#mainApp#mainApp.app-inside-shell > header #dreamAdminNavBtn span,
#mainApp#mainApp.app-inside-shell > header #pushNotificationBtn i,
#mainApp#mainApp.app-inside-shell > header #pushNotificationBtn span {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

#mainApp#mainApp.app-inside-shell > header #headerActiveRoomBadge {
  background: rgba(255, 253, 249, 0.16) !important;
  border: 1px solid rgba(244, 215, 182, 0.42) !important;
  color: #FAF6F0 !important;
  padding: 0.34rem 0.72rem !important;
}

#mainApp#mainApp.app-inside-shell > header #headerActiveRoomIcon {
  color: #F4D7B6 !important;
}

#mainApp#mainApp.app-inside-shell > header #headerActiveRoomName {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn,
body.light-theme #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn {
  background: rgba(255, 253, 249, 0.94) !important;
  border: 1px solid rgba(218, 194, 170, 0.85) !important;
  color: #315B48 !important;
  padding: 0.36rem 0.78rem !important;
  box-shadow: 0 6px 14px -6px rgba(18, 23, 29, 0.32) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn span,
html:not(.dark) #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn i,
body.light-theme #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn span,
body.light-theme #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn i {
  color: #315B48 !important;
  -webkit-text-fill-color: #315B48 !important;
}

html.dark #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn,
body.dark-theme #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn {
  background: rgba(182, 121, 67, 0.25) !important;
  border: 1px solid rgba(226, 179, 132, 0.45) !important;
  color: #FAF6F0 !important;
  padding: 0.36rem 0.78rem !important;
}

html.dark #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn span,
html.dark #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn i,
body.dark-theme #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn span,
body.dark-theme #mainApp#mainApp.app-inside-shell > header #backToClassroomsLobbyBtn i {
  color: #F4D7B6 !important;
  -webkit-text-fill-color: #F4D7B6 !important;
}

#mainApp#mainApp.app-inside-shell > header .header-logo-glass-frame {
  border: 2px solid rgba(244, 215, 182, 0.55) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 14px -6px rgba(18, 23, 29, 0.38) !important;
}

/* 3. FLOATING IVORY LOBBY HERO & SEARCH CARD (Compact & Crisp) */
html:not(.dark) #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child,
body.light-theme #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child,
body.light-mode #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child {
  background: linear-gradient(170deg, #FFFDF9 0%, #F7F1E7 100%) !important;
  background-color: #FFFDF9 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.78) !important;
  border-radius: 18px !important;
  margin: 0.55rem 0.85rem 0.1rem !important;
  padding: 0.62rem 0.82rem !important;
  box-shadow: 0 10px 22px -14px rgba(30, 36, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html.dark #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView > div:first-child,
body.dark-theme #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView > div:first-child {
  background: #1B222A !important;
  border: 1px solid rgba(86, 150, 178, 0.26) !important;
  border-radius: 18px !important;
  margin: 0.55rem 0.85rem 0.1rem !important;
  padding: 0.62rem 0.82rem !important;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.52) !important;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child > div {
  gap: 0.48rem !important;
}

@media (min-width: 769px) {
  #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child {
    margin: 0.85rem auto 0.2rem !important;
    width: calc(100% - 2.5rem) !important;
    max-width: 72rem !important;
    padding: 0.75rem 1rem !important;
  }
}

html:not(.dark) #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child .w-9,
body.light-theme #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child .w-9 {
  width: 2.05rem !important;
  height: 2.05rem !important;
  background: #EAF5EF !important;
  border: 1px solid rgba(45, 107, 79, 0.26) !important;
  color: #2D6B4F !important;
  border-radius: 11px !important;
  font-size: 0.9rem !important;
  box-shadow: none !important;
}

html:not(.dark) #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child .w-9 i,
body.light-theme #mainApp#mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView > div:first-child .w-9 i {
  color: #2D6B4F !important;
  -webkit-text-fill-color: #2D6B4F !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child .w-9,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child .w-9 {
  width: 2.05rem !important;
  height: 2.05rem !important;
  background: rgba(110, 163, 137, 0.18) !important;
  border: 1px solid rgba(110, 163, 137, 0.34) !important;
  color: #72C19C !important;
  border-radius: 11px !important;
  font-size: 0.9rem !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child .w-9 i,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child .w-9 i {
  color: #72C19C !important;
  -webkit-text-fill-color: #72C19C !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child h2,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child h2 {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #1B4D38 !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child h2,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child h2 {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #FAF6F0 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child p,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child p {
  color: #6B5B4D !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin-top: 0.05rem !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child p,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView > div:first-child p {
  color: #9FB1BF !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsTotalCountBadge,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsTotalCountBadge {
  background: #EAF5EF !important;
  color: #245A43 !important;
  border: 1px solid rgba(45, 107, 79, 0.26) !important;
  font-size: 0.72rem !important;
  padding: 0.04rem 0.5rem !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsTotalCountBadge,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsTotalCountBadge {
  background: rgba(110, 163, 137, 0.18) !important;
  color: #72C19C !important;
  border: 1px solid rgba(110, 163, 137, 0.34) !important;
  font-size: 0.72rem !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView #classroomsSearchInput,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView#classroomsLobbyView#classroomsLobbyView#classroomsLobbyView #classroomsSearchInput {
  background: #F6EFE6 !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  border-radius: 12px !important;
  color: #1E242B !important;
  padding-top: 0.38rem !important;
  padding-bottom: 0.38rem !important;
  font-size: 0.82rem !important;
  height: 2.15rem !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsSearchInput:focus,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsSearchInput:focus {
  border-color: #4A7D66 !important;
  box-shadow: 0 0 0 2.5px rgba(74, 125, 102, 0.16) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsSearchInput,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsSearchInput {
  background: #242D37 !important;
  border: 1px solid rgba(86, 150, 178, 0.28) !important;
  border-radius: 12px !important;
  color: #FAF6F0 !important;
  padding-top: 0.38rem !important;
  padding-bottom: 0.38rem !important;
  font-size: 0.82rem !important;
  height: 2.15rem !important;
}

#mainApp#mainApp.app-inside-shell #createClassroomBtn {
  background: linear-gradient(135deg, #E59238 0%, #C26B22 100%) !important;
  color: #FFFDF9 !important;
  border: 1px solid rgba(255, 240, 210, 0.45) !important;
  border-radius: 12px !important;
  padding: 0 0.82rem !important;
  height: 2.15rem !important;
  box-shadow: 0 6px 14px -5px rgba(194, 107, 34, 0.52) !important;
}

#mainApp#mainApp.app-inside-shell #createClassroomBtn i,
#mainApp#mainApp.app-inside-shell #createClassroomBtn span {
  color: #FFFDF9 !important;
  -webkit-text-fill-color: #FFFDF9 !important;
}

/* 4. NATIVE MOBILE ROOM THREAD CARDS (Full-Width Tactile Ivory Cards) */
#mainApp#mainApp.app-inside-shell .inside-lobby-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem !important;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .inside-lobby-content-wrap {
  padding: 0.65rem 0.9rem 1.8rem !important;
}

@media (max-width: 768px) {
  #mainApp#mainApp.app-inside-shell #classroomsLobbyView .inside-lobby-content-wrap {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.72rem !important;
}

@media (min-width: 769px) {
  #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
  }
}

@media (min-width: 1180px) {
  #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 156px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center !important;
  gap: 0.38rem !important;
  padding: 0.85rem 0.65rem 0.72rem !important;
  border-radius: 20px !important;
  background: linear-gradient(148deg, #FFFFFF 0%, #F2F6F8 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.24) !important;
  box-shadow: 0 10px 24px -14px rgba(30, 36, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card:hover,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card:hover {
  border-color: rgba(74, 125, 102, 0.56) !important;
  box-shadow: 0 14px 28px -14px rgba(49, 91, 72, 0.24) !important;
  transform: translateY(-2px) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card:active,
body.light-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card:active {
  transform: scale(0.985) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card,
body.dark-theme #mainApp#mainApp.app-inside-shell #classroomsLobbyView #classroomsGridContainer > div.classroom-lobby-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 156px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center !important;
  gap: 0.38rem !important;
  padding: 0.85rem 0.65rem 0.72rem !important;
  border-radius: 20px !important;
  background: #1C232C !important;
  border: 1px solid rgba(86, 150, 178, 0.24) !important;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55) !important;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .classroom-lobby-card.is-live {
  max-width: none !important;
  border-color: rgba(225, 29, 72, 0.58) !important;
  box-shadow: 0 12px 26px -12px rgba(225, 29, 72, 0.25) !important;
}

#mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: center !important;
}

#mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-body > div.min-w-0 {
  width: 100% !important;
  flex: 0 0 auto !important;
  text-align: center !important;
  overflow: visible !important;
}

#mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-body > div.min-w-0 > div:first-child {
  justify-content: center !important;
}

#mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-body > div.min-w-0 > div:last-child {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.16rem !important;
  width: 100% !important;
}

#mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-body > div.min-w-0 > div:last-child > span.opacity-45 {
  display: none !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-icon,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-icon {
  width: 2.6rem !important;
  height: 2.6rem !important;
  border-radius: 13px !important;
  font-size: 1.05rem !important;
  background: linear-gradient(145deg, #6EA389 0%, #4A7D66 55%, #315B48 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(49, 91, 72, 0.42) !important;
  box-shadow: 0 4px 10px -3px rgba(49, 91, 72, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-icon i,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-icon i {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card:nth-child(even) .pryaska-card-icon,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card:nth-child(even) .pryaska-card-icon {
  background: linear-gradient(145deg, #5C9479 0%, #3E6E58 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(49, 91, 72, 0.42) !important;
}

html.dark #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-icon,
body.dark-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-icon {
  width: 2.6rem !important;
  height: 2.6rem !important;
  border-radius: 13px !important;
  font-size: 1.05rem !important;
  background: rgba(182, 121, 67, 0.20) !important;
  color: #E2B384 !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
}

html.dark #mainApp#mainApp.app-inside-shell .classroom-lobby-card:nth-child(even) .pryaska-card-icon,
body.dark-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card:nth-child(even) .pryaska-card-icon {
  background: rgba(86, 150, 178, 0.20) !important;
  color: #8CC2D8 !important;
  border-color: rgba(86, 150, 178, 0.34) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card h3,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card h3 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

html.dark #mainApp#mainApp.app-inside-shell .classroom-lobby-card h3,
body.dark-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card h3 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #FAF6F0 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-teacher,
html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-teacher *,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-teacher,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-teacher * {
  color: #315B48 !important;
  -webkit-text-fill-color: #315B48 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  justify-content: center !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-desc,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-desc {
  color: #546574 !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  text-align: center !important;
  width: 100% !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

html.dark #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-teacher,
body.dark-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-teacher {
  color: #E2B384 !important;
  font-size: 0.68rem !important;
  justify-content: center !important;
}

html.dark #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-desc,
body.dark-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .room-meta-desc {
  color: #9EB1BF !important;
  font-size: 0.64rem !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  text-align: center !important;
  width: 100% !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

#mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-card-actions {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  flex-wrap: wrap !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-enter-arrow,
body.light-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-enter-arrow {
  width: 1.78rem !important;
  height: 1.78rem !important;
  border-radius: 9999px !important;
  background: #EAF0F2 !important;
  color: #315B48 !important;
  border: 1px solid rgba(74, 125, 102, 0.28) !important;
  font-size: 0.72rem !important;
}

html.dark #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-enter-arrow,
body.dark-theme #mainApp#mainApp.app-inside-shell .classroom-lobby-card .pryaska-enter-arrow {
  width: 1.78rem !important;
  height: 1.78rem !important;
  border-radius: 9999px !important;
  background: #252E38 !important;
  color: #8CC2D8 !important;
  border: 1px solid rgba(86, 150, 178, 0.28) !important;
  font-size: 0.72rem !important;
}

/* 5. NATIVE INSIDE QUICK SERVICES 2x2 GRID */
#mainApp#mainApp.app-inside-shell .inside-quick-services-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  padding: 0 0.2rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-section-head-right {
  display: flex !important;
  align-items: center !important;
  gap: 0.62rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-section-icon-dot {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 12px !important;
  background: #E2EFF5 !important;
  color: #235B78 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  flex-shrink: 0 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-section-icon-dot,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-section-icon-dot {
  background: rgba(86, 150, 178, 0.20) !important;
  color: #8CC2D8 !important;
}

#mainApp#mainApp.app-inside-shell .inside-section-title {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: 1.32rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1E242B !important;
  margin: 0 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-section-title,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-section-title {
  color: #FAF6F0 !important;
}

#mainApp#mainApp.app-inside-shell .inside-section-sub {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #5C6D7B !important;
  margin: 0 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-section-sub,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-section-sub {
  color: #9FB1BF !important;
}

#mainApp#mainApp.app-inside-shell .inside-section-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.36rem 0.76rem !important;
  border-radius: 9999px !important;
  background: #FFFDF9 !important;
  border: 1px solid rgba(218, 194, 170, 0.85) !important;
  color: #235B78 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-section-more-btn,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-section-more-btn {
  background: #1C232C !important;
  border-color: rgba(86, 150, 178, 0.32) !important;
  color: #8CC2D8 !important;
}

#mainApp#mainApp.app-inside-shell .inside-quick-tiles-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.72rem !important;
}

@media (min-width: 1024px) {
  #mainApp#mainApp.app-inside-shell .inside-quick-tiles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

#mainApp#mainApp.app-inside-shell .inside-quick-tile {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  width: 100% !important;
  padding: 0.88rem 0.85rem !important;
  border-radius: 20px !important;
  background: #FFFDF9 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.72) !important;
  box-shadow: 0 10px 22px -14px rgba(30, 36, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  text-align: right !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, border-color 0.18s ease !important;
}

#mainApp#mainApp.app-inside-shell .inside-quick-tile:hover {
  border-color: rgba(182, 121, 67, 0.72) !important;
  transform: translateY(-2px) !important;
}

#mainApp#mainApp.app-inside-shell .inside-quick-tile:active {
  transform: scale(0.97) !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-quick-tile,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-quick-tile {
  background: #1C232C !important;
  border-color: rgba(86, 150, 178, 0.24) !important;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.55) !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-icon-box {
  width: 2.55rem !important;
  height: 2.55rem !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.08rem !important;
  flex-shrink: 0 !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-icon-copper {
  background: #F6E6D7 !important;
  color: #B67943 !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-icon-teal {
  background: #E2EFF5 !important;
  color: #235B78 !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-icon-cerulean {
  background: #E5F1F6 !important;
  color: #367896 !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-icon-charcoal {
  background: #ECEAE6 !important;
  color: #1E242B !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-tile-icon-copper {
  background: rgba(182, 121, 67, 0.22) !important;
  color: #E2B384 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-tile-icon-teal {
  background: rgba(35, 91, 120, 0.34) !important;
  color: #8CC2D8 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-tile-icon-cerulean {
  background: rgba(86, 150, 178, 0.22) !important;
  color: #7BB9D2 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-tile-icon-charcoal {
  background: rgba(218, 194, 170, 0.14) !important;
  color: #DAC2AA !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  gap: 0.1rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-title {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
  line-height: 1.3 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-tile-title,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-tile-title {
  color: #FAF6F0 !important;
}

#mainApp#mainApp.app-inside-shell .inside-tile-sub {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #5C6D7B !important;
  line-height: 1.25 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-tile-sub,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-tile-sub {
  color: #9EB1BF !important;
}

#mainApp#mainApp.app-inside-shell .inside-quick-mini-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-mini-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0.65rem 0.8rem !important;
  border-radius: 16px !important;
  background: rgba(255, 253, 249, 0.84) !important;
  border: 1px solid rgba(218, 194, 170, 0.72) !important;
  color: #235B78 !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}

#mainApp#mainApp.app-inside-shell .inside-mini-pill i {
  color: #B67943 !important;
}

#mainApp#mainApp.app-inside-shell .inside-mini-pill:active {
  transform: scale(0.97) !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-mini-pill,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-mini-pill {
  background: #1C232C !important;
  border-color: rgba(86, 150, 178, 0.24) !important;
  color: #FAF6F0 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-mini-pill i,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-mini-pill i {
  color: #E2B384 !important;
}

/* 6. NATIVE INSIDE BOTTOM TAB BAR (Mobile Lobby Only, Hidden on Desktop & Inside Chat Room) */
@media (min-width: 769px) {
  #mainApp#mainApp.app-inside-shell #insideAppBottomNav {
    display: none !important;
  }
}

#mainApp#mainApp.app-inside-shell.in-room-chat #insideAppBottomNav {
  display: none !important;
}

#mainApp#mainApp.app-inside-shell #insideAppBottomNav.inside-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 44 !important;
  background: rgba(255, 253, 249, 0.96) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border-top: 1px solid rgba(218, 194, 170, 0.85) !important;
  box-shadow: 0 -10px 30px -12px rgba(30, 36, 43, 0.18) !important;
  padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #insideAppBottomNav.inside-bottom-nav,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideAppBottomNav.inside-bottom-nav {
  background: rgba(22, 28, 35, 0.96) !important;
  border-top-color: rgba(86, 150, 178, 0.26) !important;
  box-shadow: 0 -12px 32px -12px rgba(0, 0, 0, 0.72) !important;
}

#mainApp#mainApp.app-inside-shell .inside-bottom-nav-inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: end !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  gap: 0.2rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-tab {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.22rem !important;
  padding: 0.22rem 0.15rem 0.12rem !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.14s ease, filter 0.16s ease !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-tab i {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-tab span {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Tab 1 (Rightmost in RTL): مێنیو -> Emerald Mint (#2D6B4F on #EAF5EF) */
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabMenu,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabMenu {
  color: #2D6B4F !important;
}
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabMenu i,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabMenu i {
  background: #EAF5EF !important;
  color: #2D6B4F !important;
  border: 1px solid rgba(45, 107, 79, 0.20) !important;
}

/* Tab 2: ژوورەکان -> Turquoise-Sapphire (#215E7A on #E8F3F8, stronger pill when active) */
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabRooms,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabRooms {
  color: #215E7A !important;
}
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabRooms i,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabRooms i {
  background: #EAF3F8 !important;
  color: #215E7A !important;
  border: 1px solid rgba(33, 94, 122, 0.22) !important;
}
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabRooms.is-active i,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabRooms.is-active i {
  background: linear-gradient(135deg, #2B7293 0%, #1D536D 100%) !important;
  color: #FFFDF9 !important;
  border-color: rgba(255, 253, 249, 0.45) !important;
  box-shadow: 0 5px 14px -4px rgba(33, 94, 122, 0.48) !important;
}

/* Tab 4 (Leftmost in RTL): سەرەکی -> Warm Chestnut Rose (#9B4D2E on #FCEEE8) */
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabHome,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabHome {
  color: #9B4D2E !important;
}
html:not(.dark) #mainApp#mainApp.app-inside-shell #insideTabHome i,
body.light-theme #mainApp#mainApp.app-inside-shell #insideTabHome i {
  background: #FCEEE8 !important;
  color: #9B4D2E !important;
  border: 1px solid rgba(155, 77, 46, 0.20) !important;
}

/* Dark Mode Variants for Inside Bottom Tabs */
html.dark #mainApp#mainApp.app-inside-shell #insideTabMenu,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabMenu {
  color: #72C19C !important;
}
html.dark #mainApp#mainApp.app-inside-shell #insideTabMenu i,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabMenu i {
  background: rgba(110, 163, 137, 0.16) !important;
  color: #72C19C !important;
  border: 1px solid rgba(110, 163, 137, 0.28) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #insideTabRooms,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabRooms {
  color: #74B4CF !important;
}
html.dark #mainApp#mainApp.app-inside-shell #insideTabRooms i,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabRooms i {
  background: rgba(116, 180, 207, 0.16) !important;
  color: #74B4CF !important;
  border: 1px solid rgba(116, 180, 207, 0.28) !important;
}
html.dark #mainApp#mainApp.app-inside-shell #insideTabRooms.is-active i,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabRooms.is-active i {
  background: linear-gradient(135deg, #357E9F 0%, #235B78 100%) !important;
  color: #FAF6F0 !important;
  box-shadow: 0 5px 14px -4px rgba(86, 150, 178, 0.45) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #insideTabHome,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabHome {
  color: #E29B7B !important;
}
html.dark #mainApp#mainApp.app-inside-shell #insideTabHome i,
body.dark-theme #mainApp#mainApp.app-inside-shell #insideTabHome i {
  background: rgba(226, 155, 123, 0.16) !important;
  color: #E29B7B !important;
  border: 1px solid rgba(226, 155, 123, 0.28) !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-tab:active {
  transform: scale(0.92) !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-fab-slot {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.18rem !important;
  position: relative !important;
  margin-top: 0 !important;
  padding: 0.14rem 0 0.12rem !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-fab-btn {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #E59238 0%, #C26B22 100%) !important;
  color: #FFFDF9 !important;
  border: 1.5px solid rgba(255, 253, 249, 0.85) !important;
  box-shadow:
    0 6px 16px -4px rgba(194, 107, 34, 0.58),
    0 0 12px rgba(229, 146, 56, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.16s ease !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-fab-btn i {
  color: #FFFDF9 !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-fab-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#mainApp#mainApp.app-inside-shell .inside-nav-fab-btn:active {
  transform: scale(0.93) !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-nav-fab-btn,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-nav-fab-btn {
  border-color: #161C23 !important;
}

#mainApp#mainApp.app-inside-shell .inside-nav-fab-label {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #B45A14 !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-nav-fab-label,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-nav-fab-label {
  color: #F0B775 !important;
}

/* 7. NATIVE INSIDE SERVICES BOTTOM SHEET */
#mainApp#mainApp.app-inside-shell #insideServicesSheet.inside-sheet-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 90 !important;
  background: rgba(18, 23, 29, 0.56) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

#mainApp#mainApp.app-inside-shell #insideServicesSheet.inside-sheet-overlay.hidden {
  display: none !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-panel {
  width: 100% !important;
  max-width: 520px !important;
  max-height: 84vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #FFFDF9 !important;
  border-radius: 28px 28px 0 0 !important;
  border-top: 1.5px solid rgba(218, 194, 170, 0.85) !important;
  padding: 0.5rem 1.05rem calc(1.2rem + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -16px 46px rgba(18, 23, 29, 0.28) !important;
  animation: appSheetSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-panel,
body.dark-theme #mainApp#mainApp.app-inside-shell .inside-sheet-panel {
  background: #1B222A !important;
  border-top-color: rgba(86, 150, 178, 0.32) !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-handle-wrap {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-handle {
  width: 2.75rem;
  height: 0.3rem;
  border-radius: 9999px;
  background: rgba(182, 121, 67, 0.44);
}

#mainApp#mainApp.app-inside-shell .inside-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(218, 194, 170, 0.65);
  flex-shrink: 0;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-header {
  border-bottom-color: rgba(86, 150, 178, 0.22);
}

#mainApp#mainApp.app-inside-shell .inside-sheet-head-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 13px;
  background: #E2EFF5;
  color: #235B78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-head-icon {
  background: rgba(86, 150, 178, 0.22);
  color: #8CC2D8;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-title {
  font-family: 'Scheherazade New', 'Amiri', serif !important;
  font-size: 1.38rem !important;
  font-weight: 700 !important;
  color: #1E242B !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-title {
  color: #FAF6F0 !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-sub {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #5C6D7B !important;
  margin: 0 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-sub {
  color: #9EB0BE !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-close-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  background: #F3ECE3 !important;
  color: #1E242B !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-close-btn {
  background: #252E38 !important;
  color: #FAF6F0 !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  overflow-y: auto;
  padding-bottom: 0.25rem;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  width: 100% !important;
  padding: 0.68rem 0.78rem !important;
  border-radius: 16px !important;
  background: #F7F1E9 !important;
  border: 1px solid rgba(218, 194, 170, 0.56) !important;
  text-align: right !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.14s ease !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row.hidden {
  display: none !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row:active {
  transform: scale(0.98) !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-row {
  background: #232B35 !important;
  border-color: rgba(86, 150, 178, 0.22) !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.98rem;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row-body strong {
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: #1E242B !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-row-body small {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #5A6B78 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-row-body strong {
  color: #FAF6F0 !important;
}

html.dark #mainApp#mainApp.app-inside-shell .inside-sheet-row-body small {
  color: #9EB0BE !important;
}

#mainApp#mainApp.app-inside-shell .inside-sheet-chevron {
  color: #B67943 !important;
  font-size: 0.78rem !important;
  opacity: 0.85;
}

/* 8. CHAT STAGE, PODIUM, COMPOSER & MEMBERS SIDEBAR HARMONIZATION */
html:not(.dark) #mainApp#mainApp.app-inside-shell #topPodiumWidget,
body.light-theme #mainApp#mainApp.app-inside-shell #topPodiumWidget {
  background: rgba(255, 253, 249, 0.94) !important;
  border-bottom: 1px solid rgba(218, 194, 170, 0.72) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #togglePodiumBtn,
body.light-theme #mainApp#mainApp.app-inside-shell #togglePodiumBtn {
  background: #F6E6D7 !important;
  border: 1px solid rgba(182, 121, 67, 0.40) !important;
  color: #8F511E !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #togglePodiumBtn i,
body.light-theme #mainApp#mainApp.app-inside-shell #togglePodiumBtn i {
  color: #B67943 !important;
}

html.dark #mainApp#mainApp.app-inside-shell #topPodiumWidget,
body.dark-theme #mainApp#mainApp.app-inside-shell #topPodiumWidget {
  background: rgba(24, 32, 40, 0.94) !important;
  border-bottom: 1px solid rgba(86, 150, 178, 0.22) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #chatInputBar,
body.light-theme #mainApp#mainApp.app-inside-shell #chatInputBar {
  background: rgba(255, 253, 249, 0.97) !important;
  border-top: 1px solid rgba(218, 194, 170, 0.78) !important;
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -8px 22px -12px rgba(30, 36, 43, 0.14) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #chatInputBar,
body.dark-theme #mainApp#mainApp.app-inside-shell #chatInputBar {
  background: rgba(22, 28, 35, 0.97) !important;
  border-top: 1px solid rgba(86, 150, 178, 0.24) !important;
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px)) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #chatInputBar .messenger-composer-pill,
body.light-theme #mainApp#mainApp.app-inside-shell #chatInputBar .messenger-composer-pill {
  background: #F3ECE3 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.78) !important;
  box-shadow: inset 0 1px 2px rgba(30, 36, 43, 0.05) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #chatInputBar .messenger-composer-pill:focus-within,
body.light-theme #mainApp#mainApp.app-inside-shell #chatInputBar .messenger-composer-pill:focus-within {
  border-color: #B67943 !important;
  background: #FFFDF9 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #chatInputBar #messageInput,
body.light-theme #mainApp#mainApp.app-inside-shell #chatInputBar #messageInput {
  color: #1E242B !important;
}

html.dark #mainApp#mainApp.app-inside-shell #chatInputBar .messenger-composer-pill,
body.dark-theme #mainApp#mainApp.app-inside-shell #chatInputBar .messenger-composer-pill {
  background: #222B35 !important;
  border: 1px solid rgba(86, 150, 178, 0.28) !important;
}

#mainApp#mainApp.app-inside-shell #chatInputBar #sendBtn {
  background: linear-gradient(145deg, #2F7190 0%, #235B78 100%) !important;
  color: #FAF6F0 !important;
  border: 1px solid rgba(255, 253, 249, 0.28) !important;
  box-shadow: 0 8px 18px -6px rgba(35, 91, 120, 0.58) !important;
}

#mainApp#mainApp.app-inside-shell #chatInputBar #sendBtn i {
  color: #FAF6F0 !important;
}

/* Members Sidebar Emerald-Copper Harmonization (Inside Native Shell) */
html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar {
  background: linear-gradient(180deg, #FBF8F3 0%, #EFE7DC 100%) !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #1E242B !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar > div:first-child,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar > div:first-child {
  background: linear-gradient(166deg, #FFFDF9 0%, #F4ECE1 100%) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.26) !important;
  box-shadow: 0 6px 16px -10px rgba(49, 91, 72, 0.14) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar > div:first-child h3,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar > div:first-child h3 {
  color: #1B4D38 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-weight: 900 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar > div:first-child i.fa-users,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar > div:first-child i.fa-users {
  color: #315B48 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebarCount,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebarCount {
  background: #EAF5EF !important;
  color: #245A43 !important;
  border: 1px solid rgba(45, 107, 79, 0.28) !important;
  font-weight: 800 !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar > div:nth-child(2),
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar > div:nth-child(2) {
  background: #F4EDE2 !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAll.bg-rose-600,
html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberStudents.bg-rose-600,
html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAdmins.bg-rose-600,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAll.bg-rose-600,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberStudents.bg-rose-600,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAdmins.bg-rose-600 {
  background: linear-gradient(135deg, #4A7D66 0%, #315B48 100%) !important;
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
  box-shadow: 0 5px 14px -5px rgba(49, 91, 72, 0.45) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar #membersSearchInput,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar #membersSearchInput {
  background: #FFFDF9 !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #1E242B !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersSidebar #membersSearchInput:focus,
body.light-theme #mainApp#mainApp.app-inside-shell #membersSidebar #membersSearchInput:focus {
  border-color: #4A7D66 !important;
  box-shadow: 0 0 0 3px rgba(74, 125, 102, 0.16) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersListContainer > div,
body.light-theme #mainApp#mainApp.app-inside-shell #membersListContainer > div {
  background: linear-gradient(166deg, #FFFDF9 0%, #F7EFE4 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  color: #1E242B !important;
  padding: 0.56rem 0.72rem !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersListContainer > div:hover,
body.light-theme #mainApp#mainApp.app-inside-shell #membersListContainer > div:hover {
  border-color: rgba(74, 125, 102, 0.44) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersListContainer > div .w-9.h-9.rounded-xl,
body.light-theme #mainApp#mainApp.app-inside-shell #membersListContainer > div .w-9.h-9.rounded-xl {
  background: linear-gradient(145deg, #FFFDF9 0%, #EFE5D6 100%) !important;
  border: 1.5px solid rgba(74, 125, 102, 0.26) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersListContainer > div button[onclick*="openUserProfileModal"],
body.light-theme #mainApp#mainApp.app-inside-shell #membersListContainer > div button[onclick*="openUserProfileModal"] {
  background: #EAF5EF !important;
  border: 1px solid rgba(45, 107, 79, 0.22) !important;
  color: #2D6B4F !important;
  border-radius: 0.65rem !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #membersListContainer > div button[onclick*="openUserProfileModal"]:hover,
body.light-theme #mainApp#mainApp.app-inside-shell #membersListContainer > div button[onclick*="openUserProfileModal"]:hover {
  background: linear-gradient(135deg, #4A7D66 0%, #315B48 100%) !important;
  color: #FFFDF9 !important;
}

/* Role Pills Inside Members Sidebar */
html:not(.dark) #membersListContainer .role-text-admin,
body.light-theme #membersListContainer .role-text-admin {
  background: #E6F4EC !important;
  color: #1F5B42 !important;
  border: 1px solid rgba(45, 107, 79, 0.28) !important;
  border-radius: 9999px !important;
  padding: 0.14rem 0.56rem !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

html:not(.dark) #membersListContainer .role-text-teacher,
body.light-theme #membersListContainer .role-text-teacher {
  background: #FFF3DB !important;
  color: #9E5A1E !important;
  border: 1px solid rgba(182, 121, 67, 0.34) !important;
  border-radius: 9999px !important;
  padding: 0.14rem 0.56rem !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

html:not(.dark) #membersListContainer .role-pill-super-admin,
body.light-theme #membersListContainer .role-pill-super-admin {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  color: #92400E !important;
  border: 1px solid rgba(180, 83, 9, 0.34) !important;
}

html.dark #membersListContainer .role-text-admin,
body.dark-theme #membersListContainer .role-text-admin {
  background: rgba(110, 163, 137, 0.16) !important;
  color: #72C19C !important;
  border: 1px solid rgba(110, 163, 137, 0.32) !important;
  border-radius: 9999px !important;
  padding: 0.14rem 0.56rem !important;
  font-size: 10px !important;
}

html.dark #membersListContainer .role-text-teacher,
body.dark-theme #membersListContainer .role-text-teacher {
  background: rgba(182, 121, 67, 0.18) !important;
  color: #F0B775 !important;
  border: 1px solid rgba(182, 121, 67, 0.35) !important;
  border-radius: 9999px !important;
  padding: 0.14rem 0.56rem !important;
  font-size: 10px !important;
}

html.dark #membersListContainer .role-pill-super-admin,
body.dark-theme #membersListContainer .role-pill-super-admin {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

html.dark #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAll.bg-rose-600,
html.dark #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberStudents.bg-rose-600,
html.dark #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAdmins.bg-rose-600,
body.dark-theme #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAll.bg-rose-600,
body.dark-theme #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberStudents.bg-rose-600,
body.dark-theme #mainApp#mainApp.app-inside-shell #membersSidebar #tabMemberAdmins.bg-rose-600 {
  background: linear-gradient(135deg, #4A7D66 0%, #315B48 100%) !important;
  border-color: rgba(110, 163, 137, 0.42) !important;
  color: #FAF6F0 !important;
}

/* Slide-Out Drawer Sage-Emerald & Mist Gray Sheet Polish */
html:not(.dark) #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel,
body.light-theme #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel {
  background: linear-gradient(180deg, #E2E7EC 0%, #D5DCE4 100%) !important;
  background-color: #DCE2E8 !important;
  border-left: 1.5px solid rgba(74, 125, 102, 0.26) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel > div:first-child,
body.light-theme #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel > div:first-child {
  background: linear-gradient(156deg, #6EA389 0%, #4A7D66 55%, #315B48 100%) !important;
  border-bottom: 1.5px solid rgba(182, 121, 67, 0.44) !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel > div:first-child h3,
body.light-theme #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel > div:first-child h3 {
  color: #FAF6F0 !important;
  font-family: 'Aref Ruqaa', 'Scheherazade New', serif !important;
  font-size: 1.2rem !important;
}

html:not(.dark) #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel > div:first-child p,
body.light-theme #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel > div:first-child p {
  color: #E2EFE8 !important;
}

/* 9. MOBILE-SPECIFIC NATIVE APP CHROME & DECLUTTERING (<= 768px) */
@media (max-width: 768px) {
  /* Curved Kingfisher top bar in Lobby */
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header {
    border-radius: 0 0 22px 22px !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* In Lobby: hide redundant header buttons that live in #insideAppBottomNav */
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header #mainMenuBtn,
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header #headerHomeLandingBtn,
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header #dreamAdminNavBtn {
    display: none !important;
  }

  /* In Lobby: generous User Profile Pill + always-visible Brand Title & Online Count */
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header div[onclick="openMyProfile()"] {
    max-width: 175px !important;
  }

  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header div[onclick="showLogoPopupAnimation(this)"] > div:first-child {
    display: block !important;
  }

  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) > header h2 {
    font-size: 1.02rem !important;
    max-width: 120px !important;
  }

  /* Inside Chat Room: crisp Telegram-style compact top bar */
  #mainApp#mainApp.app-inside-shell.in-room-chat > header {
    border-radius: 0 !important;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  #mainApp#mainApp.app-inside-shell.in-room-chat > header div[onclick="openMyProfile()"],
  #mainApp#mainApp.app-inside-shell.in-room-chat > header #btnThemeToggle,
  #mainApp#mainApp.app-inside-shell.in-room-chat > header #headerHomeLandingBtn,
  #mainApp#mainApp.app-inside-shell.in-room-chat > header #dreamAdminNavBtn,
  #mainApp#mainApp.app-inside-shell.in-room-chat > header div[onclick="showLogoPopupAnimation(this)"] {
    display: none !important;
  }

  #mainApp#mainApp.app-inside-shell.in-room-chat > header #mainMenuBtn {
    display: inline-flex !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 13px !important;
  }

  #mainApp#mainApp.app-inside-shell.in-room-chat > header #liveLessonNavBtn {
    width: auto !important;
    height: 2.35rem !important;
    padding: 0 0.72rem !important;
  }

  #mainApp#mainApp.app-inside-shell.in-room-chat > header #liveLessonNavBtn > span:nth-of-type(2) {
    display: inline !important;
    font-size: 0.78rem !important;
  }

  #mainApp#mainApp.app-inside-shell.in-room-chat > header #headerActiveRoomBadge {
    max-width: 165px !important;
  }

  /* Rounded slide-out drawer on mobile */
  #mainApp#mainApp.app-inside-shell #mainMenuDrawerPanel {
    border-radius: 26px 0 0 26px !important;
    overflow: hidden !important;
  }

  /* Zero Mobile Duplication: hide drawer items that already live on Mobile Lobby / Center FAB */
  #mainApp#mainApp.app-inside-shell.mobile-has-lessons-fab #mainMenuDrawerPanel #drawerRecordedLessonsBtn {
    display: none !important;
  }

  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) #mainMenuDrawerPanel #drawerThemeToggleBtn,
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) #mainMenuDrawerPanel #drawerHomeLandingBtn,
  #mainApp#mainApp.app-inside-shell:not(.in-room-chat) #mainMenuDrawerPanel > div[onclick*="openMyProfile"] {
    display: none !important;
  }

  /* Native Mobile Modal Sheets */
  #userProfileModalDialog,
  #libraryModal > div,
  #recordedLessonsModal > div,
  #questionsArchiveModal > div,
  #leaderboardModal > div,
  #complaintsModal > div {
    border-radius: 24px !important;
  }
}

/* ==========================================================================
   FINAL GLOBAL POLISH: SIDEBAR CONTAINMENT, DRAWER CONTRAST, MODALS & SCROLLBAR
   ========================================================================== */

/* 1. Prevent #membersSidebar from intruding onto mobile viewport (<768px) */
@media (max-width: 767px) {
  #mainApp#mainApp.app-inside-shell #membersSidebar.translate-x-full {
    transform: translate3d(110%, 0, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #mainApp#mainApp.app-inside-shell #membersSidebar.translate-x-0 {
    display: flex !important;
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* 2. Crisp Light-Mode Drawer "پرۆفایل <" Pill Contrast & Unified Top Card */
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerProfileText,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child,
html:not(.dark) #mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child *,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel #drawerProfileText,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child,
body.light-theme #mainMenuDrawerPanel#mainMenuDrawerPanel div[onclick*="openMyProfile"] > div:last-child > span:last-child * {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

/* 3. User Profile & Leadership Cards (#userProfileModalDialog) — Unified Kingfisher Surface */
html:not(.dark) #userProfileModalDialog#userProfileModalDialog,
body.light-theme #userProfileModalDialog#userProfileModalDialog {
  background: linear-gradient(170deg, #FFFDF9 0%, #F5EFE6 100%) !important;
  border: 1.5px solid rgba(182, 121, 67, 0.45) !important;
  color: #1E242B !important;
  box-shadow: 0 24px 60px -14px rgba(18, 23, 29, 0.34) !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog,
body.dark-theme #userProfileModalDialog#userProfileModalDialog {
  background: linear-gradient(170deg, #1E252D 0%, #151B22 100%) !important;
  border: 1.5px solid rgba(86, 150, 178, 0.36) !important;
  color: #FAF6F0 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog > div:first-child,
body.light-theme #userProfileModalDialog#userProfileModalDialog > div:first-child {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  padding: 0.8rem 0.9rem !important;
  margin-bottom: 0.9rem !important;
  background-color: #35604c !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none'%3E%3Cg stroke='%23FFFFFF' stroke-width='0.9' opacity='0.09'%3E%3Ccircle cx='28' cy='28' r='16'/%3E%3Cpath d='M88 18 A14 14 0 1 0 98 38 A11 11 0 1 1 88 18 Z' fill='%23FFFFFF' fill-opacity='0.06'/%3E%3Cpolygon points='60,44 76,60 60,76 44,60'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(150deg, #4A7D66 0%, #315B48 100%) !important;
  background-size: 120px 120px, 100% 100% !important;
  border-bottom: none !important;
  color: #FAF6F0 !important;
  box-shadow: 0 10px 24px -10px rgba(30, 56, 44, 0.42) !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog > div:first-child,
body.dark-theme #userProfileModalDialog#userProfileModalDialog > div:first-child {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  padding: 0.8rem 0.9rem !important;
  margin-bottom: 0.9rem !important;
  background-color: #193127 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none'%3E%3Cg stroke='%23FAF6F0' stroke-width='0.9' opacity='0.06'%3E%3Ccircle cx='28' cy='28' r='16'/%3E%3Cpolygon points='60,44 76,60 60,76 44,60'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(150deg, #274A3B 0%, #162921 100%) !important;
  background-size: 120px 120px, 100% 100% !important;
  border-bottom: none !important;
}

#userProfileModalDialog#userProfileModalDialog > div:first-child #profFullName,
#userProfileModalDialog#userProfileModalDialog > div:first-child #profUsername {
  color: #FAF6F0 !important;
  -webkit-text-fill-color: #FAF6F0 !important;
}

#userProfileModalDialog#userProfileModalDialog #profCloseBtn,
#userProfileModalDialog#userProfileModalDialog > div:first-child .menu-return-icon-btn {
  background: rgba(255, 253, 249, 0.16) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 253, 249, 0.30) !important;
  color: #FAF6F0 !important;
  border-radius: 12px !important;
  backdrop-filter: blur(6px) !important;
}

#userProfileModalDialog#userProfileModalDialog #profCloseBtn:hover,
#userProfileModalDialog#userProfileModalDialog > div:first-child .menu-return-icon-btn:hover {
  background: rgba(255, 253, 249, 0.28) !important;
  border-color: rgba(255, 253, 249, 0.50) !important;
  color: #FFFFFF !important;
}

#userProfileModalDialog#userProfileModalDialog #profAdvisorBtn {
  background: rgba(182, 121, 67, 0.28) !important;
  border: 1px solid rgba(244, 215, 182, 0.50) !important;
  color: #FAF6F0 !important;
}

#userProfileModalDialog#userProfileModalDialog #profAdvisorBtn i,
#userProfileModalDialog#userProfileModalDialog #profAdvisorBtn span {
  color: #FAF6F0 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog .prof-section-card,
html:not(.dark) #userProfileModalDialog#userProfileModalDialog .prof-stat-tile,
body.light-theme #userProfileModalDialog#userProfileModalDialog .prof-section-card,
body.light-theme #userProfileModalDialog#userProfileModalDialog .prof-stat-tile {
  background: #FFFDF9 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.78) !important;
  border-radius: 18px !important;
  color: #1E242B !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog .prof-inset-tile,
body.light-theme #userProfileModalDialog#userProfileModalDialog .prof-inset-tile {
  background: #F6EFE5 !important;
  border: 1px solid rgba(218, 194, 170, 0.72) !important;
  border-radius: 14px !important;
  color: #1E242B !important;
}

/* Single-layer sleek profile action cards */
html:not(.dark) #userProfileModalDialog#userProfileModalDialog .prof-action-card,
body.light-theme #userProfileModalDialog#userProfileModalDialog .prof-action-card {
  background: #FFFDF9 !important;
  border: 1.5px solid rgba(218, 194, 170, 0.76) !important;
  border-radius: 18px !important;
  color: #1E242B !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog .prof-action-card:hover,
body.light-theme #userProfileModalDialog#userProfileModalDialog .prof-action-card:hover {
  border-color: rgba(47, 102, 82, 0.42) !important;
  box-shadow: 0 8px 18px -6px rgba(30, 36, 43, 0.10) !important;
  transform: translateY(-1px);
}

html.dark #userProfileModalDialog#userProfileModalDialog .prof-action-card,
body.dark-theme #userProfileModalDialog#userProfileModalDialog .prof-action-card {
  background: rgba(31, 39, 48, 0.96) !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  border-radius: 18px !important;
  color: #FAF6F0 !important;
}

/* Distinct Semantic Accents inside Profile Cards (Light & Dark) */
#userProfileModalDialog#userProfileModalDialog .prof-icon-emerald,
#userProfileModalDialog#userProfileModalDialog .prof-arrow-emerald {
  background: #E9F3EE !important;
  border: 1px solid rgba(47, 102, 82, 0.26) !important;
  color: #2F6652 !important;
}

#userProfileModalDialog#userProfileModalDialog .prof-icon-copper,
#userProfileModalDialog#userProfileModalDialog .prof-arrow-copper {
  background: #F8EBDD !important;
  border: 1px solid rgba(182, 121, 67, 0.30) !important;
  color: #A2622E !important;
}

#userProfileModalDialog#userProfileModalDialog .prof-icon-sapphire,
#userProfileModalDialog#userProfileModalDialog .prof-arrow-sapphire {
  background: #E8F2F7 !important;
  border: 1px solid rgba(33, 94, 122, 0.26) !important;
  color: #215E7A !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog .prof-icon-emerald,
html.dark #userProfileModalDialog#userProfileModalDialog .prof-arrow-emerald {
  background: rgba(47, 102, 82, 0.24) !important;
  border-color: rgba(142, 201, 173, 0.32) !important;
  color: #8ec9ad !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog .prof-icon-copper,
html.dark #userProfileModalDialog#userProfileModalDialog .prof-arrow-copper {
  background: rgba(182, 121, 67, 0.22) !important;
  border-color: rgba(230, 170, 104, 0.34) !important;
  color: #e6aa68 !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog .prof-icon-sapphire,
html.dark #userProfileModalDialog#userProfileModalDialog .prof-arrow-sapphire {
  background: rgba(33, 94, 122, 0.26) !important;
  border-color: rgba(110, 182, 214, 0.32) !important;
  color: #7dc5e3 !important;
}

/* Executive Card Emerald + Copper Alignment (replaces old blue #235B78) */
html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profExecCardRoleBadge,
body.light-theme #userProfileModalDialog#userProfileModalDialog #profExecCardRoleBadge {
  background: #EAF2ED !important;
  border: 1px solid rgba(47, 102, 82, 0.30) !important;
  color: #2F6652 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profExecCardAuthority,
body.light-theme #userProfileModalDialog#userProfileModalDialog #profExecCardAuthority {
  color: #2F6652 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profExecCardAccountType,
body.light-theme #userProfileModalDialog#userProfileModalDialog #profExecCardAccountType {
  color: #8c5424 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profExecCardAuthority i {
  color: #2F6652 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profExecCardAccountType i {
  color: #B67943 !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog #profExecCardRoleBadge {
  background: rgba(47, 102, 82, 0.26) !important;
  border-color: rgba(142, 201, 173, 0.32) !important;
  color: #8ec9ad !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog #profExecCardAuthority {
  color: #8ec9ad !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog #profExecCardAccountType {
  color: #e6aa68 !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profLogoutBtn,
body.light-theme #userProfileModalDialog#userProfileModalDialog #profLogoutBtn {
  background: #FDF2F2 !important;
  border: 1.5px solid rgba(190, 18, 60, 0.26) !important;
  color: #B91C1C !important;
  border-radius: 14px !important;
}

html:not(.dark) #userProfileModalDialog#userProfileModalDialog #profLogoutBtn:hover,
body.light-theme #userProfileModalDialog#userProfileModalDialog #profLogoutBtn:hover {
  background: #B91C1C !important;
  border-color: #991b1b !important;
  color: #FFFFFF !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog #profLogoutBtn,
body.dark-theme #userProfileModalDialog#userProfileModalDialog #profLogoutBtn {
  background: rgba(190, 18, 60, 0.14) !important;
  border: 1px solid rgba(248, 113, 113, 0.32) !important;
  color: #fca5a5 !important;
  border-radius: 14px !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog #profLogoutBtn:hover,
body.dark-theme #userProfileModalDialog#userProfileModalDialog #profLogoutBtn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* 4. Dark Mode Native Scrollbar Track & Thumb */
html.dark ::-webkit-scrollbar-track,
body.dark-theme ::-webkit-scrollbar-track {
  background: #12171D !important;
}

html.dark ::-webkit-scrollbar-thumb,
body.dark-theme ::-webkit-scrollbar-thumb {
  background: rgba(86, 150, 178, 0.44) !important;
  border-radius: 6px !important;
}

html.dark ::-webkit-scrollbar-thumb:hover,
body.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(182, 121, 67, 0.72) !important;
}

/* ==========================================================================
   5. AUTHENTIC 8-BADGE COLORS, COMPACT CHAT DOTS, 2-COL DRAWER & HARMONY
   ========================================================================== */

/* Explicit Dot Colors (independent of Tailwind JIT cache) */
.ibn-dot-blue { background-color: #0ea5e9 !important; }
.ibn-dot-green { background-color: #10b981 !important; }
.ibn-dot-yellow { background-color: #eab308 !important; }
.ibn-dot-orange { background-color: #f97316 !important; }
.ibn-dot-white { background-color: #f8fafc !important; border: 1px solid #94a3b8 !important; }
.ibn-dot-red { background-color: #f43f5e !important; }
.ibn-dot-purple { background-color: #a855f7 !important; }
.ibn-dot-black { background-color: #1e293b !important; border: 1px solid #64748b !important; }

/* Compact Badge Dots Strip beside Usernames */
.ibn-badge-dots-pill {
  background: rgba(245, 239, 230, 0.92) !important;
  border: 1px solid rgba(128, 86, 61, 0.28) !important;
  box-shadow: 0 1px 2px rgba(30, 36, 43, 0.06);
}
html.dark .ibn-badge-dots-pill,
body.dark-theme .ibn-badge-dots-pill {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}
.ibn-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}

/* Per-Badge Authentic Active Card Styles in #profSpecialBadgeAdminCard */
#profSpecialBadgeAdminCard button[data-badge-color] {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#profSpecialBadgeAdminCard #badgeBtnBlue.badge-is-active {
  background: rgba(14, 165, 233, 0.14) !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35) !important;
}
#profSpecialBadgeAdminCard #badgeBtnGreen.badge-is-active {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35) !important;
}
#profSpecialBadgeAdminCard #badgeBtnYellow.badge-is-active {
  background: rgba(234, 179, 8, 0.16) !important;
  border-color: #eab308 !important;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.38) !important;
}
#profSpecialBadgeAdminCard #badgeBtnOrange.badge-is-active {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.36) !important;
}
#profSpecialBadgeAdminCard #badgeBtnWhite.badge-is-active {
  background: rgba(248, 250, 252, 0.92) !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.45) !important;
}
html.dark #profSpecialBadgeAdminCard #badgeBtnWhite.badge-is-active,
body.dark-theme #profSpecialBadgeAdminCard #badgeBtnWhite.badge-is-active {
  background: rgba(241, 245, 249, 0.16) !important;
  border-color: #e2e8f0 !important;
}
#profSpecialBadgeAdminCard #badgeBtnRed.badge-is-active {
  background: rgba(244, 63, 94, 0.14) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.35) !important;
}
#profSpecialBadgeAdminCard #badgeBtnPurple.badge-is-active {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.36) !important;
}
#profSpecialBadgeAdminCard #badgeBtnBlack.badge-is-active {
  background: rgba(30, 41, 59, 0.16) !important;
  border-color: #334155 !important;
  box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.38) !important;
}
html.dark #profSpecialBadgeAdminCard #badgeBtnBlack.badge-is-active,
body.dark-theme #profSpecialBadgeAdminCard #badgeBtnBlack.badge-is-active {
  background: rgba(15, 23, 42, 0.72) !important;
  border-color: #94a3b8 !important;
}
#profSpecialBadgeAdminCard .badge-active-pill {
  background: #235B78 !important;
  color: #ffffff !important;
}
#profSpecialBadgeAdminCard #badgeBtnBlue .badge-active-pill { background: #0284c7 !important; }
#profSpecialBadgeAdminCard #badgeBtnGreen .badge-active-pill { background: #059669 !important; }
#profSpecialBadgeAdminCard #badgeBtnYellow .badge-active-pill { background: #ca8a04 !important; }
#profSpecialBadgeAdminCard #badgeBtnOrange .badge-active-pill { background: #ea580c !important; }
#profSpecialBadgeAdminCard #badgeBtnWhite .badge-active-pill { background: #475569 !important; }
#profSpecialBadgeAdminCard #badgeBtnRed .badge-active-pill { background: #e11d48 !important; }
#profSpecialBadgeAdminCard #badgeBtnPurple .badge-active-pill { background: #9333ea !important; }
#profSpecialBadgeAdminCard #badgeBtnBlack .badge-active-pill { background: #0f172a !important; }

/* 2-Column Clean Card Grid inside #mainMenuDrawerPanel */
#mainMenuDrawerPanel .drawer-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
  width: 100% !important;
  margin-bottom: 0.5rem !important;
}
#mainMenuDrawerPanel .drawer-tools-grid > .drawer-tool-btn,
#mainMenuDrawerPanel .drawer-tools-grid > button {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.45rem !important;
  padding: 0.68rem 0.75rem !important;
  min-height: 80px !important;
  margin-bottom: 0 !important;
  text-align: right !important;
  position: relative !important;
}
#mainMenuDrawerPanel .drawer-tools-grid > button > div.flex.items-center:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.42rem !important;
  width: 100% !important;
}
#mainMenuDrawerPanel .drawer-tools-grid .drawer-tool-icon-box {
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 0.72rem !important;
  font-size: 0.95rem !important;
}
#mainMenuDrawerPanel .drawer-tools-grid .drawer-tool-title {
  font-size: 0.78rem !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
#mainMenuDrawerPanel .drawer-tools-grid > button > .drawer-tool-badge,
#mainMenuDrawerPanel .drawer-tools-grid > button > .flex.items-center.gap-1\.5,
#mainMenuDrawerPanel .drawer-tools-grid > button > i.fa-chevron-left {
  position: absolute !important;
  top: 0.68rem !important;
  left: 0.68rem !important;
  width: auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  font-size: 0.62rem !important;
  z-index: 2 !important;
}

/* Harmonize Remaining Dark Slate Modals & Chat Cards in Light Heritage Mode */
html:not(.dark) div[id$="Modal"]:not(#authScreen):not(#dreamChatModal) :is(.bg-slate-900, .bg-slate-950, .bg-slate-800, .bg-slate-850, [class*="bg-slate-900/"], [class*="bg-slate-950/"], [class*="bg-slate-800/"]),
body.light-theme div[id$="Modal"]:not(#authScreen):not(#dreamChatModal) :is(.bg-slate-900, .bg-slate-950, .bg-slate-800, .bg-slate-850, [class*="bg-slate-900/"], [class*="bg-slate-950/"], [class*="bg-slate-800/"]) {
  background-color: #FFFDF9 !important;
  border-color: rgba(128, 86, 61, 0.24) !important;
  color: #1E242B !important;
}
html:not(.dark) div[id$="Modal"]:not(#authScreen) :is(.text-white, .text-slate-100, .text-slate-200, .text-slate-300),
body.light-theme div[id$="Modal"]:not(#authScreen) :is(.text-white, .text-slate-100, .text-slate-200, .text-slate-300) {
  color: #1E242B !important;
}
html:not(.dark) div[id$="Modal"]:not(#authScreen) :is(.text-slate-400, .text-slate-500),
body.light-theme div[id$="Modal"]:not(#authScreen) :is(.text-slate-400, .text-slate-500) {
  color: #5E4C3E !important;
}
html:not(.dark) div[id$="Modal"]:not(#authScreen) button:is([class*="bg-rose-600"], [class*="bg-amber-600"], [class*="from-amber-500"], [class*="from-rose-600"]):not([class*="/20"]),
body.light-theme div[id$="Modal"]:not(#authScreen) button:is([class*="bg-rose-600"], [class*="bg-amber-600"], [class*="from-amber-500"], [class*="from-rose-600"]):not([class*="/20"]) {
  color: #ffffff !important;
}

/* Light Heritage Harmony for In-Chat Question / Attendance Cards & Compact Pinned Bar */
html:not(.dark) .question-glow,
body.light-theme .question-glow,
html:not(.dark) [data-attendance-session],
body.light-theme [data-attendance-session] {
  background: linear-gradient(166deg, #FFFDF9 0%, #F5EFE6 100%) !important;
  border-color: rgba(182, 121, 67, 0.42) !important;
  color: #1E242B !important;
}
html:not(.dark) .question-glow :is(.bg-slate-900, .bg-slate-950, .bg-slate-800, [class*="bg-slate-9"]),
body.light-theme .question-glow :is(.bg-slate-900, .bg-slate-950, .bg-slate-800, [class*="bg-slate-9"]),
html:not(.dark) [data-attendance-session] :is(.bg-slate-900, .bg-slate-950, .bg-slate-800, [class*="bg-slate-9"]),
body.light-theme [data-attendance-session] :is(.bg-slate-900, .bg-slate-950, .bg-slate-800, [class*="bg-slate-9"]) {
  background-color: rgba(244, 233, 216, 0.72) !important;
  border-color: rgba(128, 86, 61, 0.22) !important;
  color: #1E242B !important;
}
html:not(.dark) .question-glow :is(.text-white, .text-slate-100, .text-slate-200),
body.light-theme .question-glow :is(.text-white, .text-slate-100, .text-slate-200),
html:not(.dark) [data-attendance-session] :is(.text-white, .text-slate-100, .text-slate-200),
body.light-theme [data-attendance-session] :is(.text-white, .text-slate-100, .text-slate-200) {
  color: #1E242B !important;
}
html:not(.dark) #activeQuestionSticky .pinned-question-chip,
body.light-theme #activeQuestionSticky .pinned-question-chip {
  background: linear-gradient(166deg, #FFFDF9 0%, #EFE3D4 100%) !important;
  border-color: rgba(182, 121, 67, 0.45) !important;
  color: #1E242B !important;
}
html:not(.dark) #activeQuestionSticky .pinned-question-chip .pinned-question-text,
body.light-theme #activeQuestionSticky .pinned-question-chip .pinned-question-text {
  color: #1E242B !important;
}

/* Dream Chat Dark-Mode Harmony for Voice Guide & Record Button */
html.dark #dreamVoiceOnlyGuide,
body.dark-theme #dreamVoiceOnlyGuide {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  color: #fde68a !important;
}
html.dark #dreamChatModal #dreamRecordVoiceBtn,
body.dark-theme #dreamChatModal #dreamRecordVoiceBtn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}

/* Crisp White Ink Protection for Active Emerald/Copper Controls & Bubbles in #dreamAdminModal & #dreamChatModal */
#dreamAdminSessionsSidebar button#dreamTabAllBtn.bg-\[\#2F6652\],
#dreamAdminSessionsSidebar button#dreamTabInterpretedBtn.bg-\[\#2F6652\] {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #ffffff !important;
}
#dreamAdminSessionsSidebar button#dreamTabUninterpretedBtn.bg-\[\#B67943\] {
  background: linear-gradient(135deg, #B67943 0%, #985e2d 100%) !important;
  color: #ffffff !important;
}
#dreamAdminSessionsSidebar button#dreamTabAllBtn.bg-\[\#2F6652\] *,
#dreamAdminSessionsSidebar button#dreamTabUninterpretedBtn.bg-\[\#B67943\] *,
#dreamAdminSessionsSidebar button#dreamTabInterpretedBtn.bg-\[\#2F6652\] *,
html:not(.dark) #dreamAdminModal #adminStartCallBtn,
html:not(.dark) #dreamAdminModal #adminStartCallBtn *,
html:not(.dark) #dreamAdminModal #dreamAdminInterpretBtn.bg-\[\#2F6652\],
html:not(.dark) #dreamAdminModal #dreamAdminInterpretBtn.bg-\[\#2F6652\] *,
html:not(.dark) #dreamAdminModal #dreamAdminInputBar button[onclick*="sendDreamTextMessage"],
html:not(.dark) #dreamAdminModal #dreamAdminInputBar button[onclick*="sendDreamTextMessage"] *,
html:not(.dark) #dreamAdminModal #dreamAdminVoiceBar button[onclick*="stopAndSendDreamVoice"],
html:not(.dark) #dreamAdminModal #dreamAdminVoiceBar button[onclick*="stopAndSendDreamVoice"] *,
html:not(.dark) :is(#dreamAdminMessagesContainer, #dreamMessagesContainer) [class*="from-[#2F6652]"],
html:not(.dark) :is(#dreamAdminMessagesContainer, #dreamMessagesContainer) [class*="from-[#2F6652]"] > p,
html:not(.dark) :is(#dreamAdminMessagesContainer, #dreamMessagesContainer) [class*="from-[#2F6652]"] > div:first-child :is(span, i),
html:not(.dark) :is(#dreamAdminMessagesContainer, #dreamMessagesContainer) [class*="from-[#2F6652]"] > div.space-y-1\.5 > span {
  color: #ffffff !important;
}

html:not(.dark) :is(#dreamAdminMessagesContainer, #dreamMessagesContainer) .dream-welcome-banner-card {
  text-align: right !important;
}

/* ==========================================================================
   CUSTOM PRIVATE GROUP CHAT (#customGroupChatModal) — EMERALD & COPPER MANUSCRIPT POLISH
   ========================================================================== */
html:not(.dark) #customGroupModalHeader#customGroupModalHeader,
body.light-theme #customGroupModalHeader#customGroupModalHeader {
  background: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  box-shadow: 0 2px 10px -4px rgba(56, 40, 28, 0.10) !important;
}

html.dark #customGroupModalHeader#customGroupModalHeader,
body.dark-theme #customGroupModalHeader#customGroupModalHeader {
  background: linear-gradient(165deg, #1E252D 0%, #161B22 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.26) !important;
}

#customGroupModalHeader#customGroupModalHeader #customGroupCloseBtn,
#customGroupModalHeader#customGroupModalHeader .menu-return-icon-btn {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.75rem !important;
}

html:not(.dark) #customGroupModalHeader#customGroupModalHeader .menu-return-icon-btn,
body.light-theme #customGroupModalHeader#customGroupModalHeader .menu-return-icon-btn,
html:not(.dark) #customGroupModalHeader#customGroupModalHeader #customGroupCloseBtn,
body.light-theme #customGroupModalHeader#customGroupModalHeader #customGroupCloseBtn {
  background: rgba(255, 253, 249, 0.90) !important;
  background-image: none !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #3B4650 !important;
  box-shadow: 0 1px 3px rgba(56, 40, 28, 0.08) !important;
}

html:not(.dark) #customGroupModalHeader#customGroupModalHeader .menu-return-icon-btn:hover,
body.light-theme #customGroupModalHeader#customGroupModalHeader .menu-return-icon-btn:hover {
  background: #2F6652 !important;
  border-color: #2F6652 !important;
  color: #ffffff !important;
}

html:not(.dark) #customGroupModalHeader#customGroupModalHeader #customGroupCloseBtn:hover,
body.light-theme #customGroupModalHeader#customGroupModalHeader #customGroupCloseBtn:hover {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.32) !important;
  color: #b91c1c !important;
}

html:not(.dark) #customGroupModalHeader#customGroupModalHeader #customGroupManageBtn,
body.light-theme #customGroupModalHeader#customGroupModalHeader #customGroupManageBtn {
  height: 2rem !important;
  background: #F8EBDD !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
  color: #8c5424 !important;
  border-radius: 0.75rem !important;
}

html:not(.dark) #customGroupModalHeader#customGroupModalHeader #customGroupManageBtn:hover,
body.light-theme #customGroupModalHeader#customGroupModalHeader #customGroupManageBtn:hover {
  background: #B67943 !important;
  border-color: #B67943 !important;
  color: #ffffff !important;
}

html:not(.dark) #customGroupModalHeader#customGroupModalHeader #customGroupManageBtn:hover * {
  color: #ffffff !important;
}

/* Smooth Seamless Background in #customGroupMessagesContainer (zero tile seam) */
html:not(.dark) #customGroupChatModal #customGroupMessagesContainer#customGroupMessagesContainer,
body.light-theme #customGroupChatModal #customGroupMessagesContainer#customGroupMessagesContainer {
  background-color: #F5EFE4 !important;
  background-image:
    radial-gradient(ellipse 85% 45% at 50% 0%, rgba(47, 102, 82, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(182, 121, 67, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, #F8F3EA 0%, #EFE6D6 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
}

html.dark #customGroupChatModal #customGroupMessagesContainer#customGroupMessagesContainer,
body.dark-theme #customGroupChatModal #customGroupMessagesContainer#customGroupMessagesContainer {
  background-color: #141920 !important;
  background-image: radial-gradient(ellipse 85% 45% at 50% 0%, rgba(47, 102, 82, 0.12) 0%, transparent 70%) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
}

/* Composer Dock & Quick Advisor Tag Pill */
html:not(.dark) #customGroupInputBar#customGroupInputBar,
body.light-theme #customGroupInputBar#customGroupInputBar {
  background: #F6EFE4 !important;
  border-top: 1px solid rgba(156, 120, 78, 0.26) !important;
  box-shadow: 0 -6px 18px -8px rgba(56, 40, 28, 0.10) !important;
}

html:not(.dark) #customGroupInputBar#customGroupInputBar .messenger-composer-pill,
body.light-theme #customGroupInputBar#customGroupInputBar .messenger-composer-pill {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(47, 102, 82, 0.26) !important;
}

html:not(.dark) #customGroupInputBar#customGroupInputBar .messenger-composer-pill:focus-within {
  border-color: rgba(47, 102, 82, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(47, 102, 82, 0.12) !important;
}

html:not(.dark) #customGroupInputBar#customGroupInputBar #customGroupQuickTagBar button,
body.light-theme #customGroupInputBar#customGroupInputBar #customGroupQuickTagBar button {
  background: #F8EBDD !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
  color: #8c5424 !important;
}

html:not(.dark) #customGroupInputBar#customGroupInputBar #customGroupQuickTagBar button:hover,
body.light-theme #customGroupInputBar#customGroupInputBar #customGroupQuickTagBar button:hover {
  background: #B67943 !important;
  border-color: #B67943 !important;
  color: #ffffff !important;
}

html:not(.dark) #customGroupInputBar#customGroupInputBar #customGroupQuickTagBar button:hover *,
html:not(.dark) #customGroupChatForm#customGroupChatForm #customGroupSendBtn,
html:not(.dark) #customGroupChatForm#customGroupChatForm #customGroupSendBtn * {
  color: #ffffff !important;
}

/* ==========================================================================
   FOUR HARMONIZED MODALS (#questionsArchiveModal, #libraryModal, #libraryVolumesModal, #leaderboardModal, #complaintsModal)
   Emerald (#2F6652), Copper (#B67943), Warm Manuscript (#FAF6F0 / #FFFDF9), Semantic Crimson (#B91C1C)
   ========================================================================== */

/* 1. Outer Shell & Edge-to-Edge Manuscript Headers (Light Mode) */
html:not(.dark) #questionsArchiveModal#questionsArchiveModal > div,
body.light-theme #questionsArchiveModal#questionsArchiveModal > div,
html:not(.dark) #libraryModal#libraryModal > div,
body.light-theme #libraryModal#libraryModal > div,
html:not(.dark) #libraryVolumesModal#libraryVolumesModal > div,
body.light-theme #libraryVolumesModal#libraryVolumesModal > div,
html:not(.dark) #leaderboardModal#leaderboardModal > div,
body.light-theme #leaderboardModal#leaderboardModal > div,
html:not(.dark) #complaintsModal#complaintsModal > div,
body.light-theme #complaintsModal#complaintsModal > div {
  background: linear-gradient(172deg, #FBF8F2 0%, #F2E8D8 100%) !important;
  background-image: linear-gradient(172deg, #FBF8F2 0%, #F2E8D8 100%) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.34) !important;
  color: #2B2118 !important;
  padding: 0 !important;
  box-shadow: 0 24px 56px -14px rgba(42, 24, 10, 0.28) !important;
}

html:not(.dark) #questionsArchiveHeader#questionsArchiveHeader,
body.light-theme #questionsArchiveHeader#questionsArchiveHeader,
html:not(.dark) #libraryModalHeader#libraryModalHeader,
body.light-theme #libraryModalHeader#libraryModalHeader,
html:not(.dark) #libraryVolumesHeader#libraryVolumesHeader,
body.light-theme #libraryVolumesHeader#libraryVolumesHeader,
html:not(.dark) #leaderboardModalHeader#leaderboardModalHeader,
body.light-theme #leaderboardModalHeader#leaderboardModalHeader,
html:not(.dark) #complaintsModalHeader#complaintsModalHeader,
body.light-theme #complaintsModalHeader#complaintsModalHeader {
  background: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  background-image: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  border-radius: 0 !important;
}

html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) h3,
html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) h4,
body.light-theme :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) h3,
body.light-theme :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) h4 {
  color: #241A12 !important;
}

html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) p,
body.light-theme :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) p {
  color: #6B5744 !important;
}

/* Unified Back (.menu-return-icon-btn) & Close (.modal-close-pill) Buttons in All 5 Headers */
html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) :is(.menu-return-icon-btn, .modal-close-pill),
body.light-theme :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) :is(.menu-return-icon-btn, .modal-close-pill) {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.72rem !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #36291D !important;
  box-shadow: 0 2px 6px rgba(42, 24, 10, 0.06) !important;
  transition: all 0.16s ease !important;
}

html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) :is(.menu-return-icon-btn, .modal-close-pill) i,
body.light-theme :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) :is(.menu-return-icon-btn, .modal-close-pill) i {
  color: inherit !important;
}

html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) .menu-return-icon-btn:hover {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.45) !important;
  color: #2F6652 !important;
}

html:not(.dark) :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) .modal-close-pill:hover {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.36) !important;
  color: #B91C1C !important;
}

/* Header Accent Badges per Modal */
html:not(.dark) #questionsArchiveHeader > div:first-child > div:first-child,
html:not(.dark) #libraryModalHeader > div:first-child > div:first-child,
html:not(.dark) #libraryVolumesHeader > div:first-child > div:first-child {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.35) !important;
  color: #FFFFFF !important;
}

html:not(.dark) #questionsArchiveHeader > div:first-child > div:first-child i,
html:not(.dark) #libraryModalHeader > div:first-child > div:first-child i,
html:not(.dark) #libraryVolumesHeader > div:first-child > div:first-child i {
  color: #FFFFFF !important;
}

html:not(.dark) #leaderboardModalHeader > div:first-child > div:first-child,
html:not(.dark) #complaintsModalHeader > div:first-child > div:first-child {
  background: linear-gradient(145deg, #FAF0E2 0%, #F2DFC6 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.38) !important;
  color: #B67943 !important;
}

html:not(.dark) #leaderboardModalHeader > div:first-child > div:first-child i,
html:not(.dark) #complaintsModalHeader > div:first-child > div:first-child i {
  color: #B67943 !important;
}

/* Framed Empty-State Icon Containers across Modals */
html:not(.dark) :is(#questionsArchiveModal, #libraryModal, #leaderboardModal, #complaintsModal) .modal-empty-icon-box,
body.light-theme :is(#questionsArchiveModal, #libraryModal, #leaderboardModal, #complaintsModal) .modal-empty-icon-box {
  background: linear-gradient(145deg, #E9F3EE 0%, #DCECE4 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.24) !important;
  color: #2F6652 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px -6px rgba(47, 102, 82, 0.16) !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .modal-empty-icon-box {
  background: linear-gradient(145deg, #FAF0E2 0%, #F2DFC6 100%) !important;
  border-color: rgba(182, 121, 67, 0.30) !important;
  color: #B67943 !important;
}

html:not(.dark) :is(#questionsArchiveModal, #libraryModal, #leaderboardModal, #complaintsModal) .modal-empty-icon-box + p {
  color: #241A12 !important;
}

html:not(.dark) :is(#questionsArchiveModal, #libraryModal, #leaderboardModal, #complaintsModal) .modal-empty-icon-box + p + p {
  color: #6B5744 !important;
}

/* 2. QUESTIONS ARCHIVE & BANK (#questionsArchiveModal) */
html:not(.dark) #questionsArchiveModal#questionsArchiveModal #archiveSearchInput,
body.light-theme #questionsArchiveModal#questionsArchiveModal #archiveSearchInput {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
  box-shadow: inset 0 1px 2px rgba(42, 24, 10, 0.04) !important;
}

html:not(.dark) #questionsArchiveModal#questionsArchiveModal #archiveSearchInput:focus {
  border-color: #2F6652 !important;
  box-shadow: 0 0 0 3px rgba(47, 102, 82, 0.12) !important;
}

html:not(.dark) #questionsArchiveList > div.archive-question-card,
body.light-theme #questionsArchiveList > div.archive-question-card {
  background: linear-gradient(170deg, #FFFFFF 0%, #F7F1E7 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #2B2118 !important;
  box-shadow: 0 6px 18px -6px rgba(56, 40, 28, 0.10) !important;
}

html:not(.dark) #questionsArchiveList .archive-q-num-badge {
  background: linear-gradient(135deg, #B67943 0%, #9E6330 100%) !important;
  color: #FFFFFF !important;
}

html:not(.dark) #questionsArchiveList .archive-status-pill--revealed {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border-color: rgba(47, 102, 82, 0.28) !important;
}

html:not(.dark) #questionsArchiveList .archive-status-pill--pending {
  background: #FAF0E2 !important;
  color: #8C5424 !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
}

html:not(.dark) #questionsArchiveList .archive-question-box {
  background: #FAF6F0 !important;
  border: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #questionsArchiveList .archive-question-box > div:first-child {
  color: #9E6330 !important;
}

html:not(.dark) #questionsArchiveList .archive-question-box > div:last-child {
  color: #1F1812 !important;
}

html:not(.dark) #questionsArchiveList .archive-answer-box {
  background: #EDF6F1 !important;
  border: 1px solid rgba(47, 102, 82, 0.30) !important;
}

html:not(.dark) #questionsArchiveList .archive-answer-box > div:first-child {
  color: #2F6652 !important;
}

html:not(.dark) #questionsArchiveList .archive-answer-box > div:last-child {
  color: #1B3A2E !important;
}

html:not(.dark) #questionsArchiveList .archive-pending-box {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
  color: #7D4B21 !important;
}

html:not(.dark) #questionsArchiveList .archive-delete-btn {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.28) !important;
  color: #B91C1C !important;
}

html:not(.dark) #questionsArchiveList .archive-delete-btn:hover {
  background: #B91C1C !important;
  color: #FFFFFF !important;
}

html:not(.dark) #questionsArchiveList .archive-jump-btn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px -3px rgba(47, 102, 82, 0.30) !important;
}

/* 3. DIGITAL LIBRARY (#libraryModal & #libraryVolumesModal) */
html:not(.dark) #libraryModal#libraryModal #libStatsBadge,
body.light-theme #libraryModal#libraryModal #libStatsBadge {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border: 1px solid rgba(47, 102, 82, 0.25) !important;
}

html:not(.dark) #libraryModal#libraryModal #libOpenUploadBtn,
body.light-theme #libraryModal#libraryModal #libOpenUploadBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(47, 102, 82, 0.35) !important;
  box-shadow: 0 4px 12px -3px rgba(47, 102, 82, 0.28) !important;
}

html:not(.dark) #libraryModal#libraryModal #libOpenUploadBtn * {
  color: #FFFFFF !important;
}

html:not(.dark) #libraryModal#libraryModal #libViewSwitcherWrap {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  padding: 0.2rem !important;
}

html:not(.dark) #libraryModal#libraryModal #libViewSwitcherWrap button:not(.is-active) {
  background: transparent !important;
  color: #5C4A3A !important;
}

html:not(.dark) #libraryModal#libraryModal #libViewSwitcherWrap button.is-active {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(47, 102, 82, 0.22) !important;
}

html:not(.dark) #libraryModal#libraryModal #libViewSwitcherWrap button.is-active * {
  color: #FFFFFF !important;
}

html:not(.dark) #libraryModal#libraryModal #libraryUploadSection {
  background: linear-gradient(170deg, #FFFFFF 0%, #F9F4EC 100%) !important;
  border: 1.5px solid rgba(47, 102, 82, 0.22) !important;
  box-shadow: 0 8px 22px -8px rgba(56, 40, 28, 0.10) !important;
}

html:not(.dark) #libraryModal#libraryModal #libraryUploadSection > div:first-child {
  border-color: rgba(156, 120, 78, 0.20) !important;
}

html:not(.dark) #libraryModal#libraryModal #libraryUploadSection > div:first-child > div:first-child,
html:not(.dark) #libraryModal#libraryModal #libraryUploadSection > div:first-child > div:first-child * {
  color: #2F6652 !important;
}

html:not(.dark) #libraryModal#libraryModal #libraryUploadSection label {
  color: #36291D !important;
}

html:not(.dark) #libraryModal#libraryModal #libraryUploadSection #libSelectedFilesCount {
  color: #8C5424 !important;
  background: #FAF0E2 !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  padding: 0.1rem 0.5rem !important;
  border-radius: 999px !important;
}

html:not(.dark) #libraryModal#libraryModal :is(input[type="text"], select, textarea),
html:not(.dark) #libraryModal#libraryModal #librarySearchInput {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
}

html:not(.dark) #libraryModal#libraryModal :is(input[type="text"], select, textarea):focus,
html:not(.dark) #libraryModal#libraryModal #librarySearchInput:focus {
  border-color: #2F6652 !important;
  box-shadow: 0 0 0 3px rgba(47, 102, 82, 0.10) !important;
}

/* Uniform Clean File Picker Buttons (No harsh pink or dark navy!) */
html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input {
  background: #FAF6F0 !important;
  border: 1px dashed rgba(156, 120, 78, 0.38) !important;
  border-radius: 0.75rem !important;
  padding: 0.35rem 0.5rem !important;
  color: #5C4A3A !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input::file-selector-button,
html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input::-webkit-file-upload-button {
  background: #FAF0E2 !important;
  color: #8C5424 !important;
  border: 1px solid rgba(182, 121, 67, 0.34) !important;
  border-radius: 0.58rem !important;
  padding: 0.32rem 0.72rem !important;
  margin-inline-end: 0.55rem !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input--primary::file-selector-button,
html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input--primary::-webkit-file-upload-button {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border-color: rgba(47, 102, 82, 0.30) !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input--primary::file-selector-button:hover,
html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input--primary::-webkit-file-upload-button:hover {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input:not(.lib-file-input--primary)::file-selector-button:hover,
html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-file-input:not(.lib-file-input--primary)::-webkit-file-upload-button:hover {
  background: #B67943 !important;
  color: #FFFFFF !important;
}

html:not(.dark) #libraryModal#libraryModal #libUploadSubmitBtn,
html:not(.dark) #libraryVolumesModal#libraryVolumesModal #libVolAppendSubmitBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  background-image: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px -4px rgba(47, 102, 82, 0.32) !important;
}

html:not(.dark) #libraryModal#libraryModal #libUploadSubmitBtn *,
html:not(.dark) #libraryVolumesModal#libraryVolumesModal #libVolAppendSubmitBtn * {
  color: #FFFFFF !important;
}

/* Category Filter Chips */
html:not(.dark) #libraryModal#libraryModal #libCategoryChips .lib-cat-chip:not(.is-active) {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #36291D !important;
}

html:not(.dark) #libraryModal#libraryModal #libCategoryChips .lib-cat-chip:not(.is-active):hover {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.40) !important;
}

html:not(.dark) #libraryModal#libraryModal #libCategoryChips .lib-cat-chip.is-active {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border-color: rgba(47, 102, 82, 0.45) !important;
  color: #FFFFFF !important;
}

/* Library Book Grid & Author Cards */
html:not(.dark) #libraryModal#libraryModal .library-book-card,
html:not(.dark) #libraryModal#libraryModal .lib-author-section,
html:not(.dark) #libraryModal#libraryModal .lib-author-book-row {
  background: linear-gradient(170deg, #FFFFFF 0%, #F7F1E7 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
}

html:not(.dark) #libraryModal#libraryModal .library-book-card:hover {
  border-color: rgba(47, 102, 82, 0.50) !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-cat-tag,
html:not(.dark) #libraryModal#libraryModal .lib-author-count-pill {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border-color: rgba(47, 102, 82, 0.26) !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-vol-badge {
  background: #FAF0E2 !important;
  color: #8C5424 !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-single-badge {
  background: #F4EDE2 !important;
  color: #6B5744 !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-cover-frame {
  background: linear-gradient(145deg, #EDF6F1 0%, #FAF0E2 100%) !important;
  border-color: rgba(156, 120, 78, 0.26) !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-book-author,
html:not(.dark) #libraryModal#libraryModal .lib-book-author i {
  color: #8C5424 !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-read-btn,
html:not(.dark) #libraryVolumesModal#libraryVolumesModal .lib-read-btn {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border: 1px solid rgba(47, 102, 82, 0.28) !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-read-btn:hover,
html:not(.dark) #libraryVolumesModal#libraryVolumesModal .lib-read-btn:hover {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) #libraryModal#libraryModal .lib-author-open-btn {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-download-btn {
  background: #FFFFFF !important;
  color: #5C4A3A !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-download-btn:hover {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-delete-btn {
  background: #FEF2F2 !important;
  color: #B91C1C !important;
  border-color: rgba(185, 28, 28, 0.25) !important;
}

html:not(.dark) :is(#libraryModal, #libraryVolumesModal) .lib-delete-btn:hover {
  background: #B91C1C !important;
  color: #FFFFFF !important;
}

html:not(.dark) #libraryVolumesModal#libraryVolumesModal .lib-volume-row {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #libraryVolumesModal#libraryVolumesModal .lib-volume-icon {
  background: #E9F3EE !important;
}

html:not(.dark) #libraryVolumesModal#libraryVolumesModal #libVolModalDescWrap,
html:not(.dark) #libraryVolumesModal#libraryVolumesModal #libVolModalAdminSection {
  background: #F7F1E7 !important;
  border-color: rgba(156, 120, 78, 0.24) !important;
  color: #36291D !important;
}

html:not(.dark) #libraryVolumesModal#libraryVolumesModal #libVolDeleteBookBtn {
  color: #B91C1C !important;
}

/* 4. LEADERBOARD (#leaderboardModal) */
html:not(.dark) #leaderboardModal#leaderboardModal .leaderboard-promo-banner,
body.light-theme #leaderboardModal#leaderboardModal .leaderboard-promo-banner {
  background: linear-gradient(145deg, #FAF0E2 0%, #F4E6D3 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.30) !important;
  color: #5C4430 !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .leaderboard-promo-banner i {
  color: #B67943 !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal #leaderboardList > div.leaderboard-row-card,
body.light-theme #leaderboardModal#leaderboardModal #leaderboardList > div.leaderboard-row-card {
  background: linear-gradient(170deg, #FFFFFF 0%, #F8F2E8 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.26) !important;
  color: #241A12 !important;
  box-shadow: 0 4px 12px -4px rgba(56, 40, 28, 0.08) !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal #leaderboardList > div.leaderboard-row-card:hover {
  border-color: rgba(47, 102, 82, 0.45) !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .leaderboard-handle,
html:not(.dark) #leaderboardModal#leaderboardModal .leaderboard-count {
  color: #7A634E !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .rank-pill--default {
  background: #EFE6D6 !important;
  color: #5C4A3A !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .rank-pill--gold {
  background: linear-gradient(135deg, #E2A02E 0%, #B67943 100%) !important;
  color: #FFFFFF !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .rank-pill--silver {
  background: linear-gradient(135deg, #DCE2E8 0%, #B8C2CE 100%) !important;
  color: #242E38 !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal .rank-pill--bronze {
  background: linear-gradient(135deg, #C4844A 0%, #9E6330 100%) !important;
  color: #FFFFFF !important;
}

/* Override lime-green .star-badge inside #leaderboardModal with warm Gold/Copper pill */
html:not(.dark) #leaderboardModal#leaderboardModal .star-badge,
body.light-theme #leaderboardModal#leaderboardModal .star-badge {
  background: linear-gradient(145deg, #FAF0E2 0%, #F1DFC4 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
  color: #8C5424 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  text-shadow: none !important;
}

/* 5. COMPLAINTS & FEEDBACK MODAL (#complaintsModal) */
/* Neutralize legacy style.css tan gradient on .border-b and maroon spans */
html:not(.dark) #complaintsModal#complaintsModal .border-b,
html:not(.dark) #complaintsModal#complaintsModal [class*="bg-gradient-to-r"] {
  background: transparent !important;
  background-image: none !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsModalHeader {
  background: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs {
  background: #F1E7D8 !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs button:not(.is-active) {
  background: transparent !important;
  color: #5C4A3A !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs button:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.65) !important;
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs button.is-active {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px -3px rgba(47, 102, 82, 0.30) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs button.is-active * {
  color: #FFFFFF !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs button.is-active #complaintsCountBadge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsStaffTabs button:not(.is-active) #complaintsCountBadge {
  background: #E4D8C5 !important;
  color: #5C4A3A !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsToolbar {
  background: #EDF6F1 !important;
  border: 1px solid rgba(47, 102, 82, 0.22) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsPrivacyNotice {
  color: #36291D !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsPrivacyNotice .complaint-role-label {
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsRefreshBtn {
  background: #FFFFFF !important;
  border: 1px solid rgba(47, 102, 82, 0.28) !important;
  color: #2F6652 !important;
  box-shadow: 0 2px 6px rgba(42, 24, 10, 0.05) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsRefreshBtn * {
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsSecretBanner {
  background: #EDF6F1 !important;
  border: 1px solid rgba(47, 102, 82, 0.26) !important;
  color: #264A3B !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsSecretBanner i,
html:not(.dark) #complaintsModal#complaintsModal #complaintsSecretBanner span:first-child {
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsSecretBanner span:last-child {
  color: #3D5247 !important;
}

html:not(.dark) #complaintsModal#complaintsModal label {
  color: #36291D !important;
}

html:not(.dark) #complaintsModal#complaintsModal :is(#complaintSubjectInput, #complaintContentInput) {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
}

html:not(.dark) #complaintsModal#complaintsModal :is(#complaintSubjectInput, #complaintContentInput):focus {
  border-color: #2F6652 !important;
  box-shadow: 0 0 0 3px rgba(47, 102, 82, 0.12) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #submitComplaintBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  background-image: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px -4px rgba(47, 102, 82, 0.34) !important;
}

html:not(.dark) #complaintsModal#complaintsModal #submitComplaintBtn * {
  color: #FFFFFF !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-item-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-sender {
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-status-pill--resolved {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border-color: rgba(47, 102, 82, 0.28) !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-status-pill--pending {
  background: #FAF0E2 !important;
  color: #8C5424 !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-content-box {
  background: #FAF6F0 !important;
  border: 1px solid rgba(156, 120, 78, 0.22) !important;
  color: #241A12 !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-resolve-btn {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.30) !important;
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-resolve-btn:hover {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-delete-btn {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.28) !important;
  color: #B91C1C !important;
}

html:not(.dark) #complaintsModal#complaintsModal .complaint-delete-btn:hover {
  background: #B91C1C !important;
  color: #FFFFFF !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsModalFooter {
  background: #EFE6D6 !important;
  border-top: 1px solid rgba(156, 120, 78, 0.26) !important;
  color: #5C4A3A !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsModalFooter i {
  color: #2F6652 !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsModalFooter span {
  color: #5C4A3A !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsFooterCloseBtn {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #36291D !important;
}

html:not(.dark) #complaintsModal#complaintsModal #complaintsFooterCloseBtn:hover {
  background: #FAF0E2 !important;
}

/* 6. DARK MODE POLISH FOR ALL FOUR MODALS */
html.dark :is(#questionsArchiveModal, #libraryModal, #libraryVolumesModal, #leaderboardModal, #complaintsModal) > div,
body.dark-theme :is(#questionsArchiveModal, #libraryModal, #libraryVolumesModal, #leaderboardModal, #complaintsModal) > div {
  background: #171B21 !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  padding: 0 !important;
}

html.dark :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader),
body.dark-theme :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) {
  background: linear-gradient(165deg, #1E242C 0%, #161A20 100%) !important;
  border-bottom-color: rgba(182, 121, 67, 0.24) !important;
}

html.dark :is(#questionsArchiveHeader, #libraryModalHeader, #libraryVolumesHeader, #leaderboardModalHeader, #complaintsModalHeader) :is(.menu-return-icon-btn, .modal-close-pill) {
  background: #222832 !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #E8DFD1 !important;
}

html.dark :is(#questionsArchiveModal, #libraryModal, #leaderboardModal, #complaintsModal) .modal-empty-icon-box {
  background: rgba(47, 102, 82, 0.16) !important;
  border-color: rgba(47, 102, 82, 0.35) !important;
  color: #7CC3A5 !important;
}

html.dark :is(#libraryModal, #libraryVolumesModal) .lib-file-input {
  background: #11151B !important;
  border: 1px dashed rgba(182, 121, 67, 0.32) !important;
  border-radius: 0.75rem !important;
  padding: 0.35rem 0.5rem !important;
}

html.dark :is(#libraryModal, #libraryVolumesModal) .lib-file-input::file-selector-button,
html.dark :is(#libraryModal, #libraryVolumesModal) .lib-file-input::-webkit-file-upload-button {
  background: rgba(182, 121, 67, 0.20) !important;
  color: #E6B984 !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
  border-radius: 0.58rem !important;
  padding: 0.32rem 0.72rem !important;
  margin-inline-end: 0.55rem !important;
  font-weight: 800 !important;
}

html.dark :is(#libraryModal, #libraryVolumesModal) .lib-file-input--primary::file-selector-button,
html.dark :is(#libraryModal, #libraryVolumesModal) .lib-file-input--primary::-webkit-file-upload-button {
  background: rgba(47, 102, 82, 0.28) !important;
  color: #8CD3B5 !important;
  border-color: rgba(47, 102, 82, 0.48) !important;
}

html.dark #leaderboardModal#leaderboardModal .star-badge {
  background: rgba(182, 121, 67, 0.18) !important;
  border: 1px solid rgba(182, 121, 67, 0.38) !important;
  color: #E6B984 !important;
}

/* ==========================================================================
   THREE ADDITIONAL MODALS (#questionModal, #liveRecordingsModal, #activityDatabaseModal)
   Matching Emerald (#2F6652), Copper (#B67943), Warm Manuscript (#FAF6F0 / #FFFDF9), Crimson (#B91C1C)
   ========================================================================== */

/* 1. Outer Shell, Edge-to-Edge Headers & Unified Header Pills (Light Mode) */
html:not(.dark) #questionModal#questionModal > div,
body.light-theme #questionModal#questionModal > div,
html:not(.dark) #liveRecordingsModal#liveRecordingsModal > div,
body.light-theme #liveRecordingsModal#liveRecordingsModal > div,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal > div,
body.light-theme #activityDatabaseModal#activityDatabaseModal > div {
  background: linear-gradient(172deg, #FBF8F2 0%, #F2E8D8 100%) !important;
  background-image: linear-gradient(172deg, #FBF8F2 0%, #F2E8D8 100%) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.34) !important;
  color: #2B2118 !important;
  padding: 0 !important;
  box-shadow: 0 24px 56px -14px rgba(42, 24, 10, 0.28) !important;
}

/* Neutralize legacy style.css:12440 tan gradient on .border-b and spans in #activityDatabaseModal */
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .border-b,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal [class*="bg-gradient-to-r"] {
  background: transparent !important;
  background-image: none !important;
}

html:not(.dark) #questionModalHeader#questionModalHeader,
body.light-theme #questionModalHeader#questionModalHeader,
html:not(.dark) #liveRecordingsHeader#liveRecordingsHeader,
body.light-theme #liveRecordingsHeader#liveRecordingsHeader,
html:not(.dark) #activityDatabaseHeader#activityDatabaseHeader,
body.light-theme #activityDatabaseHeader#activityDatabaseHeader {
  background: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  background-image: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  border-radius: 0 !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) h3 {
  color: #241A12 !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) p,
html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) span {
  color: #6B5744 !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) > div:first-child > div:first-child {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.35) !important;
  color: #FFFFFF !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) > div:first-child > div:first-child i {
  color: #FFFFFF !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) :is(.menu-return-icon-btn, .modal-close-pill),
body.light-theme :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) :is(.menu-return-icon-btn, .modal-close-pill) {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.72rem !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #36291D !important;
  box-shadow: 0 2px 6px rgba(42, 24, 10, 0.06) !important;
  transition: all 0.16s ease !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) :is(.menu-return-icon-btn, .modal-close-pill) i {
  color: inherit !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) .menu-return-icon-btn:hover {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.45) !important;
  color: #2F6652 !important;
}

html:not(.dark) :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) .modal-close-pill:hover {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.36) !important;
  color: #B91C1C !important;
}

html:not(.dark) :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box,
body.light-theme :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box {
  background: linear-gradient(145deg, #E9F3EE 0%, #DCECE4 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.24) !important;
  color: #2F6652 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px -6px rgba(47, 102, 82, 0.16) !important;
}

html:not(.dark) :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box + p {
  color: #241A12 !important;
}

html:not(.dark) :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box + p + p {
  color: #6B5744 !important;
}

/* 2. TIMED QUESTION MODAL (#questionModal) */
html:not(.dark) #questionModal#questionModal label,
body.light-theme #questionModal#questionModal label {
  color: #36291D !important;
}

html:not(.dark) #questionModal#questionModal :is(textarea, select, input[type="datetime-local"]) {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
  box-shadow: inset 0 1px 2px rgba(42, 24, 10, 0.04) !important;
}

html:not(.dark) #questionModal#questionModal :is(textarea, select, input[type="datetime-local"]):focus {
  border-color: #2F6652 !important;
  box-shadow: 0 0 0 3px rgba(47, 102, 82, 0.12) !important;
}

html:not(.dark) #questionModal#questionModal #questionPublishModeCard {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.26) !important;
  box-shadow: 0 4px 12px -4px rgba(56, 40, 28, 0.06) !important;
}

html:not(.dark) #questionModal#questionModal #questionPublishModeCard label i {
  color: #2F6652 !important;
}

html:not(.dark) #questionModal#questionModal #publishModeToggleTrack {
  background: #F4EDE2 !important;
  border: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #questionModal#questionModal #publishModeToggleTrack button:not(.is-active),
html:not(.dark) #questionModal#questionModal :is(#timeModeQuickBtn, #timeModeCustomBtn):not(.is-active) {
  background: #FFFFFF !important;
  color: #5C4A3A !important;
  border: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #questionModal#questionModal #publishModeToggleTrack button:not(.is-active) {
  background: transparent !important;
  border-color: transparent !important;
}

html:not(.dark) #questionModal#questionModal #publishModeToggleTrack button.is-active,
html:not(.dark) #questionModal#questionModal :is(#timeModeQuickBtn, #timeModeCustomBtn).is-active {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(47, 102, 82, 0.40) !important;
  box-shadow: 0 4px 10px -2px rgba(47, 102, 82, 0.28) !important;
}

html:not(.dark) #questionModal#questionModal button.is-active * {
  color: #FFFFFF !important;
}

html:not(.dark) #questionModal#questionModal #existingQuestionDatesNotice {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.30) !important;
  color: #7D4B21 !important;
}

html:not(.dark) #questionModal#questionModal #existingQuestionDatesNotice > div:first-child {
  color: #8C5424 !important;
}

html:not(.dark) #questionModal#questionModal .q-preset-btn {
  background: #FAF6F0 !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
  color: #8C5424 !important;
}

html:not(.dark) #questionModal#questionModal .q-preset-btn:hover {
  background: #B67943 !important;
  color: #FFFFFF !important;
}

html:not(.dark) #questionModal#questionModal #questionTimingNotice {
  background: #EDF6F1 !important;
  border: 1px solid rgba(47, 102, 82, 0.24) !important;
  color: #264A3B !important;
}

html:not(.dark) #questionModal#questionModal #questionTimingNotice i {
  color: #2F6652 !important;
}

html:not(.dark) #questionModal#questionModal .q-answer-hint {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #8C5424 !important;
}

html:not(.dark) #questionModal#questionModal #questionModalFooter {
  border-top: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #questionModal#questionModal #questionCancelBtn {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #36291D !important;
}

html:not(.dark) #questionModal#questionModal #questionCancelBtn:hover {
  background: #FAF0E2 !important;
}

html:not(.dark) #questionModal#questionModal #questionSubmitBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  background-image: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px -4px rgba(47, 102, 82, 0.34) !important;
}

html:not(.dark) #questionModal#questionModal #questionSubmitBtn * {
  color: #FFFFFF !important;
}

/* 3. LIVE LESSON RECORDINGS ARCHIVE (#liveRecordingsModal) */
html:not(.dark) #liveRecordingsModal#liveRecordingsModal #liveRecordingsInfoBar {
  background: #EDF6F1 !important;
  border: 1px solid rgba(47, 102, 82, 0.24) !important;
  color: #264A3B !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal #liveRecordingsInfoBar span:first-child i {
  color: #2F6652 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal #liveRecordingsCountBadge {
  background: #FFFFFF !important;
  border: 1px solid rgba(47, 102, 82, 0.28) !important;
  color: #2F6652 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .live-rec-card {
  background: linear-gradient(170deg, #FFFFFF 0%, #F7F1E7 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
  box-shadow: 0 6px 16px -6px rgba(56, 40, 28, 0.10) !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .live-rec-card h4 {
  color: #241A12 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-num-badge {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
  color: #8C5424 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-uploader {
  color: #36291D !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-edit-btn {
  background: #FFFFFF !important;
  border-color: rgba(156, 120, 78, 0.28) !important;
  color: #5C4A3A !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-edit-btn:hover {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.40) !important;
  color: #2F6652 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-delete-btn {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.24) !important;
  color: #B91C1C !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-delete-btn:hover {
  background: #B91C1C !important;
  color: #FFFFFF !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .rec-resume-pill {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
  color: #8C5424 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player {
  background: #FAF6F0 !important;
  border: 1px solid rgba(156, 120, 78, 0.26) !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player .voice-play-btn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 14px -3px rgba(47, 102, 82, 0.34) !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player .voice-play-btn i {
  color: #FFFFFF !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player .rec-download-btn {
  background: #E9F3EE !important;
  border: 1px solid rgba(47, 102, 82, 0.28) !important;
  color: #2F6652 !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player .rec-download-btn:hover {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player .rec-download-btn:hover * {
  color: #FFFFFF !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player :is(.voice-seek-btn, .voice-speed-pill, .voice-tag-badge) {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.26) !important;
  color: #5C4A3A !important;
}

html:not(.dark) #liveRecordingsModal#liveRecordingsModal .dream-voice-player .voice-tag-badge i {
  color: #B67943 !important;
}

/* 4. ACTIVITY DATABASE MODAL (#activityDatabaseModal) */
html:not(.dark) #activityDatabaseModal#activityDatabaseModal #activitySearchToolbar {
  background: #F4EDE2 !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal #activitySearchInput {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal #activitySearchInput:focus {
  border-color: #2F6652 !important;
  box-shadow: 0 0 0 3px rgba(47, 102, 82, 0.12) !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal #activityRefreshBtn {
  background: #FFFFFF !important;
  border: 1px solid rgba(47, 102, 82, 0.28) !important;
  color: #2F6652 !important;
  box-shadow: 0 2px 6px rgba(42, 24, 10, 0.05) !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal #activityRefreshBtn * {
  color: #2F6652 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal #activityRefreshBtn:hover {
  background: #E9F3EE !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-session-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-session-card h4 {
  color: #241A12 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-day-icon {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.28) !important;
  color: #2F6652 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-date-line {
  color: #8C5424 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-creator {
  color: #2F6652 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-status-pill.is-active {
  background: #E9F3EE !important;
  color: #2F6652 !important;
  border-color: rgba(47, 102, 82, 0.30) !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--present,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-chip--present {
  background: #EDF6F1 !important;
  border-color: rgba(47, 102, 82, 0.26) !important;
  color: #2F6652 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--present * {
  color: #2F6652 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--excused,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--pending,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-chip--excused {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.30) !important;
  color: #8C5424 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--excused *,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--pending * {
  color: #8C5424 !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--absent,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-chip--absent,
html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-delete-btn {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.26) !important;
  color: #B91C1C !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-stat-box--absent * {
  color: #B91C1C !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-details-toggle {
  background: #FAF6F0 !important;
  border-color: rgba(156, 120, 78, 0.26) !important;
  color: #36291D !important;
}

html:not(.dark) #activityDatabaseModal#activityDatabaseModal .activity-details-toggle span {
  color: #36291D !important;
}

/* 5. FULL DARK MODE POLISH FOR ALL MODALS (Overriding unscoped style.css cream/maroon rules) */
html.dark :is(#questionModal, #liveRecordingsModal, #activityDatabaseModal) > div,
body.dark-theme :is(#questionModal, #liveRecordingsModal, #activityDatabaseModal) > div {
  background: #171B21 !important;
  background-image: none !important;
  border: 1.5px solid rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
  padding: 0 !important;
}

html.dark #questionModalHeader#questionModalHeader,
body.dark-theme #questionModalHeader#questionModalHeader,
html.dark #liveRecordingsHeader#liveRecordingsHeader,
body.dark-theme #liveRecordingsHeader#liveRecordingsHeader,
html.dark #activityDatabaseHeader#activityDatabaseHeader,
body.dark-theme #activityDatabaseHeader#activityDatabaseHeader {
  background: linear-gradient(165deg, #1E242C 0%, #161A20 100%) !important;
  background-image: linear-gradient(165deg, #1E242C 0%, #161A20 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
  border-radius: 0 !important;
}

html.dark :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) h3 {
  color: #F5F2EC !important;
}

html.dark :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) p,
html.dark :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) span {
  color: #9AA5B4 !important;
}

html.dark :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) > div:first-child > div:first-child {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(140, 211, 181, 0.28) !important;
  color: #FFFFFF !important;
}

html.dark :is(#questionModalHeader, #liveRecordingsHeader, #activityDatabaseHeader) :is(.menu-return-icon-btn, .modal-close-pill) {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #E8DFD1 !important;
}

html.dark :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box {
  background: rgba(47, 102, 82, 0.16) !important;
  border-color: rgba(47, 102, 82, 0.35) !important;
  color: #7CC3A5 !important;
}

html.dark :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box + p {
  color: #F5F2EC !important;
}

html.dark :is(#liveRecordingsModal, #activityDatabaseModal) .modal-empty-icon-box + p + p {
  color: #9AA5B4 !important;
}

/* Dark Mode: #questionModal */
html.dark #questionModal#questionModal label,
html.dark #questionModal#questionModal #questionPublishModeCard label {
  color: #E2E8F0 !important;
}

html.dark #questionModal#questionModal #questionPublishModeCard {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #questionModal#questionModal #publishModeToggleTrack {
  background: #12161B !important;
  border: 1px solid rgba(182, 121, 67, 0.22) !important;
}

html.dark #questionModal#questionModal :is(#timeModeQuickBtn, #timeModeCustomBtn):not(.is-active) {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  color: #CBD5E1 !important;
}

html.dark #questionModal#questionModal #publishModeToggleTrack button:not(.is-active) {
  background: transparent !important;
  color: #9AA5B4 !important;
}

html.dark #questionModal#questionModal button.is-active {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
}

html.dark #questionModal#questionModal button.is-active * {
  color: #FFFFFF !important;
}

html.dark #questionModal#questionModal :is(textarea, select, input[type="datetime-local"]) {
  background: #11151B !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #questionModal#questionModal .q-preset-btn {
  background: #222832 !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #E6B984 !important;
}

html.dark #questionModal#questionModal #questionTimingNotice {
  background: rgba(47, 102, 82, 0.16) !important;
  border-color: rgba(47, 102, 82, 0.36) !important;
  color: #C7EAD9 !important;
}

html.dark #questionModal#questionModal #questionCancelBtn {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #E2E8F0 !important;
}

html.dark #questionModal#questionModal #questionSubmitBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
}

/* Dark Mode: #liveRecordingsModal */
html.dark #liveRecordingsModal#liveRecordingsModal #liveRecordingsInfoBar {
  background: #1E242C !important;
  border: 1px solid rgba(47, 102, 82, 0.32) !important;
  color: #E2E8F0 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal #liveRecordingsInfoBar span:not(#liveRecordingsCountBadge) {
  color: #E2E8F0 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal #liveRecordingsInfoBar i {
  color: #8CD3B5 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal #liveRecordingsCountBadge {
  background: rgba(47, 102, 82, 0.22) !important;
  border: 1px solid rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .live-rec-card {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .live-rec-card h4 {
  color: #F5F2EC !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .live-rec-card > div:nth-child(2),
html.dark #liveRecordingsModal#liveRecordingsModal .rec-uploader {
  color: #CBD5E1 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .rec-num-badge {
  background: rgba(182, 121, 67, 0.20) !important;
  border-color: rgba(230, 185, 132, 0.34) !important;
  color: #E6B984 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .rec-edit-btn {
  background: #252C36 !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #CBD5E1 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .rec-delete-btn {
  background: rgba(185, 28, 28, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.30) !important;
  color: #FCA5A5 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .dream-voice-player {
  background: #12161C !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .dream-voice-player .voice-play-btn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .dream-voice-player .voice-time-label {
  color: #CBD5E1 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .dream-voice-player :is(.voice-seek-btn, .voice-speed-pill, .voice-tag-badge) {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  color: #E2E8F0 !important;
}

html.dark #liveRecordingsModal#liveRecordingsModal .dream-voice-player .rec-download-btn {
  background: rgba(47, 102, 82, 0.24) !important;
  border-color: rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

/* Dark Mode: #activityDatabaseModal (Counter unscoped style.css:12434-12481 rules!) */
html.dark #activityDatabaseModal#activityDatabaseModal .border-b,
html.dark #activityDatabaseModal#activityDatabaseModal [class*="bg-gradient-to-r"] {
  background: transparent !important;
  background-image: none !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal #activityDatabaseHeader {
  background: linear-gradient(165deg, #1E242C 0%, #161A20 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal #activitySearchToolbar {
  background: #13171D !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.22) !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal #activitySearchInput {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal #activitySearchInput::placeholder {
  color: #8E9BAE !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal #activityRefreshBtn {
  background: #222832 !important;
  border: 1px solid rgba(47, 102, 82, 0.36) !important;
  color: #8CD3B5 !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal #activityRefreshBtn * {
  color: #8CD3B5 !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal .activity-session-card {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal .activity-session-card h4 {
  color: #F5F2EC !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal .activity-session-card span:not(.activity-status-pill):not(.activity-date-line):not(.activity-chip) {
  color: #CBD5E1 !important;
}

html.dark #activityDatabaseModal#activityDatabaseModal .activity-details-toggle {
  background: #252C36 !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
  color: #E2E8F0 !important;
}

/* Also shield the previous 4 modals against style.css .bg-slate-950/80 rules in dark mode */
html.dark :is(#questionsArchiveModal, #libraryModal, #libraryVolumesModal, #leaderboardModal, #complaintsModal) .bg-slate-950\/80,
html.dark :is(#questionsArchiveModal, #libraryModal, #libraryVolumesModal, #leaderboardModal, #complaintsModal) .bg-slate-900\/90,
html.dark :is(#questionsArchiveModal, #libraryModal, #libraryVolumesModal, #leaderboardModal, #complaintsModal) .bg-slate-900\/60 {
  background: #1E242C !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
  color: #F5F2EC !important;
}

html.dark #complaintsModal#complaintsModal span:not(.complaint-status-pill) {
  color: inherit;
}

html.dark #complaintsModal#complaintsModal #complaintsStaffTabs,
html.dark #complaintsModal#complaintsModal #complaintsModalFooter {
  background: #13171D !important;
  border-color: rgba(182, 121, 67, 0.22) !important;
}

html.dark #complaintsModal#complaintsModal #complaintsToolbar,
html.dark #complaintsModal#complaintsModal #complaintsSecretBanner {
  background: rgba(47, 102, 82, 0.16) !important;
  border-color: rgba(47, 102, 82, 0.34) !important;
  color: #C7EAD9 !important;
}

/* ==========================================================================
   SITEWIDE DARK MODE HARMONIZATION (EMERALD #2F6652 + COPPER #B67943 + OBSIDIAN)
   Fixes all reported Dark Mode contrast, badge, input, and surface leaks sitewide
   ========================================================================== */

/* A. DREAM ADMIN MODAL (#dreamAdminModal) — Filter Tabs, Status & Session Cards */
html.dark #dreamAdminModal#dreamAdminModal > div {
  background: #14181F !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamAdminModalHeader {
  background: linear-gradient(165deg, #1E242C 0%, #151920 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamAvailabilityToggleBtn {
  background: rgba(34, 39, 48, 0.94) !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamAvailabilityToggleBtn.text-\[\#2F6652\],
html.dark #dreamAdminModal#dreamAdminModal #dreamAvailabilityToggleBtn.text-emerald-700 {
  background: rgba(47, 102, 82, 0.24) !important;
  border-color: rgba(140, 211, 181, 0.36) !important;
  color: #8CD3B5 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamAvailabilityToggleBtn.text-rose-700,
html.dark #dreamAdminModal#dreamAdminModal #dreamAvailabilityToggleBtn[class*="bg-rose-"] {
  background: rgba(185, 28, 28, 0.22) !important;
  border-color: rgba(248, 113, 113, 0.38) !important;
  color: #FCA5A5 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamAvailabilityLabel {
  color: inherit !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSubmissionsSidebar,
html.dark #dreamAdminModal#dreamAdminModal #dreamAdminSessionsSidebar {
  background: #171C23 !important;
  border-color: rgba(182, 121, 67, 0.22) !important;
  color: #F5F2EC !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSubmissionsSidebar button:not([class*="bg-[#2F6652]"]):not(.bg-purple-600):not(.active) {
  color: #CBD5E1 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSubmissionsSidebar button.active,
html.dark #dreamAdminModal#dreamAdminModal #dreamSubmissionsSidebar button[class*="bg-[#2F6652]"] {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList > div {
  background: #1E242C !important;
  border-color: rgba(182, 121, 67, 0.22) !important;
  color: #F5F2EC !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList > div:hover,
html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList > div.ring-1 {
  background: #242C36 !important;
  border-color: rgba(182, 121, 67, 0.48) !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList span:not([class*="bg-[#B67943]"]) {
  color: inherit;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#6E5641\],
html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#5C4A3A\],
html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#3B4650\] {
  color: #CBD5E1 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#8c5424\] {
  color: #FBBF24 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#2F6652\] {
  color: #8CD3B5 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#9f1239\] {
  color: #F9A8D4 !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamSessionsList .text-\[\#1E242B\] {
  color: #FCD34D !important;
}

html.dark #dreamAdminModal#dreamAdminModal #dreamAdminMessagesContainer {
  background: #11151B !important;
  color: #F5F2EC !important;
}

/* B. LIVE LESSON ROOM (#liveLessonModal) — Dark Obsidian Header, Stage & Capsule Dock */
html.dark #liveLessonModal#liveLessonModal {
  background: rgba(7, 10, 14, 0.88) !important;
}

html.dark #liveLessonModal#liveLessonModal > div {
  background: #14181F !important;
  border: 1.5px solid rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
}

html.dark #liveLessonModal#liveLessonModal > div > div:first-child {
  background: linear-gradient(165deg, #1E242C 0%, #151920 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark #liveLessonModal#liveLessonModal #liveLessonModalTitle {
  color: #F5F2EC !important;
}

html.dark #liveLessonModal#liveLessonModal #liveLessonPresenterText {
  color: #9AA5B4 !important;
}

html.dark #liveLessonModal#liveLessonModal > div > div:first-child button[onclick*="minimizeLiveLessonModal"] {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #E2E8F0 !important;
}

html.dark #liveLessonModal#liveLessonModal > div > div:first-child button[onclick*="leaveLiveLessonRoom"] {
  background: rgba(185, 28, 28, 0.20) !important;
  border: 1px solid rgba(248, 113, 113, 0.36) !important;
  color: #FCA5A5 !important;
}

html.dark #liveLessonModal#liveLessonModal > div > div:first-child button[onclick*="leaveLiveLessonRoom"]:hover {
  background: #B91C1C !important;
  color: #FFFFFF !important;
}

html.dark #liveLessonModal#liveLessonModal .flex-1.bg-slate-950\/95 {
  background: #10141A !important;
  background-image: none !important;
}

html.dark #liveLessonModal#liveLessonModal .bg-slate-900\/90.border-b {
  background: #171C24 !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.20) !important;
  color: #F5F2EC !important;
}

html.dark #liveLessonModal#liveLessonModal #liveParticipantsCountBadge {
  background: rgba(47, 102, 82, 0.24) !important;
  border-color: rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

html.dark #liveLessonModal#liveLessonModal #liveQuranToggleBtn {
  background: rgba(182, 121, 67, 0.18) !important;
  border-color: rgba(182, 121, 67, 0.36) !important;
  color: #E6B984 !important;
}

html.dark #liveLessonModal#liveLessonModal #liveQuranPanel {
  background: #181E27 !important;
  border-bottom-color: rgba(182, 121, 67, 0.28) !important;
}

html.dark #liveLessonModal#liveLessonModal #liveQuranPanel select {
  background: #11151B !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #liveLessonModal#liveLessonModal #liveParticipantsList {
  background: #10141A !important;
  background-image: none !important;
}

html.dark #liveLessonModal#liveLessonModal > div > div:last-child {
  background: #14181F !important;
  border-top: 1px solid rgba(182, 121, 67, 0.22) !important;
}

html.dark #liveLessonModal#liveLessonModal .live-action-dock {
  background: rgba(27, 33, 41, 0.96) !important;
  border: 1.5px solid rgba(182, 121, 67, 0.32) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.50) !important;
}

html.dark #liveLessonModal#liveLessonModal .live-action-dock button:not(#liveStartEndBtn) {
  background: transparent !important;
  color: #E2E8F0 !important;
}

html.dark #liveLessonModal#liveLessonModal .live-action-dock button:not(#liveStartEndBtn):hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

html.dark #liveLessonModal#liveLessonModal .live-action-dock button:not(#liveStartEndBtn) span {
  color: #E2E8F0 !important;
}

html.dark #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(140, 211, 181, 0.34) !important;
  color: #FFFFFF !important;
}

html.dark #liveLessonModal#liveLessonModal .live-action-dock #liveStartEndBtn * {
  color: #FFFFFF !important;
}

/* C. RECORDED LESSONS MODAL (#recordedLessonsModal) — Dark Charcoal + Emerald/Copper */
html.dark #recordedLessonsModal#recordedLessonsModal > div {
  background: #171B21 !important;
  border: 1.5px solid rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal > div > div:first-child {
  background: linear-gradient(165deg, #1E242C 0%, #161A20 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal > div > div:first-child h3 {
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal > div > div:first-child p {
  color: #9AA5B4 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal > div > div:first-child button {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #E8DFD1 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #addRecordedLessonStaffBox {
  background: #13171D !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.22) !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonStaffBannerText {
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #toggleRecordedLessonsStaffBtn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(140, 211, 181, 0.30) !important;
  color: #FFFFFF !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonsSearchInput,
html.dark #recordedLessonsModal#recordedLessonsModal input,
html.dark #recordedLessonsModal#recordedLessonsModal select,
html.dark #recordedLessonsModal#recordedLessonsModal textarea {
  background: #11151B !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal input::placeholder,
html.dark #recordedLessonsModal#recordedLessonsModal textarea::placeholder {
  color: #8E9BAE !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonsTeachersContainer > div,
html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonsFoldersContainer > div,
html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonsListContainer > div {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal h4 {
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .bg-purple-950\/60 {
  background: rgba(47, 102, 82, 0.24) !important;
  border-color: rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .bg-amber-950\/60 {
  background: rgba(182, 121, 67, 0.22) !important;
  border-color: rgba(230, 185, 132, 0.34) !important;
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-teacher-avatar {
  background: rgba(182, 121, 67, 0.16) !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-arrow-btn {
  background: #252C36 !important;
  color: #CBD5E1 !important;
}

/* D. DIGITAL LIBRARY (#libraryModal & #libraryVolumesModal) — Complete Dark Mode */
html.dark #libraryModal#libraryModal #libraryUploadSection {
  background: #1B212A !important;
  border: 1px solid rgba(47, 102, 82, 0.36) !important;
}

html.dark #libraryModal#libraryModal #libraryUploadSection > div:first-child > div:first-child,
html.dark #libraryModal#libraryModal #libraryUploadSection > div:first-child > div:first-child * {
  color: #8CD3B5 !important;
}

html.dark #libraryModal#libraryModal #libraryUploadSection label {
  color: #E2E8F0 !important;
}

html.dark #libraryModal#libraryModal #libSelectedFilesCount {
  background: rgba(182, 121, 67, 0.18) !important;
  border: 1px solid rgba(182, 121, 67, 0.32) !important;
  color: #E6B984 !important;
  padding: 0.1rem 0.5rem !important;
  border-radius: 999px !important;
}

html.dark #libraryModal#libraryModal :is(input[type="text"], select, textarea, #librarySearchInput) {
  background: #11151B !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
}

html.dark #libraryModal#libraryModal :is(input, textarea)::placeholder {
  color: #8E9BAE !important;
}

html.dark :is(#libraryModal, #libraryVolumesModal) .lib-file-input {
  color: #CBD5E1 !important;
}

html.dark #libraryModal#libraryModal #libCategoryChips .lib-cat-chip:not(.is-active) {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #E2E8F0 !important;
}

html.dark #libraryModal#libraryModal #libCategoryChips .lib-cat-chip.is-active {
  background: #2F6652 !important;
  border-color: rgba(140, 211, 181, 0.36) !important;
  color: #FFFFFF !important;
}

html.dark #libraryModal#libraryModal #libViewSwitcherWrap {
  background: #11151B !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
}

html.dark #libraryModal#libraryModal #libViewSwitcherWrap button.is-active {
  background: #2F6652 !important;
  color: #FFFFFF !important;
}

html.dark #libraryModal#libraryModal #libStatsBadge {
  background: rgba(47, 102, 82, 0.22) !important;
  border: 1px solid rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

/* E. USER PROFILE (#userProfileModalDialog), ADMIN PANEL, POLLS & VOICE PLAYERS IN DARK MODE */
html.dark #userProfileModalDialog#userProfileModalDialog {
  background: #171B21 !important;
  border: 1.5px solid rgba(182, 121, 67, 0.30) !important;
  color: #F5F2EC !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog #userProfileModalHeader {
  background: linear-gradient(135deg, #214C3D 0%, #2F6652 100%) !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog .prof-section-card,
html.dark #userProfileModalDialog#userProfileModalDialog .prof-stat-tile {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  color: #F5F2EC !important;
}

html.dark #userProfileModalDialog#userProfileModalDialog .prof-inset-tile {
  background: #14181F !important;
  border: 1px solid rgba(182, 121, 67, 0.20) !important;
  color: #E2E8F0 !important;
}

html.dark .dream-voice-player {
  background: #181D24 !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark .dream-voice-player .voice-waveform-container {
  background: #11151B !important;
  border: 1px solid rgba(182, 121, 67, 0.20) !important;
}

html.dark .dream-voice-player .voice-wave-bar {
  background: rgba(230, 185, 132, 0.28) !important;
}

html.dark .dream-voice-player .voice-wave-bar.played {
  background: linear-gradient(180deg, #4B9B7B 0%, #2F6652 100%) !important;
}

html.dark .dream-voice-player .voice-play-btn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  color: #FFFFFF !important;
}

html.dark .dream-voice-player .voice-time-label {
  color: #CBD5E1 !important;
}

html.dark .dream-voice-player :is(.voice-seek-btn, .voice-speed-pill, .voice-tag-badge) {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.24) !important;
  color: #E2E8F0 !important;
}

html.dark .voice-waveform-card {
  background: #1B212A !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
}

html.dark :is(#topPodiumWidget, #membersSidebar, #chatInputBar, #customGroupInputBar, #dialectDropdownMenu) {
  background: #151A20 !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
  color: #F5F2EC !important;
}

html.dark :is(.poll-card, .alarm-card, .question-glow, .revealed-answers-card, #createPollModal > div > div, #editPollModal > div > div, #aiSecurityModal > div, #executiveHubModal > div) {
  background: #181D24 !important;
  border-color: rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
}

html.dark :is(#aiSecurityModal, #executiveHubModal, #adminModal, #customGroupChatModal, #privateChatModal, #aiAdvisorModal) input,
html.dark :is(#aiSecurityModal, #executiveHubModal, #adminModal, #customGroupChatModal, #privateChatModal, #aiAdvisorModal) select,
html.dark :is(#aiSecurityModal, #executiveHubModal, #adminModal, #customGroupChatModal, #privateChatModal, #aiAdvisorModal) textarea {
  background: #11151B !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

/* ============================================================================
   HARMONIZED LEADERBOARD CLOSE/HEADER & RECORDED LESSONS MODAL (LIGHT + DARK)
   ============================================================================ */

/* High-specificity Light Mode lock so #leaderboardModalHeader & other modal close pills
   always match .menu-return-icon-btn (#FFFFFF) and titles never fall back to maroon */
html:not(.dark) div[id$="Modal"]#questionsArchiveModal #questionsArchiveHeader :is(.menu-return-icon-btn, .modal-close-pill),
html:not(.dark) div[id$="Modal"]#libraryModal #libraryModalHeader :is(.menu-return-icon-btn, .modal-close-pill),
html:not(.dark) div[id$="Modal"]#libraryVolumesModal #libraryVolumesHeader :is(.menu-return-icon-btn, .modal-close-pill),
html:not(.dark) div[id$="Modal"]#leaderboardModal #leaderboardModalHeader :is(.menu-return-icon-btn, .modal-close-pill),
html:not(.dark) div[id$="Modal"]#complaintsModal #complaintsModalHeader :is(.menu-return-icon-btn, .modal-close-pill),
html:not(.dark) div[id$="Modal"]#recordedLessonsModal #recordedLessonsHeader :is(.menu-return-icon-btn, .modal-close-pill),
html:not(.dark) div[id$="Modal"]:is(#editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-submodal-header .modal-close-pill {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.72rem !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.30) !important;
  color: #36291D !important;
  box-shadow: 0 2px 6px rgba(42, 24, 10, 0.06) !important;
}

html:not(.dark) div[id$="Modal"]#leaderboardModal #leaderboardModalHeader .modal-close-pill:hover,
html:not(.dark) div[id$="Modal"]#recordedLessonsModal #recordedLessonsHeader .modal-close-pill:hover,
html:not(.dark) div[id$="Modal"]:is(#editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-submodal-header .modal-close-pill:hover {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.36) !important;
  color: #B91C1C !important;
}

html:not(.dark) div[id$="Modal"]#recordedLessonsModal #recordedLessonsHeader .menu-return-icon-btn:hover,
html:not(.dark) div[id$="Modal"]#leaderboardModal #leaderboardModalHeader .menu-return-icon-btn:hover {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.45) !important;
  color: #2F6652 !important;
}

/* #leaderboardModal subtle Emerald & Manuscript typography lock */
html:not(.dark) #leaderboardModal#leaderboardModal #leaderboardModalHeader h3 {
  color: #241A12 !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal #leaderboardModalHeader p {
  color: #6B5744 !important;
}

html:not(.dark) #leaderboardModal#leaderboardModal p[class*="text-slate-400"],
html:not(.dark) #leaderboardModal#leaderboardModal p,
html:not(.dark) #leaderboardModal#leaderboardModal #leaderboardList h4,
html:not(.dark) #leaderboardModal#leaderboardModal #leaderboardList .font-black:not(.rank-pill--gold):not(.rank-pill--bronze):not(.rank-pill--silver):not(.star-badge):not(.star-badge *) {
  color: #241A12 !important;
}

/* RECORDED LESSONS MODAL & EDIT MODALS — LIGHT HERITAGE PARCHMENT + EMERALD/COPPER */
html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) > div {
  background: linear-gradient(166deg, #FAF6F0 0%, #EFE5D8 100%) !important;
  border: 1.5px solid rgba(156, 120, 78, 0.34) !important;
  color: #241A12 !important;
  box-shadow: 0 24px 60px rgba(42, 24, 10, 0.22) !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal #recordedLessonsHeader,
html:not(.dark) :is(#editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-submodal-header {
  background: linear-gradient(165deg, #FDFBF7 0%, #EFE4D4 100%) !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.28) !important;
  border-radius: 0 !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) h3 {
  color: #241A12 !important;
}

html:not(.dark) #recordedLessonsHeader#recordedLessonsHeader p,
html:not(.dark) :is(#editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-submodal-header span {
  color: #6B5744 !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-header-icon {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.35) !important;
  color: #FFFFFF !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-header-icon i {
  color: #FFFFFF !important;
}

/* Staff Action Bar in Light Mode (Soft Mint notice + Emerald button) */
html:not(.dark) #recordedLessonsModal#recordedLessonsModal #addRecordedLessonStaffBox {
  background: linear-gradient(165deg, #EDF6F1 0%, #E3EFE9 100%) !important;
  border-bottom: 1px solid rgba(47, 102, 82, 0.20) !important;
  color: #1E4638 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal #recordedLessonStaffBannerText {
  color: #1E4638 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal #recordedLessonStaffBannerText .rec-staff-icon {
  color: #2F6652 !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) :is(.rec-staff-cta, .rec-btn-primary) {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.45) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(47, 102, 82, 0.22) !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) :is(.rec-staff-cta, .rec-btn-primary):hover {
  filter: brightness(1.06);
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) :is(.rec-staff-cta, .rec-btn-primary) * {
  color: #FFFFFF !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-inline-form {
  border-top: 1px solid rgba(47, 102, 82, 0.18) !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-form-label {
  color: #36291D !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-form-label-accent {
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-info-banner {
  background: linear-gradient(145deg, #FAF0E2 0%, #F4E6D3 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.30) !important;
  color: #6A3D17 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-info-strong {
  color: #241A12 !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-btn-secondary {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.32) !important;
  color: #36291D !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-btn-secondary:hover {
  background: #FAF6F0 !important;
  border-color: rgba(47, 102, 82, 0.42) !important;
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-media-btn i {
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-mic-btn i {
  color: #B91C1C !important;
}

/* Search & Inputs */
html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) input,
html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) textarea {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.32) !important;
  color: #241A12 !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) input:focus,
html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) textarea:focus {
  border-color: #2F6652 !important;
  box-shadow: 0 0 0 2px rgba(47, 102, 82, 0.14) !important;
}

html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) input::placeholder,
html:not(.dark) :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) textarea::placeholder {
  color: #8A745E !important;
}

/* Breadcrumbs */
html:not(.dark) #recordedLessonsModal#recordedLessonsModal #recordedLessonsNavHeader {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(156, 120, 78, 0.24) !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-crumb-link {
  color: #6B5744 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-crumb-link:hover {
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-crumb-active {
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-crumb-sep {
  color: #9C8772 !important;
}

/* Teacher, Folder & Lesson Cards — Light Mode */
html:not(.dark) #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-card, .rec-folder-card, .rec-lesson-card) {
  background: linear-gradient(170deg, #FFFFFF 0%, #F7EFE4 100%) !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #241A12 !important;
  box-shadow: 0 4px 12px -4px rgba(56, 40, 28, 0.08) !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-card, .rec-folder-card, .rec-lesson-card):hover {
  border-color: rgba(47, 102, 82, 0.45) !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-lesson-card.is-completed {
  border-color: rgba(47, 102, 82, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(47, 102, 82, 0.14), 0 4px 14px -4px rgba(47, 102, 82, 0.14) !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-teacher-avatar {
  background: linear-gradient(145deg, #FAF0E2 0%, #F1DFC4 100%) !important;
  border: 1px solid rgba(182, 121, 67, 0.36) !important;
  color: #9E6330 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-folder-avatar {
  background: linear-gradient(145deg, #E9F3EE 0%, #D9EAE1 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.30) !important;
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-name, .rec-folder-name, .rec-lesson-title) {
  color: #241A12 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .group:hover :is(.rec-teacher-name, .rec-folder-name) {
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-title, .rec-lesson-teacher) {
  color: #8C5424 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal :is(.rec-folder-desc, .rec-lesson-meta) {
  color: #6B5744 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-folder-pill {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.26) !important;
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal :is(.rec-lesson-pill, .rec-lesson-num) {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.34) !important;
  color: #8C5424 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-empty-pill {
  background: #EFE6D8 !important;
  border-color: rgba(156, 120, 78, 0.26) !important;
  color: #6B5744 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-action-btn {
  background: #FAF6F0 !important;
  border: 1px solid rgba(156, 120, 78, 0.26) !important;
  color: #5C4A3A !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-edit-btn:hover {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.36) !important;
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-delete-btn:hover {
  background: #FEF2F2 !important;
  border-color: rgba(185, 28, 28, 0.34) !important;
  color: #B91C1C !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-arrow-btn {
  background: #FFFFFF !important;
  border: 1px solid rgba(156, 120, 78, 0.28) !important;
  color: #5C4A3A !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .group:hover .rec-arrow-btn {
  background: #2F6652 !important;
  border-color: #2F6652 !important;
  color: #FFFFFF !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-check-btn {
  background: #FFFFFF !important;
  border-color: rgba(156, 120, 78, 0.30) !important;
  color: #5C4A3A !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-check-btn.is-checked {
  background: #E9F3EE !important;
  border-color: rgba(47, 102, 82, 0.38) !important;
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-resume-badge {
  background: #FAF0E2 !important;
  border-color: rgba(182, 121, 67, 0.32) !important;
  color: #8C5424 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-lesson-desc {
  background: #FAF6F0 !important;
  border-color: rgba(156, 120, 78, 0.22) !important;
  color: #36291D !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .dream-voice-player .voice-play-btn {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(47, 102, 82, 0.45) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 14px rgba(47, 102, 82, 0.24) !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .dream-voice-player .voice-play-btn i {
  color: #FFFFFF !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-empty-card {
  background: #FFFFFF !important;
  border: 1px dashed rgba(156, 120, 78, 0.34) !important;
  color: #241A12 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .modal-empty-icon-box {
  background: #E9F3EE !important;
  border: 1px solid rgba(47, 102, 82, 0.26) !important;
  color: #2F6652 !important;
}

html:not(.dark) #recordedLessonsModal#recordedLessonsModal .rec-empty-card p:last-of-type {
  color: #6B5744 !important;
}

/* RECORDED LESSONS MODAL & EDIT MODALS — DARK MODE REFINEMENTS */
html.dark :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) > div {
  background: #171B21 !important;
  border: 1.5px solid rgba(182, 121, 67, 0.28) !important;
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonsHeader,
html.dark :is(#editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-submodal-header {
  background: linear-gradient(165deg, #1E242C 0%, #161A20 100%) !important;
  border-bottom: 1px solid rgba(182, 121, 67, 0.24) !important;
}

html.dark :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-header-icon {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(140, 211, 181, 0.34) !important;
  color: #FFFFFF !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonsHeader :is(.modal-close-pill, .menu-return-icon-btn),
html.dark :is(#editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .modal-close-pill {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.28) !important;
  color: #E8DFD1 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #addRecordedLessonStaffBox {
  background: rgba(47, 102, 82, 0.12) !important;
  border-bottom: 1px solid rgba(140, 211, 181, 0.20) !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal #recordedLessonStaffBannerText {
  color: #8CD3B5 !important;
}

html.dark :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) :is(.rec-staff-cta, .rec-btn-primary) {
  background: linear-gradient(135deg, #2F6652 0%, #3E7660 100%) !important;
  border: 1px solid rgba(140, 211, 181, 0.34) !important;
  color: #FFFFFF !important;
}

html.dark :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) :is(.rec-staff-cta, .rec-btn-primary) * {
  color: #FFFFFF !important;
}

html.dark :is(#recordedLessonsModal, #editRecordedLessonModal, #editLessonTeacherModal, #editLessonFolderModal) .rec-btn-secondary {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #E8DFD1 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-info-banner {
  background: rgba(182, 121, 67, 0.16) !important;
  border: 1px solid rgba(230, 185, 132, 0.28) !important;
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-card, .rec-folder-card, .rec-lesson-card) {
  background: #1E242C !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-card, .rec-folder-card, .rec-lesson-card):hover,
html.dark #recordedLessonsModal#recordedLessonsModal .rec-lesson-card.is-completed {
  border-color: rgba(140, 211, 181, 0.42) !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-teacher-avatar {
  background: rgba(182, 121, 67, 0.18) !important;
  border: 1px solid rgba(230, 185, 132, 0.30) !important;
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-folder-avatar {
  background: rgba(47, 102, 82, 0.22) !important;
  border: 1px solid rgba(140, 211, 181, 0.30) !important;
  color: #8CD3B5 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal :is(.rec-teacher-title, .rec-lesson-teacher) {
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal :is(.rec-folder-desc, .rec-lesson-meta, .rec-crumb-link) {
  color: #9AA5B4 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-crumb-active {
  color: #8CD3B5 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-folder-pill {
  background: rgba(47, 102, 82, 0.24) !important;
  border-color: rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal :is(.rec-lesson-pill, .rec-lesson-num, .rec-resume-badge) {
  background: rgba(182, 121, 67, 0.22) !important;
  border-color: rgba(230, 185, 132, 0.34) !important;
  color: #E6B984 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-empty-pill {
  background: #222832 !important;
  border-color: rgba(182, 121, 67, 0.24) !important;
  color: #9AA5B4 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal :is(.rec-action-btn, .rec-arrow-btn) {
  background: #222832 !important;
  border: 1px solid rgba(182, 121, 67, 0.26) !important;
  color: #CBD5E1 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .group:hover .rec-arrow-btn {
  background: #2F6652 !important;
  border-color: rgba(140, 211, 181, 0.45) !important;
  color: #FFFFFF !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-check-btn {
  background: #222832 !important;
  border-color: rgba(182, 121, 67, 0.26) !important;
  color: #CBD5E1 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-check-btn.is-checked {
  background: rgba(47, 102, 82, 0.26) !important;
  border-color: rgba(140, 211, 181, 0.38) !important;
  color: #8CD3B5 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-lesson-desc {
  background: #13171D !important;
  border-color: rgba(182, 121, 67, 0.22) !important;
  color: #E2E8F0 !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .rec-empty-card {
  background: #13171D !important;
  border: 1px dashed rgba(140, 211, 181, 0.26) !important;
  color: #F5F2EC !important;
}

html.dark #recordedLessonsModal#recordedLessonsModal .modal-empty-icon-box {
  background: rgba(47, 102, 82, 0.24) !important;
  border: 1px solid rgba(140, 211, 181, 0.32) !important;
  color: #8CD3B5 !important;
}

/* ============================================================================
   CLASSROOMS LOBBY ORNAMENTAL FLOOR WATERMARK (Light & Dark Mode)
   ============================================================================ */
#mainApp#mainApp.app-inside-shell #classroomsLobbyView .inside-lobby-content-wrap {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .inside-lobby-stack {
  position: relative !important;
  z-index: 2 !important;
  width: 100%;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-ornamental-watermark {
  position: absolute !important;
  inset: 0 !important;
  padding-top: 4.5rem;
  padding-bottom: 1.25rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  user-select: none !important;
  overflow: hidden !important;
  z-index: 0 !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  #mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-ornamental-watermark {
    padding-top: 6rem;
    padding-bottom: 5.5rem;
  }
}

/* Subtle edge-to-edge celestial curves, crescents & starlight — completely clear of the central lantern */
#mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  -webkit-mask-image: radial-gradient(ellipse 195px 275px at 50% calc(50% + 1.625rem), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
  mask-image: radial-gradient(ellipse 195px 275px at 50% calc(50% + 1.625rem), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry .celestial-arcs {
  stroke: #5C4F38 !important;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry .celestial-stars {
  fill: #9A7242 !important;
}

@media (max-width: 768px) {
  #mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry {
    -webkit-mask-image: radial-gradient(ellipse 130px 190px at 50% calc(50% + 0.25rem), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
    mask-image: radial-gradient(ellipse 130px 190px at 50% calc(50% + 0.25rem), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
  }
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-lantern-wrap {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-lantern {
  position: relative !important;
  z-index: 1 !important;
  width: clamp(155px, 20vw, 240px) !important;
  max-height: 60vh !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  opacity: 0.145 !important;
  mix-blend-mode: multiply !important;
  filter: sepia(0.24) saturate(0.88) contrast(1.04) !important;
  -webkit-user-drag: none !important;
}

/* Dark Mode Celestial Floor Engraving */
html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry {
  opacity: 0.82 !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry .celestial-arcs {
  stroke: #C9A978 !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-tapestry .celestial-stars {
  fill: #DAC2AA !important;
}

html.dark #mainApp#mainApp.app-inside-shell #classroomsLobbyView .lobby-wm-lantern {
  opacity: 0.095 !important;
  mix-blend-mode: screen !important;
  filter: brightness(2.8) sepia(0.45) saturate(0.85) contrast(1.05) !important;
}
