
/* ─── Mobile Touch Fix ─── */
[onclick], button, .cl-nav-btn, .cl-filter-btn,
#meetings-list > div, #pres-grid > div,
.cl-lib-acc, .cl-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,.05);
  cursor: pointer;
}

/* Hidden overlays must never block clicks */
#cl-sb-overlay[style*="display:none"],
#cl-sb-overlay[style*="display: none"] {
  pointer-events: none !important;
}
/* ═══════════════════════════════════════════════
   COACHLAB HUB — Professional Community Platform
   Anzan Academy / Mastermind Maroc CoachLab
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --gold:    #E6B730;
  --gold2:   #F4C430;
  --gold-p:  #FDF8E4;
  --navy:    #1a2744;
  --navy2:   #243460;
  --navy3:   #2d3f6b;
  --green:   #10b981;
  --red:     #ef4444;
  --orange:  #f59e0b;
  --blue:    #3b82f6;
  --purple:  #8b5cf6;
  --pink:    #ec4899;
  --teal:    #14b8a6;
  --bg:      #f0f4f8;
  --white:   #ffffff;
  --card:    #ffffff;
  --border:  #e2e8f0;
  --text:    #1e293b;
  --muted:   #64748b;
  --sb-w:    240px;
}

/* ── Reset ── */
#cl-hub *, #cl-hub *::before, #cl-hub *::after { box-sizing: border-box; }
#cl-hub button { cursor: pointer; font-family: 'Cairo', sans-serif; }
#cl-hub a { text-decoration: none; }
#cl-hub input, #cl-hub select, #cl-hub textarea { font-family: 'Cairo', sans-serif; }

/* ── Layout ── */
/* hub layout defined below with cl-main */
#cl-hub > nav, #cl-hub > main {
  border-radius: 0;
}

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.cl-sidebar {
  width: var(--sb-w);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
  z-index: 100;
  transition: transform .3s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.cl-sb-logo {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
}
.cl-sb-avatar {
  width: 42px; height: 42px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
  flex-shrink: 0;
}
.cl-sb-name { color: white; font-size: 15px; font-weight: 700; }

.cl-sb-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.cl-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  transition: all .2s;
  border-right: 3px solid transparent;
}
.cl-nav-btn:hover { background: rgba(255,255,255,.08); color: white; }
.cl-nav-btn.cl-active {
  background: rgba(230,183,48,.15);
  color: var(--gold);
  border-right-color: var(--gold);
}
.cl-nav-ic { font-size: 18px; flex-shrink: 0; }
.cl-nav-lb { font-size: 14px; }

.cl-sb-social {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: 10px;
}
.cl-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: rgba(255,255,255,.1); color: white;
  transition: background .2s;
}
.cl-social-btn:hover { background: var(--gold); }

/* ════════════════════════════════
   MAIN CONTENT
════════════════════════════════ */
.cl-main {
  flex: 1;
  overflow-y: visible;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 80px;
}

#cl-hub {
  display: flex;
  min-height: auto;
  background: var(--bg);
  font-family: 'Cairo', sans-serif;
  direction: rtl !important;
  color: var(--text);
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  position: relative;
  align-items: flex-start;
}
/* Force sidebar to RIGHT and main to LEFT, even if parent breaks RTL */
#cl-hub > .cl-sidebar { order: 1; }
#cl-hub > .cl-main    { order: 2; }

/* ── BOTTOM NAV ── */
.cl-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  z-index: 200;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.cl-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}
.cl-bn-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background .15s;
  min-width: 52px;
  min-height: 52px;
  font-family: 'Cairo', sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  justify-content: center;
}
.cl-bn-btn:hover { background: #f0f4f8; }
.cl-bn-btn.active .cl-bn-ic { color: #0f1f3d; }
.cl-bn-btn.active .cl-bn-lb { color: #0f1f3d; font-weight: 800; }
.cl-bn-ic { font-size: 20px; color: #9ca3af; line-height: 1; }
.cl-bn-lb { font-size: 9px; font-weight: 600; color: #9ca3af; }
.cl-bn-dot { width: 5px; height: 5px; border-radius: 50%; background: #E6B730; margin: 0 auto; opacity: 0; }
.cl-bn-btn.active .cl-bn-dot { opacity: 1; }

/* Hide WA floating button inside the hub for logged-in members */
.cl-wrap ~ .wp-whatsapp-float,
.cl-wrap ~ * .whatsapp-float,
.elementor-widget-container .whatsapp-chat-button { display: none !important; }


/* Mobile top bar */
.cl-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: white;
  position: sticky; top: 0; z-index: 50;
}
.cl-menu-btn {
  background: rgba(230,183,48,.15); border: 1px solid rgba(230,183,48,.3); color: #F4C430;
  font-size: 22px; padding: 6px 12px; line-height: 1; border-radius: 8px;
  cursor: pointer; transition: all .15s;
}
.cl-menu-btn:hover, .cl-menu-btn:active { background: #F4C430; color: #0f1f3d; transform: scale(1.05); }
.cl-topbar-title { flex: 1; font-size: 15px; font-weight: 700; }
.cl-topbar-av {
  width: 34px; height: 34px;
  background: var(--gold); color: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

/* Views */
.cl-view { display: none; padding: 28px; animation: clFadeIn .3s ease; }
.cl-view.cl-show { display: block; }
/* Force hide non-active views */
.cl-view:not(.cl-show) { display: none !important; }
/* Fallback: show home view before JS loads */
#cl-hub:not(.cl-js-ready) #view-home { display: block; }
/* Agenda inner containers — JS controlled via setProperty important */
#clag-month-view, #clag-week-view, #clag-day-view,
#view-agenda-list-inner {
  /* Default hidden — JS shows them with setProperty important */
}
/* When agenda view is active, allow inner containers to be shown */
#view-agenda.cl-show #clag-month-view[style*="block"],
#view-agenda.cl-show #clag-week-view[style*="block"],
#view-agenda.cl-show #clag-day-view[style*="block"] {
  display: block !important;
}
/* Modals must always work regardless of parent state */
#svc-modal-overlay, #pres-modal-overlay, #mt-modal-overlay,
#prj-modal-overlay, #rec-modal {
  position: fixed !important;
}
@keyframes clFadeIn { from { opacity:0; } to { opacity:1; } }

/* Page Header */
.cl-page-header { margin-bottom: 24px; }
.cl-ph-title { font-size: 24px; font-weight: 900; color: var(--navy); margin: 0 0 6px; }
.cl-ph-sub { color: var(--muted); font-size: 14px; margin: 0; }

/* Section title */
.cl-section-title { font-size: 16px; font-weight: 800; color: var(--navy); margin: 24px 0 14px; border-right: 4px solid var(--gold); padding-right: 10px; }

/* ════════════════════════════════
   STATS ROW
════════════════════════════════ */
.cl-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.cl-stat {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.cl-stat-ic { font-size: 24px; margin-bottom: 6px; }
.cl-stat-vl { font-size: 26px; font-weight: 900; margin-bottom: 2px; }
.cl-stat-lb { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════
   QUICK GRID
════════════════════════════════ */
.cl-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.cl-qcard {
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.cl-qcard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.cl-qcard-ic { font-size: 28px; margin-bottom: 10px; }
.cl-qcard-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.cl-qcard-sub { font-size: 12px; line-height: 1.4; }

/* ════════════════════════════════
   NEXT MEETING
════════════════════════════════ */
.cl-next-meeting {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cl-nm-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.cl-nm-meta { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.cl-nm-desc { font-size: 13px; opacity: .7; }
.cl-nm-action { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.cl-nm-count { font-size: 13px; opacity: .8; }

/* ════════════════════════════════
   CARDS GRID
════════════════════════════════ */
.cl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cl-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.cl-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.cl-card-featured { border: 2px solid var(--gold); }
.cl-featured-badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--gold); color: var(--navy);
  padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 800;
}
.cl-card-header { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-card-title { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 6px; line-height: 1.4; }
.cl-card-author { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cl-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cl-card-meta span { background: var(--bg); padding: 3px 10px; border-radius: 20px; font-size: 12px; color: var(--muted); }
.cl-card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.cl-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.cl-regs-count { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ════════════════════════════════
   BADGES
════════════════════════════════ */
.cl-badge {
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.cl-badge-green  { background: #d1fae5; color: #065f46; }
.cl-badge-yellow { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.cl-badge-red    { background: #fee2e2; color: #991b1b; }
.cl-badge-gold   { background: var(--gold); color: var(--navy); }
.cl-badge-outline{ background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; border: none;
  font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700;
  transition: all .2s; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.cl-btn:hover { opacity: .88; transform: translateY(-1px); }
.cl-btn-gold    { background: linear-gradient(135deg,var(--gold),var(--gold2)); color: var(--navy); }
.cl-btn-navy    { background: var(--navy); color: white; }
.cl-btn-outline { background: transparent; border: 2px solid var(--border); color: var(--navy); }
.cl-btn-outline:hover { border-color: var(--gold); }
.cl-btn-joined  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.cl-btn-joined:hover { background: var(--red); color: white; border-color: var(--red); }
.cl-btn-disabled{ background: #f1f5f9; color: var(--muted); cursor: not-allowed; }
.cl-btn-disabled:hover { transform: none; opacity: 1; }
.cl-btn-danger  { background: #fff5f5; color: var(--red); border: 1px solid #fecaca; }
.cl-btn-danger:hover { background: var(--red); color: white; }
.cl-btn-wa      { background: #25d366; color: white; }
.cl-btn-sm      { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.cl-btn-block   { width: 100%; margin-top: 16px; padding: 14px; font-size: 15px; border-radius: 12px; }

/* ════════════════════════════════
   RECORDINGS GRID
════════════════════════════════ */
.cl-recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cl-rec-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.cl-rec-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.cl-rec-thumb {
  height: 150px;
  background: var(--navy2) center/cover no-repeat;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cl-play-btn {
  width: 52px; height: 52px;
  background: rgba(230,183,48,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--navy);
  transition: transform .2s;
}
.cl-rec-card:hover .cl-play-btn { transform: scale(1.1); }
.cl-rec-dur { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.7); color: white; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.cl-rec-info { padding: 14px; }
.cl-rec-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.cl-rec-meta { font-size: 12px; color: var(--muted); }

/* Video Modal */
.cl-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.85); z-index: 9999;
  align-items: center; justify-content: center;
}
.cl-modal.cl-open { display: flex; }
.cl-modal-inner { background: #000; border-radius: 12px; overflow: hidden; width: min(860px,95vw); }
.cl-modal-header { background: var(--navy); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.cl-modal-close { background: rgba(255,255,255,.2); color: white; border: none; border-radius: 6px; padding: 6px 12px; font-size: 14px; }
.cl-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.cl-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ════════════════════════════════
   CONTENT FEED
════════════════════════════════ */
.cl-feed { display: flex; flex-direction: column; gap: 16px; }
.cl-feed-item {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.cl-feed-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.cl-feed-author { display: flex; align-items: center; gap: 10px; }
.cl-mini-av { width: 36px; height: 36px; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.cl-feed-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.cl-feed-date { font-size: 12px; color: var(--muted); }
.cl-feed-title { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.cl-feed-body { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.cl-feed-link { color: var(--blue); font-size: 13px; font-weight: 600; }
.cl-feed-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cl-like-btn { background: none; border: 1.5px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.cl-like-btn:hover, .cl-like-btn.cl-liked { background: #fff0f5; border-color: #fecdd3; color: var(--red); }

/* ════════════════════════════════
   LIBRARY
════════════════════════════════ */
.cl-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cl-filter-btn { background: var(--white); border: 1.5px solid var(--border); color: var(--muted); padding: 7px 16px; border-radius: 20px; font-family: 'Cairo',sans-serif; font-size: 13px; font-weight: 600; transition: all .2s; }
.cl-filter-btn:hover, .cl-filter-btn.cl-filter-active { background: var(--navy); border-color: var(--navy); color: white; }

.cl-library-grid { display: flex; flex-direction: column; gap: 12px; }
.cl-lib-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: box-shadow .2s;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.cl-lib-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
/* Accordion override — reset flex/padding from base card */
.cl-lib-acc.cl-lib-card {
  display: block;
  padding: 0;
  overflow: hidden;
}
.cl-lib-icon { font-size: 28px; flex-shrink: 0; }
.cl-lib-info { flex: 1; min-width: 0; }
.cl-lib-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cl-lib-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cl-lib-desc { font-size: 13px; color: var(--muted); }
.cl-lib-btn { background: var(--gold); color: var(--navy); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* ════════════════════════════════
   PROGRESS BAR
════════════════════════════════ */
.cl-progress-bar { height: 6px; background: var(--bg); border-radius: 10px; margin: 10px 0 4px; overflow: hidden; }
.cl-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 10px; transition: width .5s ease; }
.cl-progress-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* ════════════════════════════════
   FORMS
════════════════════════════════ */
.cl-form-section { margin-bottom: 28px; }
.cl-toggle-form-btn {
  background: var(--gold-p); border: 2px solid var(--gold); color: var(--navy);
  padding: 11px 24px; border-radius: 12px; font-family: 'Cairo',sans-serif;
  font-size: 14px; font-weight: 700; transition: all .2s; cursor: pointer;
  margin-bottom: 16px;
}
.cl-toggle-form-btn:hover { background: var(--gold); }

.cl-form-wrap { background: var(--white); border-radius: 16px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.cl-form { /* no extra styles needed */ }
.cl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cl-fg { display: flex; flex-direction: column; gap: 6px; }
.cl-fg label { font-size: 13px; font-weight: 700; color: var(--navy); }
.cl-full { grid-column: 1 / -1; }
.cl-fg input, .cl-fg select, .cl-fg textarea {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-family: 'Cairo',sans-serif; font-size: 14px;
  direction: rtl; background: var(--bg); transition: border-color .2s; outline: none;
}
.cl-fg input:focus, .cl-fg select:focus, .cl-fg textarea:focus {
  border-color: var(--gold); background: white; box-shadow: 0 0 0 3px rgba(230,183,48,.15);
}
.cl-checkbox-lbl { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.cl-checkbox-lbl input { width: 18px; height: 18px; accent-color: var(--gold); }

/* ════════════════════════════════
   MY SPACE
════════════════════════════════ */
.cl-sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 14px; }
.cl-sub-tab {
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--muted); padding: 8px 16px; border-radius: 10px;
  font-family: 'Cairo',sans-serif; font-size: 13px; font-weight: 700; transition: all .2s;
}
.cl-sub-tab:hover { border-color: var(--gold); color: var(--navy); }
.cl-sub-tab.cl-sub-active { background: var(--navy); border-color: var(--navy); color: white; }
.cl-sub-panel { display: none; }
.cl-sub-panel.cl-sub-show { display: block; }

.cl-my-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.cl-my-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.cl-my-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.cl-my-meta { font-size: 12px; color: var(--muted); }
.cl-my-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-admin-note { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #9a3412; margin-bottom: 10px; }

/* Sessions in my-courses */
.cl-my-sessions { margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.cl-sess-pill { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cl-sess-n { width: 22px; height: 22px; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }

/* Session builder */
.cl-sess-builder-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; font-weight: 800; color: var(--navy); }
.cl-sess-build-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; position: relative; }
.cl-sess-build-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.cl-sess-build-grid label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 3px; color: var(--navy); }
.cl-sess-build-grid input, .cl-sess-build-grid select { width: 100%; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 13px; font-family: 'Cairo',sans-serif; background: white; }
.cl-sess-del-btn { position: absolute; top: 10px; left: 10px; background: var(--red); color: white; border: none; border-radius: 6px; padding: 3px 8px; font-size: 12px; }

/* Messages */
.cl-msg { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
.cl-msg-ok  { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.cl-msg-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Empty states */
.cl-empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.cl-empty-ic { font-size: 52px; margin-bottom: 12px; }
.cl-empty p { font-size: 15px; margin: 0; }

/* ════════════════════════════════
   RESPONSIVE — TABLET (768px–1024px)
════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  #cl-hub {
    flex-direction: column;
  }

  .cl-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .cl-sb-logo {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 16px;
    min-height: auto;
  }

  .cl-sb-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 8px;
    width: 100%;
    gap: 2px;
    scrollbar-width: none;
  }
  .cl-sb-nav::-webkit-scrollbar { display: none; }

  .cl-nav-btn {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    white-space: nowrap;
    border-right: none;
    border-bottom: 3px solid transparent;
    font-size: 11px;
    min-width: fit-content;
  }
  .cl-nav-btn.cl-active {
    border-right-color: transparent;
    border-bottom-color: var(--gold);
  }
  .cl-nav-ic { font-size: 20px; }
  .cl-nav-lb { font-size: 10px; }

  .cl-sb-social { display: none; }

  .cl-main {
    width: 100%;
    max-width: 100%;
    padding-bottom: 40px;
  }
}

/* ════════════════════════════════
   RESPONSIVE — DESKTOP (content scrolls under sidebar)
════════════════════════════════ */
@media (min-width: 1025px) {
  #cl-hub {
    align-items: flex-start;
    flex-direction: row;        /* explicit */
    flex-wrap: nowrap;          /* empêche le wrap */
  }

  .cl-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex: 0 0 var(--sb-w);      /* taille fixe, ne grossit pas, ne rétrécit pas */
    width: var(--sb-w);
    max-width: var(--sb-w);
  }

  .cl-main {
    flex: 1 1 auto;
    min-width: 0;               /* CRUCIAL: permet au contenu de rétrécir */
    width: calc(100% - var(--sb-w));
    max-width: calc(100% - var(--sb-w));
    min-height: 100vh;
    overflow-y: visible;
    overflow-x: hidden;
    display: block;             /* pas flex pour éviter pb height */
  }
  .cl-main > .cl-view.cl-show {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════ */
@media (max-width: 768px) {
  #cl-hub { flex-direction: column; }
  /* Reset order on mobile — sidebar is fixed-positioned and slides in */
  #cl-hub > .cl-sidebar { order: 0; }
  #cl-hub > .cl-main    { order: 0; }

  .cl-main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    flex: 1 1 auto;
  }

  .cl-view {
    padding: 12px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cl-sidebar {
    position: fixed; right: 0; top: 0; bottom: 0;
    width: 240px;
    max-width: 75vw;
    z-index: 200;
    transform: translateX(100%);
    overflow-y: auto;
    height: 100vh;
  }
  .cl-sidebar.cl-open { transform: translateX(0); box-shadow: -4px 0 24px rgba(0,0,0,.3); }

  /* Compact sidebar header */
  .cl-sb-logo { padding: 14px 14px; }
  .cl-sb-name { font-size: 13px; }
  .cl-sb-pts  { font-size: 11px; }

  /* Compact nav items */
  .cl-nav-btn { padding: 9px 14px; font-size: 13px; gap: 9px; }
  .cl-nav-ic  { font-size: 15px; }
  .cl-nav-lb  { font-size: 13px; }

  /* Compact upgrade button */
  .cl-upgrade-btn { padding: 8px 14px; font-size: 12px; margin: 6px 10px; }
  
  .cl-topbar { display: flex; }
  .cl-view { padding: 16px; }
  .cl-bottom-nav { display: block; }
  
  .cl-stats-row { grid-template-columns: 1fr 1fr; }
  .cl-quick-grid { grid-template-columns: 1fr 1fr; }
  .cl-form-grid { grid-template-columns: 1fr; }
  .cl-sess-build-grid { grid-template-columns: 1fr 1fr; }
  .cl-cards-grid { grid-template-columns: 1fr; }
  .cl-recordings-grid { grid-template-columns: 1fr 1fr; }
  .cl-ph-title { font-size: 20px; }
  .cl-quick-grid .cl-qcard { padding: 16px 12px; }
}

@media (max-width: 480px) {
  .cl-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cl-quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cl-recordings-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   LIBRARY — DRIVE LINKS
════════════════════════════════ */
.cl-lib-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cl-lib-link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.cl-lib-link-primary { background: var(--navy); color: white; }
.cl-lib-link-primary:hover { background: var(--navy2); }
.cl-lib-link-drive   { background: #4285f4; color: white; }
.cl-lib-link-drive:hover { background: #1a73e8; }

/* ════════════════════════════════
   FILTER BARS — MULTIPLE ROWS
════════════════════════════════ */
.cl-filter-bar + .cl-filter-bar { margin-top: -6px; }

/* ════════════════════════════════
   MEETING CITY BADGE
════════════════════════════════ */
.cl-badge-city { background: var(--gold-p); color: var(--navy); border: 1px solid var(--gold); }

/* ════════════════════════════════
   RECORDING ADMIN PREVIEW
════════════════════════════════ */
.qr-preview-wrap { border-radius: 10px; overflow: hidden; margin-top: 8px; }
.qr-preview-wrap img { width: 100%; height: 110px; object-fit: cover; display: block; }

/* ════════════════════════════════
   STAR RATING
════════════════════════════════ */
.cl-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
}
.cl-star {
  font-size: 18px;
  cursor: pointer;
  transition: transform .15s;
  line-height: 1;
}
.cl-star:hover { transform: scale(1.25); }
.cl-star-on   { color: var(--gold); }
.cl-star-off  { color: #d1d5db; }
.cl-star-mine { color: #f59e0b; text-shadow: 0 0 4px rgba(245,158,11,.4); }
.cl-star-hover { color: var(--gold2); }
.cl-stars-count {
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.cl-rec-rating { padding: 4px 0; }

/* ════════════════════════════════
   LEADERBOARD
════════════════════════════════ */
.cl-leaderboard { margin-bottom: 28px; }
.cl-lb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cl-lb-card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 2px solid var(--border);
  transition: transform .2s;
}
.cl-lb-card:hover { transform: translateY(-4px); }
.cl-lb-first {
  background: linear-gradient(135deg,#fff8e1,#fffde7);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(230,183,48,.2);
}
.cl-lb-medal { font-size: 32px; margin-bottom: 10px; }
.cl-lb-av {
  width: 52px; height: 52px;
  background: var(--navy); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  margin: 0 auto 10px;
}
.cl-lb-first .cl-lb-av { background: var(--gold); color: var(--navy); }
.cl-lb-name { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.cl-lb-pts  { font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.cl-lb-badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.cl-lb-badges span {
  background: var(--bg); color: var(--muted);
  padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* ════════════════════════════════
   RECORDING DOMAIN BADGE
════════════════════════════════ */
.cl-rec-domain-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(26,39,68,.85);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  .cl-lb-grid { grid-template-columns: 1fr; }
  .cl-lb-card { display: flex; align-items: center; gap: 14px; text-align: right; padding: 14px 16px; }
  .cl-lb-medal { font-size: 24px; margin-bottom: 0; }
  .cl-lb-av { width: 40px; height: 40px; font-size: 17px; margin: 0; flex-shrink: 0; }
  .cl-lb-badges { justify-content: flex-start; }
}

/* ════════════════════════════════
   TIER SYSTEM
════════════════════════════════ */
.cl-sb-pts {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}
.cl-sb-role { margin-top: 3px; }
.cl-tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: white;
}

.cl-tier-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  flex-wrap: wrap;
}
.cl-tier-left {
  display: flex; align-items: center; gap: 14px;
}
.cl-tier-badge-big { font-size: 40px; }
.cl-tier-name { font-size: 20px; font-weight: 900; }
.cl-tier-pts  { font-size: 13px; color: var(--muted); font-weight: 600; }
.cl-tier-right { flex: 1; min-width: 200px; }
.cl-tier-progress-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cl-tier-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cl-perk-badge {
  display: inline-block;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  border: 1px solid;
}

/* ════════════════════════════════
   LEADERBOARD TIER
════════════════════════════════ */
.cl-lb-tier {
  font-size: 12px; font-weight: 700;
  color: var(--muted); margin-bottom: 4px;
}

@media (max-width: 600px) {
  .cl-tier-card { flex-direction: column; }
}

/* ════════════════════════════════
   PAY WALL & INFO BANNER
════════════════════════════════ */
.cl-pay-wall {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: white; border-radius: 16px; padding: 36px 28px;
  text-align: center; margin-bottom: 20px;
}
.cl-pw-icon  { font-size: 52px; margin-bottom: 12px; }
.cl-pw-title { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.cl-pw-text  { font-size: 14px; opacity: .8; line-height: 1.8; margin-bottom: 0; }
.cl-info-banner {
  background: #fff8e1; color: #856404;
  border: 1px solid #fcd34d; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.cl-rec-locked { opacity: .8; }
.cl-rec-locked .cl-rec-thumb { filter: brightness(.7); }

/* ════════════════════════════════
   REFERRAL BOX
════════════════════════════════ */
.cl-ref-box {
  background: white; border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 20px;
}
.cl-ref-title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.cl-ref-desc  { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.cl-ref-link-wrap { display: flex; gap: 8px; margin-bottom: 16px; }
.cl-ref-input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: 10px; font-size: 13px; color: var(--muted);
  direction: ltr; font-family: monospace;
}
.cl-ref-stats { display: flex; gap: 20px; }
.cl-ref-stat { background: var(--bg); border-radius: 10px; padding: 12px 20px; text-align: center; }
.cl-ref-stat-n { font-size: 22px; font-weight: 900; color: var(--navy); }
.cl-ref-stat-l { font-size: 12px; color: var(--muted); }

/* Upgrade banner (top of home) */
.cl-upgrade-banner {
  background: linear-gradient(135deg,#1a2744,#243460);
  color: white; border-radius: 14px; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.cl-ub-left { display: flex; align-items: center; gap: 14px; }
.cl-ub-icon { font-size: 28px; }
.cl-ub-title { font-size: 15px; font-weight: 800; }
.cl-ub-sub   { font-size: 12px; opacity: .75; margin-top: 2px; }

/* Upgrade button in sidebar */
.cl-upgrade-btn {
  display: block; margin: 0 12px 8px;
  background: linear-gradient(135deg,#E6B730,#F4C430);
  color: #1a2744; text-decoration: none; text-align: center;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 800; transition: opacity .2s;
}
.cl-upgrade-btn:hover { opacity: .9; }

/* Free badge */
.cl-free-badge {
  background: #f1f5f9; color: #64748b;
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700;
}

/* Lock banner */
.cl-lock-banner {
  background: #fff8e1; color: #856404;
  border: 1px solid #fcd34d; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px;
}

/* ════════════════════════════════
   REGISTERED NAMES AVATARS
════════════════════════════════ */
.cl-reg-names {
  display: flex;
  align-items: center;
  gap: -6px;
  margin: 10px 0;
  flex-wrap: nowrap;
}
.cl-reg-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  border: 2px solid white;
  margin-left: -6px;
  flex-shrink: 0;
  cursor: default;
  transition: transform .2s;
}
.cl-reg-av:hover { transform: scale(1.15); z-index: 2; }
.cl-reg-more {
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
}

/* Share button */
.cl-share-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
}
.cl-share-btn:hover { background: var(--gold-p); border-color: var(--gold); }

/* ════════════════════════════════
   NAMES CHIPS IN MEETINGS
════════════════════════════════ */
.cl-reg-names-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0; padding: 8px;
  background: var(--bg); border-radius: 10px;
}
.cl-reg-name-chip {
  background: var(--navy); color: var(--gold);
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}

/* ════════════════════════════════
   ARCHIVE VIEW
════════════════════════════════ */
.cl-arch-year { margin-bottom: 14px; }
.cl-arch-year-hd {
  background: var(--navy); color: white;
  border-radius: 12px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 800; font-size: 16px;
  transition: background .2s;
}
.cl-arch-year-hd:hover { background: var(--navy2); }
.cl-arch-arrow { font-size: 18px; transition: transform .3s; }
.cl-arch-year-hd.open .cl-arch-arrow { transform: rotate(180deg); }
.cl-arch-body {
  display: none; padding: 16px 0 0;
}
.cl-arch-body.open { display: block; }
.cl-arch-section-title {
  font-size: 14px; font-weight: 800; color: var(--navy);
  margin-bottom: 12px; padding-right: 8px;
  border-right: 3px solid var(--gold);
}

/* ════════════════════════════════
   CHECKBOX GROUPS IN FORMS
════════════════════════════════ */
.cl-check-group {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
}
.cl-check-label {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 5px 12px; font-size: 12px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.cl-check-label:hover { border-color: var(--gold); background: var(--gold-p); }
.cl-check-label input[type=checkbox] { accent-color: var(--gold); }

/* ════════════════════════════════
   MEETING PROPOSALS
════════════════════════════════ */
.cl-proposals-list {
  background: #f8f9fa; border-radius: 10px;
  padding: 10px 12px; margin: 8px 0;
}
.cl-proposals-title {
  font-size: 12px; font-weight: 800; color: var(--navy);
  margin-bottom: 8px;
}
.cl-proposal-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #eee; font-size: 12px;
}
.cl-proposal-item:last-child { border-bottom: none; }
.cl-proposal-icon { font-size: 16px; flex-shrink: 0; }
.cl-proposal-title { font-weight: 700; color: var(--navy); }
.cl-proposal-by { color: var(--muted); font-size: 11px; }
.cl-meeting-proposal {
  background: #eff6ff; border: 1.5px solid #bfdbfe;
  border-radius: 12px; padding: 14px; margin-top: 10px;
}
.cl-mp-title {
  font-size: 13px; font-weight: 800; color: #1e40af; margin-bottom: 10px;
}
.cl-mp-select,.cl-mp-input,.cl-mp-textarea {
  width: 100%; border: 1.5px solid #bfdbfe; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-family: inherit;
  margin-bottom: 8px; outline: none; background: white;
}
.cl-mp-textarea { height: 60px; resize: none; }
.cl-mp-msg { font-size: 12px; margin-top: 6px; font-weight: 700; }

/* ════════════════════════════════
   PROFILE PANEL
════════════════════════════════ */
.cl-profile-preview {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: white; border-radius: 16px; padding: 20px;
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px;
}
.cl-profile-photos { display: flex; gap: 10px; flex-shrink: 0; }
.cl-profile-photo, .cl-profile-logo {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
}
.cl-profile-photo-empty, .cl-profile-logo-empty {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 2px dashed rgba(255,255,255,.3);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-size: 18px; color: rgba(255,255,255,.5);
  font-size: 11px; text-align: center; gap: 2px;
}
.cl-profile-info { flex: 1; }
.cl-profile-name { font-size: 18px; font-weight: 900; }
.cl-profile-title { font-size: 13px; color: var(--gold); margin-top: 4px; }
.cl-profile-meta { font-size: 12px; opacity: .75; margin-top: 3px; }

/* ════════════════════════════════
   PRESENTATION LINKS
════════════════════════════════ */
.cl-pres-links {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px;
}
.cl-pres-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: opacity .2s;
}
.cl-pres-link:hover { opacity: .85; }
.cl-pres-link-slides  { background: #f0f9ff; color: #0369a1; border: 1.5px solid #bae6fd; }
.cl-pres-link-zoom    { background: #eff6ff; color: #2563eb; border: 1.5px solid #bfdbfe; }
.cl-pres-link-live    { background: #fef3c7; color: #b45309; border: 1.5px solid #fcd34d; }
.cl-pres-link-locked  { background: #f1f5f9; color: #868e96; border: 1.5px solid #e2e8f0; }
.cl-pres-link-share   { background: var(--navy); color: white; border: none; margin-right: auto; }

/* Override modal-inner for share modals (not video) */
#pres-share-modal .cl-modal-inner,
#share-modal .cl-modal-inner {
    background: white !important;
    border-radius: 20px !important;
    overflow: visible !important;
    width: min(420px, 95vw) !important;
}

/* ════════════════════════════════
   ZOOM CTA
════════════════════════════════ */
.cl-zoom-cta {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; text-decoration: none;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 800;
  margin: 10px 0; transition: opacity .2s;
}
.cl-zoom-cta:hover { opacity: .9; }
.cl-zoom-url { font-size: 11px; opacity: .7; font-weight: 400; margin-right: auto; direction: ltr; }

/* ════════════════════════════════
   COMMENTS
════════════════════════════════ */
.cl-comments { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.cl-comments-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cl-comment { font-size: 12px; color: var(--text); }
.cl-comment-name { font-weight: 800; color: var(--navy); margin-left: 6px; }
.cl-comment-txt { color: #4a5568; }
.cl-comment-more { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; cursor: pointer; }
.cl-comment-form { display: flex; gap: 6px; margin-top: 6px; }
.cl-comment-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.cl-comment-input:focus { border-color: var(--gold); }
.cl-comment-btn {
  background: var(--navy); color: white; border: none;
  border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 14px;
}

/* ════════════════════════════════
   PROPOSALS THREAD
════════════════════════════════ */
.cl-prop-thread {
  margin-top: 14px;
  border-top: 1.5px solid #f0f0f0;
  padding-top: 14px;
}
.cl-prop-thread-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cl-prop-thread-title { font-size: 13px; font-weight: 800; color: var(--navy); }
.cl-prop-count { background: #f0f4f8; color: #868e96; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* Proposal list */
.cl-prop-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cl-prop-item { display: flex; gap: 10px; align-items: flex-start; }
.cl-prop-item.cl-prop-mine .cl-prop-body { background: linear-gradient(135deg,rgba(230,183,48,.12),rgba(230,183,48,.06)); border-color: rgba(230,183,48,.3); }
.cl-prop-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; flex-shrink: 0;
}
.cl-prop-body {
  flex: 1; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 10px 12px;
}
.cl-prop-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.cl-prop-name { font-size: 12px; font-weight: 800; color: var(--navy); }
.cl-prop-you  { background: var(--gold); color: var(--navy); font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: 10px; }
.cl-prop-type { font-size: 11px; color: #868e96; background: white; border: 1px solid #e2e8f0; padding: 2px 7px; border-radius: 10px; }
.cl-prop-date { font-size: 10px; color: #b0b8c4; margin-right: auto; }
.cl-prop-title-txt { font-size: 13px; font-weight: 700; color: #1a2744; }
.cl-prop-desc { font-size: 12px; color: #868e96; margin-top: 4px; line-height: 1.5; }

/* Input area */
.cl-prop-input-area {
  background: #f0f6ff; border: 1.5px solid #bfdbfe;
  border-radius: 14px; padding: 14px;
}
.cl-prop-input-hd { font-size: 13px; font-weight: 800; color: #1e40af; margin-bottom: 10px; }
.cl-prop-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-prop-type-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: white; border: 1.5px solid #bfdbfe; border-radius: 20px;
  padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  color: #1e40af; transition: all .2s;
}
.cl-prop-type-btn:has(input:checked) { background: #1e40af; color: white; border-color: #1e40af; }
.cl-prop-type-btn input { display: none; }
.cl-prop-title-input, .cl-prop-desc-input {
  width: 100%; border: 1.5px solid #bfdbfe; border-radius: 9px;
  padding: 9px 12px; font-family: inherit; font-size: 13px;
  margin-bottom: 8px; outline: none; background: white;
  transition: border-color .2s;
}
.cl-prop-title-input:focus, .cl-prop-desc-input:focus { border-color: var(--navy); }
.cl-prop-desc-input { resize: none; }
.cl-prop-submit {
  width: 100%; background: linear-gradient(135deg,var(--navy),#2d3f6b);
  color: white; border: none; border-radius: 10px; padding: 11px;
  font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: opacity .2s;
}
.cl-prop-submit:hover { opacity: .9; }
.cl-prop-msg  { font-size: 12px; margin-top: 8px; text-align: center; font-weight: 700; }
.cl-prop-done { background: #d1fae5; color: #065f46; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 700; text-align: center; }
.cl-prop-lock { font-size: 12px; color: #868e96; text-align: center; padding: 8px; }
.cl-prop-lock a { color: var(--navy); font-weight: 700; }

/* ════════════════════════════════
   POST-MEETING CARD
════════════════════════════════ */
.cl-postmt-summary {
  font-size: 13px; color: #374151; line-height: 1.7;
  background: #f8fafc; border-radius: 10px; padding: 10px 12px;
  margin: 10px 0; border-right: 3px solid var(--gold);
}
.cl-postmt-drive {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#1a2744,#2d3f6b);
  color: white; text-decoration: none; padding: 10px 14px;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  margin: 10px 0; transition: opacity .2s;
}
.cl-postmt-drive:hover { opacity: .9; }
.cl-postmt-drive-locked { cursor: pointer; opacity: .6; }
.cl-postmt-admin { margin: 10px 0; }
.cl-postmt-section { border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
.cl-postmt-sec-title { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }

/* Reviews */
.cl-postmt-reviews { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cl-postmt-review  { font-size: 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cl-postmt-review.cl-postmt-mine { background: rgba(230,183,48,.08); border-radius: 8px; padding: 4px 8px; }
.cl-postmt-stars   { font-size: 13px; flex-shrink: 0; }
.cl-postmt-reviewer{ font-weight: 800; color: var(--navy); }
.cl-postmt-review-txt { color: #4a5568; }

/* Stars input */
.cl-postmt-stars-input { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cl-postmt-stars-input span:hover,
.cl-postmt-stars-input span.on { opacity: 1 !important; }

/* Commitments */
.cl-postmt-commits { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cl-postmt-commit  { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.cl-postmt-commit.cl-postmt-mine { background: rgba(230,183,48,.08); border-radius: 8px; padding: 6px 10px; }
.cl-postmt-commit-av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; flex-shrink: 0;
}
.cl-postmt-add-commit { display: flex; flex-direction: column; gap: 4px; }
.cl-postmt-done-tag { background: #d1fae5; color: #065f46; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; display: inline-block; }
/* Edit field styles */
.cl-edit-field { margin-bottom: 12px; }
.cl-edit-label { display: block; font-size: 12px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.cl-edit-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 12px; font-family: inherit; font-size: 13px;
  outline: none; direction: rtl; transition: border-color .2s;
  box-sizing: border-box;
}
.cl-edit-input:focus { border-color: var(--gold); }

/* ═══════════════════════════════════════════
   SHARE STRIP — شريط المشاركة الثابت
   ═══════════════════════════════════════════ */
.cl-share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.cl-share-strip-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
}
.cl-share-strip-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.cl-ssb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}
.cl-ssb:hover { opacity: .85; transform: translateY(-1px); }
.cl-ssb-wa { background: #25d366; color: white; }
.cl-ssb-fb { background: #1877f2; color: white; }
.cl-ssb-pg { background: #0f1f3d; color: white; }
.cl-ssb-cp { background: #f0f4f8; color: #374151; cursor: pointer; }
.cl-ssb-cp.copied { background: #d1fae5; color: #065f46; }

/* ═══════════════════════════════════════════
   GUEST BANNER + ACTIVATION BANNER
   ═══════════════════════════════════════════ */
.cl-guest-banner {
    background: linear-gradient(135deg,#0f1f3d,#1a3460);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 90;
}
.cl-guest-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cl-guest-banner-text strong {
    font-size: 14px;
    font-weight: 900;
    color: #F0C040;
}
.cl-guest-banner-text span {
    font-size: 12px;
    opacity: .7;
}
.cl-guest-banner-actions {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}
.cl-gb-login {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 18px;
    border-radius: 22px;
    font-family: 'Cairo',sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s;
}
.cl-gb-login:hover { background: rgba(255,255,255,.22); }
.cl-gb-join {
    background: #25d366;
    color: white;
    padding: 8px 18px;
    border-radius: 22px;
    font-family: 'Cairo',sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: opacity .2s;
}
.cl-gb-join:hover { opacity: .9; }

.cl-activation-banner {
    background: linear-gradient(135deg,#fffbeb,#fef3c7);
    border-bottom: 2px solid #E6B730;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 90;
    flex-wrap: wrap;
}
.cl-activation-icon { font-size: 20px; flex-shrink: 0; }
.cl-activation-text { flex: 1; font-size: 13px; color: #92400e; }
.cl-activation-text strong { font-weight: 900; }
.cl-activation-cta {
    background: #25d366;
    color: white;
    padding: 8px 18px;
    border-radius: 22px;
    font-family: 'Cairo',sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
}
.cl-activation-cta:hover { opacity: .9; }

@media(max-width:480px) {
    .cl-guest-banner { flex-direction: column; align-items: flex-start; }
    .cl-activation-banner { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════
   PHOTO UPLOAD WIDGET
   ═══════════════════════════════════════════ */
.cl-photo-widget {
    position: relative;
    text-align: center;
    width: 110px;
}
.cl-photo-display {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    margin: 0 auto 6px;
    border: 3px solid #E6B730;
    transition: border-color .2s;
    background: #f8fafc;
}
.cl-photo-display:hover { border-color: #1a2744; }
.cl-photo-display:hover .cl-photo-overlay { opacity: 1; }
.cl-photo-display img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.cl-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px; color: #9ca3af; font-size: 11px;
    padding: 8px;
}
.cl-photo-ph-ic { font-size: 26px; }
.cl-photo-overlay {
    position: absolute; inset: 0;
    background: rgba(15,31,61,.6);
    color: white; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
    font-family: 'Cairo', sans-serif;
}
.cl-photo-delete {
    position: absolute;
    top: 2px; left: 50%;
    transform: translateX(200%);
    background: #dc2626; color: white;
    border: none; border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    transition: transform .2s;
}
.cl-photo-widget:hover .cl-photo-delete { transform: translateX(180%); }
.cl-photo-label { font-size: 12px; font-weight: 700; color: #1a2744; }
.cl-photo-hint  { font-size: 10px; color: #9ca3af; margin-top: 2px; }

/* Upload progress ring */
.cl-photo-uploading .cl-photo-overlay {
    opacity: 1;
    background: rgba(15,31,61,.75);
}

/* ═══════════════════════════════════════
   AGENDA VIEW — أجندة موحدة
   ═══════════════════════════════════════ */
.cl-agenda-item {
    display: flex;
    gap: 0;
    margin: 0 16px 10px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: box-shadow .2s;
}
.cl-agenda-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* Today highlight */
.cl-agenda-today {
    border: 2px solid #E6B730;
    box-shadow: 0 4px 16px rgba(230,183,48,.2);
}
.cl-agenda-past { opacity: .65; }

/* Date column */
.cl-agenda-date {
    width: 58px;
    min-width: 58px;
    background: #0f1f3d;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    flex-shrink: 0;
}
.cl-agenda-today .cl-agenda-date {
    background: linear-gradient(135deg,#D4A017,#F0C040);
    color: #1a2744;
}
.cl-agenda-day {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}
.cl-agenda-dow {
    font-size: 9px;
    opacity: .65;
    text-align: center;
    line-height: 1.3;
}

/* Body */
.cl-agenda-body {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
}
.cl-agenda-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}
.cl-agenda-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a2744;
    margin-bottom: 6px;
    line-height: 1.4;
}
.cl-agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.cl-agenda-meta span {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Action buttons */
.cl-agenda-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.cl-agenda-btn {
    padding: 6px 13px;
    border-radius: 9px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity .2s;
}
.cl-agenda-btn:hover { opacity: .85; }
.cl-agenda-btn-register { background: #E6B730; color: #1a2744; }
.cl-agenda-btn-joined   { background: #d1fae5; color: #065f46; }
.cl-agenda-btn-full     { background: #f0f4f8; color: #9ca3af; cursor: default; }
.cl-agenda-btn-lock     { background: #1a2744; color: white; }
.cl-agenda-btn-zoom     { background: #2563eb; color: white; }
.cl-agenda-btn-share    { background: #f0f4f8; color: #374151; }

/* Today badge */
.cl-agenda-today-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #E6B730;
    color: #1a2744;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: 'Cairo', sans-serif;
}

@media(max-width:420px) {
    .cl-agenda-item { margin: 0 10px 10px; }
    .cl-agenda-date { width: 50px; min-width: 50px; }
    .cl-agenda-day  { font-size: 19px; }
}


/* ─── Library Accordion ─── */
/* ─── Library Accordion ─── */
#lib-grid { display:flex;flex-direction:column;gap:8px }
.cl-lib-acc {
    border-radius:14px;border:1.5px solid #e2e8f0;
    background:white;overflow:hidden;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
    transition:border-color .2s,box-shadow .2s
}
.cl-lib-acc.cl-acc-open {
    border-color:#E6B730;
    box-shadow:0 4px 16px rgba(230,183,48,.18)
}
.cl-lib-acc-head {
    display:flex;align-items:stretch;cursor:pointer;
    user-select:none;min-height:72px
}
.cl-lib-acc-thumb {
    width:60px;min-width:60px;flex-shrink:0;
    overflow:hidden;background:#f8fafc;
    border-left:1px solid #f0f0f0;
    display:flex;align-items:center;justify-content:center;
    font-size:22px
}
.cl-lib-acc-thumb img {
    width:60px;height:100%;min-height:72px;object-fit:cover;display:block
}
.cl-lib-acc-info {
    flex:1;min-width:0;padding:12px 14px 10px;
    display:flex;flex-direction:column;justify-content:center;gap:5px
}
.cl-lib-acc-title {
    font-size:13px;font-weight:800;color:#0f1f3d;
    line-height:1.35;display:flex;align-items:flex-start;gap:6px
}
.cl-lib-acc-title span { flex:1;min-width:0 }
.cl-lib-acc-arrow {
    color:#c0c8d8;font-size:16px;font-weight:700;
    flex-shrink:0;margin-top:1px;transition:transform .25s;line-height:1
}
.cl-lib-acc.cl-acc-open .cl-lib-acc-arrow { transform:rotate(90deg);color:#E6B730 }
.cl-lib-acc-tags {
    display:flex;gap:4px;flex-wrap:wrap;align-items:center
}
.cl-lib-acc-tag {
    padding:2px 8px;border-radius:20px;font-size:10px;font-weight:700;
    background:#f0f4f8;color:#64748b;white-space:nowrap
}
.cl-lib-acc-body {
    display:none;border-top:1.5px solid #f0f4f8
}
.cl-lib-acc.cl-acc-open .cl-lib-acc-body { display:block }
.cl-lib-acc-inner { padding:14px 16px;display:flex;flex-direction:column;gap:10px }
.cl-lib-acc-desc {
    font-size:12px;color:#374151;line-height:1.75;
    padding:10px 13px;background:#fffbeb;
    border-radius:10px;border-right:3px solid #E6B730
}
.cl-lib-acc-author {
    display:flex;align-items:center;gap:7px
}
.cl-lib-acc-author-av {
    width:24px;height:24px;border-radius:50%;flex-shrink:0;
    background:#0f1f3d;color:#E6B730;
    display:flex;align-items:center;justify-content:center;
    font-size:10px;font-weight:900;overflow:hidden
}
.cl-lib-acc-author-av img { width:24px;height:24px;object-fit:cover }
.cl-lib-acc-author span { font-size:11px;color:#9ca3af }
.cl-lib-acc-author strong { color:#374151 }
.cl-lib-acc-btns { display:flex;gap:8px }
.cl-lib-acc-btn {
    flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
    border-radius:10px;padding:10px 12px;font-size:12px;font-weight:800;
    text-decoration:none;border:none;cursor:pointer;font-family:Cairo,sans-serif
}
.cl-lib-acc-btn-drive { background:#dbeafe;color:#1d4ed8 }
.cl-lib-acc-btn-url   { background:#d1fae5;color:#065f46 }
.cl-lib-acc-btn-lock  { background:#f1f5f9;color:#64748b }

/* ══ FEED CAROUSEL ══ */
.cl-feed-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.cl-feed-carousel .cl-feed-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s, transform .2s;
}

.cl-feed-carousel .cl-feed-item:hover {
  border-color: #E6B730;
  transform: translateY(-2px);
}

.cl-feed-carousel .cl-feed-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f1f3d;
  margin: 0;
}

.cl-feed-carousel .cl-feed-body {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  flex: 1;
}

@media (max-width: 640px) {
  .cl-feed-carousel {
    grid-template-columns: 1fr;
  }
}

/* ══ SECTION TIPS — شروحات تفاعلية ══ */
.cl-section-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef9e7);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 11px 14px;
  margin: 8px 0 14px;
  animation: tipSlide .4s ease;
  position: relative;
}

@keyframes tipSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cl-tip-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cl-tip-body {
  flex: 1;
  font-size: 12px;
  color: #78350f;
  line-height: 1.75;
}

.cl-tip-body strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 3px;
}

.cl-tip-pts {
  background: rgba(230, 183, 48, .2);
  color: #b45309;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}

.cl-tip-close {
  background: none;
  border: none;
  color: #d97706;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .2s;
  font-family: Cairo, sans-serif;
}
.cl-tip-close:hover { opacity: 1; }

/* ══ HOME TIPS — بطاقات الإرشاد في الرئيسية ══ */
.cl-home-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.cl-hg-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cl-hg-card:hover {
  border-color: #E6B730;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,183,48,.12);
}

.cl-hg-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cl-hg-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f1f3d;
  margin-bottom: 3px;
}

.cl-hg-desc {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

.cl-hg-pts {
  font-size: 10px;
  font-weight: 800;
  color: #E6B730;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .cl-home-guide { grid-template-columns: 1fr; }
}

/* ══ SMART TIPS — في فضائي ══ */
.cl-smart-tip {
  display: none; /* يُظهَر بالـ JS */
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
  border: 1px solid #bfdbfe;
  border-right: 3px solid #3b82f6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  position: relative;
}

.cl-smart-tip .cl-tip-icon { font-size: 22px; flex-shrink: 0; }

.cl-smart-tip .cl-tip-body {
  flex: 1;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.7;
}

.cl-smart-tip .cl-tip-body strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.cl-smart-tip .cl-tip-close {
  background: none;
  border: none;
  color: #93c5fd;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color .2s;
  font-family: Cairo, sans-serif;
}
.cl-smart-tip .cl-tip-close:hover { color: #3b82f6; }

/* Auto-close progress bar */
.cl-smart-tip::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 0 0 12px 12px;
  animation: tipProgress 12s linear forwards;
}

@keyframes tipProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ══ FAB MENU IN BOTTOM NAV ══ */
.cl-bn-add {
  position: relative;
}

.cl-bn-plus {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #E6B730, #F0C040) !important;
  color: #0f1f3d !important;
  border-radius: 50% !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(230,183,48,.45);
  transition: transform .2s, box-shadow .2s;
  line-height: 1;
  margin: 0 auto;
  margin-bottom: 2px;
}

.cl-bn-add.open .cl-bn-plus {
  transform: rotate(45deg);
  box-shadow: 0 6px 24px rgba(230,183,48,.6);
}

/* FAB menu items */
.cl-fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: Cairo, sans-serif;
  text-align: right;
  transition: background .15s;
}
.cl-fab-item:hover { background: #f8fafc; }

.cl-fab-item-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cl-fab-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f1f3d;
  text-align: right;
}

.cl-fab-item-sub {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  margin-top: 2px;
}

@keyframes fabMenuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Hide old FAB on mobile since we have the new one */
@media (max-width: 768px) {
  .cl-fab-wrap { display: none !important; }
}
