/* ===== Swewave Roleplay Design System ===== */
:root {
  --bg-primary: #060c1f;
  --bg-secondary: #0a1535;
  --bg-dark: #040a18;
  --bg-card: rgba(14, 38, 79, 0.35);
  --bg-card-hover: rgba(22, 51, 105, 0.5);
  --bg-glass: rgba(22, 51, 105, 0.12);
  --accent: #163369;
  --accent-light: #2a5cc6;
  --accent-bright: #4a8aff;
  --accent-glow: rgba(22, 51, 105, 0.5);
  --accent-neon: rgba(74, 138, 255, 0.35);
  --text-primary: #ffffff;
  --text-secondary: rgba(200, 215, 240, 0.8);
  --text-muted: rgba(160, 180, 220, 0.45);
  --border: rgba(22, 51, 105, 0.3);
  --border-accent: rgba(42, 92, 198, 0.4);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(22, 51, 105, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 72px;
  background: rgba(6, 12, 31, 0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 12, 31, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-brand img { height: 42px; width: 42px; border-radius: 10px; filter: drop-shadow(0 0 12px rgba(42, 92, 198, 0.5)); }
.navbar-brand span {
  font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, var(--accent-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 18px; border-radius: 8px; text-decoration: none;
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); border: none; background: none; cursor: pointer;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }
.nav-link.active {
  color: var(--accent-bright); background: rgba(42, 92, 198, 0.1);
  border-bottom: 2px solid var(--accent-bright);
}
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--accent-light); object-fit: cover;
  box-shadow: 0 0 12px rgba(42, 92, 198, 0.3);
}
.user-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: var(--transition);
  text-decoration: none; border: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-neon), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-secondary {
  background: var(--bg-glass); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(22, 51, 105, 0.25); border-color: var(--accent-light); }
.btn-discord {
  background: #5865F2; color: white;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4); }
.btn-success { background: linear-gradient(135deg, #16a34a, var(--success)); color: white; }
.btn-success:hover { transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #dc2626, var(--danger)); color: white; }
.btn-danger:hover { transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-outline {
  background: transparent; color: var(--accent-bright);
  border: 1px solid var(--accent-light);
}
.btn-outline:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white; border-color: transparent;
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 40px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(150deg, #040a18 0%, #0e264f 30%, #163369 50%, #0a1535 70%, #060c1f 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 40%, rgba(42, 92, 198, 0.25) 0%, transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 60%, rgba(74, 138, 255, 0.1) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 800px;
  animation: fadeUp 1s ease-out;
}
.hero-logo {
  width: 140px; height: 140px; margin: 0 auto 32px;
  filter: drop-shadow(0 0 50px rgba(42, 92, 198, 0.5)) drop-shadow(0 0 100px rgba(74, 138, 255, 0.2));
  animation: float 6s ease-in-out infinite;
  border-radius: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-bright), #7fb3ff, var(--accent-light));
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto 40px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-particles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; width: 2px; height: 2px; background: var(--accent-bright);
  border-radius: 50%; opacity: 0; animation: particleFade 4s ease-in-out infinite;
}

/* Wave decoration */
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 120px; z-index: 1;
  background: var(--bg-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
  mask-size: cover; -webkit-mask-size: cover;
}

/* ===== Sections ===== */
.section {
  padding: 100px 40px; max-width: 1200px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  margin: 20px auto 0; border-radius: 2px;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: var(--transition); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
  opacity: 0; transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px rgba(22, 51, 105, 0.2);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(22, 51, 105, 0.25); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card { text-align: center; padding: 40px 28px; }
.feature-card .card-icon { margin: 0 auto 20px; }

/* ===== Application Cards ===== */
.app-card { cursor: pointer; }
.app-card .status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.75rem;
  font-weight: 600; margin-top: 16px;
}
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-approved { background: rgba(34,197,94,0.15); color: var(--success); }
.status-denied { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ===== Forms ===== */
.form-container {
  max-width: 700px; margin: 0 auto; padding-top: 100px;
}
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text-primary);
}
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: rgba(14, 38, 79, 0.3); border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font); font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(74, 138, 255, 0.15), 0 0 20px rgba(42, 92, 198, 0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

/* ===== Review Panel ===== */
.review-table {
  width: 100%; border-collapse: collapse; margin-top: 20px;
}
.review-table th, .review-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
.review-table th {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.review-table tr { transition: var(--transition); }
.review-table tr:hover { background: var(--bg-glass); }
.review-item { cursor: pointer; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 10, 24, 0.7); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; max-width: 600px;
  width: 100%; max-height: 80vh; overflow-y: auto;
  transform: scale(0.95) translateY(20px); transition: var(--transition);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(22, 51, 105, 0.15);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; padding: 4px; transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { color: var(--text-secondary); line-height: 1.8; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }

/* ===== Guide ===== */
.guide-container { max-width: 800px; margin: 0 auto; padding-top: 100px; }
.guide-step {
  display: flex; gap: 20px; margin-bottom: 32px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.guide-step:hover { border-color: var(--border-accent); box-shadow: 0 0 30px rgba(22, 51, 105, 0.15); }
.step-number {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Page Header ===== */
.page-header {
  padding: 120px 40px 40px; text-align: center;
}
.page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--text-secondary); font-size: 1rem; }

/* ===== Alerts / Toasts ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transform: translateY(100px); opacity: 0; transition: var(--transition);
  max-width: 400px;
  backdrop-filter: blur(10px);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: linear-gradient(135deg, #16a34a, var(--success)); color: white; }
.toast-error { background: linear-gradient(135deg, #dc2626, var(--danger)); color: white; }

/* ===== Loading ===== */
.loader {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; gap: 8px;
}
.loader-sm {
  display: flex; align-items: center; justify-content: center;
  padding: 10px; gap: 4px;
}
.loader-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-bright);
  animation: bounce 1.4s ease-in-out infinite both;
}
.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state-text { font-size: 1.1rem; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}
@keyframes particleFade {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-40px); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(42, 92, 198, 0.2); }
  50% { box-shadow: 0 0 40px rgba(74, 138, 255, 0.3); }
}
.animate-in { animation: slideIn 0.5s ease-out forwards; }
.animate-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== Rules ===== */
.rules-section { padding-bottom: 60px; }
.rules-category {
  margin-bottom: 24px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card);
}
.rules-category-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; cursor: pointer; transition: var(--transition);
}
.rules-category-header:hover { background: var(--bg-card-hover); }
.rules-category-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.rules-category-subtitle { color: var(--text-muted); font-size: 0.85rem; }
.category-chevron {
  font-size: 1.5rem; color: var(--text-muted); transition: var(--transition);
  transform: rotate(90deg);
}
.rules-category.collapsed .category-chevron { transform: rotate(0deg); }
.rules-category.collapsed .rules-list { display: none; }
.rules-list { border-top: 1px solid var(--border); }
.rule-item { border-bottom: 1px solid var(--border); }
.rule-item:last-child { border-bottom: none; }
.rule-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px; cursor: pointer; transition: var(--transition);
}
.rule-header:hover { background: var(--bg-glass); }
.rule-number {
  flex-shrink: 0; width: 44px; height: 32px; border-radius: 6px;
  background: rgba(22, 51, 105, 0.25); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--accent-bright);
}
.rule-title { flex: 1; font-size: 0.95rem; font-weight: 600; }
.rule-chevron {
  font-size: 1.2rem; color: var(--text-muted); transition: var(--transition);
  transform: rotate(0deg);
}
.rule-item.open .rule-chevron { transform: rotate(90deg); }
.rule-body {
  display: none; padding: 0 28px 20px 88px;
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8;
}
.rule-item.open .rule-body { display: block; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: 2rem; }
  .section { padding: 60px 20px; }
  .cards-grid, .features-grid { grid-template-columns: 1fr; }
  .page-header { padding: 100px 20px 30px; }
  .form-container, .guide-container { padding: 100px 20px 40px; }
  .review-table { font-size: 0.85rem; }
  .review-table th, .review-table td { padding: 10px 12px; }
}

/* ===== Settings ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.settings-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}
.settings-card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.settings-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Analytics ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.stat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  animation: pulseGlow 4s ease-in-out infinite;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, var(--accent-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 12px;
}
.stat-footer {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: var(--bg-glass);
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto;
}

/* ===== Responsive Hamburger Navigation Drawer ===== */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
  }
  .nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
  }
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(4, 10, 24, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .navbar-links.active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(22, 51, 105, 0.15);
  }
  .nav-link.active {
    border-bottom: 2px solid var(--accent-bright);
  }
  .navbar-actions {
    display: flex;
    align-items: center;
  }
  .user-info {
    max-width: 130px;
    gap: 8px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  .user-name {
    font-size: 0.8rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-discord {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ===== Recent Active Users Styles (Analys) ===== */
.users-table-container {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
}
.user-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-light);
  object-fit: cover;
}
.user-profile-details {
  display: flex;
  flex-direction: column;
}
.user-profile-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.user-profile-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.user-logins-badge {
  background: rgba(42, 92, 198, 0.15);
  color: var(--accent-bright);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(74, 138, 255, 0.15);
  display: inline-block;
}
.user-active-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

/* ===== Donations layout ===== */
.donations-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .donations-container {
    grid-template-columns: 1fr;
  }
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.category-tab {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.category-tab:hover {
  background: rgba(22, 51, 105, 0.25);
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: var(--accent-bright);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

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

.donation-product-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  height: 100%;
}

.product-price-badge {
  background: rgba(74, 138, 255, 0.12);
  color: var(--accent-bright);
  border: 1px solid rgba(74, 138, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-display);
}

/* ===== Shopping Cart sticky card ===== */
.donations-cart-card {
  position: sticky;
  top: 96px;
  background: rgba(14, 38, 79, 0.45);
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(22, 51, 105, 0.3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  outline: none;
}

.cart-qty-btn:hover {
  background: rgba(22, 51, 105, 0.6);
  border-color: var(--accent-light);
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.cart-remove-btn:hover {
  transform: scale(1.2);
}

