/* ============================================================
   CodeCodeur — Design System v2.0
   Modern, clean, professional
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  /* Brand colors */
  --purple:       #7c3aed;
  --purple-mid:   #9333ea;
  --purple-light: #ede9fe;
  --purple-dark:  #5b21b6;
  --green:        #10b981;
  --green-light:  #d1fae5;
  --green-dark:   #059669;
  --blue:         #3b82f6;
  --blue-light:   #dbeafe;
  --blue-dark:    #2563eb;
  --red:          #ef4444;
  --red-light:    #fee2e2;
  --amber:        #f59e0b;
  --amber-light:  #fef3c7;
  --cyan:         #06b6d4;

  /* Neutral scale */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Layout */
  --sidebar-w:    260px;
  --topbar-h:     64px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 1px 6px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--slate-50);
  color: var(--slate-700);
  -webkit-font-smoothing: antialiased;
}

/* ─── Sidebar ──────────────────────────────────────────────── */
.cc-sidebar {
  width: var(--sidebar-w);
  background: var(--slate-900);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scrollbar-width: none;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.cc-sidebar::-webkit-scrollbar { display: none; }

/* Sidebar brand */
.cc-sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cc-brand-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cc-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #fff;
  padding: 0.2rem;
  flex-shrink: 0;
}
.cc-brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}
.cc-brand-role {
  color: var(--slate-500);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* Sidebar nav sections */
.cc-nav-section {
  padding: 1.25rem 1.25rem 0.35rem;
  color: var(--slate-600);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 600;
}
.cc-sidebar nav {
  padding: 0 0.75rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Nav items */
.cc-nav-item { margin-bottom: 2px; }
.cc-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate-400);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.cc-nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}
.cc-nav-link.active {
  background: var(--accent-color, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.cc-nav-link i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.cc-nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Sidebar footer */
.cc-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.cc-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cc-user-avatar-sm {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.cc-user-avatar-initials {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.cc-user-name {
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}
.cc-user-role {
  color: var(--slate-500);
  font-size: 0.7rem;
}

/* ─── Main Layout ───────────────────────────────────────────── */
.cc-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Topbar ────────────────────────────────────────────────── */
.cc-topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
  padding: 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--slate-100);
}
.cc-topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.cc-page-title {
  font-weight: 700;
  color: var(--slate-800);
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.3px;
}
.cc-topbar-right { display: flex; align-items: center; gap: 0.75rem; }

/* Notification bell */
.cc-notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-600);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.cc-notif-btn:hover { background: var(--slate-100); color: var(--slate-800); }
.cc-notif-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  border-radius: var(--radius-full);
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
}

/* Logout btn */
.cc-logout-btn {
  height: 38px;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  background: var(--red-light);
  border: 1px solid transparent;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.cc-logout-btn:hover { background: var(--red); color: #fff; }

/* ─── Page Body ─────────────────────────────────────────────── */
.cc-page-body {
  padding: 1.75rem;
  flex: 1;
}

/* ─── Flash Messages ────────────────────────────────────────── */
.cc-flash {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.3s ease;
}
.cc-flash-success { background: var(--green-light); color: #065f46; }
.cc-flash-error   { background: var(--red-light);   color: #991b1b; }
.cc-flash i { font-size: 1rem; flex-shrink: 0; }
.cc-flash .btn-close { margin-left: auto; opacity: 0.5; }

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

/* ─── Cards ─────────────────────────────────────────────────── */
.cc-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.cc-card:hover { box-shadow: var(--shadow-md); }
.cc-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-card-title {
  font-weight: 700;
  color: var(--slate-800);
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cc-card-title i { color: var(--accent-color, #7c3aed); }
.cc-card-body { padding: 1.5rem; }
.cc-card-body-flush { padding: 0; }

/* Stat Cards */
.cc-stat-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: none;
  transition: var(--transition);
}
.cc-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cc-stat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cc-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}
.cc-stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.cc-stat-sub {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}
.cc-stat-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ─── Tables ─────────────────────────────────────────────────── */
.cc-table-wrapper {
  overflow-x: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.855rem;
}
.cc-table thead th {
  background: var(--slate-50);
  color: var(--slate-500);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  white-space: nowrap;
}
.cc-table tbody tr {
  border-bottom: 1px solid var(--slate-100);
  transition: var(--transition);
}
.cc-table tbody tr:last-child { border-bottom: none; }
.cc-table tbody tr:hover { background: var(--slate-50); }
.cc-table tbody td {
  padding: 0.9rem 1.25rem;
  color: var(--slate-700);
  vertical-align: middle;
}

/* Table avatar cell */
.cc-table-avatar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--slate-200);
}
.cc-avatar-initials {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
}
.cc-table-name { font-weight: 600; color: var(--slate-800); line-height: 1.3; }
.cc-table-sub  { font-size: 0.75rem; color: var(--slate-400); }

/* Table actions */
.cc-action-group { display: flex; gap: 0.35rem; align-items: center; }
.cc-btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate-500);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.cc-btn-icon:hover { background: var(--slate-100); color: var(--slate-800); border-color: var(--slate-300); }
.cc-btn-icon.view:hover  { background: var(--blue-light);   color: var(--blue);   border-color: var(--blue);   }
.cc-btn-icon.edit:hover  { background: var(--amber-light);  color: #92400e;       border-color: var(--amber);  }
.cc-btn-icon.delete:hover{ background: var(--red-light);    color: var(--red);    border-color: var(--red);    }

/* ─── Badges ─────────────────────────────────────────────────── */
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}
.cc-badge-purple { background: var(--purple-light); color: var(--purple-dark); }
.cc-badge-green  { background: var(--green-light);  color: #065f46; }
.cc-badge-blue   { background: var(--blue-light);   color: var(--blue-dark); }
.cc-badge-red    { background: var(--red-light);    color: #991b1b; }
.cc-badge-amber  { background: var(--amber-light);  color: #92400e; }
.cc-badge-slate  { background: var(--slate-100);    color: var(--slate-600); }

/* ─── Buttons ────────────────────────────────────────────────── */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.855rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.cc-btn-sm {
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.cc-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}
.cc-btn-block { width: 100%; justify-content: center; }

.cc-btn-primary {
  background: var(--accent-color, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.cc-btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: translateY(-1px);
  color: #fff;
}
.cc-btn-secondary {
  background: #fff;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}
.cc-btn-secondary:hover { background: var(--slate-50); color: var(--slate-800); }
.cc-btn-danger {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid transparent;
}
.cc-btn-danger:hover { background: var(--red); color: #fff; }
.cc-btn-success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.cc-btn-success:hover { filter: brightness(1.06); color: #fff; }
.cc-btn-ghost {
  background: transparent;
  color: var(--slate-500);
  border: 1px solid var(--slate-200);
}
.cc-btn-ghost:hover { background: var(--slate-100); color: var(--slate-800); }

/* ─── Forms ──────────────────────────────────────────────────── */
.cc-form-group { margin-bottom: 1.25rem; }
.cc-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}
.cc-label .req { color: var(--red); margin-left: 2px; }
.cc-input,
.cc-select,
.cc-textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--slate-700);
  background: var(--slate-50);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.cc-input:focus,
.cc-select:focus,
.cc-textarea:focus {
  border-color: var(--accent-color, #7c3aed);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.cc-input.is-invalid,
.cc-select.is-invalid,
.cc-textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.cc-error-msg {
  font-size: 0.775rem;
  color: var(--red);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cc-hint {
  font-size: 0.775rem;
  color: var(--slate-400);
  margin-top: 0.3rem;
}
.cc-textarea { resize: vertical; min-height: 100px; }
.cc-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1.2em 1.2em;
  padding-right: 2.5rem;
  cursor: pointer;
}
.cc-input-group {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
  transition: var(--transition);
}
.cc-input-group:focus-within {
  border-color: var(--accent-color, #7c3aed);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.cc-input-addon {
  padding: 0.6rem 0.9rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-right: 1.5px solid var(--slate-200);
}
.cc-input-group .cc-input {
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 1;
}
.cc-input-group .cc-input:focus { box-shadow: none; }

/* ─── Event registration card ───────────────────────────────── */
.cc-event-register {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.08), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
    #fff;
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.cc-event-register__head {
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 1.15rem;
}
.cc-event-register__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.65rem;
}
.cc-event-register__head h3 {
  color: #4338ca;
}
.cc-event-register__alert {
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.cc-event-register__alert--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cc-event-register__alert--success i {
  color: #059669;
  font-size: 1.2rem;
}
.cc-event-register__alert--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 0.9rem;
}

/* Radio/checkbox groups */
.cc-radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cc-radio-card {
  flex: 1;
  min-width: 120px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cc-radio-card input { display: none; }
.cc-radio-card:hover { border-color: var(--slate-300); background: var(--slate-50); }
.cc-radio-card.selected { border-color: var(--accent-color, #7c3aed); background: var(--purple-light); }

/* ─── Progress Bar ───────────────────────────────────────────── */
.cc-progress {
  height: 6px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.cc-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  background: var(--accent-color, #7c3aed);
}

/* ─── Empty State ────────────────────────────────────────────── */
.cc-empty {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--slate-400);
}
.cc-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  display: block;
}
.cc-empty h6 { color: var(--slate-500); font-weight: 600; margin-bottom: 0.4rem; }
.cc-empty p  { color: var(--slate-400); font-size: 0.855rem; }

/* ─── Info Row (key-value pairs) ────────────────────────────── */
.cc-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.855rem;
}
.cc-info-row:last-child { border-bottom: none; }
.cc-info-row i { color: var(--slate-400); width: 16px; margin-top: 2px; flex-shrink: 0; }
.cc-info-label { color: var(--slate-500); flex-shrink: 0; width: 120px; font-weight: 500; }
.cc-info-value { color: var(--slate-700); font-weight: 500; }

/* ─── Alert boxes ────────────────────────────────────────────── */
.cc-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.855rem;
  border-left: 3px solid;
  margin-bottom: 1rem;
}
.cc-alert-info    { background: var(--blue-light);   border-color: var(--blue);   color: #1e3a5f; }
.cc-alert-success { background: var(--green-light);  border-color: var(--green);  color: #064e3b; }
.cc-alert-warning { background: var(--amber-light);  border-color: var(--amber);  color: #78350f; }
.cc-alert-danger  { background: var(--red-light);    border-color: var(--red);    color: #7f1d1d; }
.cc-alert i { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

/* ─── Filter bar ─────────────────────────────────────────────── */
.cc-filter-bar {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.cc-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  position: relative;
}
.cc-search i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 0.9rem;
}
.cc-search input {
  padding-left: 2.2rem;
  width: 100%;
}

/* ─── Session / Assignment Cards ────────────────────────────── */
.cc-item-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.cc-item-card:hover { border-color: var(--slate-200); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.cc-date-block {
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  min-width: 68px;
  flex-shrink: 0;
}
.cc-date-day  { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.cc-date-month{ font-size: 0.7rem; text-transform: uppercase; font-weight: 600; opacity: 0.8; margin-top: 2px; }

/* ─── Type icons ─────────────────────────────────────────────── */
.cc-type-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ─── Auth layout ────────────────────────────────────────────── */
.cc-auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}
.cc-auth-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cc-auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.cc-auth-card-split {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cc-auth-login-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  grid-template-columns: none;
}
.cc-auth-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  flex: 1.08;
  z-index: 1;
}
.cc-auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.75), rgba(30, 41, 59, 0.45));
}
.cc-auth-visual-content {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  color: #fff;
  z-index: 1;
}
.cc-auth-visual-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.cc-auth-visual-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}
.cc-auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0.92;
  position: relative;
  z-index: 2;
  background: #fff;
}
.cc-auth-header {
  padding: 2.5rem 2.5rem 1.5rem;
  text-align: center;
}
.cc-auth-body-inner { padding: 0 2.5rem 2.5rem; }
.cc-auth-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}
.cc-auth-title { font-size: 1.5rem; font-weight: 800; color: var(--slate-800); letter-spacing: -0.5px; }
.cc-auth-subtitle { color: var(--slate-400); font-size: 0.875rem; margin-top: 0.25rem; }
@media (max-width: 900px) {
  .cc-auth-card-split {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .cc-auth-login-layout {
    display: flex;
    flex-direction: column;
  }
  .cc-auth-visual {
    min-height: 220px;
  }
}

/* ─── Login redesign (RENKYA style) ───────────────────────── */
.cc-auth-body:has(.cc-login-page) {
  padding: 0;
  background: #f3f5f9;
}
.cc-auth-body:has(.cc-login-page)::before {
  display: none;
}
.cc-login-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 48%) minmax(400px, 52%);
  background: #f3f5f9;
}
.cc-login-visual {
  position: relative;
  overflow: hidden;
}
.cc-login-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-login-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 30, 56, 0.72), rgba(7, 20, 43, 0.82));
}
.cc-login-brand {
  position: absolute;
  top: 2.2rem;
  left: 2.8rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.4px;
  color: #fff;
}
.cc-login-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #1f3b67;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}
.cc-login-visual-content {
  position: absolute;
  z-index: 2;
  left: 2.8rem;
  right: 2.8rem;
  bottom: 2.4rem;
  color: #fff;
}
.cc-login-visual-content h2 {
  max-width: 560px;
  font-size: clamp(2.3rem, 4.3vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 1.25rem;
}
.cc-login-visual-content p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.cc-login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 5rem;
  display: grid;
  gap: 0.95rem;
}
.cc-login-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.05rem;
}
.cc-login-feature-list i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.cc-login-visual-content small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.cc-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f3f5f9;
  padding: 2rem 1.9rem;
}
.cc-login-top-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: auto;
}
.cc-login-top-link {
  text-decoration: none;
  color: #475569;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cc-login-form-wrap {
  width: min(100%, 560px);
  margin: 1.2rem auto;
}
.cc-login-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.cc-login-head h1 {
  font-size: 2.25rem;
  margin-bottom: 0.3rem;
  color: #0f172a;
}
.cc-login-head p {
  color: #475569;
  margin-bottom: 0;
  font-size: 1rem;
}
.cc-login-error {
  margin-bottom: 1rem;
}
.cc-login-form-group {
  margin-bottom: 1rem;
}
.cc-login-form-group .cc-label {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}
.cc-login-input-group {
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #eaf0f8;
  overflow: hidden;
}
.cc-login-input-group .cc-input-addon {
  background: transparent;
  color: #8290a8;
}
.cc-login-input-group .cc-input {
  background: transparent;
}
.cc-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.6rem 0 1.1rem;
}
.cc-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #475569;
  font-size: 0.95rem;
}
.cc-login-remember input {
  width: 18px;
  height: 18px;
}
.cc-login-forgot {
  text-decoration: none;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 600;
}
.cc-login-submit {
  --accent-color: #3b82f6;
  margin-top: 0.1rem;
  border-radius: 12px;
}
.cc-login-divider {
  margin: 1.3rem 0 1.2rem;
  text-align: center;
  color: #64748b;
  position: relative;
  font-size: 0.95rem;
}
.cc-login-divider::before,
.cc-login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  border-top: 1px solid #d3dbe8;
}
.cc-login-divider::before { left: 0; }
.cc-login-divider::after { right: 0; }
.cc-login-create {
  border-radius: 12px;
  border-color: #d6deea;
  color: #1e293b;
  background: transparent;
}
.cc-login-help {
  text-align: center;
  margin-top: 1.7rem;
  color: #64748b;
  font-size: 0.95rem;
}
@media (max-width: 1100px) {
  .cc-login-page {
    grid-template-columns: 1fr;
  }
  .cc-login-visual {
    min-height: 420px;
  }
  .cc-login-panel {
    min-height: auto;
    padding: 1.5rem 1rem 2rem;
  }
}

/* Demo accounts strip */
.cc-demo-strip {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  padding: 1rem 2.5rem 1.5rem;
}

/* ─── Notification list items ───────────────────────────────── */
.cc-notif-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  transition: var(--transition);
}
.cc-notif-item:hover { background: var(--slate-50); }
.cc-notif-item.unread { background: #fafbff; }
.cc-notif-item:last-child { border-bottom: none; }
.cc-notif-icon-wrap {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cc-unread-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

/* ─── Checklist steps ───────────────────────────────────────── */
.cc-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.84rem;
}
.cc-step:last-child { border-bottom: none; }
.cc-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.cc-step.done .cc-step-dot { background: var(--green-light); color: var(--green); }
.cc-step.done .cc-step-label { color: var(--slate-700); font-weight: 500; }
.cc-step:not(.done) .cc-step-dot { background: var(--slate-100); color: var(--slate-400); }
.cc-step:not(.done) .cc-step-label { color: var(--slate-400); }

/* ─── Pagination override ───────────────────────────────────── */
.pagination { gap: 4px; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border-color: var(--slate-200) !important;
  color: var(--slate-600) !important;
  font-size: 0.835rem;
  padding: 0.35rem 0.65rem !important;
}
.page-item.active .page-link {
  background: var(--accent-color, #7c3aed) !important;
  border-color: var(--accent-color, #7c3aed) !important;
  color: #fff !important;
}

/* ─── Mobile toggle ──────────────────────────────────────────── */
.cc-mobile-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  border: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--slate-700);
  font-size: 1.1rem;
}

/* ─── Tabs ───────────────────────────────────────────────────── */
.cc-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}
.cc-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.835rem;
  font-weight: 600;
  color: var(--slate-500);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.cc-tab:hover { color: var(--slate-700); }
.cc-tab.active { background: #fff; color: var(--slate-800); box-shadow: var(--shadow-sm); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .cc-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .cc-sidebar.open { transform: translateX(0); }
  .cc-main { margin-left: 0; }
  .cc-mobile-toggle { display: flex; }
  .cc-page-body { padding: 1.25rem; }
  .cc-topbar { padding: 0 1.25rem; }
}

/* Overlay */
.cc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}
.cc-overlay.active { display: block; }
.cc-overlay.show { display: block; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-300); }

/* ─── Utilities ──────────────────────────────────────────────── */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }
.fw-semibold { font-weight: 600; }
.fw-extrabold { font-weight: 800; }

/* ─── Student Emails ──────────────────────────────────────── */
.student-mail-shell,
.student-thread-shell {
  max-width: 1020px;
}

.student-mail-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #60a5fa 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.student-mail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
}

.student-mail-title,
.student-thread-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.4rem 0;
}

.student-mail-subtitle {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
}

.student-mail-stats {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 0.6rem 0.95rem;
  text-align: center;
  min-width: 112px;
}

.student-mail-stat-value {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
}

.student-mail-stat-label {
  font-size: 0.72rem;
  opacity: 0.9;
}

.student-mail-list .card-header {
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.student-mail-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
}

.student-mail-item {
  padding: 1rem 1.1rem;
  transition: var(--transition);
  border-left: 4px solid transparent;
}

.student-mail-item:hover {
  background: #f8fafc;
}

.student-mail-item.is-unread {
  background: #f8fbff;
  border-left-color: #3b82f6;
}

.student-mail-main {
  min-width: 0;
}

.student-mail-subject {
  font-weight: 700;
  color: #0f172a;
}

.student-mail-meta {
  color: #64748b;
}

.student-mail-preview {
  margin-top: 0.35rem;
  color: #334155;
  font-size: 0.86rem;
}

.student-mail-date {
  color: #94a3b8;
  font-size: 0.75rem;
}

.student-mail-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.5rem;
}

.student-mail-empty-icon {
  margin: 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.45rem;
}

.student-thread-header {
  border-radius: var(--radius-lg);
}

.student-thread-list {
  max-width: 900px;
}

.student-thread-message {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-sm);
}

.student-thread-message.mine {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.student-thread-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.student-thread-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.student-thread-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-thread-avatar.mine {
  background: #dbeafe;
  color: #1d4ed8;
}

.student-thread-avatar.theirs {
  background: #ede9fe;
  color: #6d28d9;
}

.student-thread-body {
  white-space: pre-line;
  color: #1e293b;
}

.student-reply-textarea {
  border-radius: 12px;
  min-height: 140px;
}

@media (max-width: 768px) {
  .student-mail-hero {
    flex-direction: column;
  }

  .student-mail-stats {
    align-self: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MEMBER SPACE — RESPONSIVE MOBILE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Bottom navigation bar (mobile only) ──────────────────── */
.cc-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 1030;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.cc-bottom-nav-inner {
  display: flex;
  height: 100%;
  align-items: stretch;
}
.cc-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #94a3b8;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  transition: color .15s;
  padding: 0 4px;
}
.cc-bottom-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
}
.cc-bottom-nav-item.active {
  color: #06b6d4;
}
.cc-bottom-nav-item.active i {
  color: #06b6d4;
}
.cc-bottom-nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 18px);
  background: #e11d48;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  border-radius: 100px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

/* ─── Sidebar nav overflow fix ──────────────────────────────── */
.cc-sidebar nav {
  overflow-y: auto;
  flex: 1;
}

/* ─── Logout button — icon only on mobile ───────────────────── */
.cc-logout-text { display: inline; }

/* ─── Member hero — responsive ──────────────────────────────── */
.cc-member-hero {
  background: linear-gradient(135deg,#0f0f23,#1a1a3e,#0c4a6e);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cc-member-hero-actions {
  margin-left: auto;
  flex-shrink: 0;
}

/* ─── Member stat cards — min padding on small screens ──────── */
.cc-member-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ─── Hackathon grid inside member dashboard ────────────────── */
.cc-hackathon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: 1rem;
}

/* ─── Tables on mobile — horizontal scroll ──────────────────── */
.cc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════════════
   BREAKPOINT ≤ 991px (tablet + mobile)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Sidebar slides in from left, overlay behind */
  .cc-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }
  .cc-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,.25);
  }
  .cc-main { margin-left: 0; }
  .cc-page-body {
    padding: 1rem;
    padding-bottom: 76px; /* space for bottom nav */
  }
  .cc-topbar { padding: 0 1rem; }

  /* Bottom nav appears */
  .cc-bottom-nav { display: block; }

  /* Logout: icon only */
  .cc-logout-text { display: none; }
  .cc-logout-btn { padding: 0 .65rem; }

  /* Topbar actions — keep compact */
  .cc-topbar-right { gap: .5rem; }

  /* Hero sections — stack on mobile */
  .cc-member-hero { padding: 1.25rem; gap: 1rem; }
  .cc-member-hero-actions { margin-left: 0; width: 100%; }
  .cc-member-hero-actions a { display: block; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   BREAKPOINT ≤ 575px (small mobile)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 575px) {
  .cc-page-body {
    padding: .75rem;
    padding-bottom: 76px;
  }

  /* Hackathon grid: single column */
  .cc-hackathon-grid {
    grid-template-columns: 1fr;
  }

  /* Member hero */
  .cc-member-hero { padding: 1rem; }
  .cc-member-hero h2 { font-size: 1.25rem !important; }

  /* Page title truncate */
  .cc-page-title {
    font-size: .9rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Forum / opps stat cards: stack nicely */
  .cc-member-stat { padding: .75rem 1rem; }
  .cc-member-stat .stat-icon { width: 34px !important; height: 34px !important; }
  .cc-member-stat .stat-value { font-size: 1.1rem !important; }

  /* Annuaire header stats — stack */
  .cc-annuaire-stats {
    flex-direction: column !important;
    gap: .5rem !important;
    align-items: flex-start !important;
  }
  .cc-annuaire-stats > div { display: flex; align-items: center; gap: .5rem; }
  .cc-annuaire-stats > div > div:first-child { font-size: 1.3rem !important; }

  /* Forms: full width selects */
  .cc-member-form-row > * { width: 100% !important; max-width: 100% !important; flex: none !important; }

  /* Cards — reduce border-radius on tiny screens */
  .cc-card { border-radius: .875rem; }

  /* Topbar CTA button — icon only */
  .cc-topbar-cta-text { display: none; }
}

/* ─── Hamburger button ──────────────────────────────────────── */
.cc-hamburger {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}
.cc-hamburger:hover { background: #e2e8f0; }

/* ─── Member bottom nav active indicator ────────────────────── */
.cc-bottom-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #06b6d4;
  border-radius: 3px 3px 0 0;
  transition: width .2s;
}
.cc-bottom-nav-item.active::after { width: 28px; }

/* ─── Sidebar nav: scrollable ───────────────────────────────── */
.cc-sidebar {
  display: flex;
  flex-direction: column;
}
.cc-sidebar nav {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.cc-sidebar nav::-webkit-scrollbar { width: 4px; }
.cc-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
