/* =============================================
   AFRICA PRIME CLUB — Stylesheet Premium
   ============================================= */

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

:root {
  --bg-dark: #0B1220;
  --bg-card: #111827;
  --bg-card2: #1a2332;
  --turquoise: #11C5BF;
  --violet: #6D28D9;
  --white: #F8FAFC;
  --gold: #F5C542;
  --text-muted: #8a9bb5;
  --border: rgba(255,255,255,0.08);
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, .font-poppins { font-family: 'Poppins', sans-serif; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: #c0cce0; }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(11,18,32,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--turquoise), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 12px; align-items: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--turquoise), var(--violet));
  color: #fff;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,197,191,0.3); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
}
.btn-outline:hover:not(:disabled) { background: rgba(17,197,191,0.1); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e0a800);
  color: #000;
  font-weight: 700;
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-glow {
  background: var(--bg-card);
  border: 1px solid rgba(17,197,191,0.2);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 0 40px rgba(17,197,191,0.08);
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.form-control:focus { border-color: var(--turquoise); background: rgba(17,197,191,0.05); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-dark); }

/* ---- ALERTS ---- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-info { background: rgba(17,197,191,0.1); border: 1px solid rgba(17,197,191,0.3); color: var(--turquoise); }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-premium { background: linear-gradient(135deg,var(--turquoise),var(--violet)); color:#fff; }
.badge-standard { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.badge-pending { background: rgba(245,197,66,0.15); color: var(--gold); border:1px solid rgba(245,197,66,0.3); }
.badge-approved { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-rejected { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ---- TABS ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.tab-btn.active { color: var(--turquoise); border-bottom-color: var(--turquoise); }
.tab-btn:hover { color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- STAT CARDS ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; font-family: 'Poppins', sans-serif; }
.stat-card.turquoise .stat-value { color: var(--turquoise); }
.stat-card.violet .stat-value { color: #a78bfa; }
.stat-card.gold .stat-value { color: var(--gold); }
.stat-card.green .stat-value { color: var(--success); }

/* ---- LOADING ---- */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--turquoise);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,18,32,0.8);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.loading-overlay.show { display: flex; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 70% 40%, rgba(109,40,217,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(17,197,191,0.15) 0%, transparent 60%),
              var(--bg-dark);
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,197,191,0.1);
  border: 1px solid rgba(17,197,191,0.3);
  color: var(--turquoise);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  background: linear-gradient(135deg, #fff 40%, var(--turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.hero-sub { font-size: 1.15rem; color: #8a9bb5; max-width: 600px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FEATURES GRID ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(17,197,191,0.3); }
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(17,197,191,0.15), rgba(109,40,217,0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* ---- AFFILIATION TREE ---- */
.ref-link-box {
  background: rgba(17,197,191,0.08);
  border: 1px solid rgba(17,197,191,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  word-break: break-all;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 8px;
}
.level-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--turquoise),var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}

/* ---- CHAT ---- */
/* =============================================
   VIP CHAT — Design Premium
   ============================================= */

.vip-chat {
  display: flex;
  height: calc(100vh - 180px);
  min-height: 520px;
  max-height: 760px;
  background: #0D1525;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
}

/* ---- SIDEBAR ---- */
.vip-chat-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #0A1020;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 0;
}

@media(max-width: 640px) { .vip-chat-sidebar { display: none; } }

.vcs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.vcs-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #11C5BF, #6D28D9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.vcs-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.2;
}

.vcs-sub {
  font-size: 0.7rem;
  color: #4a5568;
}

.vcs-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 10px;
  font-size: 0.78rem;
  color: #10B981;
  font-weight: 600;
  margin-bottom: 16px;
}

.vcs-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 4px #10B981; }
  50% { box-shadow: 0 0 12px #10B981; }
}

.vcs-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 14px 0;
}

.vcs-rules-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 10px;
}

.vcs-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vcs-rules-list li {
  font-size: 0.78rem;
  color: #6b7a90;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.vcs-rules-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #11C5BF;
  font-weight: 700;
}

.vcs-tip {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px;
  background: rgba(17,197,191,0.06);
  border: 1px solid rgba(17,197,191,0.1);
  border-radius: 10px;
}

.vcs-tip-icon { font-size: 0.9rem; flex-shrink: 0; }

.vcs-tip-text {
  font-size: 0.75rem;
  color: #6b7a90;
  line-height: 1.5;
}

/* ---- ZONE PRINCIPALE ---- */
.vip-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0D1525;
}

/* HEADER PRINCIPAL */
.vch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0A1020;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  gap: 12px;
}

.vch-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vch-room-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, rgba(17,197,191,0.2), rgba(109,40,217,0.2));
  border: 1px solid rgba(17,197,191,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #11C5BF;
  flex-shrink: 0;
}

.vch-room-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
}

.vch-room-desc {
  font-size: 0.72rem;
  color: #4a5568;
  margin-top: 1px;
}

.vch-header-right { display: flex; align-items: center; gap: 10px; }

.vch-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vch-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: livePulse 2s infinite;
}

/* LOAD MORE */
.vch-load-more-btn {
  width: 100%;
  padding: 7px;
  background: rgba(17,197,191,0.06);
  border: 1px solid rgba(17,197,191,0.12);
  border-radius: 10px;
  color: #11C5BF;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.vch-load-more-btn:hover { background: rgba(17,197,191,0.1); }

/* MESSAGES ZONE */
.vch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vch-messages::-webkit-scrollbar { width: 4px; }
.vch-messages::-webkit-scrollbar-track { background: transparent; }
.vch-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 4px; }
.vch-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

.vch-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  color: #4a5568;
  font-size: 0.85rem;
}

/* DATE SEPARATOR */
.vch-date-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
}

.vch-date-sep::before,
.vch-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.vch-date-sep span {
  font-size: 0.7rem;
  color: #4a5568;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* MESSAGE */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 78%;
  padding: 2px 0;
  position: relative;
}

.chat-msg.own {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* GROUP : messages consécutifs du même auteur */
.chat-msg.grouped { margin-top: 1px; }
.chat-msg.grouped .chat-avatar { visibility: hidden; }
.chat-msg.grouped .chat-name  { display: none; }

/* AVATAR */
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #11C5BF, #6D28D9);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* BULLE */
.chat-bubble {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #11C5BF;
  padding-left: 2px;
  letter-spacing: 0.01em;
}

.chat-msg.own .chat-name { color: #a78bfa; text-align: right; }

.chat-msg-admin .chat-name { color: #a78bfa; }

.chat-text {
  display: inline-block;
  background: #1a2436;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg.own .chat-text {
  background: linear-gradient(135deg, rgba(17,197,191,0.18), rgba(109,40,217,0.18));
  border-color: rgba(17,197,191,0.2);
  border-radius: 16px 16px 4px 16px;
  color: #F8FAFC;
}

.chat-msg-admin .chat-text {
  background: linear-gradient(135deg, rgba(109,40,217,0.15), rgba(109,40,217,0.08));
  border-color: rgba(109,40,217,0.25);
  border-radius: 16px 16px 16px 4px;
}

.chat-time {
  font-size: 0.65rem;
  color: #2d3748;
  padding: 0 4px;
  align-self: flex-end;
  transition: color 0.2s;
}

.chat-msg:hover .chat-time { color: #4a5568; }
.chat-msg.own .chat-time { text-align: right; }

/* RECONNECT */
.vch-reconnect {
  padding: 8px 20px;
  background: rgba(245,158,11,0.08);
  border-top: 1px solid rgba(245,158,11,0.12);
  font-size: 0.78rem;
  color: #F59E0B;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ENREGISTREMENT VOCAL */
.vch-recording {
  padding: 12px 20px;
  background: rgba(239,68,68,0.08);
  border-top: 1px solid rgba(239,68,68,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.vch-rec-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vch-rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: recBlink 1s infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.vch-rec-label {
  font-size: 0.82rem;
  color: #EF4444;
  font-weight: 600;
}

.vch-rec-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vch-rec-time {
  font-family: 'Poppins', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #EF4444;
  min-width: 36px;
}

.vch-rec-hint {
  font-size: 0.72rem;
  color: #6b7a90;
}

/* INPUT ZONE */
.vch-input-zone {
  padding: 14px 16px 10px;
  background: #0A1020;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.vch-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #1a2436;
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  transition: border-color 0.2s;
}

.vch-input-wrap:focus-within {
  border-color: rgba(17,197,191,0.35);
  box-shadow: 0 0 0 3px rgba(17,197,191,0.06);
}

.vch-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.5;
  padding: 4px 0;
}

.vch-input::placeholder { color: #2d3748; }

.vch-input-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vch-voice-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(17,197,191,0.1);
  border: 1px solid rgba(17,197,191,0.2);
  color: #11C5BF;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.vch-voice-btn:hover { background: rgba(17,197,191,0.18); }

.vch-send-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #11C5BF, #6D28D9);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(17,197,191,0.25);
}

.vch-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(17,197,191,0.35);
}

.vch-send-btn:disabled {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.vch-input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 0;
}

.vch-hint {
  font-size: 0.68rem;
  color: #2d3748;
}

.vch-counter {
  font-size: 0.68rem;
  color: #2d3748;
  font-family: monospace;
  transition: color 0.2s;
}

/* VOICE PLAYER */
.voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(17,197,191,0.07);
  border: 1px solid rgba(17,197,191,0.15);
  border-radius: 14px 14px 14px 4px;
  min-width: 200px;
  max-width: 260px;
}

.voice-play-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #11C5BF, #6D28D9);
  border: none;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(17,197,191,0.3);
}

.voice-play-btn:hover { transform: scale(1.08); }

.voice-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 24px;
}

.voice-waveform span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: rgba(17,197,191,0.4);
}

.voice-waveform span:nth-child(1)  { height: 8px; }
.voice-waveform span:nth-child(2)  { height: 14px; }
.voice-waveform span:nth-child(3)  { height: 20px; }
.voice-waveform span:nth-child(4)  { height: 14px; }
.voice-waveform span:nth-child(5)  { height: 18px; }
.voice-waveform span:nth-child(6)  { height: 10px; }
.voice-waveform span:nth-child(7)  { height: 22px; }
.voice-waveform span:nth-child(8)  { height: 14px; }
.voice-waveform span:nth-child(9)  { height: 8px; }
.voice-waveform span:nth-child(10) { height: 16px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.voice-duration {
  font-size: 0.72rem;
  color: #11C5BF;
  font-family: monospace;
  flex-shrink: 0;
  min-width: 28px;
}

.chat-msg.own .voice-player {
  background: rgba(109,40,217,0.1);
  border-color: rgba(109,40,217,0.2);
  border-radius: 14px 14px 4px 14px;
}

.chat-msg.own .voice-play-btn {
  background: linear-gradient(135deg, #6D28D9, #a78bfa);
  box-shadow: 0 4px 12px rgba(109,40,217,0.3);
}

.chat-msg.own .voice-waveform span { background: rgba(109,40,217,0.4); }
.chat-msg.own .voice-duration { color: #a78bfa; }

/* ---- ANNOUNCEMENTS ---- */
.announce-item {
  background: var(--bg-card2);
  border-left: 3px solid var(--turquoise);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.announce-item h4 { font-size: 1rem; margin-bottom: 6px; }
.announce-item p { font-size: 0.9rem; }
.announce-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

/* ---- PRIVATE MESSAGES ---- */
.pm-item {
  background: var(--bg-card2);
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 12px;
}

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { margin-bottom: 20px; }

/* ---- DASHBOARD INFO CARD ---- */
.profile-card {
  background: linear-gradient(135deg, rgba(17,197,191,0.08), rgba(109,40,217,0.08));
  border: 1px solid rgba(17,197,191,0.2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--turquoise),var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
}

/* ---- AUTH PAGES ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 60%, rgba(109,40,217,0.15) 0%, transparent 60%),
              var(--bg-dark);
  padding: 20px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--turquoise), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 4px;
}

/* ---- DASHBOARD LAYOUT ---- */
.dash-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
@media(min-width:900px) { .dash-layout { grid-template-columns: 260px 1fr; } }

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(17,197,191,0.1); color: var(--turquoise); }

/* ---- PREMIUM UPSELL ---- */
.premium-upsell {
  background: linear-gradient(135deg, rgba(109,40,217,0.2), rgba(17,197,191,0.15));
  border: 1px solid rgba(109,40,217,0.4);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.premium-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--gold), #e0a800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 16px 0;
}

/* ---- PAYMENT INFO BOX ---- */
.payment-info-box {
  background: rgba(17,197,191,0.08);
  border: 1px dashed rgba(17,197,191,0.4);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}
.payment-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--turquoise);
  letter-spacing: 2px;
  margin: 8px 0;
}

/* ---- ADMIN ---- */
.admin-header {
  background: linear-gradient(135deg,rgba(109,40,217,0.3),rgba(17,197,191,0.2));
  border-bottom: 1px solid rgba(109,40,217,0.3);
  padding: 20px 0;
  margin-bottom: 28px;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.admin-tab-btn {
  padding: 10px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.admin-tab-btn.active { background: rgba(17,197,191,0.15); border-color: var(--turquoise); color: var(--turquoise); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ---- GRADES ---- */
.grade-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.grade-icon { font-size: 2rem; }

/* ---- RESPONSIVE ---- */
@media(max-width:640px) {
  .auth-card { padding: 28px 20px; }
  .card { padding: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; }
  .chat-msg { max-width: 95%; }
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  text-align: center;
}
footer .footer-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--turquoise), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: block;
}
footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ---- TEXT UTILS ---- */
.text-turquoise { color: var(--turquoise); }
.text-violet { color: #a78bfa; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.fw-600 { font-weight: 600; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ========================================
   BOUTON FLOTTANT CHAT VIP (FAB)
   ======================================== */
.fab-chat {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #11C5BF, #6D28D9);
  box-shadow: 0 8px 28px rgba(17,197,191,0.4), 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.fab-chat:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 36px rgba(17,197,191,0.5), 0 6px 18px rgba(0,0,0,0.4);
}

.fab-chat:active {
  transform: scale(0.96);
}

.fab-icon {
  font-size: 1.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Anneau pulsant */
.fab-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(17,197,191,0.5);
  animation: fabPing 2.5s cubic-bezier(0,0,0.2,1) infinite;
}

@keyframes fabPing {
  0%   { transform: scale(0.9); opacity: 0.8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Badge notifications */
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 100px;
  background: #EF4444;
  border: 2px solid #0B1220;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
}

/* ========================================
   BOUTON LIVE SCORES (FAB)
   ======================================== */
.fab-live {
  position: fixed;
  bottom: 28px;
  right: 96px;
  height: 40px;
  padding: 0 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, #11C5BF, #6D28D9);
  border: none;
  box-shadow: 0 4px 20px rgba(17,197,191,0.3), 0 4px 20px rgba(109,40,217,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 9998;
  transition: all 0.3s ease;
}
.fab-live:hover {
  box-shadow: 0 6px 28px rgba(17,197,191,0.45), 0 6px 28px rgba(109,40,217,0.3);
  transform: translateY(-2px);
}
.fab-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: liveFab 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes liveFab {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}
.fab-live-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
}
