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

:root {
  --bg: #06080f;
  --bg2: #0a0e1c;
  --bg3: #111728;
  --card: #0f1428;
  --card-hover: #161d35;
  --border: rgba(99, 102, 241, 0.12);
  --border-light: rgba(99, 102, 241, 0.06);
  --text: #f1f5ff;
  --text2: #94a3c4;
  --text3: #64748b;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --accent-2: #ec4899;
  --accent-2-glow: rgba(236, 72, 153, 0.3);
  --verified: #7c3aed;
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --orange: #f59e0b;
  --orange-glow: rgba(245, 158, 11, 0.2);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.2);
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.15);
  --shadow-glow-2: 0 0 80px rgba(236, 72, 153, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --nav-height: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  --gradient-cool: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --gradient-warm: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  --gradient-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.05) 50%, rgba(245, 158, 11, 0.05) 100%);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;
  --border: rgba(99, 102, 241, 0.15);
  --border-light: rgba(99, 102, 241, 0.08);
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --shadow: 0 12px 48px rgba(99, 102, 241, 0.08);
  --shadow-sm: 0 4px 16px rgba(99, 102, 241, 0.05);
  --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.1);
  --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.08);
  --shadow-glow-2: 0 0 80px rgba(236, 72, 153, 0.05);
}

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

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* Page entrance animation */
.main-content {
  animation: pageIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: bgShift 20s ease-in-out infinite;
}
@keyframes bgShift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1%) scale(1.05); }
  66% { transform: translate(-1%, 1%) scale(1.02); }
}

a { color: var(--text); text-decoration: none; }
a:hover { opacity: 0.85; }

/* Image loading blur-up */
img { transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; }
img.loading-blur { filter: blur(12px); opacity: 0.6; }
img.loaded { filter: blur(0); opacity: 1; }

/* Smooth gradient animation for loading states */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--card-hover) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }
::-webkit-scrollbar-corner { background: transparent; }

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* =========== NAVBAR =========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  z-index: 1000;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), rgba(236, 72, 153, 0.3), transparent);
}
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 4px 32px rgba(124, 58, 237, 0.05);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.nav-logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--gradient-primary);
  border-radius: 50%;
  -webkit-text-fill-color: initial;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.6);
  animation: logoPulse 2.5s ease-in-out infinite;
  position: relative;
}
.nav-logo::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateY(-50%) scale(1.2); opacity: 0.8; }
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(124, 58, 237, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 24px rgba(124, 58, 237, 0.9), 0 0 40px rgba(236, 72, 153, 0.4); transform: scale(1.1); }
}

.nav-search {
  flex: 1;
  max-width: clamp(320px, 40vw, 600px);
  position: relative;
}

.search-input {
  width: 100%;
  padding: 11px 44px 11px 20px;
  background: rgba(15, 20, 40, 0.4);
  border: 1.5px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: var(--font);
  backdrop-filter: blur(8px);
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 30px rgba(124, 58, 237, 0.08);
  background: rgba(15, 20, 40, 0.6);
}
.search-input:hover:not(:focus) {
  border-color: rgba(124, 58, 237, 0.2);
}
[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .search-input:focus {
  background: rgba(255, 255, 255, 0.95);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px;
  transition: color 0.2s;
}
.search-btn:hover { color: var(--accent); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 1100;
  max-height: 320px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: searchDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}
@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(108, 92, 231, 0.08); }
.search-result-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.search-result-item div { line-height: 1.2; }
.search-result-item strong { font-size: 0.82rem; }
.search-result-item small { font-size: 0.7rem; color: var(--text2); display: block; }

.mobile-search-btn {
  display: none;
  background: none; border: none;
  color: var(--text2); font-size: 1.1rem;
  cursor: pointer; padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-search-btn:hover { background: var(--card-hover); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent);
  opacity: 1;
}

.nav-register {
  background: linear-gradient(135deg, #6c5ce7, #fd79a8);
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}
.nav-register:hover {
  background: linear-gradient(135deg, #5a4bd1, #e06a95);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
  transform: translateY(-1px);
}

.nav-apk {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  font-weight: 600;
  padding: 7px 18px;
  animation: apkPulse 2s ease-in-out infinite;
}
.nav-apk:hover { background: linear-gradient(135deg, #5a4bd1, #8c7ff5); color: #fff; }
@keyframes apkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  position: relative;
}

.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.25s;
}
.nav-profile:hover .nav-avatar { border-color: var(--accent); }

.mobile-nav-search { display: none; }

.nav-shield {
  display: none;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: shieldPulse 3s ease-in-out infinite;
}
.nav-shield:hover {
  background: rgba(108, 92, 231, 0.1);
  transform: scale(1.1);
  animation: none;
}
@keyframes shieldPulse {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 6px rgba(108, 92, 231, 0.4)); }
}
.nav-coins {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f59e0b !important;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-coins:hover { transform: scale(1.05); }
.nav-coins .coin-icon { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-coins:hover .coin-icon { transform: rotate(15deg) scale(1.1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 0;
  color: var(--text);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle:hover {
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent);
}
.nav-toggle:active { background: var(--border); transform: scale(0.95); }
.nav-toggle svg { display: block; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-toggle:hover svg { transform: scale(1.1); }

.desktop-only { display: inline-flex; }
.desktop-nav { display: flex; align-items: center; gap: 2px; }
.desktop-only-nav { display: flex; align-items: center; gap: 2px; }

.desktop-nav .nav-link {
  position: relative;
}
.desktop-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #6c5ce7, #fd79a8);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.desktop-nav .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* =========== BOTTOM NAV (MOBILE) =========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(5, 7, 14, 0.94);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-top: 1px solid rgba(108, 92, 231, 0.06);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(108, 92, 231, 0.06);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text3);
  font-size: 0.58rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.bottom-nav-item:hover { color: var(--text); opacity: 1; }
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #fd79a8);
  border-radius: 0 0 4px 4px;
}
.bottom-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.bottom-nav-icon.no-text {
  font-size: 1.4rem;
  margin-top: 6px;
}

.bottom-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
}

.bottom-notif-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  background: linear-gradient(135deg, #ec4899, #ef4444);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify_content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.bottom-notif-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
  z-index: 1000;
  transition: all 0.2s ease;
}
@media (max-width: 768px) {
  .bottom-notif-fab { bottom: 70px; right: 12px; width: 50px; height: 50px; font-size: 1.2rem; }
  .bottom-notif-panel { bottom: 125px; right: 8px; width: calc(100vw - 16px); max-height: 50vh; }
}
.bottom-notif-fab:hover { transform: scale(1.1); }
.bottom-notif-badge#bottomNotifFabCount {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.bottom-notif-panel {
  position: fixed;
  bottom: 140px;
  right: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 60vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.bottom-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.bottom-notif-header h3 { margin: 0; font-size: 1rem; }
.bottom-notif-header button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.bottom-notif-header button:hover { background: rgba(124, 58, 237, 0.1); }
.bottom-notif-list {
  max-height: 40vh;
  overflow-y: auto;
  padding: 8px;
}
.bottom-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--bg2);
  transition: background 0.15s;
}
.bottom-notif-item.unread { background: rgba(124, 58, 237, 0.1); }
.bottom-notif-item:hover { background: var(--bg3); }
.bottom-notif-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bottom-notif-content { flex: 1; min-width: 0; }
.bottom-notif-title { font-weight: 600; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.bottom-notif-message { font-size: 0.78rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-notif-time { font-size: 0.65rem; color: var(--text3); margin-top: 4px; }

.more-menu-trigger { position: relative; }
.more-menu-dropdown {
  display: none;
  position: absolute;
  bottom: 64px;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 150px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.more-menu-dropdown.active { display: block; }
.more-menu-item {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.more-menu-item:hover { background: var(--bg3); }
.more-menu-coins { display:flex; align-items:center; gap:6px; padding:10px 14px; font-size:0.85rem; font-weight:600; color:var(--accent); border-bottom:1px solid var(--border); margin-bottom:4px; }
.more-menu-coins .coin-icon { width:16px;height:16px;background:url('/static/coin.jpeg') center/contain no-repeat;border-radius:50%;display:inline-block;flex-shrink:0; }
.main-content.feed-page {
  padding-top: 0;
  height: 100dvh;
  overflow: hidden;
}

/* Countdown bar style */
.countdown-item {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideInAnnouncement 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.countdown-timer {
  background: rgba(253, 121, 168, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  display: inline-block;
  animation: countPulse 2s ease-in-out infinite;
}
@keyframes countPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* =========== FLASH MESSAGES =========== */
.flash-container {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
  pointer-events: none;
}

.flash-message {
  background: rgba(13, 19, 36, 0.95);
  border: 1px solid rgba(108, 92, 231, 0.1);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: flashIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  pointer-events: auto;
  gap: 12px;
  backdrop-filter: blur(16px);
}
.flash-message span { flex: 1; }

.flash-message button {
  background: none; border: none;
  color: var(--text2); cursor: pointer;
  font-size: 1rem; padding: 4px;
  border-radius: 4px; transition: background 0.2s;
  flex-shrink: 0;
}
.flash-message button:hover { background: var(--card-hover); }

.flash-success {
  border-left: 3px solid var(--green);
  box-shadow: 0 4px 20px var(--green-glow);
}
.flash-error {
  border-left: 3px solid var(--red);
  box-shadow: 0 4px 20px var(--red-glow);
}
.flash-warning {
  border-left: 3px solid var(--orange);
  box-shadow: 0 4px 20px var(--orange-glow);
}

@keyframes flashIn {
  from { transform: translateY(-24px) scale(0.92); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Flash message exit */
@keyframes flashOut {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(-16px) scale(0.95); opacity: 0; }
}
.flash-message.removing { animation: flashOut 0.3s ease forwards; }

/* =========== AUTH =========== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 24px 20px;
  position: relative;
}

.auth-card {
  background: rgba(15, 20, 40, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 100px rgba(124, 58, 237, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardFloat {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #ec4899, #f59e0b);
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}
@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.auth-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.08), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.06), transparent 40%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.25);
}

.auth-logo {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 1;
  animation: logoShine 3s ease-in-out infinite;
}
@keyframes logoShine {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(124, 58, 237, 0.3)); }
  50% { filter: brightness(1.1) drop-shadow(0 0 30px rgba(236, 72, 153, 0.4)); }
}

.auth-card h2 {
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group { margin-bottom: 16px; text-align: left; position: relative; z-index: 1; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 14, 28, 0.5);
  border: 1.5px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  backdrop-filter: blur(8px);
}
.form-input::placeholder { color: var(--text3); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 30px rgba(124, 58, 237, 0.1);
  background: rgba(10, 14, 28, 0.7);
  transform: translateY(-1px);
}
.form-input:hover:not(:focus) {
  border-color: rgba(124, 58, 237, 0.25);
}
textarea.form-input { resize: vertical; min-height: 80px; }

select.form-input { appearance: auto; cursor: pointer; }

.btn-primary {
  padding: 14px 32px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ec4899, #f59e0b, #7c3aed);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -2;
  animation: gradientFlow 4s ease infinite;
}
@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background-position: 100% 0%;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
}

.btn-secondary {
  padding: 12px 22px;
  background: rgba(124, 58, 237, 0.05);
  color: var(--text);
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.btn-danger {
  padding: 12px 22px;
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.btn-full { width: 100%; }

.auth-footer {
  margin-top: 24px;
  color: var(--text2);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text2);
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* =========== VIDEO FEED (TikTok Style) =========== */
.video-feed-container {
  height: 100dvh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  position: relative;
  overscroll-behavior: none;
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
}
.video-feed-container::-webkit-scrollbar { display: none; }

.video-card {
  height: 100vh;
  position: relative;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@supports (height: 100dvh) {
  .video-card { height: 100dvh; }
}
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 20%, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.feed-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  background: #000;
  pointer-events: auto;
}

/* TikTok progress bar - bottom */
.video-progress-wrap {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  z-index: 999 !important;
  height: 20px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.video-progress {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 3px !important;
  background: rgba(255,255,255,0.3) !important;
  border-radius: 2px !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  display: block !important;
  position: relative;
  pointer-events: auto !important;
}
.video-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #fe2c55 !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 6px rgba(0,0,0,0.5) !important;
  pointer-events: auto !important;
}
.video-progress::-moz-range-thumb {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #fe2c55 !important;
  cursor: pointer !important;
  border: 2px solid #fff !important;
}
.video-progress::-moz-range-track {
  height: 3px !important;
  background: rgba(255,255,255,0.3) !important;
  border-radius: 2px !important;
}
.video-progress::-moz-range-progress {
  background: #fe2c55 !important;
  height: 3px !important;
  border-radius: 2px !important;
}
.video-progress {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: rgba(255,255,255,0.3) !important;
  border-radius: 3px !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  display: block !important;
  position: relative;
  pointer-events: auto !important;
}
.video-progress::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #fe2c55 !important;
  cursor: pointer !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 8px rgba(0,0,0,0.6) !important;
  pointer-events: auto !important;
}
.video-progress::-moz-range-thumb {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #fe2c55 !important;
  cursor: pointer !important;
  border: 3px solid #fff !important;
}
.video-progress::-moz-range-track {
  height: 6px !important;
  background: rgba(255,255,255,0.3) !important;
  border-radius: 3px !important;
}
.video-progress::-moz-range-progress {
  background: #fe2c55 !important;
  height: 6px !important;
  border-radius: 3px !important;
}

/* TikTok overlay - left side content */
.video-info-overlay {
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  padding: 180px 80px 24px 16px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.05) 15%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
  z-index: 5;
  pointer-events: none;
}
.video-info-overlay a,
.video-info-overlay button { pointer-events: auto; }

.overlay-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.overlay-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.follow-btn-tiktok {
  background: linear-gradient(135deg, #fe2c55, #ec4899);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}
.follow-btn-tiktok:hover { opacity: 0.9; transform: scale(1.02); box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4); }
.follow-btn-tiktok:active { transform: scale(0.97); }
.follow-btn-tiktok.following {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.overlay-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.overlay-title {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 3px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.overlay-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 3px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.overlay-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.overlay-sound .music-icon {
  display: inline-block;
  animation: spinDisc 4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
}
@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* TikTok right side actions */
.video-actions {
  position: absolute;
  right: 8px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 10;
  pointer-events: auto;
  transform: translateZ(0);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.62rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: all 0.15s;
  padding: 0;
}
.action-btn:active { transform: scale(0.85); }

.action-icon {
  font-size: 1.2rem;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.action-btn:hover .action-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.action-btn.liked .action-icon {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}
.action-btn.liked .action-icon { animation: likePop 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
@keyframes likePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Play/Pause overlay (YouTube style) */
.play-pause-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: none;
}
.play-pause-overlay.show {
  animation: playPulse 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
.play-pause-overlay svg {
  width: 36px;
  height: 36px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
@keyframes playPulse {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.tap-to-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tap-to-play svg { width: 40px; height: 40px; fill: #fff; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5)); }
.tap-to-play.show { opacity: 1; pointer-events: auto; }

/* Heart float animation */
@keyframes heartFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}
.heart-float {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  animation: heartFloat 0.8s ease-out forwards;
  z-index: 30;
}

.action-count { font-size: 0.62rem; font-weight: 600; margin-top: 1px; }

@keyframes numberPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.number-pop { animation: numberPop 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* TikTok profile pic on the right bottom */
.tiktok-profile-thumb {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.tiktok-profile-thumb:hover { border-color: rgba(255,255,255,0.6); }
.tiktok-profile-thumb img { width: 100%; height: 100%; object-fit: cover; }

.volume-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.volume-slider-wrap {
  display: none;
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 14px;
  background: rgba(0,0,0,0.7);
  border-radius: 20px;
  z-index: 20;
}
.volume-slider-wrap.show {
  display: block;
}
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 64px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  writing-mode: vertical-lr;
  direction: rtl;
  display: block;
  margin: 0 auto;
  touch-action: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

.volume-lock {
  overflow: hidden !important;
  touch-action: none !important;
}

/* =========== BADGES =========== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  font-size: 0.65rem;
  color: #fff;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.verified-badge-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.role-badge, .role-badge-lg, .role-badge-sm, .role-badge-xs {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.role-badge { padding: 2px 8px; border-radius: 4px; font-size: 0.6rem; }
.role-badge-lg { padding: 3px 10px; border-radius: 5px; font-size: 0.7rem; }
.role-badge-sm { padding: 1px 6px; border-radius: 3px; font-size: 0.55rem; margin-left: 4px; }
.role-badge-xs { padding: 1px 5px; border-radius: 3px; font-size: 0.5rem; margin-left: 2px; vertical-align: middle; }

.role-icon { font-size: 0.9rem; margin-left: 2px; }

.mention-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.mention-link:hover { text-decoration: underline; }
.hashtag-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.hashtag-link:hover { text-decoration: underline; }

/* =========== NOTIFICATIONS =========== */
.notif-bell { position: relative; padding: 8px 10px !important; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.notif-bell:hover { transform: scale(1.1); }
.notif-bell:active { transform: scale(0.95); }

.notif-bell.has-unread {
  animation: bellRing 1s ease-in-out infinite;
}

.notif-badge {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #ec4899, #ef4444);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.notif-panel {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: max(calc((100vw - 1200px) / 2 + 8px), 12px);
  width: 380px;
  max-width: calc(100vw - 20px);
  max-height: 70vh;
  background: rgba(9, 13, 26, 0.96);
  border: 1px solid rgba(108, 92, 231, 0.06);
  border-radius: var(--radius-lg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  overflow: hidden;
  animation: panelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(24px);
}
@keyframes panelIn {
  from { transform: translateY(-12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(108, 92, 231, 0.04);
}
.notif-panel-header h3 { font-size: 0.95rem; font-weight: 700; }
.notif-panel-header button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.notif-panel-header button:hover { 
  background: rgba(108, 92, 231, 0.08);
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 55vh;
}

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(108, 92, 231, 0.03);
  cursor: pointer;
  transition: all var(--transition);
}
.notif-item:hover { background: rgba(108, 92, 231, 0.03); }
.notif-item.unread { background: rgba(108, 92, 231, 0.05); border-left: 3px solid var(--accent); }
.notif-item.warning { background: rgba(255, 107, 107, 0.06); border-left: 3px solid var(--red); }
.notif-item.announcement { background: rgba(0, 210, 160, 0.06); border-left: 3px solid var(--green); }

.notif-msg { font-size: 0.85rem; line-height: 1.4; }
.notif-item small { font-size: 0.7rem; color: var(--text3); }

/* =========== MODALS =========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: flex-end;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: rgba(9, 13, 26, 0.98);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

.modal-sm {
  max-width: 400px;
  padding: 24px;
  border-radius: 20px;
  align-items: center;
  align-self: center;
}

@keyframes modalUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(108, 92, 231, 0.04);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-header button {
  background: none; border: none;
  color: var(--text2); font-size: 1.3rem;
  cursor: pointer; padding: 6px 10px;
  border-radius: 8px;
  transition: all var(--transition);
}
.modal-header button:hover { background: rgba(108, 92, 231, 0.08); color: var(--text); }

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.comments-list::-webkit-scrollbar { width: 4px; }
.comments-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 24px;
  animation: commentSlide 0.3s ease;
}
@keyframes commentSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-item.pinned {
  background: rgba(108, 92, 231, 0.04);
  border-left: 3px solid var(--accent);
}

.comment-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(108, 92, 231, 0.1);
}

.comment-body { flex: 1; min-width: 0; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 700;
  font-size: 0.85rem;
}
.comment-author:hover { opacity: 0.8; }

.comment-body p {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}

.comment-pin {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}
.comment-item.boosted {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.04), rgba(217, 119, 6, 0.02));
  border-left: 3px solid var(--orange);
}
.comment-boost-badge {
  font-size: 0.65rem;
  color: #f59e0b;
  font-weight: 600;
  margin-left: 4px;
}
.boost-btn {
  color: #f59e0b !important;
}

.comment-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.comment-action {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 2px;
}
.comment-action:hover { background: var(--card-hover); color: var(--text); }

.like-comment-btn.liked { color: var(--accent); }
.pin-btn:hover { color: #f59e0b; }
.del-btn:hover { color: var(--red); }

.replies-section {
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid rgba(108, 92, 231, 0.08);
}

.reply-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: rgba(13, 19, 36, 0.5);
  border-top: 1px solid rgba(108, 92, 231, 0.04);
  font-size: 0.78rem;
  color: var(--text2);
}
.reply-indicator button {
  background: none; border: none;
  color: var(--accent); cursor: pointer;
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background var(--transition);
}
.reply-indicator button:hover { background: rgba(108, 92, 231, 0.08); }

.comment-input {
  padding: 12px 20px;
  border-top: 1px solid rgba(108, 92, 231, 0.04);
}

.comment-input .input-row {
  display: flex;
  gap: 10px;
}

.comment-input input {
  flex: 1;
  padding: 11px 18px;
  background: rgba(15, 21, 37, 0.6);
  border: 1px solid rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: all var(--transition);
}
.comment-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-input button {
  padding: 11px 24px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}
.comment-input button:hover {
  background: linear-gradient(135deg, #5a4bd1, #8c7ff5);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
}

/* =========== PROFILE =========== */
.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.profile-container::-webkit-scrollbar { display: none; }

.profile-info-section {
  display: flex;
  gap: 28px;
  padding: 48px 32px 28px;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.02) 50%, transparent 100%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.profile-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), rgba(236, 72, 153, 0.3), transparent);
}
.profile-info-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}

.profile-pic-large {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
.profile-pic-large:hover {
  transform: scale(1.05);
  box-shadow: 0 0 70px rgba(124, 58, 237, 0.4);
  border-color: var(--accent);
}

.profile-details { flex: 1; position: relative; z-index: 1; }

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-name-row h1 { 
  font-size: 1.8rem; 
  font-weight: 900; 
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--text), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-username {
  color: var(--text2);
  font-size: 0.92rem;
  margin: 4px 0;
  font-weight: 500;
}

.profile-bio {
  margin: 12px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text2);
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
.profile-stats strong { 
  font-weight: 800; 
  font-size: 1.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.profile-stats span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 12px; }
.profile-stats span:hover { transform: translateY(-2px); background: rgba(124, 58, 237, 0.06); }
.profile-stats span small { color: var(--text2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

.follow-btn { 
  margin-top: 8px; 
  display: inline-block;
  padding: 11px 26px;
}

.profile-about {
  background: linear-gradient(135deg, rgba(15, 20, 40, 0.5), rgba(124, 58, 237, 0.03));
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.profile-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.profile-about:hover { 
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.profile-about:hover::before { transform: scaleX(1); }
}
.profile-about h3 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-label {
  font-size: 0.72rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.about-value {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  margin: 12px 20px 0;
  gap: 0;
  background: rgba(15, 20, 40, 0.3);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 8px;
  backdrop-filter: blur(8px);
}

.tab-btn {
  flex: 1;
  padding: 16px 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
  position: relative;
  border-radius: 0;
  margin-bottom: -1px;
}
.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.05));
}
.tab-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(124, 58, 237, 0.05);
}

.profile-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 12px;
  background: rgba(15, 20, 40, 0.2);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 20px 20px;
}

.profile-video-card {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  border: 1px solid rgba(124, 58, 237, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.profile-video-card:nth-child(1) { animation-delay: 0s; }
.profile-video-card:nth-child(2) { animation-delay: 0.05s; }
.profile-video-card:nth-child(3) { animation-delay: 0.1s; }
.profile-video-card:nth-child(4) { animation-delay: 0.15s; }
.profile-video-card:nth-child(5) { animation-delay: 0.2s; }
.profile-video-card:nth-child(6) { animation-delay: 0.25s; }
.profile-video-card:nth-child(7) { animation-delay: 0.3s; }
.profile-video-card:nth-child(8) { animation-delay: 0.35s; }
.profile-video-card:nth-child(9) { animation-delay: 0.4s; }
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-video-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.3);
  z-index: 2;
}
.profile-video-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.profile-video-card:hover video { transform: scale(1.1); }

.profile-video-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px;
  display: flex; gap: 12px;
  font-size: 0.72rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff; z-index: 2;
  backdrop-filter: blur(2px);
}

.profile-video-title {
  position: absolute; top: 6px; left: 6px; right: 6px;
  font-size: 0.68rem; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.empty-state { text-align: center; color: var(--text2); padding: 60px 20px; font-size: 0.9rem; line-height: 1.6; }

/* Spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

/* Fade-in animation for elements */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* Scale-in animation */
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

.loading { text-align: center; padding: 30px; color: var(--text2); font-size: 0.85rem; }

/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--card-hover) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}
.skeleton-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
}
.skeleton-card {
  height: 120px;
  border-radius: var(--radius);
}

/* =========== UPLOAD =========== */
.upload-go-live-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 12px; background: linear-gradient(135deg, #ff3b6b, #ff1744); color: #fff; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(255,23,68,0.3); transition: all 0.2s ease; }
.upload-go-live-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,23,68,0.5); }

.upload-go-live-bottom { margin-top: 20px; margin-bottom: 0; }
@media (max-width: 768px) {
  .upload-go-live-btn:not(.upload-go-live-bottom) { display: none; }
  .upload-go-live-bottom { display: flex; }
}

.upload-container {
  display: flex;
  justify-content: center;
  padding: 30px 16px 80px;
  min-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.upload-card {
  background: rgba(13, 19, 36, 0.5);
  border: 1px solid rgba(108, 92, 231, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}
.upload-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #fd79a8, #a29bfe);
}
.upload-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(108, 92, 231, 0.03), transparent 50%);
  pointer-events: none;
}
.upload-card h2 { margin-bottom: 24px; font-size: 1.3rem; font-weight: 700; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.upload-card h2 { font-size: 1.2rem; margin-bottom: 4px; }

.upload-rules {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 12px 0 16px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.upload-rules ul { margin: 6px 0 0 16px; color: var(--text2); }
.upload-rules ul li { margin: 3px 0; }

.file-drop-zone {
  border: 2px dashed rgba(108, 92, 231, 0.15);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(108, 92, 231, 0.02);
}
.file-drop-zone:hover {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.05);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.08);
  transform: scale(1.01);
}
.drop-icon { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.file-input { display: none; }

/* =========== SETTINGS =========== */
.settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 20px;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  animation: pageIn 0.4s ease;
}
.settings-container::-webkit-scrollbar { display: none; }
.settings-container h2 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.settings-card {
  background: rgba(13, 19, 36, 0.4);
  border: 1px solid rgba(108, 92, 231, 0.04);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.settings-card:hover {
  border-color: rgba(108, 92, 231, 0.12);
  box-shadow: var(--shadow), var(--shadow-glow);
  transform: translateY(-2px);
}

.settings-card h3 {
  font-size: 0.85rem;
  margin-bottom: 18px;
  color: var(--text2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-preview {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 2px solid var(--border);
}

.settings-card .btn-primary { margin-top: 10px; }

.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.session-item:last-child { border-bottom: none; }

/* =========== MESSAGES =========== */
.messages-container {
  display: flex;
  height: calc(100vh - var(--nav-height));
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.messages-sidebar {
  width: 300px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.messages-sidebar h3 { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 1rem; }

.users-list {
  padding: 6px;
  border-bottom: 1px solid var(--border);
  max-height: 180px;
  overflow-y: auto;
}

.user-item, .conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.user-item:hover, .conv-item:hover { background: var(--card-hover); }

.msg-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.conversations-list { flex: 1; overflow-y: auto; }

.conv-info { flex: 1; min-width: 0; }
.conv-info strong { font-size: 0.85rem; }
.conv-info p { color: var(--text2); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.messages-main { flex: 1; display: flex; flex-direction: column; }

.no-conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  padding: 20px;
}
.no-conversation h2 { font-size: 1.2rem; margin-bottom: 8px; }
.no-conversation p { font-size: 0.9rem; }

/* =========== CHAT =========== */
.chat-messages { flex: 1; overflow-y: auto; padding: 14px 16px; }

.msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--radius);
  max-width: 80%;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.msg-own {
  margin-left: auto;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}
.msg strong { font-size: 0.75rem; opacity: 0.7; display: block; margin-bottom: 2px; }
.msg p { margin: 2px 0; line-height: 1.4; }
.msg small { font-size: 0.65rem; opacity: 0.5; }

/* =========== GROUPS =========== */
.groups-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.groups-container::-webkit-scrollbar { display: none; }

.groups-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.groups-header h2 { font-size: 1.3rem; }
.groups-header .btn-primary { flex-shrink: 0; }

.groups-list { display: grid; grid-template-columns: 1fr; gap: 10px; }

.group-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
}
.group-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.group-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6c5ce7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.group-info h3 { font-size: 0.95rem; }
.group-info p { font-size: 0.8rem; color: var(--text2); }

.member-checkboxes { max-height: 200px; overflow-y: auto; margin: 8px 0; }

/* =========== STUDIO =========== */
.studio-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.studio-container::-webkit-scrollbar { display: none; }

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-header h2 { font-size: 1.3rem; }
.studio-actions { display: flex; gap: 8px; }

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

.studio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.studio-card:nth-child(1) { animation-delay: 0s; }
.studio-card:nth-child(2) { animation-delay: 0.05s; }
.studio-card:nth-child(3) { animation-delay: 0.1s; }
.studio-card:nth-child(4) { animation-delay: 0.15s; }
.studio-card:nth-child(5) { animation-delay: 0.2s; }
.studio-card:nth-child(6) { animation-delay: 0.25s; }
.studio-card:nth-child(7) { animation-delay: 0.3s; }
.studio-card:nth-child(8) { animation-delay: 0.35s; }
.studio-card:nth-child(9) { animation-delay: 0.4s; }
.studio-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
}

.studio-checkbox {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 5;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.studio-checkbox:hover { background: rgba(0,0,0,0.8); }

.check-box {
  width: 16px; height: 16px;
  border: 2px solid #fff;
  border-radius: 4px;
  transition: all 0.2s;
}
.studio-checkbox.selected .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.studio-checkbox.selected::after {
  content: '✓';
  color: #fff;
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
}

.studio-thumb {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: #000;
}

.studio-card-info {
  padding: 10px;
}
.studio-card-info strong { display: block; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-card-info small { display: block; font-size: 0.72rem; color: var(--text2); margin-top: 2px; }

.studio-edit-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.studio-edit-btn:hover {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  transform: scale(1.1);
}

/* =========== SUPPORT =========== */
.support-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
  overflow-y: auto;
}

.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.support-card h2 { font-size: 1.2rem; margin-bottom: 16px; }

.support-tickets h3 { font-size: 1rem; margin-bottom: 16px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }

.ticket-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ticket-item:hover {
  box-shadow: var(--shadow-sm);
}
.ticket-item.status-pending { border-left: 3px solid var(--orange); }
.ticket-item.status-accepted { border-left: 3px solid var(--verified); }
.ticket-item.status-resolved { border-left: 3px solid var(--green); opacity: 0.7; }
.ticket-item.status-rejected { border-left: 3px solid var(--red); opacity: 0.6; }

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

.ticket-status {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.status-pending .ticket-status { color: var(--orange); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.1); }
.status-accepted .ticket-status { color: var(--accent); border-color: rgba(108, 92, 231, 0.3); background: rgba(108, 92, 231, 0.1); }
.status-resolved .ticket-status { color: var(--green); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }
.status-rejected .ticket-status { color: var(--red); border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); }

.ticket-conversation { margin: 12px 0; }

.conv-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg3);
}
.conv-msg.admin-msg {
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.msg-author {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  display: block;
  margin-bottom: 4px;
}
.conv-msg p { font-size: 0.85rem; line-height: 1.5; }
.msg-date { font-size: 0.65rem; color: var(--text3); display: block; margin-top: 4px; }
.ticket-reply-form { margin-top: 8px; }

/* =========== SEARCH =========== */
.search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.search-page::-webkit-scrollbar { display: none; }

.search-page-header h2 { font-size: 1.2rem; margin-bottom: 24px; font-weight: 600; }

.search-section { margin-bottom: 28px; }
.search-section h3 {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.search-users { display: flex; flex-direction: column; gap: 8px; }

.search-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-user-item:hover {
  background: var(--card-hover);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.search-user-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.search-user-item strong { font-size: 0.9rem; }
.search-user-item small { display: block; font-size: 0.75rem; color: var(--text2); }

.search-videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* =========== VIDEO PAGE =========== */
.video-page-container {
  max-width: 700px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-player-wrapper {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-page-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-page-info {
  padding: 16px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.video-page-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-page-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.video-page-author img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.video-page-stats {
  display: flex;
  gap: 16px;
  color: var(--text2);
  font-size: 0.85rem;
}

/* =========== RULES =========== */
.rules-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 16px;
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.rules-page::-webkit-scrollbar { display: none; }
.rules-page h1 { font-size: 1.4rem; margin-bottom: 24px; }
.rules-page h2 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--accent); }
.rules-page p, .rules-page li { font-size: 0.88rem; color: var(--text2); line-height: 1.6; margin-bottom: 6px; }
.rules-page ul { padding-left: 20px; }

/* =========== MAINTENANCE =========== */
.maintenance-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 20px;
}

/* =========== SHOP =========== */
.shop-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-coin-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.coin-icon {
  display: inline-block;
  width: 1.2rem; height: 1.2rem;
  background: url('/static/coin.jpeg') center/contain no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
}
.coin-amount { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.coin-full { font-size: 0.75rem; color: var(--text3); font-weight: 400; }
.btn-daily {
  padding: 10px 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}
.btn-daily:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.btn-daily.claimed {
  background: var(--bg3);
  color: var(--text2);
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}
.shop-verified-bonus {
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 8px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(108, 92, 231, 0.3);
}
.shop-category { margin-bottom: 32px; }
.shop-category h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.shop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.shop-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}
.shop-card-icon { font-size: 2.5rem; margin-bottom: 8px; }
.shop-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.shop-card-desc { font-size: 0.78rem; color: var(--text2); margin-bottom: 10px; }
.shop-card-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.btn-shop {
  width: 100%;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}
.btn-shop:hover {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}
.btn-shop.active {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  opacity: 0.7;
  cursor: default;
  border-color: transparent;
}
.follow-list { padding: 8px 0; }
.follow-item { padding: 8px 16px; }
.follow-item-link { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.9rem; font-weight: 600; }
.follow-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.shop-section-vip {
  margin: 24px 0;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.shop-section-vip h2 { font-size: 1.1rem; margin-bottom: 8px; }
.shop-vip-plans { display: flex; flex-direction: column; gap: 10px; }
.vip-plan-btn { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg3); color: var(--text); cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.vip-plan-btn:hover { border-color: var(--accent); }
.vip-plan-primary { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: none; }
.vip-plan-primary:hover { opacity: 0.85; }

.shop-section-comment {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.shop-section-comment h2 { font-size: 1.1rem; margin-bottom: 8px; }
.shop-section-comment p { font-size: 0.88rem; color: var(--text2); margin-bottom: 16px; }
.boosted-comment {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
}


/* =========== VIP & VERIFIED =========== */
.vip-badge-small { font-size: 0.65rem; filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6)); }
.vip-badge-lg { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7)); }
.vip-active-badge {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffd700;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.15);
}
.vip-priority-badge {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: #ffd700;
  font-weight: 600;
  text-align: center;
}
.settings-card { margin-bottom: 16px; }

/* =========== SERVER =========== */
.main-content.server-page { padding-top: 0; overflow: hidden; height: 100dvh; }
.server-container {
  display: flex;
  height: calc(100dvh - var(--nav-height));
  background: var(--bg);
}
.server-sidebar {
  width: 240px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.server-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.server-icon { font-size: 1.6rem; flex-shrink: 0; }
.server-header-info { display: flex; flex-direction: column; min-width: 0; }
.server-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.official-badge { color: #22c55e; font-size: 0.8rem; margin-left: 2px; }
.server-member-count { font-size: 0.7rem; color: var(--text3); margin-top: 2px; }
.server-channels { flex: 1; overflow-y: auto; padding: 8px; }
.server-channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text2);
  font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2px;
}
.voice-channel-row { display: flex; align-items: center; gap: 8px; }
.server-channel .channel-hash { font-size: 1.1rem; width: 20px; text-align: center; color: var(--text3); font-weight: 700; }
.server-channel .voice-channel-icon { font-size: 1rem; width: 20px; text-align: center; color: var(--green); }
.server-channel .channel-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-channel-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  background: var(--green);
  color: #000;
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.server-channel:hover {
  background: rgba(108, 92, 231, 0.08);
  color: var(--text);
}
.server-channel.active {
  background: rgba(108, 92, 231, 0.18);
  color: var(--text);
}
.server-channel-voice:hover .voice-channel-icon,
.server-channel-voice.in-voice .voice-channel-icon {
  color: var(--green);
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}
.server-channel-voice.in-voice {
  background: rgba(34, 197, 94, 0.12);
  border-left: 3px solid var(--green);
  padding-left: 7px;
}
.voice-count {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.server-voice-users {
  padding: 8px;
  border-top: 1px solid var(--border);
  max-height: 150px;
  overflow-y: auto;
}
.voice-users-title { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.voice-user { padding: 4px 6px; font-size: 0.8rem; color: var(--text2); }
.voice-user-name { }
.server-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.server-chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.server-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.server-msg {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.server-msg.msg-own { flex-direction: row-reverse; }
.server-msg .msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.server-msg .msg-body { max-width: 70%; }
.server-msg .msg-body strong { font-size: 0.82rem; color: var(--text); }
.server-msg .msg-body p { font-size: 0.85rem; color: var(--text2); margin: 2px 0; word-break: break-word; }
.server-msg.msg-own .msg-body { text-align: right; }
.server-msg .msg-body { position: relative; }
.msg-del-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.server-msg:hover .msg-del-btn { display: flex; }
.server-msg.msg-own .msg-del-btn { right: auto; left: -4px; }
.msg-edit-btn {
  position: absolute;
  top: -4px;
  right: 20px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.server-msg:hover .msg-edit-btn { display: flex; }
.server-msg.msg-own .msg-edit-btn { right: auto; left: 20px; }
.edited-badge { font-size: 0.65rem; color: var(--text3); margin-left: 4px; font-style: italic; }
.server-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.server-input input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.server-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.server-input button { padding: 10px 20px; border-radius: 24px; white-space: nowrap; }

.voice-msg-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.voice-msg-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-msg-btn:hover { background: rgba(108, 92, 231, 0.1); color: var(--accent); }
.voice-msg-btn:active { transform: scale(0.9); color: var(--accent); }
.voice-msg-btn.recording {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  animation: rec-pulse 1s infinite;
}
@keyframes rec-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0.4)} 50%{box-shadow:0 0 0 12px rgba(239,68,68,0)} }

/* Bell ring animation */
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(8deg); }
  20%, 40% { transform: rotate(-8deg); }
  50% { transform: rotate(0); }
}

.voice-notif {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text);
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
}
.voice-msg-label {
  font-size: 0.65rem;
  color: var(--text3);
  white-space: nowrap;
  display: none;
}
@media (min-width: 769px) {
  .voice-msg-label { display: block; }
}

.voice-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 4px 0;
  max-width: 260px;
}
.voice-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.voice-play-btn:hover {
  background: linear-gradient(135deg, #5a4bd1, #7c5ce7);
  transform: scale(1.05);
}
.voice-wave {
  flex: 1;
  height: 32px;
  background: var(--bg);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  min-width: 60px;
}
.voice-wave-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 16px;
  transition: width 0.2s linear;
}
.voice-time {
  font-size: 0.72rem;
  color: var(--text3);
  white-space: nowrap;
  flex-shrink: 0;
}

.mic-selector {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 0.7rem;
  max-width: 130px;
  cursor: pointer;
  flex-shrink: 0;
}
.mic-selector option { background: var(--bg2); color: var(--text); }
.recording-mic { max-width: 110px; }

/* ============== CANLI SESLİ SOHBET ============== */

/* === KANAL YÖNETİMİ (Admin) === */
.server-settings-btn {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text2);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.server-settings-btn:hover { background: var(--accent); color: #fff; transform: rotate(45deg); }

.channel-manager-modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: cmFadeIn 0.25s ease;
}
@keyframes cmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.channel-manager-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.channel-manager-panel {
  position: relative;
  width: 92%; max-width: 600px;
  max-height: 85vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: cmSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cmSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.channel-manager-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.channel-manager-header h3 { margin: 0; font-size: 1.1rem; }
.channel-manager-close {
  width: 32px; height: 32px;
  border-radius: 8px; border: none;
  background: transparent; color: var(--text2);
  font-size: 1.1rem; cursor: pointer;
  transition: all 0.2s;
}
.channel-manager-close:hover { background: var(--red); color: #fff; }
.channel-manager-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.channel-manager-form {
  background: var(--bg2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.channel-manager-form h4, .channel-manager-list h4 { margin: 0 0 4px; font-size: 0.85rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }
.cm-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.cm-input:focus { border-color: var(--accent); }
.cm-type-row { display: flex; gap: 8px; }
.cm-type-opt {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  background: var(--bg);
  transition: all 0.2s;
}
.cm-type-opt input { display: none; }
.cm-type-opt:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.cm-add-btn {
  padding: 10px 16px;
  border: none; border-radius: 8px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cm-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108,92,231,0.4); }
.cm-msg { font-size: 0.82rem; min-height: 18px; }
.cm-msg-error { color: var(--red); }
.cm-msg-success { color: var(--green); }

.channel-manager-list { display: flex; flex-direction: column; gap: 6px; }
.cm-channel-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: var(--bg2);
  border-radius: 8px;
  transition: opacity 0.3s;
}
.cm-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.cm-icon.voice { color: var(--green); }
.cm-icon.text { color: var(--text3); font-weight: 800; }
.cm-channel-name {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}
.cm-channel-name:hover { border-color: var(--border); }
.cm-channel-name:focus { border-color: var(--accent); background: var(--card); }
.cm-channel-type {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}
.cm-save-btn, .cm-del-btn {
  width: 32px; height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.cm-save-btn { background: rgba(34,197,94,0.15); color: var(--green); }
.cm-save-btn:hover { background: var(--green); color: #fff; }
.cm-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cm-del-btn { background: rgba(239,68,68,0.15); color: var(--red); }
.cm-del-btn:hover { background: var(--red); color: #fff; }
.cm-del-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 768px) {
  .channel-manager-panel { max-height: 92vh; width: 96%; }
  .channel-manager-body { padding: 12px; }
  .cm-channel-item { flex-wrap: wrap; }
  .cm-channel-name { width: 100%; order: 2; }
  .cm-channel-type { order: 1; }
  .cm-save-btn, .cm-del-btn { width: 36px; height: 36px; }
}

/* Sesli Sohbete Bağlandın - büyük toast */
.voice-join-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.voice-join-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.voice-join-toast-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 20px 32px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.2);
  min-width: 280px;
  animation: voiceToastPulse 1.5s ease-in-out infinite;
}
@keyframes voiceToastPulse {
  0%, 100% { box-shadow: 0 20px 60px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 20px 60px rgba(16, 185, 129, 0.7), 0 0 0 12px rgba(16, 185, 129, 0.05); }
}
.voice-join-toast-icon {
  font-size: 3rem;
  animation: voiceToastBounce 0.6s ease;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
}
@keyframes voiceToastBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.voice-join-toast-text { display: flex; flex-direction: column; gap: 4px; }
.voice-join-toast-title { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.voice-join-toast-channel { font-size: 0.95rem; opacity: 0.95; font-weight: 500; }

/* Üstte ince ses banner (kalıcı) */
.voice-join-banner {
  position: fixed;
  top: var(--nav-height, 64px);
  left: 0;
  right: 0;
  z-index: 950;
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: bannerSlideDown 0.4s ease;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.voice-join-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: bannerDotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bannerDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.voice-join-banner-text { flex: 1; }
.voice-join-banner-text strong { font-weight: 800; }
.voice-join-banner-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.voice-join-banner-btn:hover { background: rgba(255,255,255,0.35); }

.channel-category {
  padding: 18px 10px 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text3);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.channel-category:first-child {
  border-top: none;
  margin-top: 4px;
}
.channel-category-icon {
  font-size: 0.95rem;
  color: var(--accent);
}
.channel-category-voice .channel-category-icon {
  color: var(--green);
}
.voice-channel-users {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  margin-left: 28px;
  min-height: 0;
}
.voice-sidebar-avatar {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.voice-sidebar-avatar.speaking { border-color: var(--green); box-shadow: 0 0 0 1px rgba(34,197,94,0.4); }
.voice-sidebar-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.voice-sidebar-mic {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 0.5rem;
  padding: 1px;
  line-height: 1;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-room-bar {
  position: fixed;
  bottom: var(--mobile-nav-height, 0px);
  left: 240px;
  right: 0;
  z-index: 1050;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: voiceBarSlide 0.3s ease;
}
@keyframes voiceBarSlide {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.voice-room-info { display: flex; align-items: center; gap: 10px; min-width: 180px; flex-shrink: 0; }
.voice-room-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  animation: voiceIconPulse 2s ease-in-out infinite;
}
@keyframes voiceIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.voice-room-label { font-size: 0.7rem; opacity: 0.9; }
.voice-room-name { font-weight: 700; font-size: 1rem; }
.voice-room-participants {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  align-items: center;
  min-width: 0;
}
.voice-room-participants::-webkit-scrollbar { height: 4px; }
.voice-room-participants::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }
.voice-participant {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 22px;
  padding: 4px 12px 4px 4px;
  flex-shrink: 0;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  max-width: 220px;
}
.voice-participant.speaking {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3), 0 0 20px rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.voice-participant.self { background: rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.3); }
.voice-participant.muted { opacity: 0.75; }
.voice-participant.deaf { opacity: 0.55; }
.voice-participant-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.voice-participant-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.voice-participant.speaking .voice-participant-avatar {
  box-shadow: 0 0 0 2px var(--green);
}
.voice-participant-self-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--green);
  color: #000;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1.1;
}
.voice-participant-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-participant-tag {
  display: inline-block;
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 4px;
  color: #000;
  font-weight: 700;
}
.voice-participant-icons {
  display: flex;
  gap: 2px;
  font-size: 0.85rem;
  line-height: 1;
}
.voice-icon-state { line-height: 1; }
.voice-room-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.voice-ctrl {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.voice-ctrl:hover { background: rgba(255,255,255,0.3); transform: scale(1.08); }
.voice-ctrl.muted { background: var(--red); }
.voice-ctrl.deafened { background: var(--orange); }
.voice-ctrl-leave { background: var(--red); }
.voice-ctrl-leave:hover { background: #c01a1a; transform: scale(1.08); }

.mic-selector-modal {
  position: fixed; inset: 0;
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  animation: cmFadeIn 0.2s ease;
}
.mic-selector-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.mic-selector-panel {
  position: relative;
  width: 92%; max-width: 480px;
  max-height: 80vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: cmSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mic-selector-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(88,101,242,0.15), rgba(88,101,242,0.05));
}
.mic-selector-header h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.mic-selector-close {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; padding: 0 8px;
}
.mic-selector-close:hover { color: var(--text); }
.mic-selector-body {
  padding: 16px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.mic-selector-list { display: flex; flex-direction: column; gap: 6px; }
.mic-selector-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer; text-align: left;
  transition: all 0.15s ease;
}
.mic-selector-item:hover { background: rgba(88,101,242,0.12); border-color: rgba(88,101,242,0.4); }
.mic-selector-item.selected {
  background: rgba(88,101,242,0.18);
  border-color: var(--accent, #5865f2);
}
.mic-selector-icon { font-size: 1.1rem; flex-shrink: 0; }
.mic-selector-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mic-selector-check { color: var(--green); font-weight: 700; }
.mic-selector-loading, .mic-selector-empty {
  padding: 20px; text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}
.mic-selector-hint {
  font-size: 0.78rem; color: var(--text-muted);
  padding: 8px 4px; line-height: 1.4;
}
.mic-selector-refresh {
  align-self: stretch;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font-size: 0.9rem;
  cursor: pointer; transition: all 0.15s ease;
}
.mic-selector-refresh:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 768px) {
  .mic-selector-panel { width: 96%; max-height: 88vh; }
  .mic-selector-item { padding: 14px 12px; font-size: 0.95rem; }
}
.voice-connected-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--green);
  color: #000;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  animation: connectedPulse 2s ease-in-out infinite;
}
@keyframes connectedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.server-chat-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text2);
  min-height: 300px;
}
.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--text);
}
.empty-state p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 360px;
  line-height: 1.5;
}

/* === SERVER MESSAGES GENİŞLETME === */
.server-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* === DESKTOP — MOBİL NAV HİÇ GÖZÜKMEZ === */
:root { --mobile-nav-height: 0px; }

/* === MOBİL === */
@media (max-width: 768px) {
  .server-container { flex-direction: column; height: calc(100dvh - 64px); }
  .server-sidebar { width: 100%; max-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .server-channels { display: flex; flex-direction: row; gap: 4px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
  .server-channels::-webkit-scrollbar { height: 4px; }
  .server-channels::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .channel-category {
    border-top: none;
    margin-top: 0;
    padding: 8px 10px 0 0;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    min-width: max-content;
  }
  .server-channel {
    flex-shrink: 0;
    min-width: max-content;
    flex-direction: row;
    padding: 8px 12px;
  }
  .voice-channel-users { display: none; }
  .server-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .server-input { padding: 8px; gap: 6px; }
  .server-input input { font-size: 0.85rem; }

  /* Voice bar mobile - bottom-nav üstünde */
  :root { --mobile-nav-height: 64px; }
  .voice-room-bar {
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .voice-room-info { min-width: 0; flex: 0 0 auto; }
  .voice-room-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .voice-room-label { font-size: 0.62rem; }
  .voice-room-name { font-size: 0.85rem; }
  .voice-room-participants { padding: 0; flex: 1 1 100%; order: 3; }
  .voice-participant { padding: 2px 8px 2px 2px; max-width: 180px; }
  .voice-participant-name { max-width: 80px; font-size: 0.72rem; }
  .voice-room-controls { gap: 4px; order: 2; margin-left: auto; }
  .voice-ctrl { width: 36px; height: 36px; font-size: 0.95rem; }
  .empty-state { min-height: 200px; padding: 30px 16px; }
  .empty-state .empty-icon { font-size: 3rem; }
  .empty-state h3 { font-size: 1rem; }
  .empty-state p { font-size: 0.8rem; }
}

.recording-indicator {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
}
.recording-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.recording-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.recording-timer {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text3);
}
.typing-indicator .dots { display: flex; gap: 3px; }
.typing-indicator .dot {
  width: 6px; height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.recording-label {
  font-size: 0.78rem;
  color: var(--text3);
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recording-hint {
  font-size: 1.1rem;
  flex-shrink: 0;
  animation: pulse 1s infinite;
}
.recording-cancel {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}
.recording-cancel:hover { background: rgba(239, 68, 68, 0.3); transform: scale(1.08); }
.recording-cancel:active { transform: scale(0.95); }

/* =========== RESPONSIVE =========== */
@media (min-width: 769px) {
  .modal-overlay { align-items: center; }
  .modal-content { border-radius: 20px; }
}
@media (max-width: 768px) {
  .navbar { min-height: 56px; }
  .nav-toggle { display: flex; }
  .mobile-search-btn { display: none; }
  .nav-search { display: flex; }
  .mobile-search-btn { display: none; }
  .nav-logo { font-size: 1.3rem; margin-right: auto; }
  .nav-links { position: static; gap: 0; flex: none; }
  .nav-links .nav-link:not(.mobile-nav-search) { display: none; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1100;
    padding: 0;
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    animation: menuFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-theme="light"] .nav-links.active { background: rgba(255, 255, 255, 0.98); }
  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.active > .nav-link { display: flex !important; padding: 16px 20px; font-size: 0.95rem; border-bottom: 1px solid var(--border); font-weight: 500; }
  .nav-links.active > .nav-link:last-child { border-bottom: none; }
  .nav-links.active .mobile-nav-search { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .nav-links.active .mobile-nav-search .search-input { flex: 1; padding: 10px 14px; border-radius: 24px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); outline: none; font-family: var(--font); font-size: 0.9rem; }
  .nav-links.active .mobile-nav-search .search-input:focus { border-color: var(--accent); }
  .nav-links.active .mobile-nav-search .search-btn { position: static; transform: none; background: none; border: none; font-size: 1.1rem; padding: 6px 10px; cursor: pointer; color: var(--text); }

  .nav-shield { display: inline-flex !important; align-items: center; justify-content: center; }
  .desktop-nav, .desktop-only-nav, .desktop-only { display: none !important; }
  .nav-avatar { width: 24px; height: 24px; }
  .nav-container > .notif-bell { display: none !important; }
  .nav-container > .nav-profile { display: none !important; }

  .main-content { padding-top: 0; padding-bottom: 64px; height: 100vh; overflow-y: auto; }
  @supports (height: 100dvh) {
    .main-content { height: 100dvh; }
  }
  .main-content.feed-page { padding-bottom: 0; height: 100dvh; overflow: hidden; }
  .main-content.server-page { padding-bottom: 0; overflow: hidden; }
  .main-content.profile-page { padding-top: 100px; }

  .mobile-bottom-nav { display: flex; }
  .bottom-nav-item { padding: 4px 6px; font-size: 0.5rem; }
  .bottom-nav-icon { font-size: 1rem; }
  .bottom-nav-avatar { width: 20px; height: 20px; }

  .auth-card { padding: 28px 20px; }
  .auth-logo { font-size: 1.8rem; }

  .profile-container { height: auto; overflow-y: visible; }
  .profile-info-section { flex-direction: column; align-items: center; text-align: center; padding: 12px 16px 8px; gap: 8px; }
  .profile-pic-large { width: 68px; height: 68px; }
  .profile-name-row h1 { font-size: 1.15rem; }
  .profile-name-row { justify-content: center; }
  .profile-stats { justify-content: center; gap: 18px; }
  .profile-stats strong { font-size: 0.95rem; }
  .profile-bio { font-size: 0.82rem; text-align: center; }
  .profile-about { margin: 8px 12px; padding: 16px; }
  .profile-tabs { margin: 4px 12px 0; }
  .tab-btn { padding: 14px 12px; font-size: 0.9rem; }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }

  .settings-grid { grid-template-columns: 1fr; }
  .settings-container { padding: 16px; }

  .messages-container { flex-direction: column; height: calc(100dvh - 64px); }
  .messages-sidebar { width: 100%; max-height: 160px; border-right: none; border-bottom: 1px solid var(--border); overflow-y: auto; }
  .messages-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }

  .chat-messages { padding: 10px 14px; }
  .msg { max-width: 90%; font-size: 0.85rem; }
  #sendBtn { padding: 10px 14px !important; font-size: 0.85rem !important; }

  .chat-container { height: calc(100dvh - var(--nav-height) - 64px) !important; }
  .groups-container { padding: 24px 16px; height: calc(100dvh - var(--nav-height) - 64px); }

  .search-videos { grid-template-columns: repeat(2, 1fr); }

  .video-feed-container { padding-bottom: 64px; }
  .video-card { height: calc(100dvh - 64px); }
  .video-actions { bottom: 100px; }
  .video-info-overlay { padding: 140px 12px 12px; }

  .notif-panel { top: calc(var(--nav-height) + 2px); right: 4px; width: calc(100vw - 8px); max-height: 65vh; }

  .profile-videos { grid-template-columns: repeat(2, 1fr); }
  .shop-container { padding: 16px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .upload-container { padding: 16px 16px 80px; min-height: calc(100dvh - var(--nav-height) - 64px); justify-content: flex-start; }
  .upload-card { padding: 20px; }

  .studio-container { padding: 16px; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .voice-msg-btn { width: 32px; height: 32px; font-size: 1rem; }
  .voice-notif { bottom: 134px; font-size: 0.78rem; padding: 8px 14px; white-space: normal; max-width: 90vw; }
  .voice-msg { max-width: 200px; }
  .recording-indicator {
    position: fixed;
    bottom: 76px;
    left: 10px;
    right: 10px;
    top: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background: var(--card);
    padding: 8px 10px;
    z-index: 200;
  }
  .recording-bar { gap: 8px; flex-wrap: nowrap; }
  .recording-mic { max-width: 90px; font-size: 0.62rem; }
  .recording-label { font-size: 0.72rem; text-align: left; padding: 0 4px; }
  .recording-timer { font-size: 0.82rem; }
  .recording-cancel { width: 28px; height: 28px; font-size: 0.85rem; margin-left: 4px; }
}

/* tiktok geri sarma animasyonu */
@keyframes rewindFade {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(0.8) rotate(-10deg); }
  40% { opacity: 1; transform: translate(-50%,-50%) scale(1.1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.4) rotate(5deg); }
}
.rewind-indicator {
  position: absolute;
  top: 50%; left: 50%;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 25;
  animation: rewindFade 0.6s ease-out forwards;
}

/* profil dropdown - profilim + hesap değiştir */
.nav-profile-dropdown{position:relative;display:inline-block}
.profile-dropdown{position:absolute;top:100%;right:0;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);min-width:220px;z-index:999;box-shadow:0 12px 40px rgba(0,0,0,0.5), var(--shadow-glow);margin-top:8px;overflow:hidden;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);animation:dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);transform-origin:top right}
@keyframes dropdownIn{from{opacity:0;transform:scale(0.95) translateY(-8px)}to{opacity:1;transform:scale(1) translateY(0)}}
.profile-dropdown .pd-item{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;color:var(--text);text-decoration:none;font-size:0.9rem;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1)}
.profile-dropdown .pd-item:hover{background:rgba(99,102,241,0.08)}
.profile-dropdown .pd-divider{height:1px;background:var(--border);margin:0}
.profile-dropdown .pd-header{padding:8px 14px;font-size:0.7rem;color:var(--text3);text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.profile-dropdown .pd-list{max-height:200px;overflow-y:auto}
.profile-dropdown .pd-account{display:flex;align-items:center;gap:10px;padding:8px 14px;cursor:pointer;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);font-size:0.85rem}
.profile-dropdown .pd-account:hover{background:rgba(99,102,241,0.08)}
.profile-dropdown .pd-account .pd-remove{margin-left:auto;background:none;border:none;color:var(--text3);cursor:pointer;font-size:0.75rem;padding:2px 6px;border-radius:4px;transition:all 0.2s}
.profile-dropdown .pd-account .pd-remove:hover{color:var(--red);background:rgba(239,68,68,0.1)}
.profile-dropdown .pd-add{padding:10px 14px;border-top:1px solid var(--border);cursor:pointer;color:var(--accent);font-weight:500;font-size:0.85rem;text-align:center;transition:all 0.2s}
.profile-dropdown .pd-add:hover{background:rgba(99,102,241,0.08)}
.profile-dropdown .pd-add:hover{background:var(--bg2)}

/* =========== MICRO-INTERACTIONS & MODERN POLISH =========== */

/* Subtle noise texture overlay */
.main-content::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* Glass morphism card base */
.glass-card {
  background: rgba(13, 19, 36, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(108, 92, 231, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  transition: all var(--transition);
}
.glass-card:hover {
  border-color: rgba(108, 92, 231, 0.15);
  box-shadow: var(--shadow), var(--shadow-glow), var(--shadow-glow-2);
  transform: translateY(-2px);
}

/* Shiny border animation on focus */
.shiny-border:focus-within {
  border-color: transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: linear-gradient(var(--bg3), var(--bg3)), linear-gradient(135deg, #6c5ce7, #fd79a8, #a29bfe);
  animation: borderRotate 3s linear infinite;
}
@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Refined button press */
.btn-primary:active {
  transform: scale(0.96);
}
.btn-secondary:active {
  transform: scale(0.97);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #6c5ce7, #fd79a8, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse glow on important elements */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(108, 92, 231, 0.3); }
  50% { box-shadow: 0 0 24px rgba(108, 92, 231, 0.6), 0 0 48px rgba(253, 121, 168, 0.2); }
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Scroll reveal animation */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.reveal {
  animation: revealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.reveal:nth-child(1) { animation-delay: 0s; }
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.1s; }
.reveal:nth-child(4) { animation-delay: 0.15s; }
.reveal:nth-child(5) { animation-delay: 0.2s; }
.reveal:nth-child(6) { animation-delay: 0.25s; }
.reveal:nth-child(7) { animation-delay: 0.3s; }
.reveal:nth-child(8) { animation-delay: 0.35s; }
.reveal:nth-child(9) { animation-delay: 0.4s; }
.reveal:nth-child(10) { animation-delay: 0.45s; }

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Admin user edit section */
.admin-edit-section {
  background: rgba(13, 19, 36, 0.5);
  border: 1px solid rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  transition: all var(--transition);
}
.admin-edit-section:hover {
  border-color: rgba(108, 92, 231, 0.15);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.admin-edit-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-edit-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-edit-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-edit-group input,
.admin-edit-group textarea,
.admin-edit-group select {
  padding: 10px 14px;
  background: rgba(15, 21, 37, 0.6);
  border: 1.5px solid rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
}
.admin-edit-group input:focus,
.admin-edit-group textarea:focus,
.admin-edit-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.admin-edit-actions button {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  border: none;
}
.btn-edit-save {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  box-shadow: 0 3px 12px rgba(108, 92, 231, 0.3);
}
.btn-edit-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}
.btn-edit-danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red) !important;
}
.btn-edit-danger:hover {
  background: rgba(255, 107, 107, 0.1);
}
.admin-edit-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.3s;
}
.admin-edit-saved.show {
  opacity: 1;
}

/* Profile pic upload in admin */
.admin-pic-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(15, 21, 37, 0.4);
  border-radius: var(--radius);
  border: 1px dashed rgba(108, 92, 231, 0.15);
}
.admin-pic-upload img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(108, 92, 231, 0.2);
}
.admin-pic-upload input[type="file"] {
  display: none;
}
.admin-pic-upload label {
  padding: 8px 20px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(108, 92, 231, 0.3);
}
.admin-pic-upload label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Responsive edit grid */
@media (max-width: 768px) {
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* ============== CANLI YAYIN SİSTEMİ ============== */
.live-container { max-width: 1280px; margin: 0 auto; padding: 20px 16px 80px; }
.live-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.live-title { font-size: 1.8rem; margin: 0; background: linear-gradient(135deg, #ff3b6b, #ff6b35); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn-go-live { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, #ff3b6b, #ff1744); color: #fff; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.95rem; box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4); transition: all 0.2s ease; }
.btn-go-live:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5); }
.go-live-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1s infinite; }
.live-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.live-filter-chip { padding: 8px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; color: var(--text); text-decoration: none; font-size: 0.85rem; transition: all 0.15s ease; }
.live-filter-chip:hover { background: var(--bg2); border-color: var(--accent); }
.live-filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.live-filter-divider { width: 1px; background: var(--border); margin: 0 4px; }

.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.live-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.2s ease; display: block; }
.live-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.live-card-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1a2e, #2a1a3e); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.live-card-overlay { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 2; }
.live-card-live { background: #ff1744; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }
.live-card-viewers { background: rgba(0,0,0,0.6); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; backdrop-filter: blur(4px); }
.live-card-avatar { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff6b35); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; z-index: 1; }
.live-card-placeholder { text-align: center; color: var(--text3); font-size: 0.85rem; position: relative; z-index: 1; }
.live-card-pulse { width: 12px; height: 12px; background: #ff1744; border-radius: 50%; margin: 0 auto 8px; animation: pulse 1.5s infinite; box-shadow: 0 0 12px rgba(255, 23, 68, 0.6); }
.live-card-info { padding: 12px 14px; }
.live-card-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card-host { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text3); }
.live-card-host strong { color: var(--text); }
.live-card-category { color: var(--text3); }
.live-empty { text-align: center; padding: 80px 20px; }
.live-empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.live-empty h2 { margin: 0 0 8px; color: var(--text); }
.live-empty p { color: var(--text3); margin-bottom: 24px; }

/* ----- BROADCAST SETUP ----- */
.live-bc-wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.live-bc-setup h1 { font-size: 1.6rem; margin: 0 0 8px; background: linear-gradient(135deg, #ff3b6b, #ff6b35); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.live-bc-sub { color: var(--text3); margin-bottom: 24px; }
.live-bc-preview { aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; position: relative; margin-bottom: 20px; border: 1px solid var(--border); }
.live-bc-preview video { width: 100%; height: 100%; object-fit: cover; }
.live-bc-preview-overlay { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.7); padding: 4px 10px; border-radius: 6px; color: #fff; font-size: 0.8rem; }
.live-bc-form { display: flex; flex-direction: column; gap: 12px; }
.live-bc-source-btn { display:inline-flex;align-items:center;gap:6px;padding:10px 16px;background:var(--card);border:1px solid var(--border);border-radius:10px;color:var(--text);font-weight:600;font-size:0.85rem;cursor:pointer;transition:all 0.15s; }
.live-bc-source-btn:hover { border-color:var(--accent); }
.live-bc-source-btn.active { background:var(--accent);border-color:var(--accent);color:#fff; }
.live-bc-label { font-size: 0.85rem; color: var(--text3); font-weight: 600; }
.live-bc-input { padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 0.95rem; }
.live-bc-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.live-bc-cat-opt { position: relative; cursor: pointer; }
.live-bc-cat-opt input { position: absolute; opacity: 0; }
.live-bc-cat-opt span { display: block; padding: 10px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: 0.85rem; transition: all 0.15s ease; }
.live-bc-cat-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.live-bc-check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.9rem; cursor: pointer; }
.live-bc-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.live-bc-start-btn { padding: 14px; background: linear-gradient(135deg, #ff1744, #ff6b35); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4); }
.live-bc-start-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 23, 68, 0.5); }

/* ----- BROADCAST STAGE ----- */
.live-bc-stage { display: grid; grid-template-columns: 1fr 360px; gap: 16px; height: calc(100dvh - 84px); }
.live-bc-stage-left { display: flex; flex-direction: column; gap: 12px; }
.live-bc-tiles { flex: 1; display: grid; grid-template-columns: 1fr; gap: 8px; min-height: 0; }
.live-bc-tile { position: relative; background: #000; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); }
.live-bc-tile video { width: 100%; height: 100%; object-fit: cover; }
.live-bc-tile-label { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.7); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; }
.live-bc-tile-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.live-bc-tile-actions button { background: rgba(0,0,0,0.7); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 0.85rem; }
.live-bc-tile-actions button.muted { background: rgba(239, 68, 68, 0.7); }
.live-bc-tile-actions button:hover { background: rgba(0,0,0,0.9); }
.live-bc-tile-mic { position: absolute; top: 8px; left: 8px; }
.live-bc-tile-mic button { background: rgba(0,0,0,0.7); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.live-bc-info { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--card); border-radius: 10px; flex-wrap: wrap; }
.live-bc-live { color: #ff1744; font-weight: 700; font-size: 0.85rem; animation: pulse 1.5s infinite; }
.live-bc-title { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-bc-viewers { color: var(--text3); font-size: 0.85rem; }
.live-bc-duration { color: var(--text3); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.live-bc-stage-right { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.live-bc-panel { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; }
.live-bc-panel-tabs { display: flex; border-bottom: 1px solid var(--border); }
.live-bc-tab { flex: 1; padding: 10px; background: transparent; border: none; color: var(--text3); font-size: 0.85rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.live-bc-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.live-bc-tab-content { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px; }
.live-bc-chat { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.live-bc-chat-form { display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--border); }
.live-bc-chat-form input { flex: 1; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.85rem; }
.live-bc-chat-form button { padding: 8px 12px; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 0.85rem; }
.live-bc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.live-bc-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.live-bc-stat span { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; }
.live-bc-stat strong { font-size: 1.05rem; color: var(--text); margin-top: 2px; }
.live-bc-section { padding: 8px; }
.live-bc-section h4 { font-size: 0.8rem; color: var(--text3); margin: 0 0 6px; text-transform: uppercase; }
.live-bc-top-list { display: flex; flex-direction: column; gap: 4px; }
.live-bc-empty { padding: 12px; text-align: center; color: var(--text3); font-size: 0.8rem; }
.live-bc-invite-btn { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.live-bc-guest-list, .live-bc-mod-list { margin-top: 8px; }
.live-bc-guest-row, .live-bc-mod-row { padding: 8px 10px; background: var(--bg2); border-radius: 6px; font-size: 0.85rem; margin-bottom: 4px; }
.live-bc-actions { display: flex; gap: 6px; align-items: center; padding: 8px; background: var(--card); border-radius: 10px; flex-wrap: wrap; }
.live-bc-reaction-btn { padding: 8px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.live-bc-end-btn { margin-left: auto; padding: 10px 18px; background: #ff1744; color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.live-bc-end-btn:hover { background: #d50000; }
.live-bc-reactions, .live-bc-gift-anim { position: fixed; pointer-events: none; }

/* ----- INVITE PICKER ----- */
.live-bc-invite-picker { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; }
.live-bc-invite-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.live-bc-invite-panel { position: relative; background: var(--card); border-radius: 16px; padding: 20px; width: 92%; max-width: 400px; max-height: 80vh; display: flex; flex-direction: column; gap: 12px; }
.live-bc-invite-panel h3 { margin: 0; }
.live-bc-invite-panel input { padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.live-bc-invite-results { flex: 1; overflow-y: auto; min-height: 100px; max-height: 50vh; }
.live-bc-invite-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.live-bc-invite-row button { padding: 6px 12px; background: var(--accent); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 0.8rem; }
.live-bc-invite-close { padding: 10px; background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; cursor: pointer; }

/* ----- WATCH ----- */
.live-watch-wrap { max-width: 1400px; margin: 0 auto; padding: 16px; }
.live-watch-stage { display: grid; grid-template-columns: 1fr 320px; gap: 16px; min-height: calc(100dvh - 200px); }
.live-watch-video-wrap { position: relative; background: #000; border-radius: 14px; overflow: hidden; }
.live-watch-main { position: relative; width: 100%; aspect-ratio: 16/9; }
.live-watch-main video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-watch-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; z-index: 5; }
.live-watch-live { background: #ff1744; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.live-watch-viewers, .live-watch-duration { background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; backdrop-filter: blur(4px); }
.live-watch-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); display: flex; justify-content: space-between; align-items: flex-end; z-index: 5; }
.live-watch-host { display: flex; gap: 10px; align-items: center; }
.live-watch-host-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff6b35); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.live-watch-host-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.live-watch-title { color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.live-watch-follow-btn { padding: 8px 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.live-watch-follow-btn.following { background: var(--bg2); color: var(--text3); }
.live-watch-guest-tiles { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 4; max-width: 180px; }
.live-watch-guest-tile { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); width: 180px; }
.live-watch-guest-tile video { width: 100%; height: 100%; object-fit: cover; }
.live-watch-guest-name { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; }
.live-watch-ended, .live-watch-banned { position: absolute; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; z-index: 10; }
.live-watch-reactions { position: absolute; right: 12px; bottom: 80px; width: 50px; height: 300px; pointer-events: none; z-index: 6; }
.live-watch-gift-anim { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; z-index: 7; }
.live-watch-side { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; min-height: 0; }
.live-watch-tabs { display: flex; border-bottom: 1px solid var(--border); }
.live-watch-tab { flex: 1; padding: 12px; background: transparent; border: none; color: var(--text3); font-size: 0.9rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.live-watch-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.live-watch-tab-invite { background: rgba(255, 23, 68, 0.1); color: #ff1744; animation: pulse 2s infinite; }
.live-watch-tab-content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.live-watch-chat { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.live-watch-msg { padding: 8px 12px; background: var(--bg2); border-radius: 8px; font-size: 0.85rem; word-wrap: break-word; line-height: 1.5; }
.live-watch-msg strong { display: inline-block; margin-right: 6px; color: var(--accent, #5865f2); font-weight: 700; }
.live-watch-msg.pinned { background: rgba(255, 215, 0, 0.15); border-left: 3px solid gold; }
.live-watch-msg-new { animation: slideIn 0.3s ease; }
.live-watch-msg-actions { margin-left: 6px; opacity: 0.5; }
.live-watch-msg-actions button { background: none; border: none; cursor: pointer; font-size: 0.75rem; }
.live-watch-chat-form { display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--border); }
.live-watch-chat-form input { flex: 1; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.9rem; }
.live-watch-chat-form button { padding: 10px 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.live-watch-top-list { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.live-watch-top-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg2); border-radius: 8px; }
.live-watch-top-rank { font-weight: 700; color: var(--text3); width: 24px; }
.live-watch-top-name { flex: 1; font-weight: 600; }
.live-watch-top-coins { color: #ffa500; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.live-watch-top-badge { font-size: 1.1rem; }
.live-watch-empty { padding: 30px; text-align: center; color: var(--text3); }
.live-watch-invite-card { padding: 20px; text-align: center; }
.live-watch-invite-icon { font-size: 3rem; margin-bottom: 12px; }
.live-watch-invite-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.live-watch-invite-accept { padding: 10px 24px; background: var(--green, #22c55e); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.live-watch-invite-decline { padding: 10px 24px; background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }

.live-watch-bar { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-top: 12px; flex-wrap: wrap; }
.live-watch-reactions-row { display: flex; gap: 8px; }
.live-watch-react-btn { padding: 8px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: transform 0.15s ease; }
.live-watch-react-btn:hover { transform: scale(1.15); background: var(--card); }
.live-watch-gifts { display: flex; gap: 10px; flex: 1; overflow-x: auto; padding: 4px 0; }
.live-watch-gifts::-webkit-scrollbar { height: 4px; }
.live-watch-gift-btn { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; min-width: 56px; flex-shrink: 0; transition: all 0.15s ease; }
.live-watch-gift-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.live-watch-gift-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.live-watch-gift-icon { font-size: 1.4rem; }
.live-watch-gift-cost { font-size: 0.7rem; color: #ffa500; font-weight: 600; margin-top: 2px; display: inline-flex; align-items: center; gap: 3px; justify-content: center; }
.coin-icon-sm { width: 0.85rem; height: 0.85rem; }

/* ----- FLOATING REACTIONS ----- */
.live-react-float { position: absolute; bottom: 0; font-size: 1.6rem; animation: reactFloat 3.5s ease-out forwards; user-select: none; }
@keyframes reactFloat { 0% { transform: translateY(0) scale(0.5); opacity: 0; } 15% { transform: translateY(-30px) scale(1.2); opacity: 1; } 100% { transform: translateY(-300px) scale(0.8); opacity: 0; } }

/* ----- GIFT ANIMATION ----- */
.live-gift-fly { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.5); background: rgba(0,0,0,0.85); border: 2px solid var(--accent); border-radius: 16px; padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); min-width: 200px; backdrop-filter: blur(8px); z-index: 8; }
.live-gift-fly.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.live-gift-fly.hide { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
.live-gift-icon-big { font-size: 3rem; animation: giftSpin 1s ease; }
@keyframes giftSpin { 0% { transform: rotate(-180deg) scale(0); } 100% { transform: rotate(0) scale(1); } }
.live-gift-from { color: #fff; font-size: 0.9rem; }
.live-gift-coins { color: #ffa500; font-weight: 700; font-size: 1.1rem; }
.live-gift-common { border-color: rgba(255,255,255,0.3); }
.live-gift-rare { border-color: #5865f2; box-shadow: 0 0 24px rgba(88,101,242,0.6); }
.live-gift-epic { border-color: #ff6b35; box-shadow: 0 0 32px rgba(255,107,53,0.8); background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,23,68,0.2)); }
.live-gift-legendary { border-color: #ffd700; box-shadow: 0 0 40px rgba(255,215,0,0.9); background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,107,53,0.25)); animation: giftShimmer 1.5s ease infinite; }
@keyframes giftShimmer { 0%, 100% { box-shadow: 0 0 40px rgba(255,215,0,0.9); } 50% { box-shadow: 0 0 60px rgba(255,215,0,1); } }

/* ----- GUEST INVITE TOAST ----- */
.live-watch-invite-toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card); border: 2px solid var(--accent); border-radius: 16px; padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 5000; opacity: 0; transition: all 0.3s ease; box-shadow: 0 12px 40px rgba(0,0,0,0.5); max-width: 92%; }
.live-watch-invite-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.live-watch-invite-toast > div:last-child { display: flex; gap: 8px; }

@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .live-bc-stage { grid-template-columns: 1fr; height: auto; }
  .live-bc-stage-right { height: 60vh; }
  .live-watch-stage { grid-template-columns: 1fr; }
  .live-watch-side { height: 50vh; }
  .live-watch-guest-tiles { max-width: 110px; }
  .live-watch-guest-tile { width: 110px; }
}
@media (max-width: 600px) {
  .live-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .live-watch-guest-tiles { display: none; }
  .live-card-info { padding: 8px 10px; }
  .live-card-title { font-size: 0.8rem; }
  .live-bar { padding: 8px 10px; }
  .live-watch-reactions-row .live-watch-react-btn { padding: 8px 10px; font-size: 1.1rem; }
  .live-watch-gift-btn { min-width: 52px; padding: 6px 8px; }
  .live-watch-gift-icon { font-size: 1.2rem; }
}


/* Feed Live Banner */
.feed-live-banner { background: linear-gradient(135deg, rgba(255,23,68,0.12), rgba(255,107,53,0.08)); border: 1px solid rgba(255,23,68,0.3); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.feed-live-banner-title { font-size: 0.9rem; font-weight: 700; color: #ff1744; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.feed-live-banner-title::before { content: ''; width: 8px; height: 8px; background: #ff1744; border-radius: 50%; animation: pulse 1.5s infinite; }
.feed-live-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.feed-live-list::-webkit-scrollbar { height: 4px; }
.feed-live-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.feed-live-card { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; min-width: 200px; transition: all 0.15s ease; }
.feed-live-card:hover { border-color: #ff1744; transform: translateY(-1px); }
.feed-live-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff6b35); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.85rem; flex-shrink: 0; }
.feed-live-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-live-info strong { font-size: 0.8rem; color: var(--text); }
.feed-live-info span { font-size: 0.72rem; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-live-badge { background: #ff1744; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; }
.feed-live-viewers { font-size: 0.72rem; color: var(--text3); }
.feed-live-more { flex-shrink: 0; padding: 8px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.8rem; font-weight: 600; align-self: center; }
