@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Cairo:wght@400;600;700;800&display=swap');

:root {
  /* Brand Colors derived from Dr. Heba Osama's Logo */
  --brand-green: #10b981;
  --brand-green-hover: #059669;
  --brand-green-light: #ecfdf5;
  --brand-green-glow: rgba(16, 185, 129, 0.2);

  --brand-cyan: #00b4d8;
  --brand-cyan-hover: #0096c7;
  --brand-cyan-light: #e0f2fe;
  --brand-cyan-glow: rgba(0, 180, 216, 0.2);

  --brand-navy: #0b253a;
  --brand-navy-dark: #061724;
  --brand-navy-surface: #11334f;
  --brand-navy-light: #1d4b70;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-purple: #8b5cf6;

  /* Payment Badges */
  --paid-green: #10b981;
  --paid-bg: #ecfdf5;
  --paid-border: #a7f3d0;
  --unpaid-red: #ef4444;
  --unpaid-bg: #fef2f2;
  --unpaid-border: #fecaca;
  --pending-amber: #f59e0b;
  --pending-bg: #fffbeb;
  --pending-border: #fde68a;

  /* Neutral Backgrounds (Crisp Modern Light Theme) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 37, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 58, 0.08);
  --shadow-lg: 0 16px 36px rgba(11, 37, 58, 0.12);
  --shadow-green: 0 8px 20px rgba(16, 185, 129, 0.25);
  --shadow-cyan: 0 8px 20px rgba(0, 180, 216, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RTL Arabic mode override */
[dir="rtl"] {
  --font-heading: 'Cairo', 'Outfit', sans-serif;
  --font-body: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

section[id],
.hero-section,
.about-section,
.courses-section,
.syllabus-explorer-section {
  scroll-margin-top: 85px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Chemistry Floating Orbits & Decorative BG */
.chemistry-pattern-bg {
  position: relative;
}

.chemistry-pattern-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#10b981 1px, transparent 1px), radial-gradient(#00b4d8 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.04;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 180, 216, 0.35);
}

.btn-navy {
  background: var(--brand-navy);
  color: #ffffff;
}
.btn-navy:hover {
  background: var(--brand-navy-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand-navy);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: var(--brand-cyan-light);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-icon-only {
  padding: 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-green {
  background: var(--paid-bg);
  color: var(--paid-green);
  border: 1px solid var(--paid-border);
}

.badge-red {
  background: var(--unpaid-bg);
  color: var(--unpaid-red);
  border: 1px solid var(--unpaid-border);
}

.badge-cyan {
  background: var(--brand-cyan-light);
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-navy {
  background: rgba(11, 37, 58, 0.08);
  color: var(--brand-navy);
  border: 1px solid rgba(11, 37, 58, 0.12);
}

.badge-gold {
  background: var(--accent-gold-light);
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  transition: var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}
.brand-logo-img:hover {
  transform: scale(1.04);
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-green);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
  transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-navy);
  transition: var(--transition-fast);
}
.lang-toggle-btn:hover {
  background: #ffffff;
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 37, 58, 0.72);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 95%;
  max-width: 780px;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-sizing: border-box;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-track {
  background: transparent;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 999px;
}
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.45);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
  animation: modalSpringUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalSpringUp {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.modal-body {
  padding: 16px 24px;
  overflow-x: hidden !important;
  width: 100%;
  box-sizing: border-box;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Modal Content Overflow and Grid Containment */
.modal-card form {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.modal-card input,
.modal-card select,
.modal-card textarea,
.modal-card .form-input,
.modal-card .form-select,
.modal-card .form-textarea,
.modal-card .custom-select-wrapper,
.modal-card .custom-select-trigger,
.modal-card .file-dropzone,
.modal-card .form-group,
.modal-card .card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-card input[type="date"],
.modal-card input[type="text"],
.modal-card input[type="url"],
.modal-card input[type="number"],
.modal-card input[type="password"],
.modal-card input[type="tel"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--unpaid-red);
  background: var(--unpaid-bg);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

/* Compact form spacing inside modals — reduces need to scroll */
.modal-card .form-group {
  margin-bottom: 12px;
}

.modal-card .form-input,
.modal-card .form-textarea {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.modal-card .custom-select-trigger {
  padding: 9px 14px;
  font-size: 0.9rem;
}

.modal-card .form-label {
  font-size: 0.84rem;
  margin-bottom: 5px;
}

.modal-card .form-row-2col {
  gap: 12px;
}


.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

/* Modern Premium Dropdown & Select Styling */
select,
.form-select {
  width: 100%;
  padding: 11px 42px 11px 16px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230284c7'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  outline: none;
}

select:hover,
.form-select:hover {
  border-color: #0284c7;
  background-color: #f8fafc;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
}

select:focus,
.form-select:focus {
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.22);
}

/* Individual Dropdown Options Styling */
select option,
.form-select option {
  background-color: #ffffff;
  color: var(--brand-navy);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

select option:hover,
select option:focus,
select option:checked,
.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700;
}

/* Dropdown Group Header Styling */
select optgroup,
.form-select optgroup {
  font-weight: 800;
  color: #0891b2;
  background-color: #f8fafc;
  padding: 8px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

select option:disabled,
.form-select option:disabled {
  color: #94a3b8;
  background-color: #f8fafc;
}

/* ==========================================================================
   Modern Custom Dropdown Select System (.custom-select-wrapper)
   Replaces rigid Windows OS square option popups with luxurious floating menus
   ========================================================================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.custom-select-wrapper.is-open {
  z-index: 2500;
}

/* Visually hide native select while keeping it submittable in FormData */
.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Custom Select Trigger Button */
.custom-select-trigger {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: #0284c7;
  background-color: #f8fafc;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
}

.custom-select-wrapper.is-open .custom-select-trigger {
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.22);
}

.custom-select-wrapper.is-disabled .custom-select-trigger {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.custom-select-label {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.custom-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 0.85rem;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.custom-select-wrapper.is-open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Floating Custom Select Popup Menu */
.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 38px -4px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
}

.custom-select-wrapper.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Upward opening when space below is tight */
.custom-select-wrapper.is-open-up .custom-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px) scale(0.98);
}

.custom-select-wrapper.is-open.is-open-up .custom-select-menu {
  transform: translateY(0) scale(1);
}

/* Scrollable Options Container */
.custom-select-options {
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Option Item */
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin: 2px 0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.13s ease, color 0.13s ease;
  line-height: 1.45;
}

.custom-select-option .option-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.custom-select-option:hover,
.custom-select-option.is-focused {
  background: #f0f9ff;
  color: #0284c7;
}

.custom-select-option.is-selected {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(14, 165, 233, 0.16));
  color: #0369a1;
  font-weight: 700;
}

.custom-select-option .check-icon {
  color: #0284c7;
  font-size: 0.82rem;
  margin-left: 8px;
  flex-shrink: 0;
}

.custom-select-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-select-option.is-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 14px;
  letter-spacing: 0.04em;
}

/* Country Code Specific Adjustments */
.phone-input-group .custom-select-wrapper.country-code-custom-wrapper {
  flex: 0 0 145px;
  width: 145px;
  max-width: 155px;
}

.phone-input-group .country-code-custom-wrapper .custom-select-trigger {
  padding: 9px 10px;
  font-size: 0.85rem;
  background-color: #f8fafc;
}

.phone-input-group .country-code-custom-wrapper .custom-select-menu {
  min-width: 220px;
}

/* Filter Item Group inside Searcher Bars */
.filter-item-group .custom-select-wrapper {
  width: 100%;
}

.filter-item-group .custom-select-trigger {
  padding: 9px 12px;
  font-size: 0.88rem;
}

/* Responsive Form Row Grids (2-column & 3-column) */
.form-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-row-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .form-row-3col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* International Phone Input with Arab Country Code Select */
.phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.phone-input-group .form-input {
  flex: 1 1 0;
  min-width: 0;
}

.country-code-select {
  flex: 0 0 145px;
  width: 145px;
  max-width: 155px;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  background-color: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-code-select:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.country-code-select:focus {
  background-color: #ffffff;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

.phone-input-group .form-input {
  flex: 1;
  min-width: 0;
}

/* Phone Display Badges with Country Flag */
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-navy);
  letter-spacing: 0.01em;
}

.phone-flag {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
}

@media (max-width: 420px) {
  .country-code-select {
    flex: 0 0 130px;
    width: 130px;
    padding: 10px 6px;
    font-size: 0.82rem;
  }
}


/* Notification Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--brand-green);
  animation: slideInUp 0.3s ease forwards;
}

[dir="rtl"] .toast {
  border-left: none;
  border-right: 4px solid var(--brand-green);
}

.toast-error {
  border-color: var(--unpaid-red);
}

.toast-info {
  border-color: var(--brand-cyan);
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Floating WhatsApp Quick Action for Students & Parents */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.8;
  animation: whatsappRadar 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes whatsappRadar {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  65% {
    transform: scale(1.48);
    opacity: 0;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

/* Smooth Tab Content Entrances across Admin & Student Portals */
.admin-main > div[id^="adminTab-"],
.admin-main > div[id^="assistantTab-"],
.student-layout div[id^="studentTab-"] {
  animation: tabPaneFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tabPaneFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Headings */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green-light);
  color: var(--brand-green-hover);
  border: 1px solid var(--paid-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* View Portal Switcher bar for testing & role navigation */
.portal-bar {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-navy-surface);
}

.portal-bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-tag-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--brand-navy-surface);
  color: #cbd5e1;
  transition: var(--transition-fast);
}
.portal-tag-btn:hover, .portal-tag-btn.active {
  background: var(--brand-green);
  color: #ffffff;
}

/* Responsive Mobile Navigation & Hamburger Button */
.mobile-menu-btn {
  display: none;
  font-size: 1.25rem;
  color: var(--brand-navy);
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.mobile-menu-btn:hover {
  background: #ffffff;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

/* Mobile Slide-Out Drawer Navigation */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 58, 0.6);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 86vw;
  background: #ffffff;
  box-shadow: 0 0 35px rgba(11, 37, 58, 0.25);
  z-index: 2600;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .mobile-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  touch-action: manipulation;
}

.mobile-drawer-close:hover {
  color: var(--unpaid-red);
  background: var(--unpaid-bg);
}

.mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--brand-green-light);
  color: var(--brand-green);
}

.mobile-nav-link i {
  width: 20px;
  color: var(--brand-cyan);
  font-size: 1.05rem;
  text-align: center;
}

.mobile-drawer-portals {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Responsive Grid Layout Utilities
   ========================================================================== */
.filter-grid-public {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: flex-start;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: center;
}

.report-generator-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: flex-start;
}

/* ==========================================================================
   Responsive Past Papers Vault (Mobile-First Cards & Desktop Table)
   ========================================================================== */
.past-papers-desktop-table {
  display: block;
  width: 100%;
}

.past-papers-mobile-list {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.past-paper-mobile-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 8px rgba(11, 37, 58, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
  width: 100%;
}

.past-paper-mobile-card:hover,
.past-paper-mobile-card:active {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-sm);
}

.pp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pp-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pp-syllabus-tag {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.pp-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--brand-navy);
}

.pp-card-title-link {
  color: var(--brand-navy);
  text-decoration: none;
  display: block;
  transition: color var(--transition-fast);
}

.pp-card-title-link:hover,
.pp-card-title-link:active {
  color: var(--brand-cyan);
}

.pp-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.pp-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  text-align: center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

.pp-action-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .section-title {
    font-size: 1.85rem;
  }
}

/* Smartphone Viewports (iPhone, Android) */
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .navbar {
    padding: 8px 0;
  }

  .navbar-inner {
    gap: 6px;
  }

  .brand-logo-wrap {
    gap: 8px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .brand-title {
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .brand-subtitle {
    display: none; /* Hide subtitle to preserve clean 1-line logo on mobile */
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-toggle-btn {
    padding: 6px 9px;
    font-size: 0.76rem;
    gap: 4px;
  }

  #navbarLoginBtn {
    padding: 6px 10px;
    font-size: 0.78rem;
    gap: 6px;
    max-width: 130px;
  }

  #navbarLoginBtn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #navbarLogoutBtn {
    padding: 6px 9px;
    font-size: 0.78rem;
    gap: 4px;
  }

  /* CRITICAL FOR iOS SAFARI: Prevents auto-zoom on input focus */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }

  /* Mobile Modals */
  .modal-overlay {
    padding: 12px 10px;
    align-items: flex-start;
  }

  .modal-card {
    margin: 16px auto;
    max-height: calc(100dvh - 32px);
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-footer {
    padding: 14px 16px;
  }

  .modal-close-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Toasts */
  .toast-container {
    left: 16px !important;
    right: 16px !important;
    bottom: 84px;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }

  /* Floating WhatsApp on mobile */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 18px;
    right: 18px;
  }

  [dir="rtl"] .whatsapp-float {
    right: auto;
    left: 18px;
  }

  /* Past Papers Mobile Toggle & Layout */
  .past-papers-desktop-table {
    display: none !important;
  }

  .past-papers-mobile-list {
    display: flex !important;
  }

  .filter-grid-public {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .filter-card-public {
    padding: 16px !important;
    margin-bottom: 20px !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .spotlight-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .report-generator-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .past-papers-table-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Extra Small Screens (<= 400px e.g. iPhone SE, Galaxy Fold, 360px Androids) */
@media (max-width: 420px) {
  .pp-card-actions {
    grid-template-columns: 1fr !important;
  }

  .past-paper-mobile-card {
    padding: 14px 12px;
  }

  .container {
    padding: 0 10px;
  }

  .brand-logo-wrap {
    gap: 6px;
  }

  .brand-logo-img {
    height: 30px;
  }

  .brand-title {
    font-size: 0.84rem;
  }

  .nav-actions {
    gap: 4px;
  }

  .lang-toggle-btn {
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  #navbarLoginBtn {
    padding: 5px 8px;
    font-size: 0.74rem;
    gap: 4px;
    max-width: 90px;
  }

  #navbarLogoutBtn {
    padding: 5px 8px;
    font-size: 0.74rem;
    gap: 4px;
  }

  #navbarLogoutBtn span {
    display: none;
  }

  .mobile-menu-btn {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Modern Interactive File Upload Dropzone (.file-dropzone)
   ========================================================================== */
.file-dropzone {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fafc;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.file-dropzone:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.file-dropzone.dragover {
  border-color: #0284c7;
  border-style: solid;
  background: rgba(224, 242, 254, 0.65);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
  transform: scale(1.01);
}

.file-dropzone-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-dropzone-content {
  pointer-events: none;
}

.file-dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.file-dropzone:hover .file-dropzone-icon,
.file-dropzone.dragover .file-dropzone-icon {
  transform: scale(1.1) translateY(-2px);
  background: #0284c7;
  color: #ffffff;
}

.file-dropzone-text {
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.file-dropzone-text strong {
  font-weight: 700;
}

.file-dropzone-text .browse-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-dropzone-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Selected File Preview Card inside Dropzone */
.file-dropzone-preview {
  display: none;
  margin-top: 14px;
  position: relative;
  z-index: 3;
}

.file-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.file-preview-icon {
  font-size: 1.6rem;
  color: #ef4444;
  flex-shrink: 0;
}

.file-preview-info {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-size {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-preview-remove {
  background: #fee2e2;
  border: none;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background-color 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}
.file-preview-remove:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Classroom Returned Box Dropzone Variant */
.classroom-returned-box .file-dropzone {
  border-color: #86efac;
  background: #ffffff;
}

.classroom-returned-box .file-dropzone:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

.classroom-returned-box .file-dropzone.dragover {
  border-color: #16a34a;
  border-style: solid;
  background: rgba(220, 252, 231, 0.7);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

.classroom-returned-box .file-dropzone:hover .file-dropzone-icon,
.classroom-returned-box .file-dropzone.dragover .file-dropzone-icon {
  background: #16a34a;
  color: #ffffff;
}

/* Codifica Services Footer Branding */
.codifica-link {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.codifica-link:hover {
  color: var(--brand-cyan);
}

.admin-footer-credit {
  text-align: center;
  padding: 24px 10px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
  margin-top: 32px;
}


/* === Premium Confirmation Popup Modal === */
#confirmDialogModal {
  z-index: 999999 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background: rgba(11, 37, 58, 0.78) !important;
}

#confirmDialogModal .modal-card {
  max-width: 440px !important;
  width: 92% !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -15px rgba(11, 37, 58, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  padding: 32px 26px !important;
  text-align: center !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
}

#confirmDialogModal.active .modal-card {
  transform: scale(1) translateY(0) !important;
  animation: modalConfirmSpring 0.35s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes modalConfirmSpring {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#confirmDialogIconContainer {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.9rem !important;
  margin: 0 auto 18px auto !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: pulseConfirmIcon 2.4s infinite ease-in-out !important;
}

@keyframes pulseConfirmIcon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

#confirmDialogTitle {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: var(--brand-navy) !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.3px !important;
}

#confirmDialogMessage {
  font-size: 0.92rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin-bottom: 26px !important;
  white-space: pre-line !important;
  word-break: break-word !important;
  text-align: center !important;
  max-height: 42vh !important;
  overflow-y: auto !important;
  padding: 0 6px !important;
}
