/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Optimized transitions - only on interactive elements */
a, button, .btn-primary, .btn-secondary, .nav-center a, 
.dropdown-content, .social-icon, .note-card, .avatar, 
.login-btn, .note-list-item, .step, .page-list li {
  transition: all 0.2s ease-out;
}
/* Wait Time Options - Larger Cards */
.wait-time-options {
  margin-top: 1.5rem;
  background: var(--bg-input);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.wait-time-options h4 {
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  flex-wrap: wrap;
}

.boost-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--success);
  border-radius: 30px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  margin-left: 0.5rem;
}

.wait-time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .wait-time-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .wait-time-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.wait-time-option-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 55px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wait-time-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.wait-time-option-card:hover::before {
  transform: scaleX(1);
}

.wait-time-option-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

.wait-time-option-card.selected {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.wait-time-option-card.selected .wait-time-value {
  color: white;
}

.wait-time-option-card.selected .wait-time-multiplier {
  color: rgba(255, 255, 255, 0.95);
}

.wait-time-option-card.selected .boost-text {
  color: #fff3cd;
  background: rgba(255, 255, 255, 0.2);
}

.wait-time-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wait-time-value i {
  font-size: 1.1rem;
}

.wait-time-multiplier {
  font-size: 0.85rem;
  color: var(--success);
  margin-top: 0.35rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.boost-text {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 30px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.35rem;
  color: var(--success);
}

.wait-time-option-card.selected .boost-text {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Mobile optimization */
@media (max-width: 640px) {
  .wait-time-options {
    padding: 1rem;
  }
  
  .wait-time-options h4 {
    font-size: 1rem;
  }
  
  .wait-time-option-card {
    padding: 1rem 0.75rem;
    min-height: 85px;
    border-radius: 40px;
  }
  
  .wait-time-value {
    font-size: 0.9rem;
  }
  
  .wait-time-value i {
    font-size: 0.9rem;
  }
  
  .wait-time-multiplier {
    font-size: 0.7rem;
  }
  
  .boost-text {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .wait-time-option-card {
    padding: 0.85rem 0.5rem;
    min-height: 75px;
  }
  
  .wait-time-value {
    font-size: 0.8rem;
  }
  
  .wait-time-multiplier {
    font-size: 0.65rem;
  }
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== DARK THEME (DEFAULT) ===== */
body.theme-dark {
  background-color: #0a0a0a;
  color: #e0e0e0;
}

body.theme-dark header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

body.theme-dark footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

body.theme-dark a {
  color: #ffffff;
  text-decoration: none;
}

body.theme-dark a:hover {
  color: #8b5cf6;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark details,
body.theme-dark select {
  background: #141414;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
}

body.theme-dark button:not(.theme-toggle) {
  background: #1e1e1e;
  color: white;
  border: 1px solid #333;
  cursor: pointer;
}

body.theme-dark button:hover:not(.theme-toggle) {
  background: #2a2a2a;
  border-color: #8b5cf6;
}

body.theme-dark .btn-secondary {
  background: transparent;
  border: 1px solid #333;
  color: white;
}

body.theme-dark .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
}

body.theme-dark .btn-secondary.active {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

body.theme-dark .btn-primary {
  background: #8b5cf6;
  color: white;
  border: 1px solid #8b5cf6;
}

body.theme-dark .btn-primary:hover {
  background: #7c4dff;
  border-color: #7c4dff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* ===== LIGHT THEME ===== */
body.theme-light {
  background-color: #f8fafc;
  color: #1e293b;
}

body.theme-light header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-light footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-light a {
  color: #1e293b;
}

body.theme-light a:hover {
  color: #8b5cf6;
}

body.theme-light input,
body.theme-light textarea,
body.theme-light details,
body.theme-light select {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

body.theme-light button:not(.theme-toggle) {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

body.theme-light button:hover:not(.theme-toggle) {
  background: #f8fafc;
  border-color: #8b5cf6;
}

body.theme-light .btn-secondary {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

body.theme-light .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: #8b5cf6;
}

body.theme-light .btn-secondary.active {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

body.theme-light .btn-primary {
  background: #8b5cf6;
  color: white;
  border: 1px solid #8b5cf6;
}

body.theme-light .btn-primary:hover {
  background: #7c4dff;
  border-color: #7c4dff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* ===== PERFECT HEADER - FIXED FOR ALL DEVICES ===== */
header {
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  will-change: transform;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  min-width: 120px;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  gap: 1rem;
}

.nav-left a, .nav-center a, .nav-right a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-center a {
  color: inherit;
  opacity: 0.9;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.95rem;
}

.nav-center a:hover {
  opacity: 1;
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

.nav-center a i {
  font-size: 1.1rem;
  color: #8b5cf6;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.6rem;
  color: #8b5cf6;
  -webkit-text-fill-color: initial;
}

/* ===== DESKTOP SIDEBAR (≥1200px) - PERFECT & SMOOTH ===== */
@media (min-width: 1200px) {
  header {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 72px !important;
    height: 100vh !important;
    padding: 2rem 0 !important;
    border-right: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-bottom: none !important;
    overflow: hidden !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
  }

  header:hover {
    width: 260px !important;
    box-shadow: 4px 0 30px rgba(139, 92, 246, 0.1) !important;
  }

  header nav {
    flex-direction: column !important;
    height: 100% !important;
    padding: 0 0.75rem !important;
    gap: 0 !important;
  }

/* Replace this entire block in your desktop sidebar section */

/* Nav Left - Always centered */
header .nav-left {
  width: 100% !important;
  padding: 0 !important;
  margin-bottom: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Logo container - Always centered */
header .logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Logo icon */
header .logo i {
  font-size: 1.6rem !important;
  margin: 0 !important;
}

/* Logo text - hidden when collapsed */
header .logo span {
  opacity: 0 !important;
  width: 0 !important;
  margin-left: 0 !important;
  transition: opacity 0.2s ease, width 0.25s ease !important;
}

/* When expanded - keep centered */
header:hover .nav-left {
  justify-content: center !important;  /* Keep centered */
}
/* ===== USER PROFILE WITH DROPDOWN ===== */

/* User profile link container */
header .dropdown > .user-profile-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Center when collapsed */
  width: 100% !important;
  padding: 0.5rem 0 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: #e0e0e0 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  gap: 0 !important;
}
/* Username text - hidden when collapsed */
header .dropdown .username-text {
  opacity: 0 !important;
  width: 0 !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: opacity 0.2s ease, width 0.25s ease !important;
}

/* User badge - hidden when collapsed */
header .dropdown .user-badge {
  opacity: 0 !important;
  width: 0 !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  transition: opacity 0.2s ease, width 0.25s ease !important;
  background: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
  border: 1px solid #8b5cf6 !important;
  border-radius: 30px !important;
  padding: 0.2rem 0.8rem !important;
}
/* Avatar image */
header .dropdown .avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  object-fit: cover !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  transition: border-color 0.2s ease !important;
}

/* Username text - hidden when collapsed */
header .dropdown .username-text {
  opacity: 0 !important;
  width: 0 !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: opacity 0.2s ease, width 0.25s ease !important;
}
/* Particle System for Badges */
.badge-container {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.particle-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 60px;
  min-height: 30px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.badge-container:hover .particle-canvas {
  opacity: 1;
}

.user-badge {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(2px);
}

.user-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px currentColor;
}

/* Particle animations */
@keyframes float-particle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Different sizes for different badge levels */
.badge-container[data-level="13"] .particle-canvas { opacity: 0.9; } /* Void */
.badge-container[data-level="12"] .particle-canvas { opacity: 0.85; } /* Godly */
.badge-container[data-level="11"] .particle-canvas { opacity: 0.8; } /* Immortal */
.badge-container[data-level="10"] .particle-canvas { opacity: 0.75; } /* Mythic */
.badge-container[data-level="9"] .particle-canvas { opacity: 0.7; } /* Legend */
input, textarea, button, details {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
/* Tier-specific particle effects */
.badge-container[data-level="13"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #000) drop-shadow(0 0 15px #8b5cf6);
} /* Void - dark with purple glow */

.badge-container[data-level="12"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #aa00ff) drop-shadow(0 0 15px gold);
} /* Godly - purple with gold sparkles */

.badge-container[data-level="11"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #ff0000) drop-shadow(0 0 20px #ffaa00);
} /* Immortal - red with orange flame effect */

.badge-container[data-level="10"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #ff5500) drop-shadow(0 0 20px #ffaa00);
} /* Mythic - orange fire */

.badge-container[data-level="9"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #ffaa00) drop-shadow(0 0 12px #ffd700);
} /* Legend - gold sparkles */

.badge-container[data-level="8"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #ff80ff) drop-shadow(0 0 12px #ff00ff);
} /* Grandmaster - pink/purple */

.badge-container[data-level="7"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #aa80ff) drop-shadow(0 0 12px #8b5cf6);
} /* Master - purple */

.badge-container[data-level="6"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #b9f2ff) drop-shadow(0 0 12px #00ffff);
} /* Diamond - cyan */

.badge-container[data-level="5"] .particle-canvas { 
  filter: drop-shadow(0 0 8px #e5e4e2) drop-shadow(0 0 10px #ffffff);
} /* Platinum - silver/white */

.badge-container[data-level="4"] .particle-canvas { 
  filter: drop-shadow(0 0 6px #ffd700);
} /* Gold - gold */

.badge-container[data-level="3"] .particle-canvas { 
  filter: drop-shadow(0 0 6px #c0c0c0);
} /* Silver - silver */

.badge-container[data-level="2"] .particle-canvas { 
  filter: drop-shadow(0 0 4px #b87333);
} /* Copper - copper */

.badge-container[data-level="1"] .particle-canvas { 
  filter: drop-shadow(0 0 4px #cd7f32);
} /* Bronze - bronze */
input:focus, textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
/* ===== DROPDOWN CONTENT ===== */
/* ===== DROPDOWN CONTENT - FIXED WITH HOVER BRIDGE ===== */
header .dropdown {
  position: relative !important;
}

header .dropdown-content {
  position: fixed !important;
  left: 120px !important;     /* Adjust this value to move left/right */
transform: translateY(-10px) !important;  /* Remove the X translation */
  bottom: 80px !important;
  min-width: 220px !important;
  background: #141414 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 16px !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  z-index: 1001 !important;
  overflow: hidden !important;
  padding: 0.5rem 0 !important;
  pointer-events: none !important; /* Prevents hover issues initially */
}

/* Show dropdown when hovering profile OR the dropdown itself */
header .dropdown:hover .dropdown-content,
header .dropdown-content:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
  pointer-events: auto !important; /* Enable interaction when visible */
  transition-delay: 0s !important;
}

/* Add delay when hiding to give time to move mouse */
header .dropdown:not(:hover) .dropdown-content {
  transition-delay: 0.3s !important; /* 0.3 second delay before hiding */
}

/* Arrow pointing to profile */
header .dropdown-content::after {
  content: '';
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 8px solid #141414 !important;
}

/* Light theme arrow */
body.theme-light header .dropdown-content::after {
  border-top-color: #ffffff !important;
}

/* Dropdown items */
header .dropdown-content a {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem 1.25rem !important;
  color: #e0e0e0 !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important;
}

header .dropdown-content a i {
  width: 20px !important;
  color: #8b5cf6 !important;
  font-size: 1rem !important;
}

header .dropdown-content a:hover {
  background: rgba(139, 92, 246, 0.15) !important;
}

/* Logout item special color */
header .dropdown-content a.logout {
  color: #ef4444 !important;
  border-top: 1px solid #2a2a2a !important;
  margin-top: 0.25rem !important;
}

header .dropdown-content a.logout i {
  color: #ef4444 !important;
}

header .dropdown-content a.logout:hover {
  background: rgba(239, 68, 68, 0.15) !important;
}

/* Light theme support */
body.theme-light header .dropdown-content {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

body.theme-light header .dropdown-content a {
  color: #1e293b !important;
}

body.theme-light header .dropdown-content a i {
  color: #8b5cf6 !important;
}

body.theme-light header .dropdown-content a.logout {
  color: #ef4444 !important;
  border-top-color: #e2e8f0 !important;
}

/* ===== HOVER STATES ===== */

/* Hover effect for avatar when collapsed */
header .dropdown:hover .avatar {
  border-color: #8b5cf6 !important;
}

/* ===== EXPANDED STATE ===== */
/* ===== EXPANDED STATE ===== */
header:hover .dropdown > .user-profile-link {
  justify-content: flex-start !important;
  padding: 0.5rem 0.5rem !important;
  gap: 0.75rem !important;
  background: rgba(139, 92, 246, 0.05) !important;
}

header:hover .dropdown .username-text {
  opacity: 1 !important;
  width: auto !important;
  margin-left: 0 !important;
}

header:hover .dropdown .user-badge {
  opacity: 1 !important;
  width: auto !important;
  margin-left: 0.5rem !important;
}

header:hover .dropdown .avatar {
  border-color: #8b5cf6 !important;
}

/* Hover effect when expanded */
header:hover .dropdown > .user-profile-link:hover {
  background: rgba(139, 92, 246, 0.1) !important;
  transform: translateX(4px) !important;
}
header:hover .logo {
  justify-content: center !important;  /* Keep centered */
  gap: 0.5rem !important;
  width: 100% !important;
}

header:hover .logo span {
  opacity: 1 !important;
  width: auto !important;
  margin-left: 0.5rem !important;  /* Add spacing between icon and text */
}

  header:hover .logo span {
    opacity: 1 !important;
  }

  header .nav-center {
    flex-direction: column !important;
    width: 100% !important;
    flex: 1 !important;
    gap: 0.25rem !important;
    padding: 0 !important;
  }

  header .nav-center a {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border-radius: 12px !important;
    justify-content: flex-start !important;
    transform: none !important;
    margin: 0 !important;
  }

  header .nav-center a span {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    margin-left: 0.5rem !important;
  }

  header:hover .nav-center a span {
    opacity: 1 !important;
  }

  header .nav-center a:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    transform: translateX(4px) !important;
  }

  header .nav-right {
    flex-direction: column !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 1rem 0 0.5rem !important;
    gap: 0.25rem !important;
    border-top: 1px solid rgba(139, 92, 246, 0.15) !important;
  }

  /* Visitor counter */
/* ===== VISITOR COUNTER - DOT+NUMBER WHEN COLLAPSED, FULL WHEN EXPANDED ===== */
/* ===== VISITOR COUNTER - COMPLETELY FIXED ===== */

/* Visitor counter container */
header .visitor-counter-btn {
  width: 100% !important;
  padding: 0.875rem 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Center when collapsed */
  border-radius: 12px !important;
  color: #e0e0e0 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  gap: 0 !important;
}

/* Green dot */
header .visitor-counter-btn .green-dot {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
  animation: pulse-green 2s infinite !important;
  margin-right: 4px !important;
  flex-shrink: 0 !important;
}

/* Visitor count number */
header .visitor-counter-btn .count-number {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #e0e0e0 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* COUNT TEXT - FORCE HIDDEN WHEN COLLAPSED */
header .visitor-counter-btn .count-text {
  display: none !important;  /* Force hide */
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  position: absolute !important; /* Remove from layout */
  pointer-events: none !important;
}

/* Hover effect when collapsed */
header .visitor-counter-btn:hover {
  background: rgba(139, 92, 246, 0.1) !important;
}

header .visitor-counter-btn:hover .count-number {
  color: #8b5cf6 !important;
}

/* ===== EXPANDED STATE ===== */
header:hover .visitor-counter-btn {
  justify-content: flex-start !important;
  padding: 0.875rem 1rem !important;
  gap: 0.5rem !important;
  background: rgba(139, 92, 246, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.1) !important;
}

/* SHOW COUNT TEXT WHEN EXPANDED - OVERRIDE ALL HIDDEN PROPERTIES */
header:hover .visitor-counter-btn .count-text {
  display: inline-block !important;  /* Force show */
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  position: relative !important;
  pointer-events: auto !important;
  color: #a0a0a0 !important;
  font-size: 0.9rem !important;
  margin-left: 2px !important;
}
/* Mobile menu visitor counter - ALWAYS SHOW TEXT */
.mobile-visitor-counter .count-text {
  display: inline-block !important;
  color: #a0a0a0 !important;
  margin-left: 2px !important;
}

.mobile-visitor-counter .count-number {
  color: #8b5cf6 !important;
  font-weight: 600 !important;
}
header:hover .visitor-counter-btn .count-number {
  color: #8b5cf6 !important;
}

/* Hover effect when expanded */
header:hover .visitor-counter-btn:hover {
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: #8b5cf6 !important;
  transform: translateY(-2px) !important;
}

/* ===== EXPANDED STATE ===== */
header:hover .visitor-counter-btn {
  justify-content: flex-start !important;
  padding: 0.875rem 1rem !important; /* Add padding back when expanded */
  gap: 0.5rem !important;
  background: rgba(139, 92, 246, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.1) !important;
}

header:hover .visitor-counter-btn .online-text {
  opacity: 1 !important;
  width: auto !important;
  margin-left: 2px !important;
}

header:hover .visitor-counter-btn #visitorCount {
  color: #8b5cf6 !important;
}

/* Optional: Different hover effect when expanded */
header:hover .visitor-counter-btn:hover {
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: #8b5cf6 !important;
  transform: translateY(-2px) !important;
}

  /* User dropdown */
  header .dropdown {
    width: 100% !important;
    position: relative !important;
  }

  header .dropdown > a {
    padding: 0.5rem 1rem !important;
    justify-content: flex-start !important;
    border-radius: 12px !important;
  }

  header .dropdown > a span {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
  }

  header:hover .dropdown > a span {
    opacity: 1 !important;
  }

  header .dropdown-content {
    position: fixed !important;
    left: 120px !important;     /* Adjust this value to move left/right */
transform: translateY(-10px) !important;  /* Remove the X translation */
    bottom: 80px !important;
    min-width: 200px !important;
    background: #141414 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    z-index: 1001 !important;
  }

  body.theme-light header .dropdown-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
  }

  header .dropdown:hover .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Login button */
/* ===== LOGIN BUTTON - ICON ONLY WHEN COLLAPSED, FULL WHEN EXPANDED ===== */

/* Login button container */
header .login-btn {
  width: 100% !important;
  padding: 0.875rem 0 !important; /* Remove horizontal padding, will be added on hover */
  justify-content: center !important; /* Center the icon when collapsed */
  background: #2a2a2a !important; /* Cool dark grey */
  border: 1px solid #404040 !important; /* Slightly lighter border */
  border-radius: 12px !important;
  color: #e0e0e0 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Login button icon */
header .login-btn i {
  font-size: 1.2rem !important;
  margin: 0 !important;
  color: #a0a0a0 !important; /* Lighter grey for icon */
  transition: color 0.2s ease !important;
}

/* Login button text - hidden when collapsed */
header .login-btn .btn-text {
  opacity: 0 !important;
  width: 0 !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  transition: opacity 0.2s ease, width 0.25s ease !important;
}

/* Hover effect for collapsed state */
header .login-btn:hover {
  background: #3a3a3a !important;
  border-color: #8b5cf6 !important;
}

header .login-btn:hover i {
  color: #8b5cf6 !important;
}

/* ===== EXPANDED STATE ===== */
header:hover .login-btn {
  justify-content: flex-start !important;
  padding: 0.875rem 1rem !important; /* Add padding back when expanded */
  gap: 0.5rem !important;
  background: linear-gradient(135deg, #2a2a2a, #333333) !important; /* Gradient grey */
}

header:hover .login-btn .btn-text {
  opacity: 1 !important;
  width: auto !important;
  margin-left: 0 !important;
}

header:hover .login-btn i {
  color: #8b5cf6 !important; /* Purple icon when expanded */
}

/* Optional: Different hover effect when expanded */
header:hover .login-btn:hover {
  background: linear-gradient(135deg, #333333, #3a3a3a) !important;
  border-color: #8b5cf6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2) !important;
}

  /* Hide mobile elements */
  header .hamburger-menu,
  header .mobile-menu,
  header .mobile-menu-overlay {
    display: none !important;
  }

  /* Main content offset */
  body {
    padding-left: 72px !important;
    transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .container {
    max-width: calc(1200px - 2rem) !important;
    margin: 2rem auto !important;
    width: 100% !important;
  }
}
@media (max-width: 1199px) {
  .hamburger-menu {
    display: flex !important; /* Show hamburger on mobile */
  }
  
  .mobile-menu {
    display: block !important; /* Ensure mobile menu container exists */
  }
  
  .desktop-only {
    display: none !important;
  }
}

/* ===== MOBILE & TABLET STYLES (≤1199px) ===== */
@media (max-width: 1199px) {
  body {
    padding-left: 0 !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: flex !important;
    position: relative;
    z-index: 1001;
  }

  /* Header adjustments */
  header {
    position: sticky !important;
    width: 100% !important;
    height: auto !important;
    padding: 0.75rem 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
  }

  header nav {
    flex-direction: row !important;
    height: auto !important;
  }

  header .nav-left {
    width: auto !important;
    margin-bottom: 0 !important;
  }

  header .nav-center,
  header .nav-right {
    display: none !important;
  }

  /* Mobile menu elements */
  .mobile-menu-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #141414;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  }

  body.theme-light .mobile-menu {
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu.open {
    right: 0 !important;
  }

  .container {
    max-width: 100% !important;
    margin: 1.5rem auto !important;
    padding: 0 1rem !important;
  }
}
/* ===== HAMBURGER MENU ===== */
/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  margin-left: auto;
  display: none; /* Hidden by default, shown in mobile */
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #141414;
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

body.theme-light .mobile-menu {
  background: #ffffff;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  display: block;
  right: 0;
}

.mobile-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  justify-content: flex-end;
}

.close-menu {
  background: transparent !important;
  border: none !important;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: auto;
  line-height: 1;
  color: inherit;
}

.close-menu:hover {
  transform: scale(1.1);
}

.mobile-menu-content {
  padding: 1.5rem;
}

.mobile-visitor-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.mobile-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.mobile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #8b5cf6;
  object-fit: cover;
}

/* ===== MOBILE MENU LOGIN BUTTON - GREY STYLE ===== */
.mobile-login-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  padding: 1rem !important;
  background: #2a2a2a !important;  /* Dark grey background */
  border: 1px solid #404040 !important;  /* Slightly lighter border */
  border-radius: 12px !important;
  color: #e0e0e0 !important;
  text-decoration: none !important;
  margin-bottom: 1.5rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.mobile-login-btn i {
  font-size: 1.2rem !important;
  color: #a0a0a0 !important;  /* Lighter grey icon */
  transition: color 0.2s ease !important;
}

.mobile-login-btn:hover,
.mobile-login-btn:active {
  background: #3a3a3a !important;  /* Lighter grey on hover */
  border-color: #8b5cf6 !important;  /* Purple border on hover */
  transform: translateY(-2px) !important;
}

.mobile-login-btn:hover i,
.mobile-login-btn:active i {
  color: #8b5cf6 !important;  /* Purple icon on hover */
}

/* Light theme support */
body.theme-light .mobile-login-btn {
  background: #e0e0e0 !important;
  border-color: #cccccc !important;
  color: #333333 !important;
}

body.theme-light .mobile-login-btn i {
  color: #666666 !important;
}

body.theme-light .mobile-login-btn:hover,
body.theme-light .mobile-login-btn:active {
  background: #d0d0d0 !important;
  border-color: #8b5cf6 !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mobile-nav-links a:hover {
  background: rgba(139, 92, 246, 0.1);
}

.mobile-nav-links a i {
  width: 24px;
  color: #8b5cf6;
  font-size: 1.2rem;
}

.mobile-logout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: #ef4444;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  margin-top: 1rem;
  font-weight: 600;
}

.mobile-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.green-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* ===== MAIN CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

/* ===== FOOTER ===== */
footer {
  margin-top: auto;
  padding: 3rem 1.5rem 1.5rem;
  background: #0a0a0a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  margin-bottom: 1.25rem;
  color: #8b5cf6;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section a {
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.footer-section a:hover {
  opacity: 1;
  color: #8b5cf6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.theme-toggle {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: rotate(30deg);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.8;
}

input, textarea, button, details, select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-primary {
  background: #8b5cf6;
  color: white;
  border: 1px solid #8b5cf6;
}

.btn-primary:hover {
  background: #7c4dff;
  border-color: #7c4dff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
  transform: translateY(-2px);
}

.btn-secondary.active {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

/* ===== PRIVACY TOGGLE ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a2a2a;
  transition: 0.2s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #8b5cf6;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.privacy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== TOOLBAR ===== */
.toolbar {
  position: absolute;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 40px;
  padding: 0.375rem;
  display: flex;
  gap: 0.125rem;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.toolbar button {
  width: auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: inherit;
  border-radius: 30px;
  font-size: 0.9rem;
}

.toolbar button:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* ===== COLLAPSIBLE SECTIONS ===== */
/* ===== COLLAPSIBLE SECTIONS WITH RIGHT ARROW ===== */
details.collapsible {
  margin-bottom: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  background: #141414;
  transition: all 0.3s ease;
}

details.collapsible summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

details.collapsible summary::-webkit-details-marker {
  display: none;
}

/* Left icon stays purple */
details.collapsible summary i:first-child {
  color: #8b5cf6;
}

/* Arrow icon on the right */
details.collapsible summary .arrow-icon {
  margin-left: auto;  /* Pushes arrow to the right */
  color: #8b5cf6;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
details[open].collapsible summary .arrow-icon {
  transform: rotate(180deg);
}

/* Smooth height transition for content */
details.collapsible > *:not(summary) {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease-in-out, 
              opacity 0.3s ease-in-out,
              margin-top 0.3s ease-in-out;
}

details[open].collapsible > *:not(summary) {
  max-height: 1000px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Space between form groups */
details.collapsible .form-group {
  margin-bottom: 1rem;
}

details.collapsible .form-group:last-child {
  margin-bottom: 0;
}
details[open].collapsible summary i {
  animation: bounce 0.4s ease;
}
details.collapsible:not([open]) summary i {
  animation: bounceReverse 0.3s ease;
}

@keyframes bounce {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-10deg) scale(1.3); }
  60% { transform: rotate(5deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes bounceReverse {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(10deg) scale(0.8); }
  60% { transform: rotate(-5deg) scale(0.95); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ===== NOTE CARDS GRID ===== */
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.note-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #141414;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
}

.note-card .cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.note-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.note-card p {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.note-meta {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  color: inherit;
  opacity: 0.7;
  font-size: 0.9rem;
  padding-top: 0.5rem;
  border-top: 1px solid #2a2a2a;
}

.note-meta i {
  color: #8b5cf6;
  margin-right: 0.25rem;
}

.note-meta span {
  display: flex;
  align-items: center;
}

/* ===== POSTS TOOLBAR ===== */
.posts-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.875rem 1.25rem;
  border-radius: 30px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: inherit;
}

.sort-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== NOTE VIEW - TWO COLUMN LAYOUT ===== */
.note-view-two-column {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.note-sidebar {
  flex: 0 0 320px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.note-sidebar::-webkit-scrollbar {
  width: 6px;
}

.note-sidebar::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

.note-sidebar::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 10px;
}

.note-sidebar-content {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 1.75rem;
}

.note-main-content {
  flex: 1;
  min-width: 0;
}

.note-cover-sidebar {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.note-title-sidebar {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}

.note-description-sidebar {
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.note-meta-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.meta-item i {
  color: #8b5cf6;
  width: 20px;
}

/* ===== MARKDOWN CONTENT ===== */
.markdown-body {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  overflow-x: auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #8b5cf6;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
  margin-top: 0;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body pre {
  background: #0a0a0a;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid #2a2a2a;
  margin: 1rem 0;
}

.markdown-body code {
  background: #0a0a0a;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}

.markdown-body blockquote {
  border-left: 4px solid #8b5cf6;
  padding-left: 1rem;
  margin: 1rem 0;
  opacity: 0.8;
  font-style: italic;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.markdown-body th,
.markdown-body td {
  padding: 0.75rem;
  border: 1px solid #2a2a2a;
  text-align: left;
}

.markdown-body th {
  background: rgba(139, 92, 246, 0.1);
}

/* ===== SOCIAL ICONS ===== */
/* ===== ENHANCED SOCIAL ICONS SECTION ===== */
.note-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  justify-content: center;
}

.note-socials-title {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.note-socials-title i {
  font-size: 0.9rem;
}

.note-socials-title span {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced Social Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: inherit;
  font-size: 1.3rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.15);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Individual platform hover colors */
.social-icon[title="Website"]:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.social-icon[title="Instagram"]:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: transparent;
}

.social-icon[title="Discord"]:hover {
  background: #5865f2;
  border-color: #5865f2;
  color: white;
}

.social-icon[title="Telegram"]:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: white;
}

.social-icon[title="Phone"]:hover {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.social-icon[title="WhatsApp"]:hover {
  background: #25d366;
  border-color: #25d366;
  color: white;
}

.social-icon[title="Reddit"]:hover {
  background: #ff4500;
  border-color: #ff4500;
  color: white;
}

.social-icon[title="Facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}

.social-icon[title="Twitter"]:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

/* Light theme adjustments */
body.theme-light .note-socials {
  background: rgba(139, 92, 246, 0.03);
  border-color: rgba(139, 92, 246, 0.1);
}

body.theme-light .social-icon {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
}

body.theme-light .social-icon:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .note-socials {
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .social-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* Optional: Add tooltip styles for social icons */
.social-icon {
  position: relative;
}

.social-icon[title]::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
  margin-bottom: 8px;
}
/* ===== ERROR POPUP SYSTEM ===== */
.error-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.error-popup-overlay.active {
  display: flex;
}

.error-popup {
  background: linear-gradient(145deg, #1a1a1a, #141414);
  border: 1px solid #ef4444;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.3);
}

.error-popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shake 0.5s ease;
}

.error-popup-icon i {
  font-size: 3rem;
  color: #ef4444;
}

.error-popup-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-popup-message {
  text-align: center;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.error-popup-details {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: #aaa;
  word-break: break-all;
  max-height: 150px;
  overflow-y: auto;
}

.error-popup-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-popup-btn {
  flex: 1;
  padding: 0.875rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.error-popup-btn-primary {
  background: #ef4444;
  color: white;
  border: none;
}

.error-popup-btn-primary:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.error-popup-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
}

.error-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Light theme */
body.theme-light .error-popup {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-color: #ef4444;
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.2);
}

body.theme-light .error-popup-message {
  color: #1e293b;
}
.note-card .cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.gallery-slide {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.note-cover-sidebar {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.avatar, .profile-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar {
  width: 150px;
  height: 150px;
}
body.theme-light .error-popup-details {
  background: rgba(239, 68, 68, 0.05);
  color: #64748b;
}

body.theme-light .error-popup-btn-secondary {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

body.theme-light .error-popup-btn-secondary:hover {
  background: #e2e8f0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.social-icon:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* ===== NOTE INTERACTIONS ===== */
.note-interactions {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.btn-like, .btn-dislike {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  color: inherit;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-like:hover, .btn-dislike:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8b5cf6;
}

.btn-like.active, .btn-dislike.active {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
  margin-top: 2rem;
  border-top: 1px solid #2a2a2a;
  padding-top: 2rem;
}

.comments-list {
  margin-bottom: 2rem;
}

.comment {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.comment:hover {
  border-color: #8b5cf6;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-header strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-date {
  opacity: 0.6;
  font-size: 0.85rem;
}

.comment-content {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-actions button {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  color: inherit;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.comment-actions button:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

.add-comment {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.add-comment textarea {
  margin-bottom: 1rem;
  min-height: 100px;
  resize: vertical;
}

.add-comment input {
  margin-bottom: 1rem;
}

/* ===== BADGE SYSTEM ===== */
.badge-container {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.particle-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 60px;
  min-height: 30px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.badge-container:hover .particle-canvas {
  opacity: 1;
}

.user-badge {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px currentColor;
}

/* Badge tier colors */
.user-badge[data-tier="1"] { background: rgba(205, 127, 50, 0.1); color: #cd7f32; border-color: #cd7f32; }
.user-badge[data-tier="2"] { background: rgba(184, 115, 51, 0.1); color: #b87333; border-color: #b87333; }
.user-badge[data-tier="3"] { background: rgba(192, 192, 192, 0.1); color: #c0c0c0; border-color: #c0c0c0; }
.user-badge[data-tier="4"] { background: rgba(255, 215, 0, 0.1); color: #ffd700; border-color: #ffd700; }
.user-badge[data-tier="5"] { background: rgba(229, 228, 226, 0.1); color: #e5e4e2; border-color: #e5e4e2; }
.user-badge[data-tier="6"] { background: rgba(185, 242, 255, 0.1); color: #b9f2ff; border-color: #b9f2ff; }
.user-badge[data-tier="7"] { background: rgba(170, 128, 255, 0.1); color: #aa80ff; border-color: #aa80ff; }
.user-badge[data-tier="8"] { background: rgba(255, 128, 255, 0.1); color: #ff80ff; border-color: #ff80ff; }
.user-badge[data-tier="9"] { background: rgba(255, 170, 0, 0.1); color: #ffaa00; border-color: #ffaa00; }
.user-badge[data-tier="10"] { background: rgba(255, 85, 0, 0.1); color: #ff5500; border-color: #ff5500; }
.user-badge[data-tier="11"] { background: rgba(255, 0, 0, 0.1); color: #ff0000; border-color: #ff0000; }
.user-badge[data-tier="12"] { background: rgba(170, 0, 255, 0.1); color: #aa00ff; border-color: #aa00ff; }
.user-badge[data-tier="13"] { background: rgba(0, 0, 0, 0.3); color: #ffffff; border-color: #8b5cf6; }

/* ===== GALLERY MODAL ===== */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  padding: 2rem;
  border-radius: 24px;
  background: #141414;
  border: 1px solid #2a2a2a;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  background: transparent !important;
  border: none !important;
  width: auto;
  padding: 0;
}

.close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-slides {
  position: relative;
  min-width: 300px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  display: none;
}

.gallery-slide.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.carousel-prev, .carousel-next {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: white;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-prev:hover, .carousel-next:hover {
  background: #8b5cf6;
  transform: scale(1.1);
  border-color: #8b5cf6;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
}

.dot.active {
  background: #8b5cf6;
  transform: scale(1.2);
}

/* ===== STATS & DASHBOARD ===== */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}



.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #8b5cf6;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.chart-container {
  background: #141414;
  padding: 1.5rem;
  border-radius: 20px;
  margin: 2rem 0;
  border: 1px solid #2a2a2a;
}

.chart-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.chart-row .half {
  flex: 1;
  min-width: 300px;
}

/* ===== TABLES ===== */
.table-responsive {
  overflow-x: auto;
  background: #141414;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th {
  text-align: left;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.1);
  font-weight: 600;
  color: #8b5cf6;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #2a2a2a;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

/* ===== NOTE LIST ===== */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141414;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 1rem;
}

.note-list-item:hover {
  border-color: #8b5cf6;
  transform: translateX(4px);
  background: rgba(139, 92, 246, 0.05);
}

.note-list-item > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.note-list-item .badge {
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.public {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
}

.badge.private {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.note-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.4rem 1rem;
  border-radius: 30px;
  color: inherit;
  text-decoration: none;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.btn-small:hover {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

/* ===== PROFILE PAGE ===== */
.profile-card {
  text-align: center;
  background: #141414;
  padding: 2.5rem;
  border-radius: 24px;
  max-width: 500px;
  margin: 2rem auto;
  border: 1px solid #2a2a2a;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 4px solid #8b5cf6;
  object-fit: cover;
}

.profile-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.profile-card p {
  opacity: 0.8;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-card p i {
  color: #8b5cf6;
}

/* ===== WALLET PAGE ===== */
.wallet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.payout-section {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: #141414;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
}

/* ===== FAQ PAGE ===== */
.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-category {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 1.25rem;
}

.faq-category summary {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-category summary::-webkit-details-marker {
  display: none;
}

.faq-category summary i {
  color: #8b5cf6;
  transition: transform 0.2s ease;
}

/* Gallery Modal Styles */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  padding: 20px;
}

.gallery-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
}

.gallery-close:hover {
  color: #8b5cf6;
  transform: scale(1.1);
}

.gallery-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-carousel-slides {
  position: relative;
  min-width: 300px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.gallery-slide.active {
  display: block;
}

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: white;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-prev {
  left: -60px;
}

.gallery-next {
  right: -60px;
}

.gallery-prev:hover, .gallery-next:hover {
  background: #8b5cf6;
  transform: scale(1.1);
  border-color: #8b5cf6;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
}

.gallery-dot.active {
  background: #8b5cf6;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Mobile styles */
@media (max-width: 768px) {
  .gallery-prev, .gallery-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .gallery-prev {
    left: 10px;
  }
  
  .gallery-next {
    right: 10px;
  }
  
  .gallery-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}
/* Mobile Menu Header with Bell */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  position: relative;
}

.mobile-bell-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.mobile-bell-btn i {
  font-size: 1.2rem;
  color: #e0e0e0;
}

.mobile-bell-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.mobile-bell-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
}
/* ===== MOBILE NOTIFICATION POPUP - FIXED POSITION ===== */
@media (max-width: 768px) {
  /* Override desktop positioning for mobile */
  .notification-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    z-index: 10000 !important;
  }
  
  .notification-menu.active {
    transform: translateY(0) !important;
  }
  
  /* Make menu list scrollable on mobile */
  .menu-list {
    max-height: 60vh !important;
  }
  
  /* Adjust header for mobile */
  .menu-header {
    border-radius: 24px 24px 0 0 !important;
    padding: 16px 20px !important;
  }
  
  /* Close button for mobile */
  .menu-close {
    width: 36px;
    height: 36px;
  }
}
/* Hide desktop bell on mobile */
@media (max-width: 768px) {
  .notification-btn {
    display: none !important;
  }
}

/* Hide mobile bell on desktop */
@media (min-width: 769px) {
  .mobile-bell-btn {
    display: none !important;
  }
}
.faq-items {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.faq-item {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
}

.faq-item summary {
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  list-style: none;
  color: #8b5cf6;
}

.faq-item p {
  margin-top: 0.75rem;
  padding: 0.75rem;
  opacity: 0.8;
  border-top: 1px solid #2a2a2a;
}

/* ===== SOCIAL LINKS PAGE ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #141414;
  color: inherit;
  text-decoration: none;
  border-radius: 40px;
  font-size: 1.1rem;
  border: 1px solid #2a2a2a;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #8b5cf6;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
}

/* ===== LOGIN PAGE ===== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 1rem;
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  background: #141414;
  border-radius: 24px;
  border: 1px solid #2a2a2a;
}

.login-card h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin-bottom: 2rem;
  opacity: 0.7;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #5865f2;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

/* ===== GUIDE PAGE ===== */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  background: #141414;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: #8b5cf6;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: #8b5cf6;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.step h3 {
  margin-bottom: 1rem;
  color: #8b5cf6;
}

.step p {
  opacity: 0.8;
  line-height: 1.7;
}

/* ===== ALL PAGES LIST ===== */
.page-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.page-list li {
  background: #141414;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  transition: all 0.2s ease;
}

.page-list li:hover {
  transform: translateY(-2px);
  border-color: #8b5cf6;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.page-list a {
  display: block;
  padding: 1rem 1.25rem;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-list a:before {
  content: '•';
  color: #8b5cf6;
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== MESSAGES ===== */
.error, .success, .info {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideUp 0.3s ease;
}

.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
}

.success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
}

.info {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SOCIAL LINKS GRID ===== */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ===== TYPOGRAPHY ===== */
.page-title {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.3;
}

.section-title {
  margin: 2rem 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #8b5cf6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-title i {
  font-size: 1.3rem;
}

.highlight {
  font-size: 1.3rem;
  font-weight: 600;
  color: #8b5cf6;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 30px;
  display: inline-block;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.gap-2 {
  gap: 1rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-100 {
  width: 100%;
}

/* ===== RESPONSIVE FIXES FOR ALL PAGES ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .note-view-two-column {
    flex-direction: column;
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .note-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  
  .note-sidebar-content {
    padding: 1.25rem;
  }
  
  .note-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .chart-row {
    flex-direction: column;
  }
  
  .chart-row .half {
    min-width: 100%;
  }
  
  .footer-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .guide-steps {
    grid-template-columns: 1fr;
  }
  
  .page-list {
    grid-template-columns: 1fr;
  }
  
  .stats-summary {
    grid-template-columns: 1fr;
  }
  
  .wallet-stats {
    grid-template-columns: 1fr;
  }
  
  .note-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .note-list-item > div:first-child {
    width: 100%;
  }
  
  .note-meta {
    width: 100%;
    justify-content: space-between;
  }
  
  .social-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  .social-link {
    justify-content: center;
  }
  
  .login-card {
    padding: 1.5rem;
  }
  
  .toolbar {
    flex-wrap: wrap;
    max-width: calc(100vw - 2rem);
    right: 1rem !important;
  }
  
  .toolbar button {
    padding: 0.4rem 0.8rem;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .comment-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .markdown-body {
    padding: 1.25rem;
  }
  
  .markdown-body pre {
    padding: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .carousel-container {
    flex-direction: column;
  }
  
  .carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  
  .carousel-prev {
    left: 0;
  }
  
  .carousel-next {
    right: 0;
  }
  
  .carousel-slides {
    min-height: 200px;
  }
}
/* ===== NOTIFICATION BUTTON & MENU ===== */
.top-bar-simple {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1002;
}

/* Notification Button */
.notification-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #141414);
  border: 1px solid rgba(139, 92, 246, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-btn:active {
  transform: scale(0.92);
}

.notification-btn:hover {
  background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
  transform: scale(1.05);
  border-color: #8b5cf6;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.notification-btn i {
  font-size: 1.3rem;
  color: #e0e0e0;
  pointer-events: none;
  transition: color 0.3s ease;
}

.notification-btn:hover i {
  color: #8b5cf6;
}

/* Notification Dot */
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  animation: notificationPulse 1.5s infinite;
  pointer-events: none;
}

@keyframes notificationPulse {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Notification Menu */
.notification-menu {
  position: absolute;
  top: 58px;
  right: 0;
  width: 380px;
  background: #1a1a1a;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1003;
  backdrop-filter: blur(10px);
}

.notification-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Menu Header */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
  border-radius: 20px 20px 0 0;
}

.menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
}

.menu-title i {
  color: #8b5cf6;
  font-size: 1.1rem;
}

.menu-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.menu-close i {
  font-size: 0.8rem;
  color: #aaa;
}

.menu-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.menu-close:hover i {
  color: #ef4444;
}

/* Menu Tabs */
.menu-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 30px;
  color: #aaa;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn i {
  font-size: 0.75rem;
}

.tab-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #e0e0e0;
}

.tab-btn.active {
  background: #8b5cf6;
  color: white;
}

/* Menu List */
.menu-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}

.menu-list::-webkit-scrollbar {
  width: 4px;
}

.menu-list::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.05);
  border-radius: 10px;
}

.menu-list::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 10px;
}

/* Notification Items */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notif-item:hover {
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(4px);
}

.notif-item.unread {
  background: rgba(139, 92, 246, 0.1);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: #8b5cf6;
  border-radius: 0 3px 3px 0;
  animation: glowPulse 1.5s infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Notification Icon */
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.15);
  transition: all 0.2s ease;
}

.notif-item:hover .notif-icon {
  transform: scale(1.05);
  background: rgba(139, 92, 246, 0.25);
}

.notif-icon i {
  font-size: 1rem;
}

.notif-icon.follow i { color: #10b981; }
.notif-icon.new_note i { color: #8b5cf6; }
.notif-icon.comment_like i { color: #10b981; }
.notif-icon.comment_dislike i { color: #ef4444; }
.notif-icon.view_milestone i { color: #f59e0b; }
.notif-icon.earning_tag i { color: #fbbf24; }

/* Notification Content */
.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-message {
  font-size: 0.85rem;
  color: #e0e0e0;
  line-height: 1.4;
  margin-bottom: 6px;
}

.notif-time {
  font-size: 0.65rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-time i {
  font-size: 0.6rem;
}

/* Menu Footer */
.menu-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 20px 20px;
}

.view-all-link {
  color: #8b5cf6;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 30px;
}

.view-all-link:hover {
  gap: 12px;
  background: rgba(139, 92, 246, 0.1);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state i {
  font-size: 2.5rem;
  color: #8b5cf6;
  opacity: 0.5;
}

.empty-state p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}

.empty-state small {
  color: #666;
  font-size: 0.75rem;
}

/* Light Theme */
body.theme-light .notification-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme-light .notification-btn i {
  color: #64748b;
}

body.theme-light .notification-menu {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.theme-light .menu-header {
  border-bottom-color: rgba(139, 92, 246, 0.1);
}

body.theme-light .menu-title {
  color: #1e293b;
}

body.theme-light .notif-message {
  color: #1e293b;
}

body.theme-light .notif-item.unread {
  background: rgba(139, 92, 246, 0.05);
}

body.theme-light .notif-item:hover {
  background: rgba(139, 92, 246, 0.08);
}

/* Mobile */
@media (max-width: 768px) {
  .top-bar-simple {
    top: 12px;
    right: 12px;
  }
  
  .notification-btn {
    width: 42px;
    height: 42px;
  }
  
  .notification-btn i {
    font-size: 1.1rem;
  }
  
  .notification-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
  }
  
  .notification-menu.active {
    transform: translateY(0);
  }
  
  .menu-list {
    flex: 1;
    max-height: none;
  }
  
  .menu-header {
    border-radius: 24px 24px 0 0;
  }
}
/* ===== PRINT STYLES ===== */
@media print {
  header, footer, .btn-primary, .btn-secondary, 
  .comment-actions, .add-comment, .action-buttons,
  .toolbar, .modal, .carousel-prev, .carousel-next {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    padding: 0 !important;
  }
  
  .container {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
  }
  
  .markdown-body {
    background: white;
    color: black;
    border: 1px solid #ddd;
  }
  header .logo span {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}
/* ===== DASHBOARD SPECIFIC STYLES ===== */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
}

.chart-card-full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .chart-card-full {
    grid-column: span 1;
  }
}

.chart-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title i {
  color: var(--primary);
}

.chart-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

.country-table-container {
  max-height: 300px;
  overflow-y: auto;
}

.country-table {
  width: 100%;
  border-collapse: collapse;
}

.country-table th {
  text-align: left;
  padding: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
}

.country-table td {
  padding: 0.5rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.cpm-high { color: var(--success); }
.cpm-mid { color: var(--warning); }
.cpm-low { color: var(--danger); }

.cpm-info-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cpm-info-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cpm-tier {
  background: var(--bg-input);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
}

.cpm-tier-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cpm-tier-rate {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.cpm-tier-countries {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.note-stats {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.note-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.badge-api {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}
header:hover .logo span {
  opacity: 1 !important;
}
  .note-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}