/* ========== PROFESSIONAL COLOR SCHEME ========== */
:root {
  --primary: #60a5fa;
  --primary-light: #93c5fd;
  --primary-dark: #0f172a;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --success: #34d399;
  --danger: #f472b6;
  --warning: #fbbf24;
  --text: #e2e8f0;
  --text-light: #94a3b8;
  --bg: #0b1220;
  --bg-secondary: #111827;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: rgba(15, 23, 42, 0.45);
}

/* ========== GLOBAL SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #0ea5e9);
  border-radius: 10px;
  border: 2px solid #ffffff;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1e40af, #0284c7);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
}

/* ========== BASE STYLES ========== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%231f42b8' d='M12 2l3.5 9H22l-7 5.1 2.7 8.4L12 16.2 6.3 24 9 15.1 2 10h6.5z'/%3E%3C/svg%3E") 12 12, auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top center, rgba(56, 189, 248, 0.08), transparent 22%), linear-gradient(180deg, #030615 0%, #0b1220 35%, #0f172a 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23dbeafe' d='M12 2l3.5 9H22l-7 5.1 2.7 8.4L12 16.2 6.3 24 9 15.1 2 10h6.5z'/%3E%3C/svg%3E") 12 12, auto;
}

main {
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.22), transparent 18%), radial-gradient(circle at 80% 12%, rgba(14, 165, 233, 0.16), transparent 12%), radial-gradient(circle at 25% 80%, rgba(99, 102, 241, 0.12), transparent 20%), radial-gradient(circle at 55% 40%, rgba(234, 179, 8, 0.09), transparent 15%);
  opacity: 0.95;
  z-index: -1;
  animation: drift 24s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1px), radial-gradient(circle, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px;
  background-position: 0 0, 40px 40px;
  opacity: 0.28;
  z-index: -1;
  animation: starMove 28s linear infinite;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary-light);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(10px, -12px, 0);
  }
}

@keyframes starMove {
  from {
    background-position: 0 0, 40px 40px;
  }
  to {
    background-position: -120px 120px, 40px -40px;
  }
}


a:hover {
  color: var(--primary-dark);
}

/* ========== NAVBAR ========== */
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand-text {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-brand img {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-brand:hover img {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}

.nav-back-btn {
  color: #94a3b8 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px !important;
  border-radius: 50%;
}

.nav-back-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(-2px);
}

.links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.links a {
  font-weight: 500;
  font-size: 14.5px;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Styled pills inside navbar for a cohesive appearance */
.links .pill {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

.links .pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Staff Center premium look */
.links .staff-pill {
  background: rgba(52, 211, 153, 0.08) !important;
  border: 1px solid rgba(52, 211, 153, 0.25) !important;
  color: #34d399 !important;
  font-weight: 600 !important;
}

.links .staff-pill:hover {
  background: rgba(52, 211, 153, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
}

/* Close page founder button */
#founderClosePageBtn {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
}

#founderClosePageBtn:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

/* Premium Discord Login */
.links .btn {
  background: #5865F2 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2) !important;
}

.links .btn:hover {
  background: #4752C4 !important;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35) !important;
  transform: translateY(-1px);
}

.menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.user-profile-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar:hover {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ========== LANGUAGE SELECTOR ========== */
.translate-select {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: relative !important;
  padding: 6px 26px 6px 30px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.53c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.4z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-position: 8px center, calc(100% - 10px) center !important;
  background-size: 14px 14px, 10px 10px !important;
  background-repeat: no-repeat !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.translate-select span {
  display: inline-block !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin: 0 4px 0 0 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  z-index: 1 !important;
}

.translate-select .selected-lang {
  color: #f8fafc !important;
  font-weight: 600 !important;
  z-index: 1 !important;
}

.translate-select select {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  z-index: 2 !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.translate-select:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15) !important;
}

.translate-select select option {
  background: #0f172a !important;
  color: #eff6ff !important;
  font-weight: 600 !important;
}

/* ========== BUTTONS & PILLS ========== */
.btn,
.pill,
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn {
  background: linear-gradient(135deg, #38bdf8 0%, #7c3aed 100%);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.24);
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 28px 60px rgba(56, 189, 248, 0.28);
}

.btn {
  animation: glow 8s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 18px 40px rgba(30, 64, 175, 0.14);
  }
  50% {
    box-shadow: 0 24px 50px rgba(30, 64, 175, 0.22);
  }
}

.pill {
  background: rgba(30, 41, 59, 0.88);
  color: var(--text);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.pill:hover {
  border-color: var(--primary-light);
  background: rgba(30, 41, 59, 1);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

/* ========== CARDS ========== */
.card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.whitelist-status-card,
.whitelist-form-card {
  padding: 28px 30px;
  border-radius: 24px;
}

.whitelist-status-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.whitelist-status-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.whitelist-status-card .btn {
  margin-top: 4px;
}

.whitelist-form-card {
  padding-bottom: 32px;
}

.whitelist-intro {
  margin-bottom: 18px;
}

.card form label {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.card form button,
.card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.card h3,
.category-card h3 {
  margin: 0;
  color: var(--text);
}

.card p,
.category-card p,
.modal-body .rule-example,
.modal-body .rule-title {
  color: var(--text-light);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  transform: translateY(-6px) scale(1.005);
}

.category-card {
  cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 5%;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 4.5rem;
  top: 20%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.14) 0%, transparent 65%);
  filter: blur(16px);
  z-index: 0;
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: #f8fafc;
  font-weight: 800;
}

.hero p {
  font-size: 18px;
  color: #cbd5e1;
  margin: 0 0 30px;
  max-width: 680px;
  line-height: 1.75;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-logo {
  width: 100%;
  max-width: 620px;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 24px 60px rgba(15,23,42,0.12);
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 32px;
}

.info-box {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.info-box h3 {
  margin: 12px 0 0;
  color: #f8fafc;
  font-size: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
}

.info-box p {
  margin: 10px 0 0;
  color: var(--text-light);
}

.showcase {
  min-height: 360px;
  border-radius: 22px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.showcase h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.showcase p {
  color: var(--text-light);
  line-height: 1.75;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.deco-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 0 5% 48px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  background: rgba(14, 165, 233, 0.08);
  border-radius: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ========== SECTIONS & GRID ========== */
.section {
  padding: 48px 5%;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 800;
}

.section p {
  color: var(--text-light);
  margin: 0 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 5%;
}

.two {
  grid-template-columns: 1fr 1fr;
}

/* ========== MODAL STYLES ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s ease;
}

.modal.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  z-index: 1000;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.32s cubic-bezier(0.34, 0.69, 0.64, 1);
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #0ea5e9);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1e40af, #0284c7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}

.modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0;
}

.modal-body ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-body li {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-body li:hover {
  background: rgba(56, 189, 248, 0.08);
  border-left-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.13);
}

.modal-body .rule-title {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  font-size: 15px;
}

.modal-body .rule-example {
  color: var(--text-light);
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ========== TABLES ========== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.table th {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table td {
  color: var(--text-light);
}

.table tr:last-child td {
  border-bottom: none;
}

.table .btn {
  padding: 8px 12px;
  font-size: 13px;
}

/* ========== FORM ELEMENTS ========== */
input,
textarea,
select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== STAFF LAYOUT ========== */
.staff-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  padding: 0 5% 48px;
}

.staff-layout > .sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.staff-layout > .sidebar b {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

.staff-layout > .sidebar a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.staff-layout > .sidebar a:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
}

/* ========== UTILITIES ========== */
.hidden {
  display: none !important;
}

.muted {
  color: var(--text-light);
}

footer.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 5%;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-light);
  font-size: 14px;
}

footer.footer img {
  height: 28px;
  width: auto;
}

footer.footer p,
footer.footer span {
  color: var(--text-light);
}

footer.footer p {
  margin: 0;
}

footer.footer span {
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--accent);
  font-weight: 600;
  color: var(--accent);
  font-size: 12px;
}

.tag.success {
  background: rgba(52, 211, 153, 0.1);
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero,
  .grid,
  .two {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 0 4%;
  }

  .links {
    display: none;
  }

  .menu {
    display: block;
  }

  body.open .links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 14, 28, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 24px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    align-items: stretch;
  }

  body.open .links a {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
  }

  body.open .translate-select {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding: 40px 4%;
    gap: 32px;
  }

  .section {
    padding: 32px 4%;
  }

  .info-strip,
  .deco-grid {
    grid-template-columns: 1fr;
    padding: 0 4% 32px;
    gap: 18px;
  }

  .hero-logo-wrap {
    min-height: 360px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 32px 4%;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .modal-content {
    padding: 24px;
    max-width: 95%;
    border-radius: 12px;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .modal-body li {
    padding: 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section h2 {
    font-size: 24px;
  }
}

/* Floating Glassmorphic Back Button */
.floating-back-btn {
  position: fixed;
  top: 100px;
  left: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 28, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-back-btn:hover {
  background: rgba(8, 14, 28, 0.8) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.floating-back-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.floating-back-btn:hover svg {
  transform: translateX(-3px);
}

/* ========== TICKET CHAT STYLING ========== */
.chat {
  height: 480px;
  overflow-y: auto;
  background: rgba(9, 15, 30, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.msg {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}

.msg b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.msg small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: right;
}

/* Align own messages (me) and user messages to the right */
.msg.me,
.msg.user {
  margin-left: auto;
  margin-right: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15));
  border-color: rgba(96, 165, 250, 0.2);
  color: #f8fafc;
  border-bottom-right-radius: 4px;
}

/* Align support messages to the left */
.msg.support {
  margin-left: 0;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(16, 185, 129, 0.05));
  border-color: rgba(52, 211, 153, 0.2);
  color: #f8fafc;
  border-bottom-left-radius: 4px;
}

/* Align system messages in the center */
.msg.system {
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-radius: 12px;
}

/* Chat Input Styling */
select option {
  background-color: #0f172a;
  color: #f1f5f9;
}

#messageBody {
  width: 100%;
  min-height: 100px;
  background: rgba(9, 15, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  color: #ffffff;
  margin: 12px 0 16px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 0 18px rgba(28, 167, 255, 0.03);
}

#messageBody:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

/* ========== ACTIVE NAV LINK INDICATORS ========== */
.links a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

.links .pill.active {
  background: rgba(52, 211, 153, 0.16) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25) !important;
}

/* ========== FILTER FORM STYLING ========== */
.filter-form {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.4);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-top: 0 !important;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.filter-group select,
.filter-group input {
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
  height: 46px !important;
}

.filter-group select:focus,
.filter-group input:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
  outline: none !important;
}

.filter-group.button-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.filter-group.button-group .btn,
.filter-group.button-group .pill {
  margin: 0 !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

/* ========== STAFF SIDEBAR STYLING ========== */
.sidebar a.ajax-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 6px;
  border-left: 3px solid transparent;
}

.sidebar a.ajax-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.sidebar a.ajax-link.active {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-left-color: #38bdf8;
  font-weight: 700;
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05);
}
