/* ─── EventFlow Platform – Elite Sophisticated Design System (Vercel, Stripe & Linear Inspired) ─── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors - Ultra Modern Royal Indigo & Cyan */
  --primary:        #4F46E5; /* Royal Indigo */
  --primary-dark:   #4338CA;
  --primary-light:  #EEF2FF;
  --accent:         #06B6D4; /* Vibrant Cyan */
  --accent-light:   #ECFEFF;
  
  /* Status Colors */
  --success:        #10B981; /* Emerald Green */
  --success-light:  #ECFDF5;
  --warning:        #F59E0B; /* Amber Yellow */
  --warning-light:  #FEF3C7;
  --danger:         #EF4444; /* Rose Red */
  --danger-light:   #FEF2F2;

  /* Neutrals - Deep Space Slate & Ice White */
  --bg:             #0B0F19; /* Space Dark */
  --bg-light:       #F8FAFC; /* Clean light slate */
  --surface:        #FFFFFF;
  --surface-hover:  #F1F5F9;
  --border:         #E2E8F0;
  --border-focus:   #818CF8;
  --text:           #0F172A;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  /* Sidebar */
  --sidebar-bg:     linear-gradient(180deg, #070A13 0%, #0F172A 100%);
  --sidebar-w:      270px;

  /* Shadows - Multi-layered fine ambient shadows */
  --shadow-sm:      0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:         0 10px 30px -10px rgba(2, 6, 23, 0.05), 0 1px 3px rgba(2, 6, 23, 0.02);
  --shadow-lg:      0 20px 40px -15px rgba(2, 6, 23, 0.3), 0 0 50px rgba(99, 102, 241, 0.03);

  /* Radius - Modern rounded aesthetic */
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  24px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  background-color: #EEF2FF;
  /* Rich Premium Mesh Gradient Background */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(6,182,212,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 10%,  rgba(139,92,246,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 10% 90%,  rgba(16,185,129,0.08) 0%, transparent 50%),
    radial-gradient(rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 28px 28px;
  background-attachment: fixed;
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.5;
}

/* Title Font overrides */
h1, h2, h3, h4, .brand-logo {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-dark); }

/* ─── Premium Center Glassmorphic Auth Pages ─── */
body.auth-page {
  background-color: #05070C;
  /* Premium dot-matrix background with soft giant glowing orbs */
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  background-size: 24px 24px, auto, auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-split-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  width: 100%;
  align-items: center;
}

/* ─── Marketing Side (Right) ─── */
.auth-marketing-side {
  color: #fff;
  padding-left: 10px;
}

.marketing-content h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.marketing-content h2 span {
  background: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  font-weight: 800;
  margin-top: 4px;
}

.marketing-intro {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 480px;
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.m-feature-card {
  background: rgba(17, 24, 39, 0.4);
  /* Elegant ultra-thin borders with slight opacity */
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: var(--r-lg);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Subtle glow outline on hover */
.m-feature-card:hover {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.m-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.m-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.m-text p {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.55;
  font-weight: 300;
}

/* ─── Auth Form Side (Left) ─── */
.auth-card-wrapper {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-logo {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  direction: ltr;
}
.brand-logo .brand-name {
  color: #ffffff;
}
.brand-logo .brand-nl {
  background: linear-gradient(135deg, #818CF8, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-tagline {
  color: #94A3B8;
  font-size: 1.15rem;
  margin-top: 6px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Frosted glass form card - Large & Spacious */
.auth-card-body {
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(129, 140, 248, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.12);
  border-radius: 24px;
  padding: 44px 38px;
}

.auth-card-body h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card-body .auth-subtitle {
  color: #94A3B8;
  margin-bottom: 28px;
  font-size: 1.1rem;
  text-align: center;
}

.auth-card-body .form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card-body label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: block;
}

.auth-card-body input[type="text"],
.auth-card-body input[type="email"],
.auth-card-body input[type="password"],
.auth-card-body select {
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 1.1rem;
  height: 54px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.auth-card-body input:focus,
.auth-card-body select:focus {
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
  background: rgba(0, 0, 0, 0.45);
}

.auth-card-body select option {
  background-color: #0b0f19;
  color: #fff;
}

.input-wrapper input {
  padding-left: 44px !important;
  padding-right: 18px !important;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  right: auto;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.7;
}


/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  height: 54px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.55);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--text-light);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-block {
  width: 100%;
}

/* ─── Main Web App Layout ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - Elegant & High-End Glassmorphism */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1000;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 30px 24px 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-brand span { color: var(--accent); }

.sidebar-section {
  padding: 20px 24px 8px;
  font-size: 0.72rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.sidebar nav {
  flex: 1;
  padding: 10px 16px;
  overflow-y: auto;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  color: #94A3B8;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.sidebar nav a:hover, 
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.04);
  color: #FFF;
}

.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.03) 100%);
  color: #FFF;
  font-weight: 500;
  box-shadow: inset -4px 0 0 var(--primary);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.20);
}

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

.sidebar-user-info .name {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}
.sidebar-user-info .role {
  font-size: 0.70rem;
  color: #64748B;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-right: var(--sidebar-w);
  padding: 40px 48px;
  /* subtle inner glow at top */
  position: relative;
}

/* decorative top-right glow blob */
.main-content::before {
  content: '';
  position: fixed;
  top: -120px;
  left: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.main-content::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: 300px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.main-content > * { position: relative; z-index: 1; }

/* ─── Cards (Premium Glassmorphic Light style) ───── */
.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 24px -4px rgba(99,102,241,0.08),
    0 1px 4px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 26px;
  margin-bottom: 24px;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow:
    0 16px 48px -8px rgba(99,102,241,0.16),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  border-bottom: 1.5px solid rgba(226,232,240,0.7);
  padding-bottom: 12px;
}

/* ─── Stats Grid ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg);
  padding: 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 4px 20px -4px rgba(99,102,241,0.10),
    0 1px 3px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.2s ease;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 36px -8px rgba(99,102,241,0.20),
    0 4px 10px rgba(0,0,0,0.06);
  border-color: rgba(99,102,241,0.2);
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-info .value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-info .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Responsive Media Queries ──────────────────── */
@media (max-width: 991px) {
  .auth-split-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .auth-marketing-side {
    display: none;
  }
  .main-content {
    margin-right: 0;
    padding: 30px 20px 30px 20px;
    padding-top: 70px;
  }
  .sidebar {
    transform: translateX(100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

/* ─── Mobile Hamburger Button ─────────────────── */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1100;
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  line-height: 1;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.visible {
  display: block;
}

/* ─── Page Head ─────────────────────────────────── */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.page-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Forms ─────────────────────────────────────── */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  body.auth-page {
    padding: 20px 12px;
  }
  .auth-card-body {
    padding: 34px 22px;
    border-radius: 20px;
  }
  .brand-logo {
    font-size: 2.7rem;
  }
  .brand-logo .brand-nl {
    font-size: 1.8rem;
  }
  .auth-card-body h2 {
    font-size: 1.9rem;
  }
  .auth-card-body input[type="text"],
  .auth-card-body input[type="email"],
  .auth-card-body input[type="password"],
  .auth-card-body select,
  .btn {
    height: 52px;
    font-size: 1.05rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
textarea { resize: vertical; min-height: 80px; }

/* ─── Alerts ────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-error {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991B1B;
}
.alert-success {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065F46;
}
.alert-warning {
  background: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400E;
}

/* ─── Badges ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-green  { background: var(--success-light);  color: #065F46; }
.badge-orange { background: var(--warning-light);  color: #92400E; }
.badge-gray   { background: var(--bg-light);        color: var(--text-muted); border: 1px solid var(--border); }
.badge-red    { background: var(--danger-light);    color: #991B1B; }

/* ─── Tables ────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th {
  text-align: right;
  padding: 10px 14px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--border);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(248, 250, 252, 0.7); }

/* ─── Small Button Variant ──────────────────────── */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--r-sm);
}

/* ─── Reminder Item ─────────────────────────────── */
.reminder-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
  border-right: 4px solid var(--primary);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.15s ease;
}
.reminder-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.reminder-info { flex: 1; min-width: 0; }
.reminder-info .title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reminder-info .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Empty State ───────────────────────────────── */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.empty p {
  font-size: 0.88rem;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Toggle Switch ─────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  right: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(-20px); }

/* ─── Divider ───────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 16px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Auth Footer Text ──────────────────────────── */
.auth-footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.auth-footer-text a { color: var(--accent); font-weight: 600; }

/* ─── Input Wrapper (relative) ──────────────────── */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* ─── Channel Card Hover Effect ─────────────────── */
/* (override handled above in .card:hover) */

/* Channel explore grid card */
.channel-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.15);
}

/* ─── Logout Button ─────────────────────────────── */
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5 !important;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.logout-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #fff !important;
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}
.logout-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* ─── List Cards ─────────────────────────────────── */
.lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.list-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.9);
  border-top: 4px solid var(--list-color, var(--primary));
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px -4px rgba(99,102,241,0.08);
  color: var(--text);
}
.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(99,102,241,0.18);
  border-color: var(--list-color, var(--primary));
  color: var(--text);
}
.list-card .list-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--list-color, var(--primary));
  flex-shrink: 0;
}
.list-card .name {
  font-weight: 600;
  font-size: 0.92rem;
}

/* ─── Btn Variants ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.45);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.8);
  color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239,68,68,0.4);
  color: #fff;
}

/* ─── Page Head gradient title ───────────────────── */
.page-head h1 {
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ─── Color Picker & Swatches ────────────────────── */
.color-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.color-presets label {
  cursor: pointer;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.preset-radio {
  display: none !important;
}
.swatch {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.preset-radio:checked + .swatch {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--primary), 0 4px 10px rgba(0,0,0,0.2);
}
.color-presets label:hover .swatch {
  transform: scale(1.1);
}
.color-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.color-custom-row input[type="color"] {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: none;
}

/* ══════════════════════════════════════════
   Ultra-Smooth Canvas Background
══════════════════════════════════════════ */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all auth components stay sharp above the background */
.auth-container {
  position: relative;
  z-index: 10;
}

.auth-card-body {
  background: rgba(10, 15, 28, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.m-feature-card {
  background: rgba(17, 24, 39, 0.70) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ══════════════════════════════════════════
   Modern Live Clock Badge Widget
══════════════════════════════════════════ */
.live-clock-wrapper {
  margin-bottom: 24px;
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(129, 140, 248, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.5);
}

.live-clock-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 10px #22D3EE;
  animation: livePulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.live-clock-time {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #818CF8, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  direction: ltr;
}

.live-clock-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

.live-clock-date {
  font-size: 0.95rem;
  color: #94A3B8;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   Brand Heading Gradient
══════════════════════════════════════════ */
.brand-title-gradient {
  background: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
  direction: ltr;
}

/* ══════════════════════════════════════════
   Notebook Feature Card (wide)
══════════════════════════════════════════ */
.m-feature-card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,
    rgba(129, 140, 248, 0.12) 0%,
    rgba(34, 211, 238, 0.08) 100%
  ) !important;
  border: 1px solid rgba(129, 140, 248, 0.3) !important;
}

.m-feature-card--wide:hover {
  border-color: rgba(129, 140, 248, 0.55) !important;
  background: linear-gradient(135deg,
    rgba(129, 140, 248, 0.18) 0%,
    rgba(34, 211, 238, 0.14) 100%
  ) !important;
}

.m-feature-card--wide .m-text h4 {
  font-size: 1.1rem;
}

.m-feature-card--wide .m-text p {
  font-size: 0.95rem;
  max-width: 560px;
}

.m-icon--glow {
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.4);
  border-color: rgba(129, 140, 248, 0.25) !important;
  font-size: 1.4rem !important;
}

/* ── Badge "جديد" ── */
.badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #818CF8, #22D3EE);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-right: 6px;
  letter-spacing: 0.5px;
  -webkit-text-fill-color: #fff;
}
