/* ==============================================================================
   CWOSTE Saïda - Unified SaaS Design System
   Services Sociaux des Travailleurs de l'Education - Wilaya de Saïda
   Supports: RTL (Arabic) / LTR (French, English), Light & Dark Theme
   ============================================================================== */

@font-face{font-family:Cairo;src:url('../fonts/cairo.ttf') format('truetype');font-weight:300 500;font-display:swap}
@font-face{font-family:Cairo;src:url('../fonts/cairo_semibold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:Cairo;src:url('../fonts/cairo_bold.ttf') format('truetype');font-weight:700 800;font-display:swap}

img {
  max-width: 100%;
}

:root {
  /* Brand Palette */
  --brand-primary: #0d5c4e;
  --brand-primary-light: #127967;
  --brand-primary-dark: #083c33;
  --brand-secondary: #1e3a8a;
  --brand-secondary-light: #2563eb;
  --brand-accent: #d97706;
  --brand-accent-hover: #b45309;

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #0ea5e9;

  /* Light Theme Variables */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-sidebar: #092c25;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #0d5c4e;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #283548;
  --bg-sidebar: #061915;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.1);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --border-color: #334155;
  --border-focus: #14b8a6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Universal Contrast Overrides (Ensures NO black text on dark backgrounds) */
[data-theme="dark"] body,
[data-theme="dark"] {
  color: #f1f5f9 !important;
  background-color: var(--bg-body) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] strong,
[data-theme="dark"] b {
  color: #ffffff !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.badge):not(.btn) {
  color: #f1f5f9;
}

[data-theme="dark"] .text-dark:not(.badge):not(.btn) {
  color: #f8fafc !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
  color: #94a3b8 !important;
}

[data-theme="dark"] .saas-card,
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-content-saas,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .list-group-item {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .bg-body-secondary,
[data-theme="dark"] .bg-body-tertiary,
[data-theme="dark"] .bg-surface,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .input-group-text {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.25) !important;
}

[data-theme="dark"] .table-saas th,
[data-theme="dark"] .table th {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .table-saas td,
[data-theme="dark"] .table td {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .table-saas tr:hover td {
  background-color: rgba(20, 184, 166, 0.08) !important;
}

[data-theme="dark"] .ocr-result-box {
  background: rgba(13, 92, 78, 0.2) !important;
  border-color: #14b8a6 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .timeline-content {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

/* Base & Typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Arabic RTL Specific Typography */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-light);
}

/* App Header & Navbar */
.app-navbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-primary);
}

.brand-icon-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(13, 92, 78, 0.3);
}

/* Saïda Landmark Animated Hero Header (Deep Algerian Emerald Gradient with Crisp High-Contrast Typography) */
.hero-banner,
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4.8rem 1.5rem;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 12px 35px rgba(13, 92, 78, 0.32);
  color: #ffffff !important;
  background: #05231d !important;
}

.hero-banner-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('../images/saida_landmark_header.jpg');
  background-size: cover;
  background-position: center 38%;
  filter: brightness(0.68) saturate(1.15) contrast(1.08);
  animation: saidaLandmarkKenBurns 28s ease-in-out infinite alternate;
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 35, 29, 0.90) 0%, rgba(13, 92, 78, 0.80) 55%, rgba(15, 118, 110, 0.85) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}

@keyframes saidaLandmarkKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1%, -1.5%);
  }
  100% {
    transform: scale(1.12) translate(1%, -1%);
  }
}

/* Floating Glassmorphism Landmark Badge */
.saida-landmark-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff !important;
  animation: saidaLandmarkFloat 4s ease-in-out infinite alternate;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.saida-landmark-badge:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.saida-landmark-badge .landmark-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.hero-banner::after,
.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

@keyframes saidaLandmarkFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

.hero-section h1,
.hero-banner h1 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-section p,
.hero-banner p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Big Service Title Category Cards inside Hero (Interactive filter to show result on same page) */
.home-category-card {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 18px;
  padding: 18px 10px;
  text-align: center;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.home-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-category-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #fde047 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(253, 224, 71, 0.3);
}

.home-category-card:hover::before {
  opacity: 1;
}

.home-category-card.active {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5), 0 12px 28px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.cat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.home-category-card:hover .cat-card-icon {
  transform: scale(1.12) rotate(-3deg);
}

/* Category Icon Gradients */
.cat-grants {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
}

.cat-health {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  color: #ffffff;
}

.cat-loans {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
}

.cat-activities {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
}

.cat-coop {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
}

.cat-all-icon {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #ffffff;
}

.cat-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 6px;
  line-height: 1.25;
}

.cat-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  margin-bottom: 6px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cat-card-badge.badge-gold {
  background: #f59e0b;
  color: #000000;
  border-color: #fbbf24;
}

.cat-card-badge.badge-all {
  background: #ec4899;
  color: #ffffff;
  border-color: #f472b6;
}

.cat-card-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

/* Metric Counter Cards (Fallback/Internal) */
.metric-counter-card {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  color: #ffffff !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.metric-counter-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2) !important;
}

.metric-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fde047 !important; /* bright vibrant amber gold */
  line-height: 1.2;
}

.metric-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  margin-top: 4px;
}

.stats-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stats-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.stats-val {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.stats-lbl {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Modern SaaS Cards */
.saas-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.saas-card:hover {
  box-shadow: var(--shadow-md);
}

.saas-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.saas-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Service Catalog Item Card */
.service-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.service-item-card .service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(13, 92, 78, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-item-card .service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

html[dir="rtl"] .service-item-card .service-badge {
  right: auto;
  left: 1rem;
}

/* Buttons */
.btn-saas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-saas-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-saas-primary:hover {
  background-color: var(--brand-primary-light);
  color: #ffffff;
}

.btn-saas-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-saas-secondary:hover {
  background-color: var(--border-color);
}

.btn-saas-accent {
  background-color: var(--brand-accent);
  color: #ffffff;
}

.btn-saas-accent:hover {
  background-color: var(--brand-accent-hover);
  color: #ffffff;
}

.btn-saas-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-submitted { background: #e0f2fe; color: #0369a1; }
.badge-under_verification { background: #fef3c7; color: #b45309; }
.badge-first_approved { background: #dbeafe; color: #1d4ed8; }
.badge-under_second_verification { background: #fae8ff; color: #86198f; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-pending_payment { background: #ffedd5; color: #c2410c; }
.badge-paid { background: #d1fae5; color: #047857; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-correction_needed { background: #fef9c3; color: #a16207; }

/* Timeline (Interactive Tracking) */
.timeline-track {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

html[dir="rtl"] .timeline-track {
  padding-left: 0;
  padding-right: 2rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 10px;
  width: 2px;
  background: var(--border-color);
}

html[dir="rtl"] .timeline-track::before {
  left: auto;
  right: 10px;
}

.timeline-step {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-bullet {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

html[dir="rtl"] .timeline-bullet {
  left: auto;
  right: -2rem;
}

.timeline-step.completed .timeline-bullet {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.timeline-step.active .timeline-bullet {
  border-color: var(--brand-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
}

/* Modern Tables */
.table-saas {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-saas th {
  background-color: var(--bg-body);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

html[dir="rtl"] .table-saas th {
  text-align: right;
}

.table-saas td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  background-color: var(--bg-surface);
  font-size: 0.95rem;
}

.table-saas tr:hover td {
  background-color: rgba(13, 92, 78, 0.03);
}

/* Modals & Dialogs */
.modal-saas {
  /* Native Bootstrap modal backdrop and stacking flow */
}

.modal-content-saas {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  color: var(--text-main);
}

/* OCR Preview Box */
.ocr-result-box {
  background: rgba(13, 92, 78, 0.04);
  border: 1px dashed var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
}

/* Toast Container */
#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

html[dir="rtl"] #toastContainer {
  right: auto;
  left: 1.5rem;
}

.toast-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 320px;
  max-width: 420px;
  animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Admin & Portal Sidebar */
.portal-layout {
  display: flex;
  min-height: calc(100vh - 65px);
}

.portal-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.portal-sidebar-nav {
  list-style: none;
  padding: 1rem 0.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portal-sidebar-item:hover, .portal-sidebar-item.active {
  background: var(--bg-sidebar-hover);
  color: #ffffff;
}

.portal-sidebar-item i {
  font-size: 1.2rem;
}

.portal-main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Skeleton Loading Shimmer */
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--border-color) 25%, rgba(255,255,255,0.2) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .portal-layout {
    flex-direction: column;
  }
  .portal-sidebar {
    width: 100%;
  }
  .portal-main-content {
    padding: 1rem;
  }
}

/* ==============================================================================
   SPLASH SCREEN & SITE LOGO STYLING
   ============================================================================== */

/* Site Navbar Logo */
.site-navbar-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(13, 92, 78, 0.2));
  transition: transform 0.25s ease;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-badge:hover .site-navbar-logo {
  transform: scale(1.08) rotate(-3deg);
}

/* Splash Screen Overlay (Seamlessly adapts to both transparent and opaque logos) */
.splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 55%, #e2e8f0 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #0f172a;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  overflow: hidden;
  cursor: pointer;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  max-width: 90%;
  width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: splashPopIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Logo with Orbiting Dots Container */
.splash-logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.splash-logo {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 6px 16px rgba(13, 92, 78, 0.2));
  z-index: 3;
  animation: logoFloat 2.8s ease-in-out infinite alternate;
}

/* Outer Orbiting Dots Ring */
.orbiting-dots-ring {
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  animation: rotateDots 6s linear infinite;
  z-index: 1;
}

.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); background: #ef4444; color: rgba(239, 68, 68, 0.8); }
.orbit-dot:nth-child(2) { top: 15%; right: 15%; background: #0d5c4e; color: rgba(13, 92, 78, 0.8); }
.orbit-dot:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); background: #f59e0b; color: rgba(245, 158, 11, 0.8); }
.orbit-dot:nth-child(4) { bottom: 15%; right: 15%; background: #10b981; color: rgba(16, 185, 129, 0.8); }
.orbit-dot:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); background: #ef4444; color: rgba(239, 68, 68, 0.8); }
.orbit-dot:nth-child(6) { bottom: 15%; left: 15%; background: #0d5c4e; color: rgba(13, 92, 78, 0.8); }
.orbit-dot:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); background: #f59e0b; color: rgba(245, 158, 11, 0.8); }
.orbit-dot:nth-child(8) { top: 15%; left: 15%; background: #10b981; color: rgba(16, 185, 129, 0.8); }

/* Text Elements in Splash */
.splash-country {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 600;
}

.splash-ministry {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d5c4e;
  margin-bottom: 5px;
}

.splash-main-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.splash-latin {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #059669;
  margin-bottom: 14px;
}

/* Horizontal Circular Dots Loader */
.circle-dots-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.circle-dots-loader .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  animation: bounceDot 1.4s ease-in-out infinite both;
}

.circle-dots-loader .dot:nth-child(1) { animation-delay: -0.45s; background: #0d5c4e; }
.circle-dots-loader .dot:nth-child(2) { animation-delay: -0.30s; background: #f59e0b; }
.circle-dots-loader .dot:nth-child(3) { animation-delay: -0.15s; background: #ef4444; }
.circle-dots-loader .dot:nth-child(4) { animation-delay: 0s; background: #10b981; }
.circle-dots-loader .dot:nth-child(5) { animation-delay: 0.15s; background: #3b82f6; }

.splash-status-text {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* Keyframe Animations */
@keyframes rotateDots {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceDot {
  0%, 80%, 100% {
    transform: scale(0.5);
    opacity: 0.35;
  }
  40% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 16px currentColor;
  }
}

@keyframes logoFloat {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-5px) scale(1.02); }
}

@keyframes splashPopIn {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

/* ==============================================================================
   Navbar & Clean Circular Emblem Logo Styling (Seamless on transparent & opaque)
   ============================================================================== */
.site-navbar-logo {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.site-navbar-logo:hover {
  transform: scale(1.08);
}

/* Backwards-compatible transparent helper classes (No artificial white box) */
.logo-white-pane,
.logo-white-pane-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* ==============================================================================
   Floating Direct Chat Widget Styles
   ============================================================================== */
.chat-floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d5c4e 0%, #127967 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(13, 92, 78, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  z-index: 9999;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(13, 92, 78, 0.6);
  color: #fbbf24;
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
}

.chat-widget-box {
  position: fixed;
  bottom: 92px;
  left: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-widget-header {
  background: linear-gradient(135deg, #0d5c4e 0%, #127967 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-widget-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--bg-body);
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.chat-bubble-in {
  align-self: flex-start;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.chat-bubble-out {
  align-self: flex-end;
  background: #0d5c4e;
  color: #ffffff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(13, 92, 78, 0.25);
}

.chat-time {
  font-size: 0.68rem;
  opacity: 0.75;
  margin-top: 4px;
  text-align: left;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.chat-chip {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(13, 92, 78, 0.08);
  color: #0d5c4e;
  border: 1px solid rgba(13, 92, 78, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-chip:hover {
  background: #0d5c4e;
  color: #ffffff;
}

/* ==============================================================================
   News Feed Cards & Announcements
   ============================================================================== */
.news-feed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #0d5c4e;
}

.news-card-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
}

.news-pinned-tag {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================================
   Notifications Drawer Items
   ============================================================================== */
.notification-card-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.notification-card-item:hover {
  background-color: rgba(13, 92, 78, 0.04);
}

.notification-card-item.unread {
  border-right: 4px solid #0d5c4e;
  background-color: rgba(13, 92, 78, 0.06);
}

/* ==============================================================================
   1er Novembre 2026 National Launch Announcement & Pre-launch Production Mode
   ============================================================================== */
.nov1-national-banner {
  background: linear-gradient(135deg, #073b31 0%, #0d5c4e 45%, #052e26 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(13, 92, 78, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.nov1-national-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.nov1-national-banner h1,
.nov1-national-banner h2,
.nov1-national-banner h3,
.nov1-national-banner h4,
.nov1-national-banner strong {
  color: #ffffff !important;
}

.nov1-national-banner p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.nov1-flag-box {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nov1-flag-box-lg {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: inline-block;
  border: 2px solid #f59e0b;
}

.nov1-commemorative-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde68a !important;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.prelaunch-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prelaunch-step-card:hover {
  transform: translateY(-3px);
  border-color: #0d5c4e;
  box-shadow: var(--shadow-md);
}

.prelaunch-step-card.active-prep {
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.03);
}

.service-card-prelaunch-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #000000;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 2;
}


:root{--portal-ease:cubic-bezier(.2,.7,.2,1)}
.membership-shell{border:0;border-radius:24px;overflow:hidden}
.member-kind-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.member-kind{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:120px;padding:22px;border:2px solid #d6e4de;border-radius:20px;background:var(--bg-surface,#fff);color:inherit;transition:border-color .2s,background .2s,transform .2s}
.member-kind i{font-size:1.8rem;color:#168354}.member-kind strong{font-size:1.25rem}.member-kind small{opacity:.7}
.member-kind.selected{border-color:#168354;background:rgba(22,131,84,.09)}
.member-kind:focus-visible,.btn:focus-visible{outline:3px solid #58ab82;outline-offset:3px}
.email-proof{background:rgba(22,131,84,.07);border:1px solid rgba(22,131,84,.18)}
[data-member-field][hidden]{display:none!important}
.umrah-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(24px,4vw,46px);border-radius:26px;background:linear-gradient(120deg,#103e36,#166d57 55%,#877038);color:#fff;box-shadow:0 14px 36px #103e3625}
.umrah-hero::before{content:'';position:absolute;inset:-80%;z-index:-1;background:linear-gradient(115deg,transparent 45%,#ffffff12 50%,transparent 55%);animation:umrah-light 6s ease-in-out 3}
.umrah-hero h2{color:#fff!important;font-weight:800;font-size:clamp(1.65rem,3vw,2.4rem)}.umrah-hero p{line-height:1.9;max-width:640px;margin-bottom:0}
.umrah-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%;z-index:-3;animation:umrah-photo-arrive 1.2s ease-out both}
.umrah-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,#082921cc,#082921dd 60%,#1c20166e);z-index:-2}
@keyframes umrah-photo-arrive{from{opacity:0;transform:scale(1.035)}to{opacity:1;transform:scale(1)}}
.clinic-map{height:420px;min-height:280px;width:100%;border-radius:18px;overflow:hidden;border:1px solid var(--border-color,#dae3df);direction:ltr}
.user-location-dot span{display:block;width:22px;height:22px;border-radius:50%;background:#287cf1;border:4px solid white;box-shadow:0 0 0 3px #287cf180}
.clinic-location-card{color:var(--text-main);background:var(--bg-surface);border:1px solid var(--border-color,#dae3df);transition:transform .2s,box-shadow .2s;border-radius:20px}
.clinic-location-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #08292120}
.clinic-map .leaflet-tooltip{color:#172d24;background:#fff;font-size:14px;font-family:inherit}
@media(prefers-reduced-motion:reduce){.umrah-photo{animation:none}.clinic-location-card{transition:none}}
.umrah-live{display:inline-flex;align-items:center;gap:10px;border-radius:99px;padding:7px 14px;background:#ffffff18;border:1px solid #ffffff30;font-weight:700}
.umrah-live>span{width:9px;height:9px;border-radius:50%;background:#d7f2ad;box-shadow:0 0 0 5px #d7f2ad20;animation:umrah-glow 2s ease-in-out 5}
.umrah-hero-action{display:flex;flex-direction:column;align-items:center;gap:20px;flex-shrink:0}.umrah-hero-action>i{font-size:3rem;color:#f7df9d}.umrah-hero-action .btn{border-radius:14px;font-weight:700}
.registration-sheet{padding:24px;border:1px solid #d6e4de;border-radius:16px;background:#fff;color:#20342a}.registration-sheet header{text-align:center;border-bottom:2px solid #168354;padding-bottom:18px}.registration-sheet #registrationQr img{margin:12px auto}.registration-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:16px}.registration-fields dt{font-size:.85rem;color:#166534}.registration-fields dd{padding:6px 0;margin:0;border-bottom:1px solid #eee}.registration-sheet footer{font-size:.8rem;text-align:center;padding-top:16px}
.saas-card,.service-card,.home-category-card{transition:transform .2s var(--portal-ease),box-shadow .2s var(--portal-ease);contain:layout style}
@media(hover:hover){.member-kind:hover{transform:translateY(-2px)}.service-card:hover,.home-category-card:hover{transform:translateY(-3px)}}
@keyframes umrah-light{from{transform:translateX(-18%)}to{transform:translateX(18%)}}
@keyframes umrah-glow{50%{box-shadow:0 0 0 9px #d7f2ad08}}
@media(max-width:650px){.app-navbar{flex-wrap:wrap;gap:12px;padding:12px 16px}.app-navbar>div:last-child{width:100%;justify-content:space-between;flex-wrap:wrap}.umrah-hero{flex-direction:column;align-items:stretch}.umrah-hero-action{flex-direction:row;justify-content:space-between}.umrah-hero-action>i{font-size:2rem}.member-kind{padding:18px 8px}.registration-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[data-theme="dark"] .registration-sheet h2,[data-theme="dark"] .registration-sheet p,[data-theme="dark"] .registration-sheet small{color:#20342a!important}


/* ==============================================================================
   Unified 1er Novembre 2026 Official Launch Hero & Symbolic Images
   ============================================================================== */
.hero-section.nov1-hero-unified {
  background: linear-gradient(135deg, #05241e 0%, #0d5c4e 45%, #08382f 80%, #031814 100%) !important;
  border-bottom: 3px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 16px 45px rgba(5, 36, 30, 0.45);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.nov1-hero-unified .saida-landmark-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fde68a;
}

.launch-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.launch-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(0, 0, 0, 0.5);
}

.symbolic-main-banner {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  border-radius: 16px;
}

.symbolic-main-banner:hover {
  transform: scale(1.015);
}

.symbolic-thumb-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.symbolic-thumb-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.symbolic-img-frame {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.symbolic-thumb-label {
  font-size: 0.75rem;
  color: #fde68a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-badge-overlay {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ==============================================================================
   Big Category Cards for Login & Registration (Spacious, Responsive & Elegant)
   ============================================================================== */
.login-category-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.login-cat-card {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 190px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.login-cat-card.clinic-card,
.login-cat-card.admin-card {
  flex: 1 1 calc(50% - 10px);
  min-width: 220px;
}

@media (max-width: 768px) {
  .login-cat-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 10px 6px;
  }
  .login-cat-card.clinic-card,
  .login-cat-card.admin-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .login-cat-card {
    flex: 1 1 100%;
  }
}

.login-cat-card:hover {
  transform: translateY(-3px);
  border-color: #103E36;
  box-shadow: 0 8px 18px rgba(16, 62, 54, 0.12);
}

.login-cat-card.active-card {
  border-color: #103E36;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 0 0 0 2px rgba(16, 62, 54, 0.25), 0 8px 24px rgba(16, 62, 54, 0.16);
  transform: translateY(-2px);
}

.login-cat-card.active-card .cat-check-badge {
  display: inline-flex !important;
}

.login-cat-card.clinic-card.active-card {
  border-color: #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25), 0 8px 24px rgba(2, 132, 199, 0.16);
}

.login-cat-card.admin-card.active-card {
  border-color: #1e293b;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.3), 0 8px 24px rgba(15, 23, 42, 0.18);
}

.login-cat-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
  transition: transform 0.25s ease;
}

.login-cat-card:hover .login-cat-card-icon {
  transform: scale(1.08);
}

.cat-check-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: #103E36;
  color: #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.clinic-card .cat-check-badge {
  background: #0284c7;
}

.admin-card .cat-check-badge {
  background: #1e293b;
}

.login-cat-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3px;
  line-height: 1.3;
}

.login-cat-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.25;
}

.login-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ==============================================================================
   UX Animation for Big Cards & Form Reveal (Animated Modal Flow)
   ============================================================================== */
.modal-pane-cards {
  animation: modalPaneFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-pane-form {
  animation: modalPaneSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPaneFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalPaneSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Big Interactive Cards Styling */
.portal-big-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portal-big-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(16, 62, 54, 0.16);
  border-color: #103e36;
}

.portal-big-card.clinic-big-card:hover {
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.18);
  border-color: #0284c7;
}

.portal-big-card.admin-big-card:hover {
  box-shadow: 0 14px 30px rgba(30, 41, 59, 0.2);
  border-color: #1e293b;
}

.big-card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}

.portal-big-card:hover .big-card-icon-wrap {
  transform: scale(1.1);
}

.big-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.big-card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.big-card-note {
  font-size: 0.78rem;
  color: #0d5c4e;
  background: rgba(16, 185, 129, 0.08);
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.portal-big-card.clinic-big-card .big-card-note {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.08);
}

.portal-big-card.admin-big-card .big-card-note {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
}

.big-card-btn {
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

/* Algerian Revolution Presentation Card */
.revolution-presentation-card {
  background: linear-gradient(135deg, #05241e 0%, #0d5c4e 45%, #08382f 80%, #031814 100%);
  border: 2px solid rgba(245, 158, 11, 0.7);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(5, 36, 30, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.25) inset;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
