:root {
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-hover: #4338ca;
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.6);
  --glass-shadow: 0 8px 32px rgba(31,38,135,0.08);
  --danger: #ef4444;
  --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fb;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-decor {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(99,102,241,0.25), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(236,72,153,0.2), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(56,189,248,0.22), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(167,139,250,0.2), transparent 45%),
    linear-gradient(135deg, #eef2ff 0%, #fce7f3 50%, #e0f2fe 100%);
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; color: var(--text); text-decoration: none; }
.logo-icon { font-size: 1.3rem; }
.logo-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.6);
  text-decoration: none; font-size: 1rem;
  position: relative; transition: 0.2s;
}
.icon-btn:hover { background: #fff; }

.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: rgba(99,102,241,0.12);
  text-decoration: none; color: var(--accent);
  font-weight: 600; font-size: 0.85rem;
  transition: 0.2s;
}
.user-chip:hover { background: rgba(99,102,241,0.2); }
.chip-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.chip-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 18px; border-radius: 12px;
  border: none; font-family: inherit;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: 0.2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.45); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--text); border: 1px solid rgba(255,255,255,0.8); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

/* Main */
.main-content { flex: 1; padding: 24px 0 80px; }
.page-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.page-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.sub-muted { color: var(--text-muted); font-size: 0.9rem; }

.hero { margin-bottom: 24px; }
.hero .page-title {
  background: linear-gradient(135deg, #1e1b4b, #4f46e5, #7c3aed);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Posts Grid */
.posts-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .posts-grid { grid-template-columns: 1fr 1fr; } }

.post-card {
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; transition: 0.25s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(31,38,135,0.12); }

.post-image-link { display: block; overflow: hidden; }
.post-image {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: 0.4s;
}
.post-card:hover .post-image { transform: scale(1.05); }

.post-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar-link { text-decoration: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.post-author-name { font-weight: 600; font-size: 0.88rem; color: var(--text); text-decoration: none; }
.post-author-name:hover { color: var(--accent); }
.post-date { font-size: 0.75rem; color: var(--text-muted); }

.post-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: #475569; flex: 1; margin-bottom: 14px; font-size: 0.92rem; }

.post-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.6);
  flex-wrap: wrap;
}

.rating { display: flex; gap: 6px; }
.rate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.5);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--text); cursor: pointer; transition: 0.2s;
}
.rate-btn:hover { background: #fff; }
.rate-btn.active.like { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: transparent; }
.rate-btn.active.dislike { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border-color: transparent; }

.post-stats { display: flex; gap: 12px; color: var(--text-muted); font-size: 0.85rem; }
.stat { color: var(--text-muted); text-decoration: none; }
a.stat:hover { color: var(--accent); }

/* Post full */
.post-full { border-radius: 20px; padding: 28px; margin-bottom: 20px; }
.post-full-header { display: flex; align-items: center; margin-bottom: 16px; }
.post-full-title { font-size: 1.7rem; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.post-full-image {
  width: 100%; max-height: 600px; object-fit: cover;
  border-radius: 16px; margin-bottom: 20px; cursor: zoom-in;
  display: block;
}
.post-body { color: #334155; font-size: 1.02rem; white-space: pre-wrap; margin-bottom: 24px; }
.post-full-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.6); flex-wrap: wrap; gap: 12px;
}

/* Comments */
.comments-section { border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.comments-title { font-size: 1.2rem; margin-bottom: 16px; }
.comments-count {
  display: inline-block; padding: 2px 10px; margin-left: 6px;
  background: rgba(79,70,229,0.15); color: var(--accent);
  border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}

.comment-form, .reply-form {
  margin-bottom: 16px;
}
.reply-form { margin-top: 12px; padding-left: 46px; }

.comment-form-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-form textarea, .reply-form textarea {
  flex: 1; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px; font-family: inherit; font-size: 0.95rem;
  background: rgba(255,255,255,0.7); color: var(--text);
  resize: none; min-height: 44px; max-height: 200px;
  transition: 0.2s;
}
.comment-form textarea:focus, .reply-form textarea:focus {
  outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}
.comment-form-actions { display: flex; gap: 8px; margin-top: 8px; padding-left: 46px; }
.reply-form .comment-form-actions { padding-left: 0; }

.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.comment-avatar-link { text-decoration: none; }

.comments-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.comment {
  padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
}
.comment.reply { background: rgba(255,255,255,0.35); margin-top: 8px; }
.comment-replies { margin-top: 12px; padding-left: 20px; border-left: 2px solid rgba(79,70,229,0.15); }

.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; position: relative; }
.comment-info { flex: 1; }
.comment-author { font-weight: 600; font-size: 0.88rem; color: var(--text); text-decoration: none; }
.comment-author:hover { color: var(--accent); }
.comment-date { font-size: 0.72rem; color: var(--text-muted); margin-left: 6px; }
.comment-text { font-size: 0.95rem; color: #334155; white-space: pre-wrap; word-break: break-word; }

.comment-del { position: absolute; right: 0; top: 0; }
.del-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1rem; padding: 4px 8px;
  border-radius: 8px; transition: 0.2s; font-family: inherit;
}
.del-btn:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

.reply-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 0.82rem; font-weight: 600;
  padding: 4px 0; margin-top: 6px; font-family: inherit;
}
.reply-btn:hover { text-decoration: underline; }

.comment-login {
  padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.9rem;
  background: rgba(255,255,255,0.4); border-radius: 12px; margin-bottom: 16px;
}
.comment-login a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Forms */
.form-card { border-radius: 24px; padding: 32px; max-width: 520px; margin: 20px auto; }
.form-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.form-card .sub { color: var(--text-muted); margin-bottom: 22px; font-size: 0.9rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #334155; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px; font-size: 0.95rem; font-family: inherit;
  background: rgba(255,255,255,0.7); color: var(--text);
  transition: 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-card .btn { width: 100%; padding: 13px; margin-top: 6px; }
.section-title { margin-top: 22px; margin-bottom: 12px; font-size: 1.05rem; }

/* Upload area */
.upload-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 20px; gap: 8px;
  border: 2px dashed rgba(79,70,229,0.3);
  border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.5); transition: 0.2s;
  min-height: 140px;
}
.upload-area:hover, .upload-area.drag { border-color: var(--accent); background: rgba(79,70,229,0.05); }
.upload-area.has-preview { padding: 0; border-style: solid; min-height: auto; }
.upload-icon { font-size: 2rem; }
.upload-text { color: var(--text-muted); font-size: 0.9rem; }
#upload-preview { max-width: 100%; max-height: 300px; border-radius: 12px; display: block; }

/* Errors */
.error {
  background: rgba(254,226,226,0.85); color: #991b1b;
  padding: 12px 16px; border-radius: 12px;
  font-size: 0.9rem; margin-bottom: 16px;
  border: 1px solid rgba(252,165,165,0.6);
}
.success {
  background: rgba(209,250,229,0.85); color: #065f46;
  padding: 12px 16px; border-radius: 12px;
  font-size: 0.9rem; margin-bottom: 16px;
  border: 1px solid rgba(110,231,183,0.6);
}
.hint { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: 0.9rem; }
.hint a { color: var(--accent); text-decoration: none; font-weight: 600; }

.rules-note {
  padding: 12px 14px;
  background: rgba(254,249,195,0.6);
  border: 1px solid rgba(253,224,71,0.5);
  border-radius: 12px; font-size: 0.82rem;
  color: #78350f; margin: 14px 0; line-height: 1.4;
}

/* Profile */
.profile-header {
  border-radius: 20px; padding: 28px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 2rem;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.5rem; margin-bottom: 4px; }
.profile-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.profile-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.pstat { display: flex; flex-direction: column; }
.pstat b { font-size: 1.3rem; color: var(--accent); }
.pstat span { font-size: 0.78rem; color: var(--text-muted); }

.section-heading { margin: 24px 0 16px; font-size: 1.2rem; }

/* Avatar in settings */
.avatar-settings { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.settings-avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 1.8rem;
}

/* Notifications */
.page-panel { border-radius: 20px; padding: 26px; }
.notifications-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.notif-item {
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.8);
}
.notif-item.notif-admin_alert { border-left: 3px solid var(--danger); }
.notif-item.notif-ban { border-left: 3px solid var(--danger); background: rgba(254,226,226,0.5); }
.notif-item.notif-info { border-left: 3px solid var(--accent); }
.notif-text { font-size: 0.92rem; }
.notif-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Admin */
.admin-header { border-radius: 20px; padding: 26px; margin-bottom: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { border-radius: 18px; padding: 18px; text-align: center; }
.stat-icon { font-size: 1.5rem; margin-bottom: 6px; }
.stat-value {
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.admin-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }

.panel { border-radius: 20px; padding: 22px; }
.panel h3 { margin-bottom: 14px; font-size: 1.05rem; }

.list { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; }
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.7);
}
.list-item .info { flex: 1; min-width: 0; }
.list-item .name { font-weight: 600; font-size: 0.92rem; word-break: break-word; }
.list-item .meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; margin-left: 6px; }
.badge-owner { background: rgba(254,243,199,0.9); color: #92400e; }
.badge-banned { background: rgba(254,226,226,0.9); color: #991b1b; }
.badge-blocked { background: rgba(254,215,170,0.9); color: #9a3412; }

/* Empty */
.empty { text-align: center; padding: 50px 20px; border-radius: 20px; color: var(--text-muted); }
.empty-icon { font-size: 2.8rem; margin-bottom: 10px; }

/* Footer */
.footer {
  padding: 20px 0; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
  background: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.5);
}

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 1.2rem; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(79,70,229,0.4);
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Bottom Nav (mobile) */
.bottom-nav { display: none; }

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  .container { padding: 0 12px; }
  .topbar-inner { height: 56px; }
  .logo-text { font-size: 1rem; }
  .chip-name { display: none; }
  .nav-desktop { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .user-chip { padding: 4px; }

  .main-content { padding: 16px 0 90px; }
  .page-title { font-size: 1.4rem; }
  .page-sub { font-size: 0.85rem; }

  /* Instagram-style cards on mobile */
  .posts-grid { gap: 14px; }
  .post-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .post-card:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
  .post-image { height: auto; aspect-ratio: 1 / 1; }
  .post-card-body { padding: 12px 14px 14px; }
  .post-author { margin-bottom: 8px; }
  .post-title { font-size: 1.05rem; }
  .post-excerpt { font-size: 0.88rem; }
  .post-footer { padding-top: 10px; }

  .post-full { padding: 18px; border-radius: 16px; }
  .post-full-title { font-size: 1.3rem; }
  .post-body { font-size: 0.95rem; }
  .post-full-image { border-radius: 12px; margin-bottom: 14px; }

  .comments-section { padding: 16px; border-radius: 16px; }
  .comment { padding: 12px; }
  .comment-avatar { width: 32px; height: 32px; font-size: 0.85rem; }
  .comment-form-actions { padding-left: 42px; }
  .reply-form { padding-left: 42px; }

  .profile-header { padding: 20px; }
  .profile-avatar { width: 70px; height: 70px; font-size: 1.6rem; }
  .profile-name { font-size: 1.25rem; }
  .profile-stats { gap: 16px; }

  .form-card { padding: 22px; margin: 12px auto; border-radius: 18px; }

  /* Bottom nav on mobile */
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 95;
    justify-content: space-around;
  }
  .bn-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 2px;
    text-decoration: none; color: var(--text-muted);
    padding: 6px; border-radius: 12px;
    transition: 0.2s; position: relative;
  }
  .bn-item.active { color: var(--accent); }
  .bn-icon { font-size: 1.3rem; position: relative; }
  .bn-icon-plus {
    width: 38px; height: 38px; 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.5rem; font-weight: 300; line-height: 1;
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
  }
  .bn-label { font-size: 0.68rem; font-weight: 600; }
  .bn-dot {
    position: absolute; top: -2px; right: -4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger);
  }

  .scroll-top { bottom: 90px; right: 16px; width: 42px; height: 42px; }
}
/* ===== ADMIN TABS ===== */
.admin-header-actions { display: flex; gap: 8px; }

.admin-tabs {
  display: flex; gap: 4px; padding: 6px;
  border-radius: 16px; margin-bottom: 18px;
  overflow-x: auto; scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  flex: 1; min-width: 120px;
  padding: 11px 16px; border-radius: 12px;
  border: none; background: transparent;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: 0.2s; white-space: nowrap;
}
.admin-tab:hover { background: rgba(255,255,255,0.6); color: var(--text); }
.admin-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-count {
  display: inline-block; padding: 3px 10px; margin-left: 8px;
  background: rgba(79,70,229,0.15); color: var(--accent);
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}

.list-item-thumb {
  width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  flex-shrink: 0; background: rgba(79,70,229,0.1);
  display: flex; align-items: center; justify-content: center;
}
.list-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder { font-size: 1.6rem; }

.list-item-avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.list-item-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.list-item-actions {
  display: flex; gap: 6px; flex-shrink: 0; align-items: center;
}
.list-item-actions form { display: inline-block; margin: 0; }

.admin-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.15s;
}
.admin-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.comment-preview {
  font-size: 0.88rem; color: #334155; margin-top: 6px;
  padding: 8px 12px; background: rgba(255,255,255,0.6);
  border-radius: 10px; border-left: 3px solid var(--accent);
  white-space: pre-wrap; word-break: break-word;
  max-height: 90px; overflow: hidden; position: relative;
}

.badge-reply {
  background: rgba(167,139,250,0.25); color: #6d28d9;
  font-size: 0.65rem; padding: 2px 7px;
}

.empty-mini {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted); font-size: 0.9rem;
}
.empty-mini .empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* Мобильная адаптация админки */
@media (max-width: 700px) {
  .admin-tabs { padding: 4px; gap: 2px; }
  .admin-tab { min-width: 100px; padding: 9px 12px; font-size: 0.8rem; }

  .list-item {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  .list-item-thumb { width: 44px; height: 44px; border-radius: 10px; }
  .list-item-avatar { width: 38px; height: 38px; font-size: 0.95rem; }
  .list-item .info { flex: 1 1 calc(100% - 60px); }
  .list-item-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  .list-item-actions .btn { padding: 6px 11px; font-size: 0.78rem; }

  .comment-preview { font-size: 0.82rem; padding: 6px 10px; }
  .admin-header { padding: 18px; }
}