/* =====================================================
   FAIRVERSE — MAIN STYLESHEET
   Light Glassmorphic · Fairverse Blue
   Matches home.php design language exactly
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES
   ===================================================== */

:root {
  /* Brand — Fairverse Blue */
  --blue-deep:       #1e3a8a;
  --blue-mid:        #2563eb;
  --blue-light:      #4ab8fe;
  --blue-pale:       #dbeafe;
  --red-accent:      #dc2626;
  --red-light:       #fee2e2;

  /* Alias for shared component use */
  --primary:         #2563eb;
  --primary-dark:    #1e3a8a;
  --primary-light:   #dbeafe;
  --secondary:       #dc2626;

  /* Backgrounds */
  --bg:              #f0f6ff;
  --bg-surface:      #e8f0fd;
  --bg-elevated:     #ffffff;

  /* Glass */
  --glass:           rgba(255, 255, 255, 0.42);
  --glass-hover:     rgba(255, 255, 255, 0.62);
  --glass-border:    rgba(255, 255, 255, 0.65);
  --glass-shadow:    rgba(59, 130, 246, 0.12);
  --glass-shadow-lg: rgba(59, 130, 246, 0.18);

  /* Text */
  --text:            #0f172a;
  --text-mid:        #334155;
  --text-soft:       #64748b;
  --text-muted:      #94a3b8;

  /* Status */
  --success:         #16a34a;
  --success-bg:      #dcfce7;
  --danger:          #dc2626;
  --danger-bg:       #fee2e2;
  --warning:         #d97706;
  --warning-bg:      #fef3c7;
  --info:            #0284c7;
  --info-bg:         #e0f2fe;

  /* Typography */
  --font:            'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       18px;
  --radius-xl:       24px;
  --radius-2xl:      32px;
  --radius-full:     9999px;

  /* Transitions */
  --transition:      0.2s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --navbar-height:   68px;
  --sidebar-width:   260px;
  --content-max:     1160px;
}

/* =====================================================
   2. RESET & BASE
   ===================================================== */

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

html {
  scroll-behavior:       smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color:           var(--blue-mid);
  text-decoration: none;
  transition:      color var(--transition);
}

a:hover { color: var(--blue-deep); }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

button {
  font-family: var(--font);
  cursor:      pointer;
  border:      none;
  background:  none;
}

input, textarea, select { font-family: var(--font); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color:       var(--text);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-soft); }

hr {
  border:     none;
  border-top: 1px solid rgba(74, 184, 254, 0.2);
  margin:     1.5rem 0;
}

/* =====================================================
   3. SCROLLBAR
   ===================================================== */

::-webkit-scrollbar       { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
  background:    rgba(74, 184, 254, 0.35);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* =====================================================
   4. BACKGROUND ORBS
   ===================================================== */

.bg-layer {
  position:       fixed;
  inset:          0;
  z-index:        0;
  pointer-events: none;
  background:     linear-gradient(145deg, #e8f3ff 0%, #f0f6ff 40%, #fafcff 100%);
}

.bg-orb {
  position:       fixed;
  border-radius:  50%;
  filter:         blur(100px);
  opacity:        0.22;
  pointer-events: none;
  animation:      orbDrift 18s ease-in-out infinite;
}

.bg-orb-1 {
  width:      700px;
  height:     700px;
  background: radial-gradient(#93c5fd, #1d4ed8);
  top:        -200px;
  left:       -200px;
}

.bg-orb-2 {
  width:      500px;
  height:     500px;
  background: radial-gradient(#bae6fd, #0284c7);
  bottom:     -100px;
  right:      -100px;
}

.bg-orb-3 {
  width:      350px;
  height:     350px;
  background: radial-gradient(#e0f2fe, #38bdf8);
  top:        50%;
  left:       50%;
  transform:  translate(-50%, -50%);
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.04); }
  66%       { transform: translate(-15px, 18px) scale(0.97); }
}

/* Keep blob class names working too */
.bg-blob { display: none; }

/* =====================================================
   5. GLASS UTILITY
   ===================================================== */

.glass {
  background:            var(--glass);
  backdrop-filter:       blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border:                1px solid var(--glass-border);
  border-radius:         var(--radius-lg);
  box-shadow:            0 4px 24px var(--glass-shadow),
                         inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.glass-hover {
  transition: all var(--transition);
}

.glass-hover:hover {
  background:  var(--glass-hover);
  transform:   translateY(-2px);
  box-shadow:  0 8px 32px var(--glass-shadow-lg),
               inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* =====================================================
   6. LAYOUT HELPERS
   ===================================================== */

.container {
  max-width: var(--content-max);
  margin:    0 auto;
  padding:   0 1.25rem;
}

.page-wrap {
  padding-top:    calc(var(--navbar-height) + 2rem);
  padding-bottom: 4rem;
  position:       relative;
  z-index:        1;
}

.row      { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.col      { flex: 1; min-width: 0; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 0.5rem;  }
.mt-2 { margin-top: 1rem;    }
.mt-3 { margin-top: 1.5rem;  }
.mt-4 { margin-top: 2rem;    }
.mt-5 { margin-top: 3rem;    }

.mb-1 { margin-bottom: 0.5rem;  }
.mb-2 { margin-bottom: 1rem;    }
.mb-3 { margin-bottom: 1.5rem;  }
.mb-4 { margin-bottom: 2rem;    }
.mb-5 { margin-bottom: 3rem;    }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: 0.5rem;  }
.gap-2       { gap: 1rem;    }
.gap-3       { gap: 1.5rem;  }

.hidden { display: none !important; }

/* =====================================================
   7. NAVBAR
   ===================================================== */

.navbar {
  position:    fixed;
  top:         0;
  left:        0;
  right:       0;
  height:      var(--navbar-height);
  z-index:     100;
  background:  rgba(240, 246, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 184, 254, 0.2);
  box-shadow:  0 2px 16px rgba(59, 130, 246, 0.06);
}

.navbar-inner {
  max-width: var(--content-max);
  margin:    0 auto;
  padding:   0 1.25rem;
  height:    100%;
  display:   flex;
  align-items: center;
  gap:       1.5rem;
}

/* Logo */
.nav-logo {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  font-weight: 800;
  font-size:   1.3rem;
  color:       var(--text) !important;
  flex-shrink: 0;
}

.nav-logo .logo-icon { font-size: 1.5rem; }

.logo-text { color: var(--text); font-weight: 800; }

/* Nav links */
.nav-links {
  display:     flex;
  align-items: center;
  gap:         0.2rem;
  flex:        1;
}

.nav-link {
  display:       flex;
  align-items:   center;
  gap:           0.35rem;
  padding:       0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size:     0.88rem;
  font-weight:   600;
  color:         var(--text-soft) !important;
  transition:    all var(--transition);
}

.nav-link:hover {
  background: rgba(37, 99, 235, 0.07);
  color:      var(--text) !important;
}

.nav-link.active {
  background: rgba(37, 99, 235, 0.1);
  color:      var(--blue-mid) !important;
}

/* Nav right */
.nav-right {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  flex-shrink: 0;
}

/* Notification bell */
.nav-bell {
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  border-radius:   var(--radius-full);
  background:      var(--glass);
  border:          1px solid var(--glass-border);
  color:           var(--text-soft);
  font-size:       1.1rem;
  transition:      all var(--transition);
  box-shadow:      0 2px 8px var(--glass-shadow);
}

.nav-bell:hover {
  background: var(--glass-hover);
  color:      var(--text);
}

.bell-badge {
  position:      absolute;
  top:           4px;
  right:         4px;
  width:         8px;
  height:        8px;
  background:    var(--red-accent);
  border-radius: 50%;
  border:        2px solid var(--bg);
}

/* Avatar dropdown */
.nav-avatar-wrap { position: relative; }

.nav-avatar {
  width:         38px;
  height:        38px;
  border-radius: 50%;
  object-fit:    cover;
  border:        2px solid rgba(74, 184, 254, 0.4);
  cursor:        pointer;
  transition:    border-color var(--transition);
}

.nav-avatar:hover { border-color: var(--blue-mid); }

.nav-dropdown {
  position:      absolute;
  top:           calc(100% + 10px);
  right:         0;
  min-width:     200px;
  background:    rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 8px 32px var(--glass-shadow-lg);
  padding:       0.5rem;
  z-index:       200;
  opacity:       0;
  visibility:    hidden;
  transform:     translateY(-8px);
  transition:    all var(--transition);
}

.nav-avatar-wrap:hover .nav-dropdown,
.nav-avatar-wrap:focus-within .nav-dropdown {
  opacity:    1;
  visibility: visible;
  transform:  translateY(0);
}

.nav-dropdown a,
.nav-dropdown button {
  display:       flex;
  align-items:   center;
  gap:           0.6rem;
  padding:       0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size:     0.88rem;
  color:         var(--text-mid);
  width:         100%;
  text-align:    left;
  transition:    all var(--transition);
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(37, 99, 235, 0.07);
  color:      var(--text);
}

.nav-dropdown .dropdown-divider {
  border-top: 1px solid rgba(74, 184, 254, 0.15);
  margin:     0.4rem 0;
}

.nav-dropdown .dropdown-danger:hover {
  background: var(--danger-bg);
  color:      var(--danger);
}

/* Hamburger */
.nav-hamburger {
  display:        none;
  flex-direction: column;
  gap:            5px;
  width:          28px;
  cursor:         pointer;
  padding:        4px;
}

.nav-hamburger span {
  display:       block;
  height:        2px;
  background:    var(--text-soft);
  border-radius: 2px;
  transition:    all var(--transition);
}

/* =====================================================
   8. BUTTONS
   ===================================================== */

.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             0.5rem;
  padding:         0.65rem 1.4rem;
  border-radius:   var(--radius);
  font-size:       0.9rem;
  font-weight:     700;
  font-family:     var(--font);
  border:          1px solid transparent;
  cursor:          pointer;
  transition:      all var(--transition);
  text-decoration: none;
  white-space:     nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Primary */
.btn-primary {
  background:   linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color:        #fff;
  border-color: transparent;
  box-shadow:   0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform:  translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
  color:      #fff;
}

/* Secondary / Ghost */
.btn-secondary {
  background:   var(--glass);
  color:        var(--text-mid);
  border-color: var(--glass-border);
  box-shadow:   0 2px 8px var(--glass-shadow);
}

.btn-secondary:hover:not(:disabled) {
  background:   var(--glass-hover);
  border-color: rgba(74, 184, 254, 0.4);
  color:        var(--text);
  transform:    translateY(-1px);
}

/* Ghost (hero) */
.btn-ghost {
  background:   rgba(255, 255, 255, 0.12);
  border:       1px solid rgba(255, 255, 255, 0.28);
  color:        #fff;
  font-weight:  700;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  transform:  translateY(-2px);
  color:      #fff;
}

/* Danger */
.btn-danger {
  background:   var(--danger-bg);
  color:        var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color:      #fff;
}

/* Success */
.btn-success {
  background:   var(--success-bg);
  color:        var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.btn-success:hover:not(:disabled) {
  background: var(--success);
  color:      #fff;
}

/* Discord */
.btn-discord {
  background:   #5865F2;
  color:        #fff;
  border-color: transparent;
  box-shadow:   0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover:not(:disabled) {
  background:   #4752c4;
  transform:    translateY(-2px);
  box-shadow:   0 8px 24px rgba(88, 101, 242, 0.5);
  color:        #fff;
}

/* Sizes */
.btn-sm   { padding: 0.45rem 1rem;   font-size: 0.8rem;  }
.btn-lg   { padding: 0.9rem 2rem;    font-size: 1rem;    }
.btn-full { width: 100%; }

.discord-icon { width: 20px; height: 20px; }

/* =====================================================
   9. FORMS
   ===================================================== */

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  font-size:      0.8rem;
  font-weight:    700;
  color:          var(--text-soft);
  margin-bottom:  0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label-link {
  font-size:      0.82rem;
  font-weight:    600;
  text-transform: none;
  letter-spacing: 0;
  color:          var(--blue-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  width:         100%;
  background:    rgba(255, 255, 255, 0.7);
  border:        1px solid rgba(74, 184, 254, 0.25);
  border-radius: var(--radius);
  padding:       0.75rem 1rem;
  font-size:     0.95rem;
  font-family:   var(--font);
  color:         var(--text);
  transition:    all var(--transition);
  outline:       none;
  appearance:    none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-mid);
  background:   rgba(255, 255, 255, 0.9);
  box-shadow:   0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--danger);
  background:   rgba(254, 226, 226, 0.3);
}

.form-group select option {
  background: #fff;
  color:      var(--text);
}

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

.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 3rem; }

.toggle-password {
  position:   absolute;
  right:      0.75rem;
  top:        50%;
  transform:  translateY(-50%);
  background: none;
  border:     none;
  cursor:     pointer;
  font-size:  1rem;
  padding:    0.25rem;
  opacity:    0.5;
  transition: opacity var(--transition);
}

.toggle-password:hover { opacity: 1; }

/* Field error */
.field-error {
  display:    block;
  font-size:  0.8rem;
  color:      var(--danger);
  margin-top: 0.4rem;
}

/* Checkbox */
.form-check .check-label {
  display:        flex;
  align-items:    center;
  gap:            0.6rem;
  font-size:      0.9rem;
  font-weight:    500;
  color:          var(--text-mid);
  cursor:         pointer;
  text-transform: none;
  letter-spacing: 0;
}

.form-check input[type="checkbox"] {
  width:        18px;
  height:       18px;
  min-width:    18px;
  accent-color: var(--blue-mid);
  cursor:       pointer;
}

/* Password strength */
.password-strength {
  margin-top:  0.5rem;
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}

.strength-track {
  flex:          1;
  height:        4px;
  background:    rgba(74, 184, 254, 0.15);
  border-radius: var(--radius-full);
  overflow:      hidden;
}

.strength-fill {
  height:        100%;
  border-radius: var(--radius-full);
  width:         0%;
  transition:    width 0.4s ease, background-color 0.4s ease;
}

.strength-label {
  font-size:   0.78rem;
  font-weight: 700;
  min-width:   70px;
  color:       var(--text-soft);
}

/* =====================================================
   10. ALERTS
   ===================================================== */

.alert {
  padding:       0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size:     0.88rem;
  font-weight:   600;
  border:        1px solid transparent;
  margin-bottom: 1rem;
}

.alert-success {
  background:   var(--success-bg);
  color:        var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.alert-danger {
  background:   var(--danger-bg);
  color:        var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}

.alert-warning {
  background:   var(--warning-bg);
  color:        var(--warning);
  border-color: rgba(217, 119, 6, 0.2);
}

.alert-info {
  background:   var(--info-bg);
  color:        var(--info);
  border-color: rgba(2, 132, 199, 0.2);
}

/* =====================================================
   AUTH PAGES
   ===================================================== */

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 440px;
  animation: authCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Logo block inside auth card */
.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.6rem 0 0.3rem;
}
.auth-logo p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
}

/* ── Form groups inside auth ── */
.auth-card .form-group {
  margin-bottom: 1.1rem;
}

/* Override global label styles for auth pages */
.auth-card label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.85);
}

.auth-card .has-error input {
  border-color: var(--danger, #dc2626);
}

.auth-card .field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--danger, #dc2626);
  margin-top: 0.3rem;
}

.auth-card .field-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Alerts inside auth */
.auth-card .alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.auth-card .alert-danger  { background: rgba(220,38,38,0.07);  border: 1px solid rgba(220,38,38,0.2);  color: #991b1b; }
.auth-card .alert-success { background: rgba(22,163,74,0.07);  border: 1px solid rgba(22,163,74,0.2);  color: #166534; }
.auth-card .alert-warning { background: rgba(217,119,6,0.07);  border: 1px solid rgba(217,119,6,0.2);  color: #92400e; }
.auth-card .alert-info    { background: rgba(37,99,235,0.07);  border: 1px solid rgba(37,99,235,0.15); color: #1e40af; }

/* Full-width button helper */
.btn-full { width: 100%; justify-content: center; }

/* Large button */
.btn-lg { padding: 0.85rem 1.5rem; font-size: 0.96rem; }

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }
}
/* =====================================================
   12. CARDS
   ===================================================== */

.card {
  background:    var(--glass);
  backdrop-filter: blur(16px);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 24px var(--glass-shadow),
                 inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding:       1.5rem;
  transition:    all var(--transition);
}

.card:hover {
  background:  var(--glass-hover);
  transform:   translateY(-2px);
  box-shadow:  0 8px 32px var(--glass-shadow-lg),
               inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   1rem;
  padding-bottom:  1rem;
  border-bottom:   1px solid rgba(74, 184, 254, 0.15);
}

.card-title {
  font-size:   1rem;
  font-weight: 700;
}

.card-footer {
  margin-top:  1rem;
  padding-top: 1rem;
  border-top:  1px solid rgba(74, 184, 254, 0.15);
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}

/* =====================================================
   13. BADGES
   ===================================================== */

.badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0.3rem;
  padding:        0.25rem 0.65rem;
  border-radius:  var(--radius-full);
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.03em;
}

.badge-primary   { background: rgba(37,99,235,0.1);  color: var(--blue-mid);   }
.badge-success   { background: var(--success-bg);    color: var(--success);    }
.badge-danger    { background: var(--danger-bg);     color: var(--danger);     }
.badge-warning   { background: var(--warning-bg);    color: var(--warning);    }
.badge-info      { background: var(--info-bg);       color: var(--info);       }
.badge-secondary { background: rgba(100,116,139,0.1);color: var(--text-soft);  }

/* Role badges */
.badge-admin     { background: rgba(220,38,38,0.1);   color: var(--red-accent); }
.badge-moderator { background: rgba(2,132,199,0.1);   color: var(--info);       }
.badge-supporter { background: rgba(217,119,6,0.1);   color: var(--warning);    }
.badge-user      { background: rgba(100,116,139,0.08);color: var(--text-muted); }

/* =====================================================
   14. AVATARS
   ===================================================== */

.avatar {
  border-radius: 50%;
  object-fit:    cover;
  flex-shrink:   0;
}

.avatar-xs  { width: 24px;  height: 24px;  }
.avatar-sm  { width: 36px;  height: 36px;  }
.avatar-md  { width: 48px;  height: 48px;  }
.avatar-lg  { width: 72px;  height: 72px;  }
.avatar-xl  { width: 100px; height: 100px; }
.avatar-2xl { width: 128px; height: 128px; }

.avatar-ring {
  border:     3px solid var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* =====================================================
   15. SECTION HEADER
   ===================================================== */

.section-header {
  display:       flex;
  align-items:   center;
  gap:           12px;
  margin-bottom: 16px;
}

.section-header-icon {
  width:           36px;
  height:          36px;
  border-radius:   var(--radius-sm);
  background:      linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       0.9rem;
  flex-shrink:     0;
  box-shadow:      0 4px 12px rgba(37, 99, 235, 0.3);
}

.section-header h2 {
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--text);
}

.section-header-line {
  flex:       1;
  height:     1px;
  background: linear-gradient(to right, rgba(74, 184, 254, 0.35), transparent);
}

/* =====================================================
   16. FORUM — THREAD CARDS
   ===================================================== */

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

.thread-card {
  display:       flex;
  gap:           1rem;
  align-items:   flex-start;
  padding:       1rem 1.25rem;
  background:    var(--glass);
  backdrop-filter: blur(16px);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 2px 12px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  transition:    all var(--transition);
  text-decoration: none;
  color:         inherit;
}

.thread-card:hover {
  background:   var(--glass-hover);
  border-color: rgba(37, 99, 235, 0.25);
  transform:    translateX(4px);
  box-shadow:   0 6px 20px var(--glass-shadow-lg),
                inset 0 1px 0 rgba(255,255,255,0.8);
}

.thread-card.pinned {
  border-color: rgba(217, 119, 6, 0.25);
  background:   rgba(254, 243, 199, 0.35);
}

.thread-card.locked { opacity: 0.7; }

.thread-avatar { flex-shrink: 0; }

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

.thread-title {
  font-size:     0.95rem;
  font-weight:   700;
  color:         var(--text);
  margin-bottom: 0.3rem;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.thread-card:hover .thread-title { color: var(--blue-mid); }

.thread-meta {
  display:     flex;
  align-items: center;
  gap:         0.65rem;
  font-size:   0.78rem;
  color:       var(--text-muted);
  flex-wrap:   wrap;
}

.thread-meta a { color: var(--text-soft); }
.thread-meta a:hover { color: var(--blue-mid); }

.thread-stats {
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
  gap:            0.3rem;
  font-size:      0.8rem;
  color:          var(--text-muted);
  flex-shrink:    0;
}

.thread-stat {
  display:     flex;
  align-items: center;
  gap:         0.3rem;
}

/* =====================================================
   17. FORUM — CATEGORY GRID
   ===================================================== */

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

.category-card {
  display:       flex;
  align-items:   flex-start;
  gap:           1rem;
  padding:       1.25rem;
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 16px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  text-decoration: none;
  transition:    all var(--transition);
}

.category-card:hover {
  background:  var(--glass-hover);
  transform:   translateY(-3px);
  box-shadow:  0 8px 28px var(--glass-shadow-lg);
}

.category-icon {
  font-size:       2rem;
  width:           52px;
  height:          52px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   var(--radius);
  background:      rgba(255,255,255,0.6);
  flex-shrink:     0;
}

.category-info h3 {
  font-size:     0.95rem;
  margin-bottom: 0.2rem;
  color:         var(--text);
}

.category-info p {
  font-size: 0.8rem;
  color:     var(--text-soft);
}

.category-stats {
  margin-top: 0.5rem;
  font-size:  0.75rem;
  color:      var(--text-muted);
  display:    flex;
  gap:        0.75rem;
}

/* =====================================================
   18. FORUM — THREAD VIEW & REPLIES
   ===================================================== */

.thread-post {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 16px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  overflow:      hidden;
  margin-bottom: 1rem;
}

.post-header {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  padding:         1rem 1.25rem;
  border-bottom:   1px solid rgba(74,184,254,0.12);
  background:      rgba(255,255,255,0.4);
  gap:             1rem;
}

.post-author {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}

.post-author-info .name {
  font-weight: 700;
  font-size:   0.95rem;
  color:       var(--text);
}

.post-author-info .date {
  font-size: 0.78rem;
  color:     var(--text-muted);
}

.post-body {
  padding:     1.25rem;
  font-size:   0.95rem;
  color:       var(--text-mid);
  line-height: 1.75;
}

.post-body img {
  max-width:     100%;
  border-radius: var(--radius);
  margin:        0.75rem 0;
}

.post-body a { color: var(--blue-mid); }

.post-actions {
  display:    flex;
  align-items: center;
  gap:         0.5rem;
  padding:     0.75rem 1.25rem;
  border-top:  1px solid rgba(74,184,254,0.1);
  flex-wrap:   wrap;
  background:  rgba(255,255,255,0.3);
}

.reaction-btn {
  display:       flex;
  align-items:   center;
  gap:           0.3rem;
  padding:       0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background:    rgba(255,255,255,0.5);
  border:        1px solid rgba(74,184,254,0.2);
  font-size:     0.82rem;
  color:         var(--text-soft);
  transition:    all var(--transition);
}

.reaction-btn:hover,
.reaction-btn.active {
  background:   rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
  color:        var(--blue-mid);
}

/* =====================================================
   19. MOD CARDS
   ===================================================== */

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

.mod-card {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 16px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  overflow:      hidden;
  transition:    all var(--transition);
  text-decoration: none;
  display:       flex;
  flex-direction: column;
}

.mod-card:hover {
  background:   var(--glass-hover);
  transform:    translateY(-4px);
  box-shadow:   0 10px 32px var(--glass-shadow-lg);
}

.mod-thumbnail {
  width:        100%;
  aspect-ratio: 16/9;
  object-fit:   cover;
  background:   var(--bg-surface);
}

.mod-thumbnail-placeholder {
  width:           100%;
  aspect-ratio:    16/9;
  background:      linear-gradient(135deg, #dbeafe, #e0f2fe);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       3rem;
}

.mod-body {
  padding:        1rem;
  flex:           1;
  display:        flex;
  flex-direction: column;
}

.mod-title {
  font-size:     0.95rem;
  font-weight:   700;
  margin-bottom: 0.4rem;
  color:         var(--text);
}

.mod-card:hover .mod-title { color: var(--blue-mid); }

.mod-desc {
  font-size:             0.82rem;
  color:                 var(--text-soft);
  flex:                  1;
  overflow:              hidden;
  display:               -webkit-box;
  -webkit-line-clamp:    2;
  -webkit-box-orient:    vertical;
  margin-bottom:         0.75rem;
}

.mod-meta {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  font-size:       0.78rem;
  color:           var(--text-muted);
}

.mod-game-tag {
  padding:       0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background:    rgba(22,163,74,0.1);
  color:         var(--success);
  font-weight:   700;
  font-size:     0.72rem;
}

/* Stars */
.stars {
  display:     flex;
  align-items: center;
  gap:         2px;
  font-size:   0.85rem;
}

.star-filled { color: #f59e0b; }
.star-empty  { color: var(--text-muted); }

/* =====================================================
   20. HERO SECTION
   ===================================================== */

.hero {
  position:       relative;
  z-index:        1;
  min-height:     520px;
  display:        flex;
  align-items:    center;
  justify-content: center;
  text-align:     center;
  padding:        100px 24px 80px;
  overflow:       hidden;
}

.hero-banner-bg {
  position:  absolute;
  inset:     0;
  background: url('/assets/banner.png') center/cover no-repeat;
  filter:    blur(4px) brightness(0.22) saturate(1.2);
  transform: scale(1.06);
}

.hero-overlay {
  position:   absolute;
  inset:      0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.72) 100%),
    radial-gradient(ellipse at 30% 60%, rgba(37,99,235,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(74,184,254,0.18) 0%, transparent 60%);
}

.hero-content {
  position:  relative;
  z-index:   2;
  max-width: 680px;
  animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

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

.hero-logo {
  width:      auto;
  height:     88px;
  max-width:  200px;
  display:    block;
  margin:     0 auto 24px;
  object-fit: contain;
  filter:     drop-shadow(0 0 24px rgba(74,184,254,0.5));
}

.hero-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            7px;
  background:     rgba(255,255,255,0.12);
  border:         1px solid rgba(255,255,255,0.25);
  border-radius:  var(--radius-full);
  padding:        6px 18px;
  font-size:      0.78rem;
  font-weight:    600;
  color:          rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom:  20px;
}

.hero h1 {
  font-size:     clamp(2rem, 5vw, 3.4rem);
  font-weight:   800;
  color:         #fff;
  line-height:   1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero h1 span {
  background:              linear-gradient(135deg, #4ab8fe, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

.hero p {
  font-size:    1.05rem;
  color:        rgba(255,255,255,0.7);
  line-height:  1.7;
  max-width:    500px;
  margin:       0 auto 36px;
  font-weight:  400;
}

.hero-ctas {
  display:         flex;
  gap:             12px;
  justify-content: center;
  flex-wrap:       wrap;
  margin-bottom:   20px;
}

/* Discord stats bar */
.hero-discord-bar {
  display:        inline-flex;
  align-items:    center;
  gap:            16px;
  margin-top:     20px;
  background:     rgba(255,255,255,0.08);
  border:         1px solid rgba(255,255,255,0.15);
  border-radius:  var(--radius-full);
  padding:        8px 22px;
  backdrop-filter: blur(12px);
  flex-wrap:      wrap;
  justify-content: center;
}

.hero-discord-stat {
  display:     flex;
  align-items: center;
  gap:         6px;
}

.hero-discord-num {
  font-size:   0.88rem;
  font-weight: 800;
  color:       #fff;
}

.hero-discord-label {
  font-size:   0.75rem;
  font-weight: 500;
  color:       rgba(255,255,255,0.45);
}

.hero-discord-divider {
  width:      1px;
  height:     16px;
  background: rgba(255,255,255,0.15);
}

.hero-discord-dot {
  width:      7px;
  height:     7px;
  border-radius: 50%;
  background:  #4ade80;
  box-shadow:  0 0 6px #4ade80;
}

/* =====================================================
   21. TICKER
   ===================================================== */

.ticker-wrap {
  position:      relative;
  z-index:       1;
  background:    linear-gradient(90deg, var(--blue-deep), var(--blue-mid), var(--blue-deep));
  border-top:    1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow:      hidden;
  padding:       13px 0;
}

.ticker-track {
  display:     flex;
  align-items: center;
  white-space: nowrap;
  width:       max-content;
  animation:   tickerScroll 40s linear infinite;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size:      0.85rem;
  font-weight:    700;
  color:          rgba(255,255,255,0.92);
  letter-spacing: 0.08em;
  padding:        0 24px;
  white-space:    nowrap;
}

.ticker-sep {
  color:     rgba(255,255,255,0.3);
  font-size: 0.5rem;
  padding:   0 4px;
}

/* =====================================================
   22. HOME LAYOUT
   ===================================================== */

.home-wrap {
  position:              relative;
  z-index:               1;
  max-width:             var(--content-max);
  margin:                0 auto;
  padding:               48px 1.25rem 80px;
  display:               grid;
  grid-template-columns: 1fr 320px;
  gap:                   2.25rem;
  align-items:           start;
}

/* =====================================================
   23. STATS BAR
   ===================================================== */

.stats-bar {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             2.5rem;
  padding:         1.25rem;
  background:      var(--glass);
  border:          1px solid var(--glass-border);
  border-radius:   var(--radius-lg);
  box-shadow:      0 4px 16px var(--glass-shadow),
                   inset 0 1px 0 rgba(255,255,255,0.7);
  flex-wrap:       wrap;
  margin-bottom:   2rem;
}

.stat-item {
  display:     flex;
  align-items: center;
  gap:         0.6rem;
}

.stat-icon { font-size: 1.4rem; }

.stat-text .value {
  font-size:   1.1rem;
  font-weight: 800;
  color:       var(--text);
  line-height: 1;
}

.stat-text .label {
  font-size: 0.75rem;
  color:     var(--text-muted);
}

/* =====================================================
   24. SIDEBAR
   ===================================================== */

.sidebar {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

.sidebar-card {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 16px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  padding:       1.1rem;
}

.sidebar-title {
  font-size:      0.78rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--text-soft);
  margin-bottom:  0.75rem;
}

.sidebar-nav {
  display:        flex;
  flex-direction: column;
  gap:            0.2rem;
}

.sidebar-link {
  display:       flex;
  align-items:   center;
  gap:           0.6rem;
  padding:       0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size:     0.88rem;
  font-weight:   500;
  color:         var(--text-soft);
  transition:    all var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(37,99,235,0.07);
  color:      var(--text);
}

.sidebar-link.active {
  background: rgba(37,99,235,0.1);
  color:      var(--blue-mid);
}

/* Layout with sidebar */
.layout-with-sidebar {
  display:     flex;
  gap:         1.5rem;
  align-items: flex-start;
}

.sidebar-sticky {
  width:       var(--sidebar-width);
  min-width:   var(--sidebar-width);
  flex-shrink: 0;
  position:    sticky;
  top:         calc(var(--navbar-height) + 1.5rem);
}

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

/* =====================================================
   25. MOD OF THE WEEK
   ===================================================== */

.motw-card {
  background:      linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #0369a1 100%);
  border:          1px solid rgba(255,255,255,0.15);
  border-radius:   var(--radius-xl);
  display:         grid;
  grid-template-columns: 280px 1fr;
  overflow:        hidden;
  box-shadow:      0 8px 32px rgba(37,99,235,0.25);
}

.motw-img {
  height:   200px;
  overflow: hidden;
}

.motw-img img { width: 100%; height: 100%; object-fit: cover; }

.motw-body {
  padding:         24px 28px;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  gap:             10px;
}

.motw-label {
  background:     rgba(255,255,255,0.15);
  border-radius:  var(--radius-full);
  padding:        5px 14px;
  font-size:      0.72rem;
  font-weight:    700;
  color:          #fff;
  text-transform: uppercase;
  width:          fit-content;
}

.motw-game-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  background:    rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding:       3px 10px;
  font-size:     0.72rem;
  color:         rgba(255,255,255,0.85);
  width:         fit-content;
}

.motw-title {
  font-size:   1.3rem;
  font-weight: 800;
  color:       #fff;
}

.motw-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         11px 24px;
  border-radius:   var(--radius);
  background:      rgba(255,255,255,0.15);
  border:          1px solid rgba(255,255,255,0.25);
  color:           #fff;
  font-weight:     700;
  font-size:       0.88rem;
  text-decoration: none;
  width:           fit-content;
  transition:      all var(--transition);
}

.motw-btn:hover {
  background: rgba(255,255,255,0.25);
  transform:  translateY(-2px);
  color:      #fff;
}

/* =====================================================
   26. CHANGELOG
   ===================================================== */

.changelog-entry {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 2px 10px var(--glass-shadow);
  margin-bottom: 10px;
  overflow:      hidden;
}

.changelog-head {
  display:     flex;
  align-items: center;
  gap:         14px;
  padding:     14px 20px;
  cursor:      pointer;
  background:  rgba(255,255,255,0.4);
  transition:  background var(--transition);
}

.changelog-head:hover { background: rgba(255,255,255,0.55); }

.changelog-version {
  font-size:   0.88rem;
  font-weight: 800;
  color:       var(--blue-deep);
}

.changelog-date {
  font-size: 0.76rem;
  color:     var(--text-soft);
}

.changelog-body {
  padding:    0 20px;
  max-height: 0;
  overflow:   hidden;
  transition: all 0.3s ease;
}

.changelog-entry.open .changelog-body {
  max-height: 600px;
  padding:    14px 20px 18px;
}

.cl-tag {
  font-size:      0.65rem;
  font-weight:    800;
  padding:        2px 7px;
  border-radius:  5px;
  text-transform: uppercase;
  margin-right:   5px;
}

.cl-tag.added   { background: #dcfce7; color: #16a34a; }
.cl-tag.fixed   { background: #dbeafe; color: #2563eb; }
.cl-tag.updated { background: #fef3c7; color: #d97706; }
.cl-tag.removed { background: #fee2e2; color: #dc2626; }

/* =====================================================
   27. COMMUNITY UPLOAD CARDS
   ===================================================== */

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

.community-card {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:    0 2px 10px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  overflow:      hidden;
  display:       grid;
  grid-template-columns: 60px 1fr auto;
  align-items:   center;
  height:        64px;
  transition:    all var(--transition);
}

.community-card:hover {
  background:   var(--glass-hover);
  border-color: rgba(37,99,235,0.25);
  transform:    translateX(3px);
}

.community-card-img {
  width:    60px;
  height:   64px;
  overflow: hidden;
}

.community-card-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.community-card-body {
  padding:        0 10px;
  display:        flex;
  flex-direction: column;
  gap:            2px;
  min-width:      0;
}

.community-card-version {
  font-size:      0.62rem;
  font-weight:    700;
  color:          var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.community-card-title {
  font-size:     0.85rem;
  font-weight:   700;
  color:         var(--text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.community-card-desc {
  font-size:     0.72rem;
  color:         var(--text-soft);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.community-card-dl {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             5px;
  margin-right:    12px;
  padding:         7px 14px;
  border-radius:   var(--radius-sm);
  background:      linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color:           #fff;
  font-size:       0.75rem;
  font-weight:     700;
  text-decoration: none;
  white-space:     nowrap;
  flex-shrink:     0;
  box-shadow:      0 2px 8px rgba(37,99,235,0.3);
  transition:      all var(--transition);
}

.community-card-dl:hover {
  transform:  translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.42);
  color:      #fff;
}

/* =====================================================
   28. QUICK LINKS
   ===================================================== */

.mod-links {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.mod-link {
  display:         flex;
  align-items:     center;
  gap:             12px;
  padding:         12px 14px;
  border-radius:   var(--radius);
  text-decoration: none;
  color:           var(--text-mid);
  font-size:       0.9rem;
  font-weight:     600;
  background:      rgba(255,255,255,0.45);
  border:          1px solid rgba(74,184,254,0.18);
  transition:      all var(--transition);
}

.mod-link:hover {
  background:   rgba(37,99,235,0.07);
  border-color: rgba(37,99,235,0.2);
  color:        var(--blue-mid);
  transform:    translateX(4px);
}

.mod-link-icon {
  width:           38px;
  height:          38px;
  border-radius:   var(--radius-sm);
  background:      rgba(255,255,255,0.65);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  color:           var(--blue-mid);
  font-size:       0.95rem;
}

.mod-link-arrow {
  margin-left: auto;
  color:       var(--text-muted);
  font-size:   0.8rem;
}

/* =====================================================
   29. KO-FI CARD
   ===================================================== */

.kofi-card {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 16px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  padding:       20px;
}

.kofi-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         10px 20px;
  border-radius:   var(--radius);
  background:      linear-gradient(135deg, #ff5e5b, #ff3f3b);
  color:           #fff;
  font-size:       0.85rem;
  font-weight:     700;
  font-family:     var(--font);
  text-decoration: none;
  width:           100%;
  box-shadow:      0 4px 12px rgba(255,94,91,0.3);
  transition:      all var(--transition);
}

.kofi-btn:hover {
  transform:  translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,94,91,0.42);
  color:      #fff;
}

/* =====================================================
   30. USER PROFILE
   ===================================================== */

.profile-banner {
  height:        180px;
  background:    linear-gradient(135deg, var(--blue-deep), var(--blue-mid), #0284c7);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-header {
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-top:    none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding:       0 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow:    0 4px 16px var(--glass-shadow);
}

.profile-avatar-wrap {
  margin-top:    -52px;
  margin-bottom: 0.75rem;
  position:      relative;
  display:       inline-block;
}

.profile-avatar-wrap .avatar {
  border:     4px solid var(--bg);
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.profile-name  { font-size: 1.5rem; font-weight: 800; }
.profile-role  { margin-bottom: 0.5rem; }

.profile-bio {
  font-size:     0.9rem;
  color:         var(--text-soft);
  max-width:     600px;
  margin-bottom: 0.75rem;
}

.profile-stats {
  display:   flex;
  gap:       2rem;
  flex-wrap: wrap;
}

.profile-stat       { text-align: center; }
.profile-stat .value { font-size: 1.3rem; font-weight: 800; color: var(--text); line-height: 1; }
.profile-stat .label { font-size: 0.75rem; color: var(--text-muted); }

/* =====================================================
   31. NOTIFICATIONS
   ===================================================== */

.nav-bell-wrap { position: relative; }

.notif-dropdown {
  position:    absolute;
  top:         calc(100% + 10px);
  right:       0;
  width:       340px;
  max-height:  420px;
  overflow-y:  auto;
  background:  rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  border:      1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:  0 8px 32px var(--glass-shadow-lg);
  z-index:     200;
}

.notif-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0.85rem 1rem;
  border-bottom:   1px solid rgba(74,184,254,0.15);
  font-size:       0.85rem;
  font-weight:     700;
  color:           var(--text);
}

.notif-item {
  display:       flex;
  gap:           0.75rem;
  padding:       0.85rem 1rem;
  border-bottom: 1px solid rgba(74,184,254,0.07);
  transition:    background var(--transition);
  cursor:        pointer;
  text-decoration: none;
}

.notif-item:hover { background: rgba(37,99,235,0.04); }

.notif-item.unread { background: rgba(37,99,235,0.05); }

.notif-dot {
  width:         8px;
  height:        8px;
  min-width:     8px;
  background:    var(--blue-mid);
  border-radius: 50%;
  margin-top:    0.35rem;
}

.notif-text {
  font-size: 0.85rem;
  color:     var(--text-mid);
  flex:      1;
}

.notif-time {
  font-size:  0.75rem;
  color:      var(--text-muted);
  margin-top: 0.2rem;
}

/* =====================================================
   32. PAGINATION
   ===================================================== */

.pagination {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0.4rem;
  margin-top:      2rem;
  flex-wrap:       wrap;
}

.page-link {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   var(--radius-sm);
  background:      var(--glass);
  border:          1px solid var(--glass-border);
  font-size:       0.88rem;
  font-weight:     600;
  color:           var(--text-soft);
  transition:      all var(--transition);
  text-decoration: none;
  box-shadow:      0 2px 6px var(--glass-shadow);
}

.page-link:hover {
  background:   var(--glass-hover);
  border-color: rgba(37,99,235,0.25);
  color:        var(--blue-mid);
}

.page-link.active {
  background:   linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  border-color: var(--blue-mid);
  color:        #fff;
  box-shadow:   0 2px 10px rgba(37,99,235,0.3);
}

.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* =====================================================
   33. ADMIN PANEL
   ===================================================== */

.admin-wrap {
  display:    flex;
  gap:        1.5rem;
  min-height: calc(100vh - var(--navbar-height));
}

.admin-sidebar {
  width:        240px;
  min-width:    240px;
  background:   rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(74,184,254,0.2);
  padding:      1.5rem 1rem;
  position:     sticky;
  top:          var(--navbar-height);
  height:       calc(100vh - var(--navbar-height));
  overflow-y:   auto;
}

.admin-nav-section { margin-bottom: 1.5rem; }

.admin-nav-label {
  font-size:      0.72rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:          var(--text-muted);
  padding:        0 0.5rem;
  margin-bottom:  0.4rem;
}

.admin-nav-link {
  display:       flex;
  align-items:   center;
  gap:           0.6rem;
  padding:       0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size:     0.88rem;
  font-weight:   600;
  color:         var(--text-soft);
  transition:    all var(--transition);
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(37,99,235,0.07);
  color:      var(--text);
}

.admin-nav-link.active {
  background: rgba(37,99,235,0.1);
  color:      var(--blue-mid);
}

.admin-nav-badge {
  margin-left:   auto;
  padding:       0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background:    var(--danger-bg);
  color:         var(--danger);
  font-size:     0.72rem;
  font-weight:   700;
}

.admin-content {
  flex:    1;
  padding: 2rem 1.5rem;
  min-width: 0;
}

.admin-stat-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap:                   1rem;
  margin-bottom:         2rem;
}

.admin-stat-card {
  padding:       1.25rem;
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 4px 14px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
}

.admin-stat-card .stat-number {
  font-size:   2rem;
  font-weight: 800;
  color:       var(--text);
  margin:      0.25rem 0;
}

.admin-stat-card .stat-label {
  font-size: 0.8rem;
  color:     var(--text-soft);
}

/* =====================================================
   34. TABLE
   ===================================================== */

.table-wrap {
  overflow-x:    auto;
  border-radius: var(--radius-lg);
  border:        1px solid rgba(74,184,254,0.2);
  box-shadow:    0 4px 14px var(--glass-shadow);
}

table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

thead th {
  padding:        0.75rem 1rem;
  background:     rgba(255,255,255,0.5);
  font-size:      0.75rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color:          var(--text-soft);
  text-align:     left;
  white-space:    nowrap;
}

tbody tr {
  border-top: 1px solid rgba(74,184,254,0.08);
  transition: background var(--transition);
}

tbody tr:hover { background: rgba(37,99,235,0.03); }

tbody td {
  padding:        0.85rem 1rem;
  color:          var(--text-mid);
  vertical-align: middle;
}

/* =====================================================
   35. EVENTS
   ===================================================== */

.event-card {
  display:       flex;
  gap:           1.25rem;
  padding:       1.1rem;
  background:    var(--glass);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 2px 10px var(--glass-shadow),
                 inset 0 1px 0 rgba(255,255,255,0.7);
  transition:    all var(--transition);
  text-decoration: none;
  color:         inherit;
}

.event-card:hover {
  background:  var(--glass-hover);
  transform:   translateY(-2px);
  box-shadow:  0 6px 20px var(--glass-shadow-lg);
}

.event-date-box {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  width:           56px;
  min-width:       56px;
  height:          56px;
  background:      linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  border-radius:   var(--radius);
  font-weight:     800;
  color:           #fff;
}

.event-date-box .day   { font-size: 1.3rem; line-height: 1; }
.event-date-box .month { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }

.event-info h3  { font-size: 0.92rem; color: var(--text); margin-bottom: 0.2rem; }
.event-info p   { font-size: 0.78rem; color: var(--text-soft); }

/* =====================================================
   36. TOAST NOTIFICATIONS
   ===================================================== */

.toast-container {
  position:       fixed;
  bottom:         1.5rem;
  right:          1.5rem;
  z-index:        9999;
  display:        flex;
  flex-direction: column;
  gap:            0.6rem;
  pointer-events: none;
}

.toast {
  display:       flex;
  align-items:   center;
  gap:           0.75rem;
  padding:       0.85rem 1.1rem;
  background:    rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:    0 6px 24px var(--glass-shadow-lg);
  font-size:     0.88rem;
  color:         var(--text);
  pointer-events: all;
  min-width:     260px;
  max-width:     380px;
  animation:     toastIn 0.3s ease;
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-danger  { border-left: 4px solid var(--danger);  }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info    { border-left: 4px solid var(--info);    }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast-icon { font-size: 1.1rem; }
.toast-msg  { flex: 1; }

/* =====================================================
   37. SKELETON LOADERS
   ===================================================== */

.skeleton {
  background:      linear-gradient(90deg, rgba(74,184,254,0.08) 25%, rgba(74,184,254,0.15) 50%, rgba(74,184,254,0.08) 75%);
  background-size: 200% 100%;
  animation:       shimmer 1.5s infinite;
  border-radius:   var(--radius-sm);
}

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

.skeleton-text   { height: 1em;   width: 80%; margin-bottom: 0.5rem; }
.skeleton-title  { height: 1.5em; width: 60%; margin-bottom: 0.75rem; }
.skeleton-avatar { border-radius: 50%; width: 48px; height: 48px; }
.skeleton-thumb  { width: 100%; aspect-ratio: 16/9; }

/* =====================================================
   38. EMPTY STATE
   ===================================================== */

.empty-state {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         4rem 2rem;
  text-align:      center;
  gap:             0.75rem;
}

.empty-icon  { font-size: 3.5rem; opacity: 0.45; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-soft); }
.empty-state p  { font-size: 0.88rem; color: var(--text-muted); max-width: 340px; }

/* =====================================================
   39. FOOTER
   ===================================================== */

.home-footer {
  background:    rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  border-top:    1px solid rgba(74,184,254,0.2);
  padding:       2.25rem 1.25rem;
  text-align:    center;
  position:      relative;
  z-index:       1;
}

.home-footer-inner {
  max-width:      var(--content-max);
  margin:         0 auto;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            1rem;
}

.footer-socials { display: flex; gap: 10px; }

.footer-social {
  width:           40px;
  height:          40px;
  border-radius:   var(--radius-sm);
  background:      rgba(255,255,255,0.7);
  border:          1px solid rgba(74,184,254,0.2);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--blue-mid);
  text-decoration: none;
  transition:      all var(--transition);
  box-shadow:      0 2px 8px var(--glass-shadow);
}

.footer-social:hover {
  background:   rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
  color:        var(--blue-mid);
  transform:    translateY(-2px);
}

/* Full footer grid (inner pages) */
.footer {
  background:    rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  border-top:    1px solid rgba(74,184,254,0.2);
  padding:       3rem 0 2rem;
  position:      relative;
  z-index:       1;
}

.footer-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:                   2rem;
  margin-bottom:         2rem;
}

.footer-brand p {
  font-size:  0.85rem;
  color:      var(--text-muted);
  margin-top: 0.5rem;
  max-width:  240px;
}

.footer-col h4 {
  font-size:      0.78rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--text-soft);
  margin-bottom:  0.75rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-col ul li a {
  font-size:  0.88rem;
  color:      var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--blue-mid); }

.footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding-top:     1.5rem;
  border-top:      1px solid rgba(74,184,254,0.15);
  font-size:       0.82rem;
  color:           var(--text-muted);
  flex-wrap:       wrap;
  gap:             0.75rem;
}

/* =====================================================
   40. DISCORD POPUP
   ===================================================== */

.discord-popup-overlay {
  position:        fixed;
  inset:           0;
  background:      rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         9999;
}

.discord-popup-box {
  background:    rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border:        1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding:       2rem;
  max-width:     420px;
  width:         90%;
  text-align:    center;
  box-shadow:    0 16px 48px rgba(37,99,235,0.15);
}

.discord-popup-box h2 { color: var(--text); margin-bottom: 8px; }

/* =====================================================
   41. RESPONSIVE — TABLET
   ===================================================== */

@media (max-width: 1024px) {
  .footer-grid          { grid-template-columns: 1fr 1fr; }
  .admin-wrap           { flex-direction: column; }
  .admin-sidebar        { width: 100%; height: auto; position: static; }
  .home-wrap            { grid-template-columns: 1fr; }
  .motw-card            { grid-template-columns: 1fr; }
  .motw-img             { height: 180px; }
}

/* =====================================================
   42. RESPONSIVE — MOBILE
   ===================================================== */

@media (max-width: 768px) {
  :root { --navbar-height: 58px; }

  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display:        flex;
    flex-direction: column;
    position:       fixed;
    top:            var(--navbar-height);
    left:           0;
    right:          0;
    bottom:         0;
    background:     rgba(240,246,255,0.98);
    backdrop-filter: blur(20px);
    padding:        1.5rem;
    z-index:        99;
    gap:            0.25rem;
    overflow-y:     auto;
  }

  .nav-links.open .nav-link {
    padding:       0.85rem 1rem;
    border-radius: var(--radius);
    font-size:     1rem;
  }

  .layout-with-sidebar { flex-direction: column; }
  .sidebar-sticky      { width: 100%; min-width: 0; position: static; }

  .auth-card { padding: 1.5rem 1.25rem; }

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

  .footer-bottom {
    flex-direction: column;
    text-align:     center;
  }

  .profile-stats { gap: 1.25rem; }

  .hero {
    padding:    80px 16px 60px;
    min-height: auto;
  }

  .hero-discord-bar {
    border-radius: var(--radius-lg);
    padding:       10px 16px;
    gap:           10px;
  }

  .category-grid,
  .mod-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar { gap: 1.25rem; }

  .home-wrap { padding: 24px 1rem 60px; }

  .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast           { min-width: 0; max-width: 100%; }

  .notif-dropdown { width: 300px; }
}

@media (max-width: 480px) {
  .btn-lg          { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
  .hero h1         { font-size: 1.75rem; }
  .hero-ctas       { flex-direction: column; width: 100%; }
  .hero-ctas .btn,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .community-card  { grid-template-columns: 50px 1fr auto; height: 58px; }
  .community-card-img { width: 50px; height: 58px; }
}