/* ============================================
   looksmax.win — Red & Black Theme
   Video Background | Glassmorphism | Shine FX
   ============================================ */

:root {
  --black: #000000;
  --black-light: #050505;
  --black-card: rgba(8, 8, 12, 0.82);
  --black-card-solid: #08080c;
  --black-hover: rgba(16, 16, 22, 0.9);
  --black-border: rgba(255, 255, 255, 0.06);
  --black-border-strong: rgba(255, 255, 255, 0.1);

  --red-900: #1a0000;
  --red-800: #2d0000;
  --red-700: #4a0000;
  --red-600: #7f0000;
  --red-500: #cc0000;
  --red-400: #ff0000;
  --red-300: #ff3333;
  --red-200: #ff6666;
  --red-100: #ff9999;

  --accent: var(--red-400);
  --accent-hover: var(--red-300);
  --accent-subtle: rgba(255, 0, 0, 0.08);
  --accent-glow: rgba(255, 0, 0, 0.25);
  --accent-glow-strong: rgba(255, 0, 0, 0.5);
  --accent-gradient: linear-gradient(135deg, #ff0000, #cc0000, #ff3333);

  --text-primary: #e8e8e8;
  --text-secondary: #8888aa;
  --text-muted: #555577;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: var(--red-500);
  --info: #3b82f6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ============================================
   Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 600px 400px at 50% -100px, rgba(255, 0, 0, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 20%, rgba(255, 0, 0, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 300px 500px at 20% 80%, rgba(200, 0, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.main-content {
  flex: 1;
  position: relative;
  z-index: 3;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 12px var(--accent-glow);
}

::selection {
  background: var(--red-700);
  color: #fff;
}

/* ============================================
   Background Video
   ============================================ */

.bg-video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.6) contrast(1.2) brightness(0.5);
}

.bg-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(10, 0, 0, 0.7) 30%,
      rgba(10, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.8) 70%,
      rgba(0, 0, 0, 0.95) 100%
    );
  z-index: 1;
}

/* Ambient decorative glow */
.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 0, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 6s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--red-800);
  border-radius: 3px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-500);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--red-800) var(--black);
}

/* ============================================
   Animations & Keyframes
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50%      { box-shadow: 0 0 20px var(--accent-glow-strong), 0 0 40px var(--accent-glow); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--black-border-strong); }
  50%      { border-color: var(--red-700); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@keyframes tierShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes roleShine {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@keyframes roleSparkle {
  0%, 100% { box-shadow: 0 0 12px currentColor; }
  25%      { box-shadow: 0 0 24px currentColor, 0 0 40px currentColor; }
  50%      { box-shadow: 0 0 12px currentColor; }
  75%      { box-shadow: 0 0 20px currentColor, 0 0 32px currentColor; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes btnShine {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

@keyframes cardGlowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
  50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.03); }
}

@keyframes floatDrift {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-6px) translateX(3px); }
  50% { transform: translateY(-2px) translateX(-2px); }
  75% { transform: translateY(-8px) translateX(4px); }
}

/* SPA page-content transition */
#page-content {
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
  will-change: opacity, transform, filter;
}

/* Utility animation classes */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.4s ease forwards;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--black-border);
  transition: border-color 0.3s;
}

.navbar:hover {
  border-bottom-color: var(--red-800);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-700), transparent);
  opacity: 0.3;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--accent) !important;
  text-shadow: 0 0 20px var(--accent-glow) !important;
}

.logo-text {
  background: var(--accent-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tierShimmer 4s ease-in-out infinite;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: none;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

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

.nav-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav-profile:hover {
  color: var(--accent) !important;
}

.bell-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.bell-link:hover {
  color: var(--accent) !important;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulseGlow 2s ease-in-out infinite;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.nav-profile:hover .nav-avatar {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.nav-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-username {
  font-size: 14px;
  font-weight: 600;
}

.upgrade-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--radius);
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: var(--red-300) !important;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.upgrade-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s;
}

.upgrade-link:hover::before {
  left: 100%;
}

.upgrade-link:hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(255,0,0,0.05);
  color: var(--accent) !important;
  transform: translateY(-1px);
}

/* ============================================
   Page Container
   ============================================ */

.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
  animation: fadeIn 0.4s ease;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.5s ease, tierShimmer 5s ease-in-out infinite;
}

.page-header {
  text-align: center;
  padding: 40px 20px 32px;
  position: relative;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: tierShimmer 4s ease-in-out infinite;
}

.page-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255, 0, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff0000, #ff3333, #ff6666);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease, tierShimmer 4s ease-in-out infinite;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 12px;
  font-style: italic;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--black-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  animation: cardGlowPulse 4s ease-in-out infinite;
}

.card:hover {
  border-color: rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

/* ============================================
   Categories Grid
   ============================================ */

.categories-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  animation: fadeInUp 0.6s ease;
}

.category-card {
  background: var(--black-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.35s ease;
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-500), transparent);
  transition: left 0.5s ease;
}

.category-card:hover::before {
  left: 0;
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 0, 0, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.category-card:hover {
  border-color: rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.category-card:hover::after {
  opacity: 1;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.category-card:hover h3 {
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
  position: relative;
  z-index: 1;
}

/* ============================================
   Thread List
   ============================================ */

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thread-card {
  background: var(--black-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.thread-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 0 12px var(--accent-glow);
}

.thread-card:hover {
  border-color: rgba(255, 0, 0, 0.15);
  background: rgba(12, 12, 18, 0.9);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.05);
  transform: translateX(4px);
}

.thread-card:hover::after {
  opacity: 0.8;
}

.thread-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.thread-card:hover .thread-card-title {
  color: var(--red-200);
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.15);
}

.thread-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pinned-badge {
  font-size: 14px;
}

/* ============================================
   Buttons with Shine Effects
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover::before {
  left: 125%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #b80000, #ff0000, #cc0000);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 2px 16px rgba(255, 0, 0, 0.3);
  animation: tierShimmer 5s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #cc0000, #ff3333, #ff0000);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 32px rgba(255, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-primary:active {
  box-shadow: 0 1px 8px rgba(255, 0, 0, 0.3);
  transform: scale(0.97) translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--black-border-strong);
}

.btn-secondary::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 0, 0, 0.2);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.08);
}

.btn-danger {
  background: linear-gradient(135deg, #600, #cc0000);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 2px 16px rgba(204, 0, 0, 0.25);
  animation: tierShimmer 5s ease-in-out infinite;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #800, #ff0000);
  background-size: 200% 200%;
  box-shadow: 0 4px 28px rgba(204, 0, 0, 0.45);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #117a32, #16a34a);
  background-size: 200% 200%;
  color: #fff;
  animation: tierShimmer 5s ease-in-out infinite;
}

.btn-success:hover {
  box-shadow: 0 4px 24px rgba(22, 163, 74, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-current {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--black-border-strong);
  cursor: default;
  width: 100%;
  justify-content: center;
}

.btn-current::before {
  display: none;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: 14px;
}

.form-input,
.form-textarea,
.form-file {
  width: 100%;
  padding: 11px 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--black-border-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  transition: all 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1), 0 0 30px rgba(255, 0, 0, 0.06);
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(255, 0, 0, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.form-file {
  padding: 8px;
}

.form-file::file-selector-button {
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--black-border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 10px;
}

.form-file::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 0, 0, 0.2);
  color: var(--accent);
}

/* ============================================
   Flash Messages
   ============================================ */

.flash-container {
  max-width: 900px;
  margin: 16px auto 0;
  padding: 0 20px;
  animation: fadeIn 0.3s ease;
}

.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
  border-left: 3px solid;
  position: relative;
  animation: slideInLeft 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flash-success {
  background: rgba(22, 163, 74, 0.1);
  border-color: var(--success);
  color: #4ade80;
}

.flash-error {
  background: rgba(204, 0, 0, 0.1);
  border-color: var(--danger);
  color: #f87171;
  box-shadow: 0 0 16px rgba(204, 0, 0, 0.05);
}

.flash-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.flash-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: #60a5fa;
}

/* ============================================
   Thread Page
   ============================================ */

.thread-page {
  max-width: 1000px;
}

.thread-header {
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease;
}

.thread-category {
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: text-shadow 0.3s;
}

.thread-category:hover {
  text-shadow: 0 0 16px var(--accent-glow);
}

.thread-title {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.thread-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.thread-content {
  margin-top: 16px;
  padding: 20px;
  background: var(--black-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--black-border);
  line-height: 1.7;
  font-size: 15px;
  transition: all 0.3s;
}

.thread-content:hover {
  border-color: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.04);
}

.mod-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--black-border);
  animation: fadeIn 0.3s ease;
}

/* ============================================
   Posts
   ============================================ */

.posts-section {
  margin-top: 24px;
}

.posts-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.post-card {
  display: flex;
  gap: 16px;
  background: var(--black-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.35s ease;
  animation: fadeInUp 0.4s ease backwards;
}

.post-card:hover {
  border-color: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }

.post-sidebar {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border: 1px solid var(--black-border);
  align-self: flex-start;
  transition: all 0.3s;
}

.post-card:hover .post-sidebar {
  border-color: rgba(255, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

.post-author {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.post-tier-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-username {
  font-weight: 600;
}

.post-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.35s;
}

.post-card:hover .post-avatar {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 20px var(--accent-glow);
}

.post-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 16px var(--accent-glow);
}

.post-username {
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
  text-align: center;
  transition: color 0.2s, text-shadow 0.2s;
}

.post-username:hover {
  text-shadow: 0 0 12px var(--accent-glow);
}

.post-actions-count {
  font-size: 11px;
  color: var(--text-muted);
}

.post-main {
  flex: 1;
  min-width: 0;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-date {
  margin-right: auto;
}

.post-content {
  font-size: 15px;
  line-height: 1.7;
  word-wrap: break-word;
}

.post-content p {
  margin-bottom: 8px;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  transition: box-shadow 0.3s;
}

.post-content img:hover {
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

.post-content code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--black-border);
}

.post-content pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--black-border);
  overflow-x: auto;
  font-size: 13px;
  margin: 8px 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text-secondary);
  margin: 8px 0;
  background: rgba(255, 0, 0, 0.03);
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content ul,
.post-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 16px 0 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.post-content h1 { font-size: 22px; }
.post-content h2 { font-size: 18px; }
.post-content h3 { font-size: 16px; }

.post-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.post-image {
  max-width: 300px;
  max-height: 300px;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.post-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.post-video {
  max-width: 400px;
  max-height: 300px;
  border-radius: var(--radius);
}

/* ============================================
   Reactions
   ============================================ */

.post-reactions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--black-border);
  flex-wrap: wrap;
  position: relative;
}

.reaction-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--black-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.reaction-btn:hover {
  border-color: var(--red-600);
  background: rgba(255, 0, 0, 0.08);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.08);
}

.reaction-btn.active {
  border-color: var(--accent);
  background: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 14px var(--accent-glow);
}

.reaction-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 10px;
}

.reaction-more {
  background: transparent;
  border: 1px dashed var(--black-border);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.reaction-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
  box-shadow: 0 0 10px var(--accent-glow);
}

.emoji-picker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--black-border-strong);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 220px;
  margin-top: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: fadeInScale 0.15s ease;
}

.emoji-picker.hidden {
  display: none;
}

.emoji-pick {
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.emoji-pick:hover {
  background: var(--accent-subtle);
  transform: scale(1.25);
}

/* ============================================
   Badges
   ============================================ */

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

.badge-pinned {
  background: rgba(255, 0, 0, 0.12);
  color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
   Role Badges
   ============================================ */

.post-role-badge,
.profile-role-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  text-align: center;
  display: inline-block;
}

.post-role-member,
.profile-role-member {
  background: linear-gradient(135deg, #1a1a2a, #2a2a3a);
  color: #9090aa;
  border: 1px solid rgba(200, 200, 220, 0.06);
  animation: roleShine 3s ease-in-out infinite;
}

.post-role-moderator,
.profile-role-moderator {
  background: linear-gradient(135deg, rgba(74, 26, 106, 0.6), rgba(124, 58, 237, 0.4));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #c084fc;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.15);
  animation: roleShine 2.5s ease-in-out infinite, roleSparkle 4s ease-in-out infinite;
}

.post-role-admin,
.profile-role-admin {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.6), rgba(100, 100, 100, 0.4));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: roleShine 2s ease-in-out infinite, roleSparkle 3s ease-in-out infinite;
}

/* ============================================
   Tier Shine Effects
   ============================================ */

.tier-shine-bronze {
  background: linear-gradient(135deg, #cd7f32, #e8a85c, #cd7f32);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: tierShimmer 3s ease-in-out infinite;
}

.tier-shine-silver {
  background: linear-gradient(135deg, #808080, #c0c0c0, #e0e0e0, #c0c0c0, #808080);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: tierShimmer 3s ease-in-out infinite;
}

.tier-shine-gold {
  background: linear-gradient(135deg, #b8860b, #ffd700, #fff8dc, #ffd700, #b8860b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: tierShimmer 2s ease-in-out infinite;
}

.tier-shine-ruby {
  background: linear-gradient(135deg, #8b0000, #ff1744, #ff80ab, #ff1744, #8b0000);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: tierShimmer 2.5s ease-in-out infinite;
}

.tier-shine-platinum {
  background: linear-gradient(135deg, #78909c, #b0bec5, #eceff1, #b0bec5, #78909c);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: tierShimmer 2s ease-in-out infinite;
}

.tier-shine-diamond {
  background: linear-gradient(135deg, #00838f, #26c6da, #80deea, #e0f7fa, #80deea, #26c6da, #00838f);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  animation: tierShimmer 1.5s ease-in-out infinite;
}

/* ============================================
   Name Color Support
   ============================================ */

/* ============================================
   Name Color Support
   Force inline color to always win
   ============================================ */

.post-username,
.nav-username,
.profile-username,
.user-card-name {
  transition: color 0.2s, text-shadow 0.2s;
}

.post-username[style*="color:"],
.nav-username[style*="color:"],
.profile-username[style*="color:"],
.user-card-name[style*="color:"] {
  background: none !important;
  animation: none !important;
}

.post-card:hover .post-username[style*="color:"],
.user-card:hover .user-card-name[style*="color:"],
.nav-profile:hover .nav-username[style*="color:"] {
  filter: brightness(1.3);
  text-shadow: 0 0 12px currentColor;
}

/* ============================================
   Profile
   ============================================ */

.profile-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--black-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s;
  animation: fadeInUp 0.5s ease;
}

.profile-header:hover {
  border-color: rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-avatar-section {
  flex-shrink: 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--black-border);
  transition: all 0.4s;
}

.profile-header:hover .profile-avatar {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow);
}

.profile-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 0 20px var(--accent-glow);
}

.profile-bio {
  margin: 8px 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border: 1px solid var(--black-border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
}

.profile-username {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-id {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-role-badge,
.profile-tier {
  display: inline-block;
  margin-top: 4px;
}

.profile-tier {
  font-size: 13px !important;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.settings-pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--black-border);
  transition: border-color 0.3s;
}

.settings-pfp:hover {
  border-color: rgba(255, 0, 0, 0.3);
}

.inline-form {
  display: inline;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Search
   ============================================ */

.search-form {
  margin-bottom: 24px;
  animation: fadeIn 0.4s ease;
}

.search-bar {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
}

.search-filter {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--black-border-strong);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-filter:focus {
  outline: none;
  border-color: var(--red-600);
}

.result-section {
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease;
}

.result-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.user-card:hover {
  border-color: rgba(255, 0, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.05);
  transform: translateX(3px);
}

.user-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.user-card:hover .user-card-avatar {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 14px var(--accent-glow);
}

.user-card-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.user-card-name {
  font-weight: 700;
  transition: color 0.2s;
}

.user-card:hover .user-card-name:not(.has-color) {
  color: var(--accent);
}

.user-card-tier {
  font-size: 12px;
  color: var(--text-muted);
}

.no-results {
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  animation: fadeIn 0.4s ease;
}

.page-link {
  padding: 8px 14px;
  border: 1px solid var(--black-border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.25s;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}

.page-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  margin-top: auto;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--black-border);
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.footer-tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: lowercase;
}

/* ============================================
   Empty / Login Prompts
   ============================================ */

.empty-state,
.no-posts,
.login-prompt {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 15px;
}

.login-prompt a {
  color: var(--accent);
}

/* ============================================
   Settings Grid
   ============================================ */

.settings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* ============================================
   Quick Actions
   ============================================ */

.quick-actions {
  margin-top: 24px;
}

.quick-search {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

/* ============================================
   Admin Layout
   ============================================ */

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.admin-nav {
  background: var(--black-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 16px;
  position: sticky;
  top: 80px;
  align-self: start;
}

.admin-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
}

.admin-nav a.active {
  background: rgba(255, 0, 0, 0.08);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.03);
}

.admin-content {
  min-height: 400px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--black-border);
  font-size: 14px;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   Category Page Header
   ============================================ */

.category-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease;
}

.category-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================
   Notifications
   ============================================ */

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-card {
  background: var(--black-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.3s ease backwards;
}

.notif-card:hover {
  border-color: rgba(255, 0, 0, 0.12);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.04);
  transform: translateX(3px);
}

.notif-unread {
  border-left: 3px solid var(--accent);
}

.notif-link {
  display: block;
}

.notif-message {
  font-size: 14px;
  color: var(--text-primary);
}

.notif-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notif-dot {
  color: var(--accent);
}

/* ============================================
   Tier Cards (Upgrade Page)
   ============================================ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  animation: fadeInUp 0.6s ease;
}

.tier-card {
  background: var(--black-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  animation: cardGlowPulse 4s ease-in-out infinite;
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-500), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255, 0, 0, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.2);
  animation: none;
}

.tier-card:hover::before {
  opacity: 1;
}

.tier-current {
  border-color: rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.1);
}

.tier-card-header {
  padding: 24px 20px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.04) 0%, transparent 100%);
  position: relative;
}

.tier-icon {
  font-size: 40px;
  margin-bottom: 8px;
  display: block;
  transition: all 0.4s;
  filter: grayscale(0.2);
}

.tier-card:hover .tier-icon {
  transform: scale(1.2) rotate(-5deg);
  filter: grayscale(0);
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.tier-price {
  margin-top: 8px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tierShimmer 4s ease-in-out infinite;
}

.price-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tier-card-body {
  padding: 0 20px 16px;
}

.tier-features {
  list-style: none;
  padding: 0;
}

.tier-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--black-border);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--black-border);
  background: rgba(0, 0, 0, 0.3);
}

.buy-btn {
  position: relative;
  overflow: hidden;
}

/* Per-tier top border colors */
.tier-bronze::before { background: linear-gradient(90deg, transparent, #cd7f32, transparent); }
.tier-silver::before { background: linear-gradient(90deg, transparent, #c0c0c0, transparent); }
.tier-gold::before { background: linear-gradient(90deg, transparent, #ffd700, transparent); }
.tier-ruby::before { background: linear-gradient(90deg, transparent, #ff1744, transparent); }
.tier-platinum::before { background: linear-gradient(90deg, transparent, #e5e4e2, transparent); }
.tier-diamond::before { background: linear-gradient(90deg, transparent, #4dd0e1, transparent); }

/* ============================================
   Users Page
   ============================================ */

.users-page {
  max-width: 800px;
}

.users-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

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

.users-count {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-user {
    gap: 8px;
  }

  .nav-username {
    display: none;
  }

  .upgrade-link span {
    display: none;
  }

  .post-card {
    flex-direction: column;
  }

  .post-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
  }

  .post-author {
    flex-direction: row;
    gap: 8px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-bio {
    max-width: 100%;
  }

  .profile-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .search-bar {
    flex-direction: column;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .admin-nav a {
    margin-bottom: 0;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding: 20px 16px;
  }

  .hero {
    padding: 40px 20px;
  }
}
