/* ========================================
   TikTok Clone - Responsive CSS
   Cleaned & Optimized
   ======================================== */

:root{
  --hr1-color: hsl(0, 92%, 23%);
  --theme-color1: linear-gradient(136deg,rgba(42, 250, 236, 1) 0%, rgba(106, 196, 163, 1) 33%, rgba(96, 158, 196, 1) 68%, rgba(122, 226, 255, 1) 100%);
  --theme-color2: linear-gradient(180deg,#000d0b 0%, rgba(2, 12, 13, 1) 100%);
  --dark-colors: hwb(211 0% 85%);
  --bg: #0b0f17;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.60);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 16px 50px rgba(0,0,0,0.35);
  --radius: 16px;
  --pink: #ff0050;
  --pink-dark: #e60044;
  --pink-light: #ff3a7e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  display:flex;
  justify-content:center;
  min-height:100vh;
  background:
  radial-gradient(circle at 20% 30%, rgba(255,0,100,0.15), transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(0, 155, 216, 0.1), transparent 40%),
  linear-gradient(135deg,#0a1a18,#061312);
  color:#fff;
  font-family:'Inter',system-ui,sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
}
.text-danger{ 
  color: #ff4d4d; 
  font-weight: bold; 
  font-size: large; 
  text-align: center;
}

button {
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0066, #ff2a7f);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 0, 100, 0.4);
}

input, textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  transition: 0.2s;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #ff0066;
  box-shadow: 0 0 0 3px rgba(255, 0, 100, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #1f1f1f;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #ff0050, #ff3d7f);
}

.btn-danger {
  background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #444;
}


/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
  width: 280px;
  padding: 18px;
  background: rgba(0,0,0,.22);
  border-right: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
}

.brand-text {
  font-weight: 800;
  letter-spacing: .2px;
  background: var(--theme-color1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-user {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.sidebar-user-main {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.sidebar-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sidebar-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-sub {
  font-size: 12px;
  opacity: .7;
}

.role-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,0,80,.14);
  border: 1px solid rgba(255,0,80,.25);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.nav-item i {
  width: 18px;
  text-align: center;
  opacity: .9;
}

.nav-item:hover {
  transform: translateX(3px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.nav-item.active {
  background: rgba(255,0,80,.16);
  border-color: rgba(255,0,80,.28);
  box-shadow: 0 0 0 3px rgba(255,0,80,.10);
}

.nav-item.danger {
  background: rgba(255,59,59,.10);
  border-color: rgba(255,59,59,.20);
}

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .65;
  padding: 0 6px;
  margin-top: 8px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group.open .admin-panel,
.nav-group.open .user-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item.admin-item,
.nav-item.user-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item.admin-item .chevron,
.nav-item.user-item .chevron {
  margin-left: auto;
  transition: transform .18s ease;
  opacity: .75;
}

.nav-group.open .nav-item.admin-item .chevron,
.nav-group.open .nav-item.user-item .chevron {
  transform: rotate(180deg);
}

.admin-panel,
.user-panel {
  display: none;
  margin-top: 6px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,.10);
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all .15s ease;
}

.nav-subitem:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

.nav-subitem.active {
  background: rgba(122,167,255,.14);
  border: 1px solid rgba(122,167,255,.24);
  color: rgba(255,255,255,.96);
}

.friends-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  transition: all .15s ease;
}

.friend-row:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.friend-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.friend-name {
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.friend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 5px rgba(255,255,255,.06);
  flex-shrink: 0;
}

.friend-row.online .friend-dot {
  background: #25d366;
  box-shadow: 0 0 0 5px rgba(37,211,102,.15);
}

.friends-all {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  transition: all .15s ease;
}

.friends-all:hover {
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
}

/* ========================================
   FEED & VIDEO
   ======================================== */

.feed {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  width: 100%;
}

.feed::-webkit-scrollbar {
  width: 8px;
}

.feed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.feed::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
}

.video-container {
  position: relative;
  height: auto;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.video-item {
  max-height: 100%;
  width: auto;
  display: block;
}

.plyr-video {
  width: 100%;
  height: auto !important;
  display: block;
}

.empty-feed {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #ff0050, #ff7a00);
}

.empty-feed h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.upload-btn {
  padding: 12px 24px;
  font-size: 18px;
  background: #fff;
  color: var(--pink);
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-btn:hover {
  background: var(--pink);
  color: #fff;
  transform: scale(1.05);
}

.uploader {
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 5px #000;
}

.video-feed {
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
}

.video-card {
  width: min(1180px, calc(90vw - 320px));
  max-height: 98vh;
  margin: 0 auto 22px;
  padding: 16px !important;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 35px rgba(0,0,0,.40);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.video-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.video-player {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.video-info {
  position: static !important;
  width: auto !important;
  background: transparent !important;
  padding: 12px 4px 0 !important;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start !important;
  flex-wrap: wrap;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.username {
  font-size: 15px;
  font-weight: 750;
  opacity: .95;
}

.rank-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  margin-left: 0 !important;
  font-size: 12px !important;
  flex-shrink: 0;
}

.video-title {
  margin: 10px 0 0 !important;
  font-size: 18px !important;
  line-height: 1.2;
  letter-spacing: .2px;
  word-break: break-word;
}

.video-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: static !important;
  right: auto !important;
  flex-wrap: wrap;
}

.video-overlay {
  position: static;
  width: auto;
  background: transparent;
  color: #fff;
  text-shadow: 0 0 5px #000;
  padding: 0;
}

.uploader-info {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.uploader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  object-fit: cover;
  flex-shrink: 0;
}

.admin-badge {
  background: #ff3a7e;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 12px;
  margin-left: 5px;
  white-space: nowrap;
}

/* ========================================
   AUTH
   ======================================== */

.auth-container {
  width: 100%;
  max-width: 380px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), inset 0 0 40px rgba(255,255,255,0.02);
  transform: scale(1.05);
}

.auth-container h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--pink);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="file"],
.auth-form input[type="email"] {
  padding: 12px 15px;
  border-radius: 15px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="file"]:focus {
  background: #333;
  box-shadow: 0 0 10px var(--pink);
}

.auth-form button {
  padding: 12px;
  border-radius: 20px;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-form button:hover {
  background: var(--pink-light);
  transform: scale(1.05);
}

.auth-container p {
  margin-top: 20px;
  font-size: 14px;
}

.auth-container a {
  color: var(--pink);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.auth-container a:hover {
  text-decoration: underline;
}

/* ========================================
   PROFILE
   ======================================== */

.profile-main {
  margin: auto;
  padding: 1rem 2rem;
  min-width: 25vw;
  font-family: 'Segoe UI', sans-serif;
  background-color: hsl(0, 0%, 2%);
  min-height: 100vh;
}

.profile-header {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  height: 200px;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: white;
}

.profile-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 0;
}

.profile-header .name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
  flex-wrap: wrap;
}

.profile-header .name h2 {
  color: inherit;
  margin: 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  object-fit: cover;
  flex-shrink: 0;
}

.edit-profile-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--pink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.edit-profile-btn:hover {
  background-color: var(--pink-dark);
}

.profile-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.back-feed {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--pink);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.back-feed:hover {
  color: var(--pink-dark);
}

.edit-profile-container {
  background-color: lch(19.87% 0 296.81 / 0.151);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.edit-profile-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="file"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255,0,80,0.2);
}

.avatar-preview,
.preview {
  margin-top: 0.5rem;
  max-width: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--pink);
}

.save-btn {
  width: 100%;
  background-color: var(--pink);
  color: #fff;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.save-btn:hover {
  background-color: var(--pink-dark);
}

/* ========================================
   ADMIN
   ======================================== */

.admin-wrap {
  padding: 22px 18px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text);
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-h1 {
  font-size: 22px;
  margin: 0;
  letter-spacing: .2px;
}

.admin-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.admin-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #44ff9a;
  box-shadow: 0 0 0 6px rgba(68,255,154,0.10);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-user-name {
  font-size: 14px;
  line-height: 1.1;
}

.admin-user-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 16px;
}

.card-text {
  color: var(--muted);
  margin: 8px 0 0;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  min-width: 320px;
}

.admin-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

.admin-input {
  width: min(360px, 60vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}

.admin-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.admin-table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(10,14,22,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 12px;
}

.admin-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

.admin-table th.col-id,
.admin-table td.col-id {
  width: 90px;
  white-space: nowrap;
}

.admin-table th.col-role,
.admin-table td.col-role {
  width: 260px;
}

.admin-table th.col-action,
.admin-table td.col-action {
  width: 160px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.user-meta {
  min-width: 0;
}

.user-name {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sub {
  margin-top: 4px;
  opacity: .75;
}

.role-form {
  margin: 0;
}

.role-select {
  width: 100%;
  max-width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.90);
  outline: none;
}

.role-select:focus {
  border-color: rgba(255,45,122,0.35);
  box-shadow: 0 0 0 4px rgba(255,45,122,0.18);
}

.role-save-btn {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.vidcell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vidmini {
  width: 200px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.vidplaceholder {
  width: 200px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.titleline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1px;
  word-break: break-word;
}

.inline {
  display: inline;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.badge-muted {
  color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.06);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: .9;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-ok {
  background: rgba(0, 255, 153, .10);
  border-color: rgba(0, 255, 153, .22);
}

.status-off {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  opacity: .85;
}

.inline-form {
  display: inline;
}

.admin-foot {
  padding: 14px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.empty {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: rgba(255,255,255,0.75);
}

.empty-title {
  font-weight: 700;
}

.empty-sub {
  margin-top: 6px;
  color: var(--muted);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.notif-item {
  justify-content: space-between;
  position: relative;
}

.notif-item span {
  flex: 1;
}

.chevron {
  opacity: .6;
  margin-left: 6px;
  font-size: 12px;
}

.notif-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255,0,80,.35);
  flex: 0 0 auto;
  margin-left: auto;
}

.notif-panel {
  margin-top: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  display: none;
}

.notif-panel.open {
  display: block;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.notif-panel-list {
  max-height: 280px;
  overflow: auto;
}

.notif-panel-list::-webkit-scrollbar {
  width: 8px;
}

.notif-panel-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.notif-panel-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

.notif-row {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all .15s ease;
}

.notif-row:last-child {
  border-bottom: none;
}

.notif-row.unread {
  background: rgba(255,0,80,.10);
}

.notif-row:hover {
  background: rgba(255,255,255,.06);
}

.notif-msg {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 11px;
  opacity: .65;
  margin-top: 4px;
}

.notif-empty {
  padding: 12px;
  font-size: 12px;
  opacity: .7;
}

.notif-all {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  opacity: .85;
  border-top: 1px solid rgba(255,255,255,.08);
  transition: all .15s ease;
}

.notif-all:hover {
  opacity: 1;
  background: rgba(255,255,255,.06);
}

.notif-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
}

.notif-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.notif-list {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.08);
}

.notif-empty-big {
  padding: 28px 16px;
  text-align: center;
  background: rgba(255,255,255,.03);
}

.notif-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}

.notif-item-row:last-child {
  border-bottom: none;
}

.notif-item-row.unread {
  background: rgba(255,0,80,.10);
}

.notif-item-row.read {
  opacity: .85;
}

.notif-item-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.notif-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

.notif-item-row.unread .notif-dot {
  background: var(--pink);
  box-shadow: 0 0 10px rgba(255,0,80,.4);
}

.notif-item-body {
  min-width: 0;
}

.notif-item-msg {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-meta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  opacity: .7;
  flex-wrap: wrap;
}

.notif-type-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 11px;
  opacity: .9;
  white-space: nowrap;
}

/* ========================================
   DM CHAT
   ======================================== */

.admin-card.dm-chat {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}

.dm-messages {
  height: 520px;
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-messages::-webkit-scrollbar {
  width: 8px;
}

.dm-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.dm-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
}

.dm-msg {
  display: flex;
  margin: 10px 0;
}

.dm-msg.me {
  justify-content: flex-end;
}

.dm-msg.them {
  justify-content: flex-start;
}

.dm-bubble {
  max-width: 520px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  word-break: break-word;
}

.dm-msg.me .dm-bubble {
  background: rgba(255, 0, 102, 0.12);
  border-color: rgba(255, 0, 102, 0.18);
}

.dm-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.dm-username {
  font-weight: 650;
  font-size: 13px;
  opacity: 0.9;
}

.dm-text {
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.95;
}

.dm-meta {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.6;
  display: flex;
  gap: 8px;
}

.role-badge {
  --badge: #9aa4ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--badge);
  border: 1px solid color-mix(in srgb, var(--badge) 45%, transparent);
  background: color-mix(in srgb, var(--badge) 12%, transparent);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.role-badge i {
  font-size: 12px;
}

.dm-send {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  flex-wrap: wrap;
}

.dm-send textarea {
  flex: 1;
  resize: none;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 12px 12px;
  outline: none;
  font-family: inherit;
  min-width: 200px;
}

.dm-send textarea:focus {
  border-color: rgba(255, 0, 102, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 0, 102, 0.10);
}

/* ========================================
   INBOX / MESSAGES
   ======================================== */

.inbox {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.inbox-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 14px;
  flex-wrap: wrap;
}

.inbox h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: .2px;
}

.inbox p {
  margin: 6px 0 0;
  opacity: .7;
  font-size: 13px;
}

.inbox-search {
  width: 320px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
}

.inbox-search:focus {
  border-color: rgba(255, 0, 102, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 0, 102, 0.10);
}

.inbox-list {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.inbox-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all .15s ease;
  flex-wrap: wrap;
}

.inbox-item:last-child {
  border-bottom: none;
}

.inbox-item:hover {
  background: rgba(255,255,255,0.04);
}

.inbox-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
  flex-shrink: 0;
}

.inbox-main {
  flex: 1;
  min-width: 0;
}

.inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inbox-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .95;
}

.inbox-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  opacity: .8;
  font-size: 12px;
  flex-wrap: wrap;
}

.inbox-preview {
  margin-top: 4px;
  font-size: 13px;
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #ff0066;
  color: #fff;
  white-space: nowrap;
}

.inbox-empty {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  padding: 40px 18px;
  text-align: center;
  margin-top: 14px;
}

.inbox-empty-icon {
  font-size: 28px;
  opacity: .9;
}

.inbox-empty-title {
  margin-top: 10px;
  font-weight: 800;
}

.inbox-empty-sub {
  margin-top: 6px;
  opacity: .7;
  font-size: 13px;
}

/* ========================================
   UPLOAD
   ======================================== */

.upload-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px;
}

.upload-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: radial-gradient(900px 420px at 0% 0%, rgba(122,167,255,0.10), transparent 55%), 
              radial-gradient(900px 420px at 100% 0%, rgba(255,45,122,0.10), transparent 55%), 
              rgba(255,255,255,0.05);
  box-shadow: 0 18px 60px rgba(0,0,0,0.40);
  padding: 16px;
}

.upload-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.upload-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.upload-sub {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.60);
  font-size: 14px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.85);
}

.upload-input {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  padding: 0 12px;
  outline: none;
}

.upload-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.upload-input:focus {
  border-color: rgba(255,45,122,0.35);
  box-shadow: 0 0 0 4px rgba(255,45,122,0.18);
}

.upload-file {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}

.upload-file input[type="file"] {
  height: auto;
  padding: 10px;
  width: 100%;
}

.upload-file-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.upload-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.upload-empty {
  padding: 12px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 18px;
  margin-top: 12px;
  color: rgba(255,255,255,0.85);
}

.up-progress {
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}

.up-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.up-progress-text {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.up-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}

.up-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--pink);
  transition: width 0.25s ease;
}

.up-progress-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}

/* ========================================
   LOCKED PAGE
   ======================================== */

.locked-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  margin: auto auto !important;
}

.locked-card {
  width: 100%;
  max-width: 720px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(900px 420px at 0% 0%, rgba(255,45,122,0.14), transparent 55%), 
              radial-gradient(900px 420px at 100% 0%, rgba(122,167,255,0.14), transparent 55%), 
              rgba(255,255,255,0.05);
  box-shadow: 0 18px 70px rgba(0,0,0,0.45);
  padding: 18px;
}

.locked-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.locked-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,45,122,0.16);
  border: 1px solid rgba(255,45,122,0.28);
  box-shadow: 0 0 0 6px rgba(255,45,122,0.10);
  flex-shrink: 0;
}

.locked-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
  font-weight: 900;
}

.locked-sub {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}

.locked-box {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  padding: 12px;
}

.locked-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.locked-row:last-child {
  border-bottom: none;
}

.locked-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}

.locked-value {
  color: rgba(255,255,255,0.92);
  text-align: right;
  max-width: 70%;
  word-break: break-word;
}

.locked-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.locked-foot {
  margin: 12px 2px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ========================================
   COMMENTS
   ======================================== */

.video-sidebar {
  position: sticky;
  top: 18px;
  width: 360px;
  max-height: calc(100vh - 36px);
}

.comments {
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 6px 12px 0;
  scroll-behavior: smooth;
}

.comments-list::-webkit-scrollbar {
  width: 8px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.comments-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.comment:last-child {
  border-bottom: none;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.10);
  flex-shrink: 0;
}

.comment-body {
  min-width: 0;
}

.comment-body strong {
  font-size: 13px;
}

.comment-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;
  word-wrap: break-word;
}

.mention {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,0,80,.14);
  border: 1px solid rgba(255,0,80,.25);
  font-weight: 650;
  white-space: nowrap;
}

.comment-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.comment-input {
  width: 90%;
  resize: none;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  font-family: inherit !important;
}

.comment-input::placeholder {
  color: rgba(255,255,255,.65);
}

.comment-input:focus {
  outline: none !important;
  border-color: rgba(255,0,80,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,0,80,.18) !important;
}

.mention-dropdown {
  margin-top: 8px;
  background: rgba(10,10,10,.92) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.mention-item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all .15s ease;
}

.mention-item:hover {
  background: rgba(255,255,255,.06);
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 980px) {
  .video-card {
    width: min(980px, calc(90vw - 24px));
  }

  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    top: auto;
  }

  .comments {
    height: auto;
    max-height: none;
  }

  .notif-page {
    width: 100%;
    padding: 12px;
  }

  .admin-search {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    height: 100%;
    z-index: 1200;
    transition: left .25s ease;
    width: 280px;
  }

  .sidebar.active {
    left: 0;
  }

  body {
    flex-direction: column;
  }

  .video-card {
    width: calc(100% - 32px);
    max-height: 90vh;
    margin: 0 auto 12px;
    padding: 12px !important;
  }

  .video-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-player {
    border-radius: 12px;
  }

  .comments {
    height: auto;
    max-height: 400px;
  }

  .video-sidebar {
    width: 100%;
    position: static;
    top: auto;
    max-height: none;
  }

  .profile-main {
    min-width: auto;
    padding: 1rem;
  }

  .profile-header {
    height: 150px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-videos {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .upload-wrap {
    padding: 12px;
  }

  .auth-container {
    max-width: 100%;
    padding: 20px;
  }

  .admin-wrap {
    padding: 12px;
  }

  .admin-search {
    min-width: 100%;
  }

  .admin-input {
    width: 100%;
    min-width: auto;
  }

  .admin-table {
    min-width: 100%;
    font-size: 12px;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 8px 10px;
  }

  .inbox {
    width: 100%;
    padding: 0;
  }

  .inbox-search {
    width: 100%;
    max-width: 100%;
  }

  .dm-messages {
    height: auto;
    max-height: 300px;
  }

  .locked-card {
    max-width: 100%;
  }

  .upload-form {
    gap: 10px;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  button {
    padding: 12px;
    font-size: 16px;
  }

  input,
  textarea {
    font-size: 16px;
    padding: 12px;
  }

  .video-title {
    font-size: 16px !important;
  }

  .admin-top,
  .upload-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 240px;
    left: -240px;
  }

  .video-card {
    padding: 8px !important;
    width: calc(100% - 16px);
  }

  .auth-container {
    padding: 20px 12px;
  }

  .profile-header {
    height: 120px;
    padding: 0.5rem;
  }

  .profile-avatar {
    width: 50px;
    height: 50px;
  }

  .profile-videos {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
  }

  .admin-table {
    font-size: 11px;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 6px 8px;
  }

  .video-overlay {
    padding: 8px;
  }

  .comments {
    max-height: 250px;
  }

  .dm-messages {
    max-height: 250px;
  }

  .locked-card {
    padding: 12px;
  }

  .upload-label {
    font-size: 12px;
  }

  .upload-input {
    height: 40px;
    font-size: 14px;
  }

  .video-title {
    font-size: 14px !important;
  }

  .admin-h1 {
    font-size: 20px;
  }

  .inbox-name {
    font-size: 13px;
  }

  .notif-msg {
    font-size: 12px;
  }

  button,
  input,
  textarea {
    font-size: 16px;
  }
}






    .video-container {
      height: 5vw;
      width: 100%;
      position: relative;
      overflow: hidden;
      background-color: #000;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      transition: transform 0.2s;
    }

    .video-container:hover {
      transform: scale(1.03);
    }

    .plyr-video {
      height: 15vw;
      width: 100%;
      display: block;
    }

    /* Overlay Infos */
    .video-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 0.75rem;
      background: linear-gradient(transparent, rgba(0,0,0,0.7));
      color: white;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .video-title {
      font-size: 1rem;
      margin-left: 2vw!important;
      font-weight: bold;
      margin: 0;
    }

    .video-actions {
      position:absolute;
      right: 5vw;
      gap: 0.5rem;
      align-items: center;
    }

    .video-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .video-info img {
      width: 32px;
      height: 32px;
      border: 2px solid #ff0050;
      object-fit: cover;
    }

    .video-user {
      font-size: 0.9rem;
      font-weight: 600;
    }

/* ===== Modern Sidebar ===== */
.sidebar{
  width: 280px;
  padding: 18px;
  background: rgba(0,0,0,.22);
  border-right: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-top{ display:flex; align-items:center; justify-content:space-between; }

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
}
.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
}
.brand-text{
  font-weight: 800;
  letter-spacing: .2px;
  background: var(--theme-color1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-user{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.sidebar-user-main{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:#fff;
}

.sidebar-avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
}

.sidebar-user-meta{ display:flex; flex-direction:column; gap:4px; min-width:0; }

.sidebar-user-name{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-user-sub{
  font-size: 12px;
  opacity: .7;
}

.role-pill{
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,0,80,.14);
  border: 1px solid rgba(255,0,80,.25);
}

.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.nav-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration:none;
  color:#fff;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.nav-item i{ width: 18px; text-align:center; opacity:.9; }

.nav-item:hover{
  transform: translateX(3px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.nav-item.active{
  background: rgba(255,0,80,.16);
  border-color: rgba(255,0,80,.28);
  box-shadow: 0 0 0 3px rgba(255,0,80,.10);
}

.nav-item.danger{
  background: rgba(255,59,59,.10);
  border-color: rgba(255,59,59,.20);
}

.nav-divider{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}

.nav-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .65;
  padding: 0 6px;
}

/* Notifications */
.notif-item{
  justify-content: space-between;
  position: relative;
}
.notif-item span{ flex:1; }
.chevron{ opacity:.6; margin-left: 6px; font-size: 12px; }

.notif-badge{
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 800;
  background: #ff0050;
  box-shadow: 0 0 12px rgba(255,0,80,.35);
  flex: 0 0 auto;
  margin-left: auto;
}

.notif-panel{
  margin-top: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  display: none;
}
.notif-panel.open{ display:block; }

.notif-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.notif-panel-list{
  max-height: 280px;
  overflow:auto;
}

.notif-row{
  display:block;
  padding: 10px 12px;
  text-decoration:none;
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.notif-row:last-child{ border-bottom:none; }
.notif-row.unread{ background: rgba(255,0,80,.10); }
.notif-row:hover{ background: rgba(255,255,255,.06); }

.notif-msg{
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time{
  font-size: 11px;
  opacity: .65;
  margin-top: 4px;
}

.notif-empty{ padding: 12px; font-size: 12px; opacity: .7; }

.notif-all{
  display:block;
  padding: 10px 12px;
  text-decoration:none;
  color:#fff;
  opacity: .85;
  border-top: 1px solid rgba(255,255,255,.08);
}
.notif-all:hover{ opacity:1; background: rgba(255,255,255,.06); }

/* Mobile off-canvas */
@media (max-width: 768px){
  .sidebar{
    position: fixed;
    left: -300px;
    top: 0;
    height: 100%;
    z-index: 1200;
    transition: left .25s ease;
  }
  .sidebar.active{ left: 0; }
}/* =========================
   Modern Video + Comments UI
   (am Ende der CSS Datei)
   ========================= */

.video-feed{
  width: 100%;
  padding: 18px 18px 28px;
  box-sizing: border-box;
}

/* Card */
.video-card{
  width: min(1180px, calc(90vw - 320px));
  height: 98vh;
  margin: 0 auto 22px;
  padding: 16px !important;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 35px rgba(0,0,0,.40);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

/* Layout */
.video-layout{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

/* Player wrapper */
.video-player{
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

/* Plyr/video sizing — prevent old rules from breaking it */
.plyr-video{
  width: 100%;
  height: auto !important;
  display: block;
}

/* Meta under video — kill old absolute positioning */
.video-info{
  position: static !important;
  width: auto !important;
  background: transparent !important;
  padding: 12px 4px 0 !important;
}

/* Header: user left, actions right */
.video-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.user-info{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start !important;
}

.avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
}

.user-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.username{
  font-size: 15px;
  font-weight: 750;
  opacity: .95;
}

.rank-icon{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  margin-left: 0 !important;
  font-size: 12px !important;
}

/* Title */
.video-title{
  margin: 10px 0 0 !important;
  font-size: 18px !important;
  line-height: 1.2;
  letter-spacing: .2px;
}

/* Actions */
.video-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  position: static !important;
  right: auto !important;
}

/* Sidebar: sticky and neat */
.video-sidebar{
  position: sticky;
  top: 18px;
  width: 360px;
  max-height: calc(100vh - 36px);
}

/* Comments container: glass */
.comments{
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
}

/* Comments header */
.comments-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Scrollable comment list */
.comments-list{
  flex: 1;
  overflow-y: auto;
  padding: 12px 6px 12px 0;
  scroll-behavior: smooth;
}

/* nicer scrollbars */
.comments-list::-webkit-scrollbar{ width: 8px; }
.comments-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.comments-list::-webkit-scrollbar-track{
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

/* Single comment */
.comment{
  display:flex;
  gap:10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.comment:last-child{ border-bottom:none; }

.comment-avatar{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.10);
}

.comment-body{ min-width:0; }
.comment-head strong{ font-size: 13px; }
.comment-text{
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;
  word-wrap: break-word;
}

/* Mention styling (display) */
.mention{
  display:inline-flex;
  align-items:center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,0,80,.14);
  border: 1px solid rgba(255,0,80,.25);
  font-weight: 650;
}

/* Comment form: stick to bottom */
.comment-form{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Input */
.comment-input{
  width: 90%;
  resize: none;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
}
.comment-input::placeholder{ color: rgba(255,255,255,.65); }
.comment-input:focus{
  outline: none;
  border-color: rgba(255,0,80,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,0,80,.18);
}

/* Mention dropdown matches theme */
.mention-dropdown{
  margin-top: 8px;
  background: rgba(10,10,10,.92) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.mention-item{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  cursor:pointer;
}
.mention-item:hover{ background: rgba(255,255,255,.06); }

/* Button row */
.comment-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 980px){
  .video-card{
    width: min(980px, calc(50vw - 24px));
  }
  .video-layout{
    grid-template-columns: 1fr;
  }
  .video-sidebar{
    position: static;
    width: 100%;
    max-height: none;
  }
  .comments{
    height: auto;
    max-height: none;
  }
}

/* ===== Base Button ===== */

button{
  padding:14px;
  border:none;
  border-radius:999px;
  background:linear-gradient(90deg,#ff0066,#ff2a7f);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:0.25s;
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 25px rgba(255,0,100,0.4);
}
input{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:12px;
  padding:14px;
  color:#fff;
  transition:0.2s;
}

input:focus{
  border-color:#ff0066;
  box-shadow:0 0 0 3px rgba(255,0,100,0.15);
}
.auth-container{
  transform:scale(1.05);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  background: #1f1f1f;
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.btn:active {
  transform: scale(.96);
}

/* Variants */
.btn-primary {
  background: linear-gradient(135deg,#ff0050,#ff3d7f);
}

.btn-danger {
  background: linear-gradient(135deg,#ff3b3b,#ff6b6b);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #444;
}

/* ===== Notifications Page ===== */
.notif-page{
  width: min(980px, 100%);
  margin: 0 auto;
}

.notif-page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.notif-list{
  margin-top: 14px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.08);
}

.notif-empty-big{
  padding: 28px 16px;
  text-align:center;
  background: rgba(255,255,255,.03);
}

.notif-item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.notif-item-row:last-child{ border-bottom:none; }

.notif-item-row.unread{
  background: rgba(255,0,80,.10);
}
.notif-item-row.read{
  opacity: .85;
}

.notif-item-link{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  text-decoration:none;
  color:#fff;
  flex: 1;
  min-width: 0;
}

.notif-dot{
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.notif-item-row.unread .notif-dot{
  background: #ff0050;
  box-shadow: 0 0 10px rgba(255,0,80,.4);
}

.notif-item-body{ min-width:0; }

.notif-item-msg{
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-meta{
  margin-top: 6px;
  display:flex;
  gap: 8px;
  align-items:center;
  font-size: 12px;
  opacity: .7;
}

.notif-type-pill{
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 11px;
  opacity: .9;
}
/* ===== Admin Users – Pro UI ===== */
.admin-shell{
  width: min(1100px, 100%);
  margin: 0 auto;
}

.admin-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-title{
  margin:0;
  font-size: 22px;
  letter-spacing: .2px;
}

.admin-sub{
  margin:6px 0 0;
  opacity: .75;
  font-size: 13px;
}

.admin-search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  min-width: 320px;
}

.admin-search input{
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

.admin-card{
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 35px rgba(0,0,0,.40);
  backdrop-filter: blur(12px);
  overflow:hidden;
}

.admin-table-wrap{
  overflow:auto;
}

.admin-table{
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th{
  text-align:left;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  padding: 14px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-table tbody td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

.admin-table tbody tr:hover{
  background: rgba(255,255,255,.04);
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.user-cell{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 280px;
}

.user-avatar img{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
}

.user-meta{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.user-name{
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  opacity: .9;
}

.status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-ok{
  background: rgba(0, 255, 153, .10);
  border-color: rgba(0, 255, 153, .22);
}

.status-off{
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  opacity: .85;
}

.inline-form{ display:inline; }
.admin-foot{
  padding: 14px;
  display:flex;
  justify-content:flex-end;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Chat Shell */
.admin-card.dm-chat{
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}

/* Messages area */
.dm-messages{
  height: 520px;
  padding: 18px;
  overflow: auto;
}

/* Each message row */
.dm-msg{
  display:flex;
  margin: 10px 0;
}
.dm-msg.me{ justify-content:flex-end; }
.dm-msg.them{ justify-content:flex-start; }

/* Bubble */
.dm-bubble{
  max-width: 520px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
}

/* Different tint for me */
.dm-msg.me .dm-bubble{
  background: rgba(255, 0, 102, 0.12);
  border-color: rgba(255, 0, 102, 0.18);
}

/* Top line: username + badge */
.dm-line{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 6px;
}

.dm-username{
  font-weight: 650;
  font-size: 13px;
  opacity: 0.9;
}

/* Text */
.dm-text{
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.95;
}

/* Meta time */
.dm-meta{
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.6;
  display:flex;
  gap: 8px;
}

/* Badge */
.role-badge{
  --badge: #9aa4ff;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--badge);
  border: 1px solid color-mix(in srgb, var(--badge) 45%, transparent);
  background: color-mix(in srgb, var(--badge) 12%, transparent);
  letter-spacing: 0.2px;
}
.role-badge i{ font-size: 12px; }

/* Send form */
.dm-send{
  display:flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}

.dm-send textarea{
  flex:1;
  resize:none;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color:#fff;
  padding: 12px 12px;
  outline:none;
}

.dm-send textarea:focus{
  border-color: rgba(255,0,102,0.35);
  box-shadow: 0 0 0 3px rgba(255,0,102,0.10);
}
:root{
  --bg: #0b0f17;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.60);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 16px 50px rgba(0,0,0,0.35);
  --radius: 16px;
}

.admin-wrap{
  padding: 22px 18px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text);
}

.admin-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-h1{
  font-size: 22px;
  margin: 0;
  letter-spacing: .2px;
}
.admin-sub{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-chip{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.admin-chip .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #44ff9a;
  box-shadow: 0 0 0 6px rgba(68,255,154,0.10);
}

.admin-user{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.admin-user-avatar{
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.admin-user-name{ font-size: 14px; line-height: 1.1; }
.admin-user-role{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.admin-card{
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-title{
  margin: 0;
  font-size: 16px;
}
.card-text{
  color: var(--muted);
  margin: 8px 0 0;
}

.admin-input{
  width: min(360px, 60vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}
.admin-input::placeholder{ color: rgba(255,255,255,0.45); }

.table-wrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
}

.admin-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

.admin-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  text-align:left;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(10,14,22,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 12px;
}

.admin-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table tbody tr:hover{
  background: rgba(255,255,255,0.04);
}

.muted{ color: var(--muted); font-size: 12px; margin-top: 4px; }

.vidcell{ display:flex; align-items:center; gap: 10px; }
.vidmini{
  width: 200px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
.vidplaceholder{
  width: 200px;
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.titleline{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1px;
}

.inline{ display:inline; }

.btn-danger{
  appearance: none;
  border: 1px solid rgba(255, 72, 72, 0.35);
  background: rgba(255, 72, 72, 0.14);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.btn-danger:hover{
  background: rgba(255, 72, 72, 0.22);
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}
.badge-muted{
  color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.06);
}

.empty{
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: rgba(255,255,255,0.75);
}
.empty-title{ font-weight: 700; }
.empty-sub{ margin-top: 6px; color: var(--muted); }

/* admin-users.css
   Isolierter Fix nur für Benutzerverwaltung / Tabelle
   -> verhindert "verzogen", auch wenn globales CSS Tabellen kaputt macht
*/

.admin-shell { max-width: 1200px; margin: 0 auto; }

.admin-card .admin-table-wrap{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* --- HARD reset for table semantics --- */
.admin-card .admin-table-wrap #users-table{
  width: 100%;
  min-width: 980px;               /* stabil; bei kleinen screens horizontal scroll */
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;            /* KEY */
  display: table;                 /* falls global was kaputt macht */
}

.admin-card .admin-table-wrap #users-table thead{ display: table-header-group; }
.admin-card .admin-table-wrap #users-table tbody{ display: table-row-group; }
.admin-card .admin-table-wrap #users-table tr{ display: table-row; }
.admin-card .admin-table-wrap #users-table th,
.admin-card .admin-table-wrap #users-table td{
  display: table-cell;            /* KEY gegen td{display:flex} */
  padding: 12px 12px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* column widths */
.admin-card .admin-table-wrap #users-table th.col-id,
.admin-card .admin-table-wrap #users-table td.col-id{
  width: 90px;
  white-space: nowrap;
}
.admin-card .admin-table-wrap #users-table th.col-role,
.admin-card .admin-table-wrap #users-table td.col-role{
  width: 260px;
}
.admin-card .admin-table-wrap #users-table th.col-action,
.admin-card .admin-table-wrap #users-table td.col-action{
  width: 160px;
}

/* user cell (inside 2nd column) */
.admin-card .admin-table-wrap .user-cell{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;                   /* ellipsis works */
}
.admin-card .admin-table-wrap .user-avatar-img{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}
.admin-card .admin-table-wrap .user-meta{ min-width: 0; }
.admin-card .admin-table-wrap .user-name{
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-card .admin-table-wrap .user-sub{ margin-top: 4px; opacity: .75; }

/* prevent form/select from stretching the column */
.admin-card .admin-table-wrap .role-form{ margin: 0; }
.admin-card .admin-table-wrap .role-select{
  width: 100%;
  max-width: 100%;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.90);
  outline: none;
}
.admin-card .admin-table-wrap .role-select:focus{
  border-color: rgba(255,45,122,0.35);
  box-shadow: 0 0 0 4px rgba(255,45,122,0.18);
}

/* action button */
.admin-card .admin-table-wrap .role-save-btn{
  width: 100%;
  height: 40px;
  border-radius: 12px;
  white-space: nowrap;
}

/* hover */
.admin-card .admin-table-wrap #users-table tbody tr:hover{
  background: rgba(255,255,255,0.04);
}

/* mobile: allow compact */
@media (max-width: 700px){
  .admin-card .admin-table-wrap #users-table{ min-width: 860px; }
}
/* upload.css */

.upload-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px;
}

.upload-card{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(122,167,255,0.10), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(255,45,122,0.10), transparent 55%),
    rgba(255,255,255,0.05);
  box-shadow: 0 18px 60px rgba(0,0,0,0.40);
  padding: 16px;
}

.upload-head{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 14px;
}

.upload-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.upload-sub{
  margin: 6px 0 0;
  color: rgba(255,255,255,0.60);
  font-size: 14px;
}

.upload-form{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 10px;
}

.upload-field{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.upload-label{
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,0.85);
}

.upload-input{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  padding: 0 12px;
  outline: none;
}

.upload-input::placeholder{
  color: rgba(255,255,255,0.45);
}

.upload-input:focus{
  border-color: rgba(255,45,122,0.35);
  box-shadow: 0 0 0 4px rgba(255,45,122,0.18);
}

.upload-file{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}

.upload-file input[type="file"]{
  height: auto;
  padding: 10px;
  width: 100%;
}

.upload-file-hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.upload-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 6px;
}

.upload-empty{
  padding: 12px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 18px;
  margin-top: 12px;
  color: rgba(255,255,255,0.85);
}

/* Progress */
.up-progress{
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}

.up-progress-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.up-progress-text{
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.up-bar{
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
}

.up-bar-fill{
  height: 100%;
  width: 0%;
  background: #ff0050;
  transition: width 0.25s ease;
}

.up-progress-hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}

.locked-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 18px;
  margin: auto auto!important;
}

.locked-card{
  width: 100%;
  max-width: 720px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(255,45,122,0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(122,167,255,0.14), transparent 55%),
    rgba(255,255,255,0.05);
  box-shadow: 0 18px 70px rgba(0,0,0,0.45);
  padding: 18px;
}

.locked-top{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  margin-bottom: 14px;
}

.locked-badge{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,45,122,0.16);
  border: 1px solid rgba(255,45,122,0.28);
  box-shadow: 0 0 0 6px rgba(255,45,122,0.10);
  flex: 0 0 auto;
}

.locked-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
  font-weight: 900;
}

.locked-sub{
  margin: 6px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}

.locked-box{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  padding: 12px;
}

.locked-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.locked-row:last-child{
  border-bottom: none;
}

.locked-label{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 800;
  letter-spacing: .2px;
}

.locked-value{
  color: rgba(255,255,255,0.92);
  text-align: right;
  max-width: 70%;
}

.locked-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.locked-foot{
  margin: 12px 2px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
/* Admin dropdown panel */
.admin-panel{
  display:none;
  margin-top: 6px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.user-panel{
  display:none;
  margin-top: 6px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.10);
}

.nav-group.open .admin-panel{
  display:block;
}
.nav-group.open .user-panel{
  display:block;
}


.nav-item.admin-item{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav-item.user-item{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav-item.admin-item .chevron{
  margin-left:auto;
  transition: transform .18s ease;
  opacity: .75;
}
.nav-item.user-item .chevron{
  margin-left:auto;
  transition: transform .18s ease;
  opacity: .75;
}
.nav-group.open .nav-item.admin-item .chevron{
  transform: rotate(180deg);
}

.nav-group.open .nav-item.user-item .chevron{
  transform: rotate(180deg);
}

.nav-subitem{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.80);
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
}

.nav-subitem:hover{
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

.nav-subitem.active{
  background: rgba(122,167,255,0.14);
  border: 1px solid rgba(122,167,255,0.24);
  color: rgba(255,255,255,0.96);
}
.friends-box{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-top: 8px;
}

.friend-row{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.friend-row:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.friend-avatar{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
}

.friend-name{
  font-weight: 800;
  font-size: 13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.friend-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.06);
}

.friend-row.online .friend-dot{
  background: #25d366;
  box-shadow: 0 0 0 5px rgba(37,211,102,0.15);
}

.friends-all{
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

.friends-all:hover{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
}

.inbox{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.inbox-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin: 6px 0 14px;
}

.inbox h1{
  margin:0;
  font-size: 28px;
  letter-spacing: .2px;
}

.inbox p{
  margin:6px 0 0;
  opacity:.7;
  font-size: 13px;
}

.inbox-search{
  width: 320px;
  max-width: 45vw;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color:#fff;
  outline:none;
}

.inbox-search:focus{
  border-color: rgba(255,0,102,0.35);
  box-shadow: 0 0 0 3px rgba(255,0,102,0.10);
}

.inbox-list{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  overflow:hidden;
}

.inbox-item{
  display:flex;
  gap: 12px;
  padding: 14px;
  text-decoration:none;
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.inbox-item:last-child{ border-bottom:none; }

.inbox-item:hover{
  background: rgba(255,255,255,0.04);
}

.inbox-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.10);
}

.inbox-main{ flex:1; min-width: 0; }

.inbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.inbox-name{
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  opacity: .95;
}

.inbox-meta{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-shrink:0;
  opacity:.8;
  font-size: 12px;
}

.inbox-preview{
  margin-top: 4px;
  font-size: 13px;
  opacity:.7;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.inbox-unread{
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 800;
  background: #ff0066;
  color: #fff;
}

.inbox-empty{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  padding: 40px 18px;
  text-align:center;
  margin-top: 14px;
}

.inbox-empty-icon{ font-size: 28px; opacity:.9; }
.inbox-empty-title{ margin-top: 10px; font-weight:800; }
.inbox-empty-sub{ margin-top: 6px; opacity:.7; font-size: 13px; }



/* 
//////////////////////////////////////////////////////////
///////////////// CHAT ///////////////////////////////////
*/
/* ===== DM Widget (global) ===== */
.dm-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}
.dm-fab:hover{ transform: translateY(-2px); }

.dm-fab-badge{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff0050;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(255,0,80,.35);
}

.dm-pop{
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 120px);
  z-index: 2000;
  border-radius: 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  overflow:hidden;
  display:none;
}
.dm-pop.open{ display:block; }

.dm-pop-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dm-pop-title{ display:flex; flex-direction:column; gap:2px; }
.dm-pop-sub{ font-size: 12px; opacity: .7; }

.dm-pop-close{
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color:#fff;
  cursor:pointer;
}

.dm-pop-body{
  height: calc(100% - 62px);
  display:flex;
  flex-direction:column;
}

.dm-pop-inbox{
  padding: 10px;
  overflow:auto;
  height: 100%;
}

.dm-inbox-item{
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  text-decoration:none;
  color:#fff;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  cursor:pointer;
  margin-bottom: 8px;
}
.dm-inbox-item:hover{ background: rgba(255,255,255,0.06); }
.dm-inbox-avatar{ width: 40px; height: 40px; border-radius: 999px; object-fit:cover; }
.dm-inbox-main{ flex:1; min-width:0; }
.dm-inbox-top{ display:flex; justify-content:space-between; gap:10px; align-items:center; }
.dm-inbox-name{ font-weight: 800; font-size: 13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-inbox-time{ font-size: 11px; opacity: .65; flex:0 0 auto; }
.dm-inbox-preview{ margin-top:4px; font-size: 12px; opacity:.75; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-inbox-unread{
  min-width: 22px; height:22px; padding:0 7px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size: 12px; font-weight: 900; background:#ff0050;
}

.dm-pop-chat{ height: 100%; display:flex; flex-direction:column; }
.dm-pop-chat-head{
  display:flex; align-items:center; gap:10px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dm-back{
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06); color:#fff; cursor:pointer;
}
.dm-chat-peer{ font-weight: 900; font-size: 13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

#dm-pop-messages{
  flex:1;
  overflow:auto;
  padding: 12px;
}

@media (max-width: 480px){
  .dm-pop{ width: calc(100vw - 24px); right: 12px; }
  .dm-fab{ right: 12px; bottom: 12px; }
}