/* ============================================
   MultiLive — Design System
   Style: Dark, moderne, type Twitch/YouTube Live
   ============================================ */

:root {
  --bg-0: #0a0a0f;
  --bg-1: #14141c;
  --bg-2: #1c1c28;
  --bg-3: #262636;
  --border: #2a2a3a;
  --text-0: #ffffff;
  --text-1: #d4d4dc;
  --text-2: #8a8a9a;
  --text-3: #5a5a6a;
  --accent: #ff3d57;        /* rouge live */
  --accent-hover: #ff5a72;
  --gold: #ffb800;          /* premium */
  --gold-soft: #ffd166;
  --green: #00d68f;         /* mobile money / success */
  --blue: #4d8eff;
  --purple: #a45dff;
  --gradient-live: linear-gradient(135deg, #ff3d57 0%, #ff8a3d 100%);
  --gradient-premium: linear-gradient(135deg, #ffb800 0%, #ff6a3d 100%);
  --gradient-hero: linear-gradient(135deg, #1a0f2e 0%, #0a0a0f 50%, #2e0f1a 100%);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Layout ===== */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.content { padding: 24px 32px 48px; flex: 1; }

/* ===== Brand / Logo ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 24px;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-live);
  display: grid; place-items: center;
  font-weight: 900; color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(255,61,87,0.4);
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.brand-name span { color: var(--accent); }

/* ===== Sidebar nav ===== */
.nav-section { margin-bottom: 18px; }
.nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  padding: 6px 14px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.15s;
}
.nav-item:hover { background: var(--bg-2); color: var(--text-0); }
.nav-item.active {
  background: var(--bg-3);
  color: var(--text-0);
}
.nav-item .ico { width: 18px; text-align: center; }
.nav-item .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-left: auto;
  box-shadow: 0 0 0 0 rgba(255,61,87,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,61,87,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,61,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,61,87,0); }
}

.sidebar-lives { padding: 4px 8px; }
.side-live {
  display: flex; gap: 10px; align-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.side-live:hover { background: var(--bg-2); }
.side-live .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.side-live .meta { min-width: 0; flex: 1; }
.side-live .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-live .cat { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-live .viewers { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ===== Topbar ===== */
.search {
  flex: 1;
  max-width: 540px;
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  gap: 10px;
}
.search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-0); font-size: 14px;
}
.search input::placeholder { color: var(--text-3); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--bg-3);
  color: var(--text-0);
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn:hover { background: var(--bg-2); border-color: var(--border); }
.btn-primary {
  background: var(--gradient-live);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,61,87,0.35);
}
.btn-primary:hover { background: var(--gradient-live); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,61,87,0.5); }
.btn-premium {
  background: var(--gradient-premium);
  color: #0a0a0f;
  font-weight: 700;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 22px; font-size: 14px; }

.avatar-chip {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-live);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-hero);
  padding: 48px 40px;
  margin-bottom: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,61,87,0.25), transparent 60%);
}
.hero-content { position: relative; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,61,87,0.15);
  border: 1px solid rgba(255,61,87,0.3);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.hero-title span { color: var(--accent); }
.hero-desc {
  font-size: 16px; color: var(--text-1);
  margin-bottom: 24px; max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { margin-bottom: 40px; }
.section-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.section-link { color: var(--text-2); font-size: 13px; }
.section-link:hover { color: var(--text-0); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ===== Live card ===== */
.live-card {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid transparent;
}
.live-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}
.live-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
}
.live-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}
.live-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  z-index: 1;
}
.live-badge::before {
  content: ""; width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.live-badge.upcoming { background: var(--bg-3); color: var(--text-1); }
.live-badge.upcoming::before { background: var(--gold); animation: none; }
.live-badge.premium { background: var(--gradient-premium); color: #0a0a0f; }
.live-badge.premium::before { display: none; }
.live-viewers {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex; align-items: center; gap: 5px;
  z-index: 1;
}
.live-duration {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1;
}
.live-info {
  padding: 14px;
  display: flex; gap: 12px;
}
.live-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.live-meta { min-width: 0; flex: 1; }
.live-title {
  font-size: 14px; font-weight: 600;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.live-artist { font-size: 13px; color: var(--text-1); margin-bottom: 4px; }
.live-tags { font-size: 12px; color: var(--text-2); }
.live-tag {
  display: inline-block;
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  margin-top: 4px;
  font-size: 11px;
}
.live-price {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}
.live-price.free { color: var(--green); }

/* ===== Category chips ===== */
.chips {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { background: var(--bg-2); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Live Player Page ===== */
.player-page { display: grid; grid-template-columns: 1fr 360px; gap: 24px; min-height: calc(100vh - 64px); }
.player-main { display: flex; flex-direction: column; gap: 16px; }
.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.player-wrap::after {
  /* Glow ambient effect */
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -2px;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 60px rgba(255,61,87,0.18);
  z-index: 1;
}

/* Equalizer animated bars */
.eq-bars {
  position: absolute;
  bottom: 56px;
  right: 16px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.eq-bars span {
  display: block;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { animation-delay: 0s; }
.eq-bars span:nth-child(2) { animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { animation-delay: 0.1s; }
.eq-bars span:nth-child(5) { animation-delay: 0.25s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Now playing ticker */
.now-playing {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 60%;
  border: 1px solid rgba(255,255,255,0.08);
}
.now-playing-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.6s infinite;
}
.now-playing-label {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.now-playing-text {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sponsor / channel branding bug */
.channel-bug {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.channel-bug::before {
  content: "M";
  width: 18px; height: 18px;
  background: var(--gradient-live);
  border-radius: 4px;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 11px;
}
.player-wrap video, .player-wrap iframe {
  width: 100%; height: 100%; display: block;
}
.player-overlay {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 8px; align-items: center;
  z-index: 2;
}
.player-overlay .live-badge { position: static; }
.player-overlay .viewers {
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* Multi-screen participants strip */
.participants-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.participant {
  position: relative;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.participant:hover { border-color: var(--accent); }
.participant.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,61,87,0.3); }
.participant .label {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.7);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.participant .mic {
  position: absolute; top: 6px; right: 6px;
  background: var(--accent);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}

.player-info {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.player-info .row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.player-info .av {
  width: 56px; height: 56px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 3px solid var(--accent);
}
.player-info h2 { font-size: 18px; margin-bottom: 4px; }
.player-info .meta-line { color: var(--text-2); font-size: 13px; }
.player-info .actions { margin-left: auto; display: flex; gap: 8px; }
.player-info .desc { color: var(--text-1); font-size: 14px; line-height: 1.5; }
.player-info .tags { margin-top: 12px; }

/* Chat */
.chat {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
}
.chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-head h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { font-size: 13px; line-height: 1.4; }
.chat-msg .user {
  font-weight: 700;
  margin-right: 6px;
}
.chat-msg .user.mod { color: var(--accent); }
.chat-msg .user.pro { color: var(--gold); }
.chat-msg .user.fan { color: var(--blue); }
.chat-msg .user.normal { color: var(--purple); }
.chat-msg .badge {
  display: inline-block;
  background: var(--gold);
  color: #0a0a0f;
  font-size: 9px; font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.chat-msg .text { color: var(--text-1); }
.tip {
  display: inline-block;
  background: var(--gradient-premium);
  color: #0a0a0f;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin: 0 4px;
}
.chat-input {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex; gap: 8px;
}
.chat-input input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text-0);
  font-size: 13px;
  outline: none;
}
.chat-input input:focus { border-color: var(--accent); }
.chat-input button {
  background: var(--accent);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 16px;
}

/* ===== Modal ===== */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--bg-1);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 480px;
  padding: 32px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--text-2);
}
.modal-close:hover { background: var(--bg-3); color: var(--text-0); }
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal .sub { color: var(--text-2); font-size: 14px; margin-bottom: 22px; }

.price-tiers { display: grid; gap: 12px; margin-bottom: 20px; }
.tier {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.tier:hover { border-color: var(--text-3); }
.tier.selected {
  border-color: var(--accent);
  background: rgba(255,61,87,0.06);
}
.tier-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  flex-shrink: 0;
  display: grid; place-items: center;
}
.tier.selected .tier-radio { border-color: var(--accent); }
.tier.selected .tier-radio::after {
  content: "";
  width: 10px; height: 10px; background: var(--accent); border-radius: 50%;
}
.tier-info { flex: 1; }
.tier-name { font-weight: 700; margin-bottom: 2px; }
.tier-desc { font-size: 12px; color: var(--text-2); }
.tier-price { font-weight: 800; font-size: 16px; }
.tier-price small { display: block; font-size: 11px; color: var(--text-2); font-weight: 500; }

/* Payment methods */
.pay-methods { display: grid; gap: 10px; margin-bottom: 20px; }
.pay-method {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.pay-method:hover { border-color: var(--text-3); }
.pay-method.selected { border-color: var(--green); background: rgba(0,214,143,0.05); }
.pay-method .logo {
  width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
  flex-shrink: 0;
  color: #fff;
}
.logo.mpesa { background: linear-gradient(135deg, #00b341, #00d68f); }
.logo.orange { background: linear-gradient(135deg, #ff7900, #ff5500); }
.logo.airtel { background: linear-gradient(135deg, #ed1c24, #b00); }
.logo.afrimoney { background: linear-gradient(135deg, #ffd700, #f0a500); color: #333; }
.logo.card { background: linear-gradient(135deg, #4d8eff, #2563eb); }
.logo.unit { background: linear-gradient(135deg, #a45dff, #6a3dff); }
.pay-method .name { font-weight: 600; }
.pay-method .desc { font-size: 12px; color: var(--text-2); }
.pay-method .check {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  display: grid; place-items: center;
}
.pay-method.selected .check { border-color: var(--green); background: var(--green); color: #fff; }

/* Form */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-0);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.btn-block { width: 100%; justify-content: center; padding: 14px; }

.success-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(0,214,143,0.15);
}

/* ===== Profile page ===== */
.profile-head {
  background: linear-gradient(135deg, #1a0f2e, #2e0f1a);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.profile-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,61,87,0.2), transparent 50%);
}
.profile-head > * { position: relative; }
.profile-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--gradient-live);
  display: grid; place-items: center;
  font-size: 32px; font-weight: 800; color: #fff;
  border: 4px solid var(--bg-0);
  box-shadow: 0 0 0 3px var(--accent);
}
.profile-name { font-size: 24px; font-weight: 800; }
.profile-mail { color: var(--text-2); font-size: 14px; }
.profile-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient-premium);
  color: #0a0a0f;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  margin-top: 8px;
}
.profile-actions { margin-left: auto; display: flex; gap: 10px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
}
.stat .label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.stat .sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.stat .value.green { color: var(--green); }
.stat .value.gold { color: var(--gold); }
.stat .value.accent { color: var(--accent); }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 12px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { color: var(--text-0); }
.tab.active { color: var(--text-0); border-color: var(--accent); }

.list-item {
  background: var(--bg-1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.list-item .thumb {
  width: 96px; height: 56px;
  border-radius: var(--radius-sm);
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  flex-shrink: 0;
}
.list-item .info { flex: 1; min-width: 0; }
.list-item .t { font-weight: 600; margin-bottom: 4px; }
.list-item .d { font-size: 12px; color: var(--text-2); }
.list-item .right { display: flex; gap: 8px; align-items: center; }

/* ===== Creator dashboard ===== */
.creator-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.card {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.card h3 { font-size: 16px; font-weight: 700; }

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  height: 180px;
  margin-top: 14px;
}
.bar-col {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), #c92644);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: filter 0.15s;
}
.bar:hover { filter: brightness(1.2); }
.bar-label { font-size: 11px; color: var(--text-2); }
.bar-value {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: var(--text-0);
  background: var(--bg-3); padding: 2px 6px; border-radius: 4px;
  opacity: 0; transition: opacity 0.15s;
  white-space: nowrap;
}
.bar:hover .bar-value { opacity: 1; }

.create-form .field { margin-bottom: 14px; }
.create-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.event-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.event-row:hover { background: var(--bg-2); }
.event-date {
  text-align: center;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  flex-shrink: 0;
}
.event-date .d { font-size: 18px; font-weight: 800; line-height: 1; }
.event-date .m { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.event-info { flex: 1; min-width: 0; }
.event-info .t { font-weight: 600; }
.event-info .d2 { font-size: 12px; color: var(--text-2); }

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-3);
  border-radius: 24px;
  transition: 0.2s;
}
.toggle .slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* Notif toast */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.3s;
  z-index: 200;
  max-width: 360px;
}
.toast.show { transform: translateY(0); }
.toast.error { border-left-color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .player-page { grid-template-columns: 1fr; }
  .chat { min-height: 400px; }
  .creator-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 16px; }
  .hero { padding: 28px 20px; }
  .hero-title { font-size: 26px; }
  .topbar { padding: 0 16px; }
  .search { display: none; }
  .participants-strip { grid-template-columns: repeat(2, 1fr); }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-actions { margin-left: 0; }
}
