/* ====================================================
   CHUỐIHAITEN - SUBTLE DARK THEME & FULL MOBILE RESPONSIVE
   Reduced glare / soft glow, Full-screen chat, File upload
   Complete Modal, Forms, Toast, and Navigation Styling
   Icon library: Font Awesome 6 (NO plain text emojis)
   ==================================================== */

:root {
  --chuoi-gold: #f59e0b;
  --chuoi-gold-dark: #d97706;
  --chuoi-bg-dark: #0f0f13;
  --chuoi-card-bg: #181822;
  --chuoi-border: #282835;
  --chuoi-border-subtle: #22222d;
  --chuoi-text-muted: #9494a0;
}

body {
  background-color: var(--chuoi-bg-dark) !important;
  color: #f4f4f5 !important;
  padding-bottom: 70px; /* Space for mobile bottom nav */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

/* Brand Logo Styling */
.chuoi-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.32rem;
  font-weight: 800;
  color: #fbbf24;
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}
.chuoi-brand-logo:hover {
  opacity: 0.92;
}
.chuoi-brand-logo span {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.banana-svg-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease;
}
.chuoi-brand-logo:hover .banana-svg-icon {
  transform: rotate(-10deg) scale(1.1);
}

/* ----------------------------------------------------
   NAVIGATION TABS & BUTTONS
   ---------------------------------------------------- */
.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4d4d8;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: none;
}
.nav-tab-btn:hover {
  background: #232330;
  color: #fff;
}
.nav-tab-btn.active {
  background: #f59e0b;
  color: #121212;
  font-weight: 700;
}
.nav-tab-btn.active i {
  color: #121212;
}

/* Filter Pills */
.filter-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.filter-tab-pill {
  padding: 0.4rem 0.85rem;
  background: #20202c;
  border: 1px solid #323242;
  color: #a1a1aa;
  border-radius: 9999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.filter-tab-pill:hover {
  background: #2b2b3b;
  color: #fff;
}
.filter-tab-pill.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #121212;
  font-weight: 700;
}

/* Generic Button Styles */
.chuoi-btn-primary {
  width: 100%;
  background: #f59e0b;
  color: #121212;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}
.chuoi-btn-primary:hover {
  background: #fbbf24;
}

.chuoi-btn-secondary {
  background: #232330;
  color: #fff;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid #333342;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 0.85rem;
}
.chuoi-btn-secondary:hover {
  background: #2c2c3d;
}
.chuoi-btn-secondary.active {
  background: #f59e0b;
  color: #121212;
  border-color: #f59e0b;
  font-weight: 700;
}

/* ----------------------------------------------------
   MODAL DIALOGS (ẨN MẶC ĐỊNH, KHÔNG BỊ ĐẨY XUỐNG DƯỚI)
   ---------------------------------------------------- */
.chuoi-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(5px) !important;
  z-index: 9999 !important;
  display: none !important; /* QUAN TRỌNG: MẶC ĐỊNH PHẢI ẨN */
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}
.chuoi-modal-overlay.open {
  display: flex !important; /* HIỂN THỊ KHI CÓ CLASS .open */
}

.chuoi-modal-card {
  background: #181822;
  border: 1px solid #2e2e3e;
  border-radius: 0.65rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  color: #f4f4f5;
  position: relative;
  box-sizing: border-box;
  animation: modalSlideUp 0.22s ease-out;
}
@keyframes modalSlideUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chuoi-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #262634;
}
.chuoi-modal-header h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chuoi-modal-close {
  background: #242432;
  border: none;
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.chuoi-modal-close:hover {
  background: #ef4444;
  color: #fff;
}
.chuoi-modal-body {
  padding: 1.25rem;
}

/* Form inputs */
.chuoi-form-group {
  margin-bottom: 1rem;
  text-align: left;
}
.chuoi-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 0.35rem;
}
.chuoi-form-input, .chuoi-form-select, .chuoi-form-textarea {
  width: 100%;
  background: #111117;
  border: 1px solid #2e2e3e;
  border-radius: 0.375rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.chuoi-form-input:focus, .chuoi-form-select:focus, .chuoi-form-textarea:focus {
  border-color: #f59e0b;
}

/* ----------------------------------------------------
   AVATAR BORDER EFFECTS (ÁNH SÁNG DỊU, KHÔNG LÓA)
   ---------------------------------------------------- */
.avatar-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 2.5px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  background: #27272a;
  display: block;
}

.avatar-large .avatar-img {
  width: 72px;
  height: 72px;
}

/* None (Mặc định) */
.border-none {
  border: 1.5px solid #3f3f46;
}

/* 1. Long Vương Hoàng Kim */
.border-dragon {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fef08a, #b45309);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* 2. Thần Long Hỏa Diễm (Con Rồng Lửa Bốc Hỏa) */
.border-dragon_fire {
  background: linear-gradient(135deg, #dc2626, #ea580c, #f59e0b, #991b1b);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.65), 0 0 4px rgba(245, 158, 11, 0.8);
  animation: dragonFireAura 2.5s ease-in-out infinite alternate;
}
@keyframes dragonFireAura {
  0% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.5), 0 0 3px rgba(245, 158, 11, 0.7); }
  100% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.8), 0 0 6px rgba(251, 191, 36, 0.9); }
}

/* 3. Phượng Hoàng Lửa (Cánh Lửa Rực Rỡ) */
.border-phoenix_fire {
  background: linear-gradient(135deg, #f97316, #ef4444, #facc15, #ea580c);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.7), 0 0 5px rgba(239, 68, 68, 0.9);
  animation: phoenixPulse 2s ease-in-out infinite;
}
@keyframes phoenixPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 9px rgba(249, 115, 22, 0.6); }
  50% { transform: scale(1.02); box-shadow: 0 0 16px rgba(239, 68, 68, 0.85), 0 0 7px rgba(250, 204, 21, 0.9); }
}

/* 4. Băng Giá Tuyết Hoa (Có Hình Hoa Tuyết Lấp Lánh) */
.border-frost_blizzard {
  position: relative;
  background: linear-gradient(135deg, #38bdf8, #0284c7, #e0f2fe, #0ea5e9);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 0 4px rgba(224, 242, 254, 0.9);
}
.border-frost_blizzard::after {
  content: '❄';
  position: absolute;
  top: -6px;
  right: -5px;
  font-size: 11px;
  color: #e0f2fe;
  text-shadow: 0 0 5px #38bdf8, 0 0 8px #0284c7;
  animation: snowflakeSpin 6s linear infinite;
  pointer-events: none;
}
.border-frost_blizzard::before {
  content: '❄';
  position: absolute;
  bottom: -4px;
  left: -4px;
  font-size: 9px;
  color: #bae6fd;
  text-shadow: 0 0 4px #0284c7;
  animation: snowflakeSpin 8s linear infinite reverse;
  pointer-events: none;
}
@keyframes snowflakeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 5. Lôi Thần Điện Quang (Sấm Sét Chớp Giật) */
.border-thunder_god {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4, #c084fc);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7), 0 0 5px rgba(6, 182, 212, 0.8);
  animation: thunderFlicker 1.8s ease infinite;
}
@keyframes thunderFlicker {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.6), 0 0 3px rgba(6, 182, 212, 0.7); }
  25% { box-shadow: 0 0 15px rgba(192, 132, 252, 0.9), 0 0 7px #38bdf8; }
  50% { box-shadow: 0 0 9px rgba(139, 92, 246, 0.5); }
  75% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.85), 0 0 6px #a855f7; }
}

/* 6. Anh Đào Dạ Nguyệt (Hoa Anh Đào Rơi) */
.border-sakura_bloom {
  position: relative;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fbcfe8, #be185d);
  box-shadow: 0 0 9px rgba(236, 72, 153, 0.6), 0 0 4px rgba(251, 207, 232, 0.8);
}
.border-sakura_bloom::after {
  content: '🌸';
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 11px;
  animation: sakuraSway 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sakuraSway {
  0% { transform: rotate(-10deg) scale(0.9); }
  100% { transform: rotate(15deg) scale(1.1); }
}

/* 7. Hắc Ám Ma Vương (Hư Không Huyền Bí) */
.border-dark_void {
  background: linear-gradient(135deg, #581c87, #1e1b4b, #7c3aed, #000000);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.7), inset 0 0 4px #000;
  animation: voidPulse 3s ease-in-out infinite;
}
@keyframes voidPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(124, 58, 237, 0.6); }
  50% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.85), 0 0 5px #000; }
}

/* 8. Cyberpunk Neon */
.border-neon {
  background: linear-gradient(135deg, #0284c7, #6366f1, #a855f7);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* 9. Cầu Vồng Tối Thượng */
.border-rainbow {
  background: conic-gradient(from 0deg, #e11d48, #d97706, #16a34a, #0284c7, #9333ea, #e11d48);
  box-shadow: 0 0 8px rgba(147, 51, 234, 0.45);
  animation: rainbowSpin 4s linear infinite;
}
@keyframes rainbowSpin {
  100% { filter: hue-rotate(360deg); }
}

/* 10. Kim Cương Băng Lam */
.border-diamond {
  background: linear-gradient(135deg, #7dd3fc, #0284c7, #bae6fd);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.5);
}

/* ----------------------------------------------------
   DANH HIỆU (BADGES DỊU MẮT)
   ---------------------------------------------------- */
.chuoi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Yếu sinh lí (Mặc định) */
.badge-yeu-sinh-li {
  background: #272018;
  border: 1px solid #78350f;
  color: #f59e0b;
}

/* Lọ vương (Tím Bạc Thanh Lịch) */
.badge-lo-vuong {
  background: #201a2c;
  border: 1px solid #7e22ce;
  color: #d8b4fe;
}
.badge-lo-vuong i {
  color: #c084fc;
}

/* Lọ thánh chí tôn (Vàng Kim Sang Trọng) */
.badge-lo-thanh {
  background: linear-gradient(135deg, #b45309, #d97706);
  border: 1px solid #fef08a;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.badge-lo-thanh i {
  color: #fef08a;
}

/* ----------------------------------------------------
   GIAO DIỆN CHAT TỔNG TOÀN MÀN HÌNH (FULLSCREEN CHAT)
   ---------------------------------------------------- */
.fullscreen-chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  min-height: 500px;
  background: #14141b;
  border: 1px solid #282835;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .fullscreen-chat-container {
    height: calc(100vh - 135px);
    min-height: 420px;
    border-radius: 0.5rem;
    border-left: none;
    border-right: none;
  }
}

.chat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #191923;
  border-bottom: 1px solid #282835;
}

.chat-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #0f0f14;
}

@media (max-width: 640px) {
  .chat-messages-area {
    padding: 0.75rem;
    gap: 0.65rem;
  }
}

.chat-bubble-card {
  display: flex;
  gap: 0.75rem;
  background: #181821;
  border: 1px solid #252533;
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  transition: background 0.15s ease;
}
.chat-bubble-card:hover {
  background: #1d1d28;
}

.chat-bubble-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chat-bubble-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-bubble-time {
  font-size: 0.72rem;
  color: #71717a;
}

.chat-bubble-text {
  font-size: 0.9rem;
  color: #e4e4e7;
  line-height: 1.45;
  word-break: break-word;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #191923;
  border-top: 1px solid #282835;
}

@media (max-width: 640px) {
  .chat-input-bar {
    padding: 0.6rem 0.75rem;
  }
}

.chat-input-field {
  flex: 1;
  background: #101016;
  border: 1px solid #323242;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-field:focus {
  border-color: #f59e0b;
}

.chat-send-action-btn {
  background: #f59e0b;
  color: #121212;
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chat-send-action-btn:hover {
  background: #fbbf24;
}

/* ----------------------------------------------------
   FILE UPLOAD WIDGET (CHỌN FILE TRÊN MÁY)
   ---------------------------------------------------- */
.file-upload-zone {
  border: 2px dashed #3a3a4c;
  background: #13131a;
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.file-upload-zone:hover {
  border-color: #f59e0b;
  background: #181822;
}
.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-upload-icon {
  font-size: 2rem;
  color: #f59e0b;
  margin-bottom: 0.5rem;
}
.file-upload-text {
  font-size: 0.88rem;
  color: #d4d4d8;
  font-weight: 600;
}
.file-upload-subtext {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.25rem;
}
.file-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e1e2c;
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------
   MOBILE BOTTOM BAR (THANH ĐIỀU HƯỚNG ĐIỆN THOẠI)
   ---------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #181820;
  border-top: 1px solid #272732;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-sizing: border-box;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 0.7rem;
  gap: 0.2rem;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 0.25rem 0;
}
.mobile-nav-item i {
  font-size: 1.1rem;
}
.mobile-nav-item.active {
  color: #f59e0b;
  font-weight: 700;
}

/* Progress Box & Bar (Sắc sảo & dịu mắt) */
.progress-box {
  background: #14141a;
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid #272732;
  margin-top: 1rem;
}
.progress-bar-track {
  width: 100%;
  height: 10px;
  background-color: #242430;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin: 0.5rem 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 9999px;
  transition: width 0.5s ease;
}
.progress-milestones {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #71717a;
}

/* Reader & Video Player styling */
.comic-reader-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}
.comic-page-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.reader-toolbar {
  position: sticky;
  top: 60px;
  z-index: 30;
  background: rgba(24, 24, 34, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #2e2e40;
}

.video-player-container {
  max-width: 960px;
  margin: 0 auto;
}
.video-player-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.video-player-wrapper video, .video-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Notifications / Toast */
.chuoi-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10000;
  padding: 0.75rem 1.2rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.chuoi-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.chuoi-toast-success {
  background: #059669;
}
.chuoi-toast-error {
  background: #dc2626;
}
.chuoi-toast-info {
  background: #2563eb;
}
.chuoi-toast-badge {
  background: #b45309;
}

/* ----------------------------------------------------
   HIỆU ỨNG TRANG TRÍ TÊN TÀI KHOẢN (NAME STYLES)
   ---------------------------------------------------- */
.name-style-none {
  color: inherit;
}

/* 1. Hỏa Long Thần */
.name-style-dragon_fire {
  background: linear-gradient(135deg, #ef4444, #f97316, #fbbf24, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.75));
  letter-spacing: 0.2px;
}

/* 2. Phượng Hoàng Lửa */
.name-style-phoenix_fire {
  background: linear-gradient(135deg, #f97316, #facc15, #ea580c, #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(249, 115, 22, 0.8));
  animation: phoenixNameGlow 2.5s ease-in-out infinite alternate;
}
@keyframes phoenixNameGlow {
  0% { filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.6)); }
  100% { filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.9)); }
}

/* 3. Băng Tuyết Hoa (Hoa Tuyết Tinh Thể) */
.name-style-frost_blizzard {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8, #e0f2fe, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.8));
  animation: frostShimmer 3s ease infinite alternate;
}
@keyframes frostShimmer {
  0% { filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.6)); }
  100% { filter: drop-shadow(0 0 7px rgba(224, 242, 254, 0.95)); }
}

/* 4. Lôi Thần Điện Quang (Sấm Sét Chớp Giật) */
.name-style-thunder_god {
  background: linear-gradient(135deg, #c084fc, #818cf8, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.8));
}

/* 5. Anh Đào Hồng Diễm (Hoa Đào Rơi) */
.name-style-sakura_bloom {
  background: linear-gradient(135deg, #fbcfe8, #f43f5e, #ec4899, #fce7f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.7));
}

/* 6. Hắc Ám Ma Thần */
.name-style-dark_void {
  background: linear-gradient(135deg, #c084fc, #a855f7, #581c87, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.85));
}

/* 7. Hoàng Kim (Gold Glow) */
.name-style-gold {
  background: linear-gradient(135deg, #ffe066, #f59e0b, #fffbeb, #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

/* 8. Rực Lửa */
.name-style-fire {
  background: linear-gradient(135deg, #ff4500, #ff8c00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 3px rgba(255, 69, 0, 0.5));
}

/* 9. Cyber Neon */
.name-style-neon {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
}

/* 10. Cầu Vồng Vũ Trụ */
.name-style-rainbow {
  background: linear-gradient(90deg, #f43f5e, #fb923c, #facc15, #4ade80, #38bdf8, #a855f7, #f43f5e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShine 3s linear infinite;
  font-weight: 800 !important;
  display: inline-block;
}
@keyframes rainbowShine {
  to { background-position: 200% center; }
}

/* 11. Ngân Hà Tím */
.name-style-galaxy {
  background: linear-gradient(135deg, #e879f9, #a855f7, #6366f1, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  display: inline-block;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

/* ----------------------------------------------------
   TIỀN TỆ XU & TƯƠNG TÁC BÀI ĐĂNG (XU PILL & AUTHOR BAR)
   ---------------------------------------------------- */
.user-coins-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.user-coins-pill:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.45));
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}
.user-coins-pill i {
  color: #fbbf24;
}

/* Author Info & Post Engagement Bar */
.post-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #191924;
  border: 1px solid #282838;
  border-radius: 0.5rem;
  margin: 0.85rem 0;
}
.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.post-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Like & Follow Buttons */
.action-btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: #232332;
  border: 1px solid #353545;
  color: #d4d4d8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn-like:hover {
  border-color: #ef4444;
  color: #fca5a5;
  background: #2a2028;
}
.action-btn-like.liked {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
  font-weight: 700;
}
.action-btn-like.liked i {
  color: #ef4444;
  animation: heartPulse 0.3s ease;
}
@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.action-btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: #232332;
  border: 1px solid #353545;
  color: #d4d4d8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.action-btn-follow:hover {
  border-color: #3b82f6;
  color: #93c5fd;
  background: #1e2538;
}
.action-btn-follow.following {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #60a5fa;
  font-weight: 700;
}

/* Cosmetic Shop Card Additions */
.cosmetic-price-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0;
}
.cosmetic-buy-btn {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #121212;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  transition: all 0.2s;
}
.cosmetic-buy-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* ----------------------------------------------------
   KHO ĐỒ TRANG TRÍ HỒ SƠ (COSMETICS PICKER GRID)
   ---------------------------------------------------- */
.cosmetics-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 1.15rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
}

.cosmetic-card {
  background: #14141c;
  border: 1.5px solid #282836;
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
}

.cosmetic-card:hover:not(.locked) {
  border-color: #f59e0b;
  background: #1c1c27;
  transform: translateY(-2px);
}

.cosmetic-card.selected {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.cosmetic-card.locked {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #262633;
  background: #111116;
}

.cosmetic-card.locked:hover {
  border-color: #ef4444;
}

.cosmetic-preview-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.cosmetic-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 0.25rem;
}

.cosmetic-status-tag {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
}

.cosmetic-status-tag.owned {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.cosmetic-status-tag.locked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.cosmetic-status-tag.active-equipped {
  background: #10b981;
  color: #fff;
}

/* Avatar Upload trigger */
.avatar-upload-trigger {
  position: relative;
  cursor: pointer;
}
.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-size: 0.7rem;
  gap: 0.2rem;
}
.avatar-upload-trigger:hover .avatar-upload-overlay {
  opacity: 1;
}
