/* =============================================
   FiveM Shop — Blue/Violet Theme
   ============================================= */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #a855f7;
  --accent-dark: #9333ea;
  --bg-dark: #0f0a1e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.07);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #f8fafc;
  --border: rgba(255, 255, 255, 0.1);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --discord: #5865F2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0f0a1e 0%, #1e1b4b 50%, #581c87 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ======= NAVBAR ======= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; border-radius: 8px; }
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-bright); background: var(--bg-glass); }
.nav-link.active {
  color: var(--text-bright);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark)); color: white; }

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

.btn-discord {
  background: var(--discord);
  color: white;
  font-size: 1.1rem;
}
.btn-discord:hover { background: #4752C4; color: white; }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; color: white; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-xl { padding: 18px 48px; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ======= HERO ======= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}

.hero-content { max-width: 800px; }

.welcome-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-bright), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.welcome-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ======= FEATURES ======= */
.features { padding: 80px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); }

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text-bright); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ======= SECTIONS ======= */
.section {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-bright), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ======= RULES ======= */
.rules-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rules-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}
.rules-tab:hover { background: var(--bg-card-hover); color: var(--text); }
.rules-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: white;
}

.rules-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(10px);
  line-height: 1.8;
}

.rules-card h2 { color: var(--primary-light); margin-bottom: 20px; }
.rules-card ul { padding-left: 24px; }
.rules-card li { margin-bottom: 10px; color: var(--text); }

/* ======= SHOP ======= */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.pack-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  transform: scale(1.03);
}
.pack-featured:hover { transform: scale(1.03) translateY(-6px); }

.pack-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pack-coins { margin-bottom: 16px; }
.coins-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.coins-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

.pack-name { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-bright); }
.pack-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

.pack-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
}

/* ======= MODAL ======= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1545, #2d1b69);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover { color: var(--text-bright); }

.modal-title { font-size: 1.5rem; margin-bottom: 24px; color: var(--text-bright); }

.modal-pack-info {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.modal-pack-info p { margin-bottom: 4px; color: var(--text-muted); }
.modal-pack-info strong { color: var(--text-bright); }

/* ======= FORMS ======= */
.form-group { margin-bottom: 20px; }

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-textarea { resize: vertical; min-height: 100px; }
.form-help { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.required { color: var(--error); }

/* ======= ALERTS ======= */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--error); }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
.alert-info { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--primary-light); }

/* ======= PHILOSOPHIE ======= */
.philosophie-section { padding: 120px 0 80px; }

.philo-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: 48px;
  backdrop-filter: blur(10px);
}

.philo-intro h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.philo-intro p {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
}

.philo-values {
  margin-bottom: 48px;
}

.philo-values > h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 28px;
  text-align: center;
}

.philo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.philo-grid > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.philo-grid > div:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.philo-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.philo-grid p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.philo-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.philo-cta h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.philo-cta p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

/* ======= FOOTER ======= */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* ======= ERROR PAGE ======= */
.error-title {
  font-size: 4rem;
  text-align: center;
  padding-top: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-message {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: 20px 0 40px;
}
.error-message + .btn { display: block; width: fit-content; margin: 0 auto; }

/* ======= ADMIN ======= */
.admin-page { background: #0a0818; }

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.admin-sidebar {
  width: 260px;
  background: rgba(15, 10, 30, 0.95);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 70px;
  bottom: 0;
  overflow-y: auto;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { color: var(--text); background: var(--bg-glass); }
.admin-nav-link.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--primary);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px 40px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-title { font-size: 1.8rem; font-weight: 700; color: var(--text-bright); }

/* Admin Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* Admin Table */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: rgba(99, 102, 241, 0.1);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.admin-table tr:hover td { background: var(--bg-glass); }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.status-refunded { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

/* Admin Form Cards */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.pagination a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.pagination a:hover { background: var(--bg-card-hover); }

.pagination .active-page {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
}

/* Toggle switch */
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-input { display: none; }
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-input:checked + .toggle-switch { background: var(--primary); }
.toggle-input:checked + .toggle-switch::after { left: 22px; }

/* Admin login page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
}

.login-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Media upload */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.media-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.media-preview {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: rgba(0,0,0,0.2);
}

.media-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* WYSIWYG container */
.wysiwyg-container {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.wysiwyg-btn {
  padding: 6px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.wysiwyg-btn:hover { background: var(--bg-glass); color: var(--text); border-color: var(--border); }

.wysiwyg-editor {
  min-height: 200px;
  padding: 16px;
  color: var(--text);
  outline: none;
  line-height: 1.8;
}

.wysiwyg-editor h1, .wysiwyg-editor h2, .wysiwyg-editor h3 { color: var(--text-bright); margin-bottom: 12px; }
.wysiwyg-editor ul, .wysiwyg-editor ol { padding-left: 24px; }
.wysiwyg-editor li { margin-bottom: 6px; }

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 10, 30, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .welcome-text h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-xl { padding: 14px 32px; font-size: 1rem; }

  .section-title { font-size: 1.8rem; }

  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }

  .modal-content { padding: 28px 20px; }

  .form-row { grid-template-columns: 1fr; }

  .illegaux-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   GROUP BADGE (admin sidebar + user list)
   ===================================================== */
.group-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
}

.group-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =====================================================
   PERMISSION CHECKBOX GRID (admin/groups.ejs)
   ===================================================== */
.perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.perm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.perm-checkbox:hover { border-color: var(--primary); }
.perm-checkbox input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }

/* =====================================================
   ADMIN TABLE
   ===================================================== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:hover td { background: rgba(99,102,241,0.04); }

.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-secondary { background: var(--card-bg); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--border); }

/* =====================================================
   PUBLIC — GROUPES ILLÉGAUX (list page)
   ===================================================== */
.illegaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.illegaux-card {
  display: block;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.illegaux-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.18);
}

.illegaux-card-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.illegaux-icon { font-size: 2.5rem; line-height: 1; }

.illegaux-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.illegaux-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.illegaux-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

/* =====================================================
   PUBLIC — GROUPE ILLÉGAL (single page)
   ===================================================== */
.back-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }

.groupe-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 40px;
}

.groupe-hero-icon { font-size: 4rem; line-height: 1; }

.groupe-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.groupe-description {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary, var(--text-muted));
  text-align: center;
}

.groupe-discord {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(88,101,242,0.35);
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(88,101,242,0.5);
}
