@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Fredoka:wght@400;600;700&family=Pacifico&family=DynaPuff:wght@400;700&family=Cherry+Bomb+One&family=Comic+Neue:wght@400;700&family=Comfortaa:wght@400;700&family=Outfit:wght@400;700&display=swap');

:root {
  --bg-base: #0c070d; /* Deep warm black-plum */
  --bg-surface: rgba(23, 14, 26, 0.7); /* Translucent dark glass */
  --bg-surface-solid: #170e1a; /* Solid dark plum */
  --bg-surface-hover: rgba(36, 21, 41, 0.85);
  --primary: #ff5277; /* Neon warm pink */
  --primary-rgb: 255, 82, 119;
  --primary-hover: #ff758f;
  --accent: #ffb3c6; /* Soft pastel pink */
  --accent-rgb: 255, 179, 198;
  --accent-teal: #8ee9db; /* Mint green/teal highlight */
  --danger: #ff476d;
  --danger-rgb: 255, 71, 109;
  --text-main: #ffe3e8; /* Soft blush white text */
  --text-muted: #ab9398; /* Dusty lavender rose gray */
  --text-inverse: #0c070d;
  --border-color: rgba(255, 82, 119, 0.18); /* Glowing pink border */
  --border-glow: rgba(255, 82, 119, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-glow: 0 0 25px rgba(255, 82, 119, 0.2);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Playful bounce */
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background animated glow spots (neon pink and gold) */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: float-slow 20s infinite alternate;
}

body::after {
  background: radial-gradient(circle, #ffb3c6 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float-slow 25s infinite alternate-reverse;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.15); }
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 8px rgba(255, 101, 132, 0.2);
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--border-color);
}

/* Main Container Layout */
header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 82, 119, 0.12);
  background: rgba(18, 10, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 82, 119, 0.08);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.logo:hover {
  filter: brightness(1.15);
}

.logo-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(255, 82, 119, 0.4));
  transition: var(--transition);
  animation: logo-purr 3s ease-in-out infinite;
}

@keyframes logo-purr {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-3deg); }
  75% { transform: scale(1.05) rotate(3deg); }
}

.logo:hover .logo-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 12px rgba(255, 82, 119, 0.6));
  animation: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username-badge {
  background: rgba(255, 82, 119, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid rgba(255, 82, 119, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.username-badge:hover {
  background: rgba(255, 82, 119, 0.12);
  border-color: rgba(255, 82, 119, 0.3);
}

/* Main Layout Wrapper */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Auth Pages (Login & Register in Center) */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 45px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(255, 101, 132, 0.08);
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

/* Form Controls */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  padding-left: 4px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--border-color);
  padding: 12px 18px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 82, 119, 0.25);
  background: rgba(0, 0, 0, 0.4);
}

.form-input::placeholder {
  color: #a38d92;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-inverse);
  box-shadow: 0 6px 20px rgba(255, 101, 132, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #e03257 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 101, 132, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(var(--danger-rgb), 0.1);
  border: 2px solid rgba(var(--danger-rgb), 0.25);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(var(--danger-rgb), 0.2);
  border-color: var(--danger);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--danger-rgb), 0.15);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  width: auto;
  border-radius: var(--radius-sm);
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Alert Boxes */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
}

.alert-danger {
  background: #fff0f2;
  border-color: #ffccd5;
  color: #ff476d;
}

.alert-success {
  background: #f0fdf9;
  border-color: #c6f6eb;
  color: #00bfa5;
}

.alert-info {
  background: #f5f3ff;
  border-color: #e0d7ff;
  color: #6c5ce7;
}

/* Dashboard Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 320px 1fr;
  }
}

.dashboard-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: fit-content;
  box-shadow: 0 10px 30px rgba(255, 101, 132, 0.05);
}

.panel-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--text-main);
}

.api-token-container {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 2px 4px rgba(255, 101, 132, 0.02);
}

.api-token-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.copy-btn:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* Gallery Section */
.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

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

.empty-gallery {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  border: 3px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.empty-gallery svg {
  color: var(--accent);
}

/* Image Card Component */
.image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-surface-solid);
  border: 2px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 82, 119, 0.22);
}

.image-preview {
  position: relative;
  width: 100%;
  height: 180px;
  background: #110913;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid var(--border-color);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-card:hover .image-preview img {
  scale: 1.06;
}

.image-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.image-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.image-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.image-actions .btn {
  flex: 1;
}

/* Admin Panel Table styles */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
}

th {
  background: rgba(255, 82, 119, 0.1);
  color: var(--text-main);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: rgba(12, 166, 120, 0.15);
  color: #20c997;
}

.status-used {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.invite-creation-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.invite-creation-row .btn {
  width: auto;
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 101, 132, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stats-card {
  transition: var(--transition);
}
.stats-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary) !important;
  box-shadow: 0 8px 25px rgba(255, 82, 119, 0.2);
}

/* Green Pulse Animation */
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(32, 201, 151, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
  }
}

/* Shoutbox Bubble Hover Style */
.shout-bubble {
  border: 1px solid transparent;
}
.shout-bubble:hover {
  background: rgba(255, 82, 119, 0.06) !important;
  border-color: rgba(255, 82, 119, 0.15) !important;
  box-shadow: 0 4px 12px rgba(255, 82, 119, 0.05);
}

/* Scrollbar customization for Shoutbox */
#shoutbox-messages::-webkit-scrollbar {
  width: 6px;
}
#shoutbox-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
#shoutbox-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 82, 119, 0.35);
  border-radius: 10px;
}
#shoutbox-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 82, 119, 0.6);
}

/* Online user badge hover effect */
.online-user-badge {
  transition: var(--transition);
}
.online-user-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(255, 82, 119, 0.15);
  background: rgba(255, 82, 119, 0.08) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 60px;
  }
  .main-content {
    padding: 20px;
  }
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* User Dropdown Navigation Styles */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}

.dropdown-trigger:hover {
  transform: scale(1.05);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 180px;
  background: var(--bg-surface-solid);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  padding: 8px 0;
  z-index: 200;
  backdrop-filter: blur(20px);
  animation: dropdown-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.show {
  display: block;
}

@keyframes dropdown-pop {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(255, 82, 119, 0.1);
  color: var(--primary);
  padding-left: 20px;
}

button.dropdown-item,
.dropdown-logout-btn {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

button.dropdown-item:hover,
.dropdown-logout-btn:hover {
  color: var(--danger);
}

.dropdown-divider {
  height: 2px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Forum Boards & Styles */
.forum-board-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.board-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.board-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(255, 82, 119, 0.08);
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.board-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.board-description {
  font-size: 14px;
  color: var(--text-muted);
}

/* Forum Table & Rows */
.forum-table {
  width: 100%;
  border-collapse: collapse;
}

.forum-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
}

.forum-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 82, 119, 0.08);
  font-size: 14px;
}

.forum-row {
  transition: var(--transition);
}

.forum-row:hover {
  background: rgba(255, 82, 119, 0.03);
}

.thread-link {
  color: var(--text-main);
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
}

.thread-link:hover {
  color: var(--primary);
}

/* Forum Search Container */
.search-bar-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  transition: var(--transition);
}

.search-bar-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 82, 119, 0.2);
}

.search-bar-input {
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 600;
  outline: none;
  font-size: 14px;
  width: 200px;
  transition: var(--transition);
}

.search-bar-input:focus {
  width: 260px;
}

.search-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-icon-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Thread Posts & Replies Cards */
.forum-posts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.post-sidebar {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex-shrink: 0;
  border-right: 2px solid rgba(255, 82, 119, 0.08);
  padding-right: 24px;
}

.post-author-pfp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 15px rgba(255, 82, 119, 0.15);
}

.post-author-name {
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
  font-size: 15px;
}

.post-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-header-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px dashed rgba(255, 82, 119, 0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.post-content {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-content .mention-link,
.mention-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.post-content .mention-link:hover,
.mention-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Profile Comments Section */
.profile-comments-wrapper {
  margin-top: 40px;
  text-align: left;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.comment-card {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

/* Formatting Toolbar */
.formatting-toolbar .toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--primary) !important;
}
.formatting-toolbar .toolbar-btn-upload:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(255, 101, 132, 0.3);
}
/* Header Action Buttons (Bell / Mail) */
.header-action-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.header-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
  background: rgba(255, 82, 119, 0.05);
}

.header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 82, 119, 0.6);
}

/* Notification Popover */
.notif-dropdown {
  position: relative;
  display: inline-block;
}

.notif-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  background: var(--bg-surface-solid);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  z-index: 200;
  backdrop-filter: blur(20px);
  animation: dropdown-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-menu.show {
  display: block;
}

.notif-header {
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-mark-read {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.notif-mark-read:hover {
  color: var(--primary-hover);
}

.notif-items-list {
  max-height: 280px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 82, 119, 0.06);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 12px;
  line-height: 1.4;
}

.notif-item:hover {
  background: rgba(255, 82, 119, 0.05);
}

.notif-item.unread {
  background: rgba(255, 82, 119, 0.08);
}

.notif-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-text {
  font-weight: 600;
  word-break: break-word;
}

.notif-item-time {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}
