@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0d0d0d;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --bg4: #222222;
  --surface: rgba(20, 20, 20, 0.85);
  --surface2: rgba(26, 26, 26, 0.92);
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #ffffff;
  --text2: #aaaaaa;
  --text3: #666666;
  --accent: #f44336;
  --accent2: #ff6b6b;
  --accent-glow: rgba(244, 67, 54, 0.25);
  --accent-glow2: rgba(244, 67, 54, 0.1);
  --green: #4caf50;
  --yellow: #ffc107;
  --blue: #2196f3;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.7);
  --nav-height: 64px;
  --transition: 0.2s ease;
}

body.light-mode {
  --bg: #f4f4f4;
  --bg2: #ebebeb;
  --bg3: #e0e0e0;
  --bg4: #d5d5d5;
  --surface: rgba(255,255,255,0.9);
  --surface2: rgba(245,245,245,0.95);
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.15);
  --text: #111111;
  --text2: #555555;
  --text3: #999999;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: 'Lexend', sans-serif; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: 'Lexend', sans-serif; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
  margin-right: 32px;
}

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

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 400;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 500; }

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border2);
  margin: 0 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-theme {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all var(--transition);
}
.btn-theme:hover { background: var(--bg4); color: var(--text); }

.btn-connect {
  padding: 7px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-connect:hover { background: var(--accent); color: #fff; }

.btn-notif {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  position: relative;
  transition: color var(--transition);
}
.btn-notif:hover { color: var(--text); }
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}
.nav-user:hover { border-color: var(--border2); }
.nav-user img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-user span { font-size: 13px; font-weight: 500; }
.nav-user .fa-chevron-down { font-size: 10px; color: var(--text3); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
}
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  color: var(--text2);
  font-size: 13px;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg4); color: var(--text); }
.user-dropdown .divider { height: 1px; background: var(--border); margin: 4px 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.35);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.6) 60%, rgba(13,13,13,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 80px) 80px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero h1 .dim { color: var(--text2); font-weight: 600; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--text); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #e53935; box-shadow: 0 4px 20px var(--accent-glow); }

.btn-danger {
  background: rgba(244,67,54,0.15);
  color: var(--accent);
  border: 1px solid rgba(244,67,54,0.3);
}
.btn-danger:hover { background: var(--accent); color: #fff; }

.btn-success {
  background: rgba(76,175,80,0.15);
  color: var(--green);
  border: 1px solid rgba(76,175,80,0.3);
}
.btn-success:hover { background: var(--green); color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 16px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ─── SECTION ─── */
.section {
  padding: 80px 80px;
}
.section-sm { padding: 48px 80px; }

.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--text2);
  margin-top: 6px;
  font-size: 14px;
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border2); }

.card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}

/* ─── PAGE HERO (sub-pages) ─── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 80px 60px;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px) brightness(0.2);
  transform: scale(1.1);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.5), rgba(13,13,13,0.9) 80%, rgba(13,13,13,1));
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.page-hero p {
  color: var(--text2);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── STEPS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.step-num {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-card p { color: var(--text2); font-size: 13px; }

/* ─── ANNOUNCEMENTS ─── */
.announcement-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition);
}
.announcement-card:hover { border-color: var(--border2); }
.ann-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ann-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-glow2);
  padding: 3px 8px;
  border-radius: 4px;
}
.ann-date { font-size: 12px; color: var(--text3); }
.ann-pin { color: var(--accent); font-size: 11px; }
.announcement-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.announcement-card p { color: var(--text2); font-size: 13px; line-height: 1.6; }

/* ─── RULES ─── */
.rules-search {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 14px 20px;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.rules-search:focus { outline: none; border-color: var(--accent); }
.rules-search::placeholder { color: var(--text3); }

.rule-count-label { font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.rule-count-label strong { color: var(--text2); }

.rule-category {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.rule-category.open { border-color: var(--border2); }
.rule-category-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.rule-category-header:hover { background: rgba(255,255,255,0.03); }
.rule-cat-left {}
.rule-cat-title { font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.rule-cat-desc { font-size: 12px; color: var(--text2); }
.rule-cat-right { display: flex; align-items: center; gap: 12px; }
.rule-cat-count { font-size: 12px; color: var(--text3); }
.rule-cat-chevron {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  font-size: 11px;
  transition: transform var(--transition), background var(--transition);
}
.rule-category.open .rule-cat-chevron { transform: rotate(180deg); background: var(--accent); color: #fff; }

.rule-list {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
}
.rule-category.open .rule-list { display: block; }
.rule-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.rule-item:last-child { border-bottom: none; }
.rule-num { color: var(--accent); font-weight: 600; min-width: 30px; }
.rule-text { color: var(--text2); line-height: 1.6; }

/* ─── APPLY ─── */
.apply-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.apply-header-card h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.5px; }
.apply-header-card p { color: var(--text2); font-size: 13px; margin-top: 4px; }

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.filter-tab:hover { background: var(--bg4); color: var(--text); }
.filter-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.app-search {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px 11px 40px;
  width: 100%;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 24px;
}
.app-search:focus { outline: none; border-color: var(--accent); }
.app-search-wrap { position: relative; }
.app-search-wrap .fa-search {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 13px;
}

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

.app-type-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.app-type-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px var(--accent-glow2); }
.app-type-card.closed { opacity: 0.5; cursor: not-allowed; }
.app-type-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 14px;
}
.app-type-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.app-type-card p { font-size: 12px; color: var(--text2); line-height: 1.5; }
.app-type-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.app-category-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg4);
  color: var(--text3);
}
.app-status-open { color: var(--green); font-size: 12px; }
.app-status-closed { color: var(--text3); font-size: 12px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1rem; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ─── FORM ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.form-label .required { color: var(--accent); margin-left: 3px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg4);
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-select { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 5px; }

/* ─── STAFF PAGE ─── */
.staff-tier-section { margin-bottom: 56px; }
.staff-tier-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  color: var(--text2);
  margin-bottom: 16px;
}
.staff-tier-label.tier-1 { border-color: var(--accent); color: var(--accent); }
.staff-tier-label.tier-2 { border-color: #ff9800; color: #ff9800; }

.staff-tier-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.staff-tier-desc { color: var(--text2); font-size: 13px; margin-bottom: 24px; padding-left: 16px; }

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

.staff-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition);
}
.staff-card:hover { border-color: var(--border2); }
.staff-avatar {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.staff-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.staff-rank { font-size: 12px; color: var(--accent); font-weight: 500; }
.staff-title { font-size: 12px; color: var(--text3); }

/* ─── FORUMS ─── */
.forum-category-row {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.forum-category-row:hover { border-color: var(--border2); }
.forum-cat-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-glow2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.forum-cat-info { flex: 1; }
.forum-cat-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.forum-cat-info p { font-size: 12px; color: var(--text2); }
.forum-cat-stats { text-align: right; flex-shrink: 0; }
.forum-cat-stats .count { font-size: 1.1rem; font-weight: 600; }
.forum-cat-stats .label { font-size: 11px; color: var(--text3); }

.thread-row {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  transition: border-color var(--transition);
}
.thread-row:hover { border-color: var(--border2); }
.thread-row.pinned { border-color: rgba(244,67,54,0.3); }
.thread-author-avatar { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.thread-info { flex: 1; min-width: 0; }
.thread-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-title a:hover { color: var(--accent); }
.thread-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text3); flex-wrap: wrap; }
.pin-badge { color: var(--accent); font-size: 11px; }
.locked-badge { color: var(--text3); font-size: 11px; }
.thread-stats { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text3); flex-shrink: 0; }
.thread-stats span { display: flex; align-items: center; gap: 4px; }

/* ─── FORUM THREAD VIEW ─── */
.thread-post {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.post-header img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.post-author-name { font-size: 14px; font-weight: 600; }
.post-author-sub { font-size: 11px; color: var(--text3); }
.post-date { font-size: 12px; color: var(--text3); margin-left: auto; }
.post-body { padding: 20px; font-size: 14px; line-height: 1.8; color: var(--text2); }
.post-body p { margin-bottom: 12px; }
.post-body p:last-child { margin-bottom: 0; }
.post-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 16px;
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.react-btn:hover, .react-btn.liked { background: var(--accent-glow2); border-color: var(--accent); color: var(--accent); }

/* ─── PROFILE ─── */
.profile-hero {
  position: relative;
  padding: calc(var(--nav-height) + 40px) 80px 48px;
}
.profile-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-info h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 4px; }
.profile-info p { font-size: 13px; color: var(--text2); }
.profile-meta { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.profile-meta-item { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 5px; }

.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.profile-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.profile-tab:hover { color: var(--text2); }
.profile-tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ─── STATUS BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-pending { background: rgba(255,193,7,0.15); color: var(--yellow); }
.badge-accepted { background: rgba(76,175,80,0.15); color: var(--green); }
.badge-denied { background: rgba(244,67,54,0.15); color: var(--accent); }
.badge-open { background: rgba(33,150,243,0.15); color: var(--blue); }
.badge-closed { background: rgba(255,255,255,0.07); color: var(--text3); }
.badge-admin { background: rgba(244,67,54,0.2); color: var(--accent); }
.badge-mod { background: rgba(33,150,243,0.2); color: var(--blue); }

/* ─── STORE ─── */
.store-hero-card {
  background: linear-gradient(135deg, rgba(244,67,54,0.15), rgba(244,67,54,0.05));
  border: 1px solid rgba(244,67,54,0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-bottom: 40px;
}
.store-hero-card h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.store-hero-card p { color: var(--text2); margin-bottom: 24px; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.store-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.store-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow); }
.store-card-img { width: 100%; height: 160px; background: var(--bg4); object-fit: cover; }
.store-card-img-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--bg4), var(--bg3));
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  font-size: 2rem;
}
.store-card-body { padding: 20px; }
.store-card-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.store-card-body p { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; }
.store-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }

/* ─── ADMIN PANEL ─── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
}
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.admin-sidebar-header {
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.admin-sidebar-header h3 { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-link.active { color: var(--text); border-left-color: var(--accent); background: rgba(244,67,54,0.07); }
.sidebar-link i { width: 16px; text-align: center; font-size: 13px; }

.admin-content { flex: 1; padding: 32px; overflow: hidden; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-section-header h2 { font-size: 1.3rem; font-weight: 700; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .stat-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -1px; }
.stat-card .stat-sub { font-size: 12px; color: var(--text3); margin-top: 4px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

.table-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg4);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--accent); color: #fff; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── NOTIFICATIONS PANEL ─── */
.notif-panel {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: 16px;
  width: 340px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: none;
  overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-panel-header h4 { font-size: 13px; font-weight: 600; }
.notif-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { border-left: 2px solid var(--accent); }
.notif-item h5 { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.notif-item p { font-size: 12px; color: var(--text3); }

/* ─── REVIEW PAGE ─── */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.review-answers { }
.review-answer-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.review-answer-item .q { font-size: 12px; color: var(--text3); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.review-answer-item .a { font-size: 14px; color: var(--text); line-height: 1.6; }

.review-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}
.review-panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.review-panel-header h3 { font-size: 14px; font-weight: 600; }

.messages-list { max-height: 300px; overflow-y: auto; padding: 12px; }
.message-item { margin-bottom: 12px; }
.message-item .msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.message-item .msg-header img { width: 24px; height: 24px; border-radius: 4px; }
.message-item .msg-header .name { font-size: 12px; font-weight: 600; }
.message-item .msg-header .staff-tag { font-size: 10px; color: var(--accent); font-weight: 600; }
.message-item .msg-header .time { font-size: 11px; color: var(--text3); margin-left: auto; }
.message-item .msg-body { font-size: 13px; color: var(--text2); line-height: 1.5; padding-left: 32px; }
.message-item.staff-msg .msg-body { color: #90caf9; }

/* ─── FLOATING REPORT BUG ─── */
.fab-report {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.fab-report:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 80px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text3); margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── UTILITY ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 80px; }
.flex { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--text2); }
.text-dim { color: var(--text3); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}
.toast-success { background: var(--green); color: #fff; }
.toast-error { background: var(--accent); color: #fff; }
.toast-info { background: var(--blue); color: #fff; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .section, .section-sm, footer { padding-left: 40px; padding-right: 40px; }
  .container { padding: 0 40px; }
  .hero-content { padding-left: 40px; padding-right: 40px; }
  .page-hero { padding-left: 40px; padding-right: 40px; }
  .profile-hero { padding-left: 40px; padding-right: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section, .section-sm, footer { padding-left: 20px; padding-right: 20px; }
  .container { padding: 0 20px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .page-hero { padding-left: 20px; padding-right: 20px; }
  .profile-hero { padding-left: 20px; padding-right: 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .hero h1 { font-size: 2.2rem; }
  .data-table { font-size: 12px; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .apply-header-card { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ─── MOBILE NAV OPEN ─── */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  gap: 4px;
  z-index: 999;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── REVIEW LAYOUT RESPONSIVE ─── */
@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-panel { position: static; }
}

/* ─── ADMIN RESPONSIVE ─── */
@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; }
  .admin-sidebar-header { display: none; }
  .sidebar-link { border-left: none; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; }
  .sidebar-link.active { border-left: none; border-bottom: 2px solid var(--accent); }
  .admin-content { padding: 16px; }
}

/* ─── TABLE RESPONSIVE ─── */
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
  .data-table td { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); }
  .data-table td:last-child { border-bottom: none; }
}

/* ─── SECTION PADDING FIX ─── */
@media (max-width: 480px) {
  .section, .section-sm { padding-left: 16px; padding-right: 16px; padding-top: 48px; padding-bottom: 48px; }
  .hero-content { padding-left: 16px; padding-right: 16px; }
  .page-hero { padding-left: 16px; padding-right: 16px; }
  footer { padding-left: 16px; padding-right: 16px; }
  .profile-hero, [style*="padding: 0 80px"] { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ─── ONLINE MEMBERS SIDEBAR ─── */
@media (max-width: 860px) {
  .section > div[style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── REVIEWER QUICK PANEL ─── */
.reviewer-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border2);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 400;
  font-size: 13px;
}
.reviewer-bar .rb-label { color: var(--text3); }
.reviewer-bar .rb-count {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ─── ACCEPT/DENY MESSAGE COMPOSER ─── */
.compose-panel {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
}
.compose-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.compose-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.compose-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.compose-body { padding: 16px; }

.discord-embed-preview {
  background: #2b2d31;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 12px;
  font-family: 'gg sans', 'Noto Sans', sans-serif;
}
.discord-embed-preview .embed-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.discord-embed-preview .embed-desc { font-size: 13px; color: #dbdee1; line-height: 1.6; white-space: pre-wrap; }
.discord-embed-preview .embed-field { margin-top: 10px; }
.discord-embed-preview .embed-field-name { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.discord-embed-preview .embed-field-value { font-size: 12px; color: #dbdee1; }
.discord-embed-preview .embed-footer { margin-top: 10px; font-size: 11px; color: #949ba4; }

/* ─── QUEUE BUTTON ─── */
@media (max-width: 600px) {
  .hide-mobile { display: none; }
}