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

:root {
  --bg-dark: #08020a;
  --bg-card: #120516;
  --bg-card-hover: #1b0821;
  --primary-purple: #36013f;
  --hover-purple: #540861;
  --accent-purple: #85189c;
  --border-purple: rgba(133, 24, 156, 0.28);
  --border-purple-hover: rgba(199, 58, 235, 0.55);
  --text-main: #f3f0f5;
  --text-muted: #9e97a3;
  --font-heading: 'UnifrakturCook', cursive, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #240d2f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--hover-purple);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(163, 24, 187, 0.7));
  }
}

/* Typography */
.font-ballas {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.font-display {
  font-family: var(--font-display);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons with Smooth Micro-Interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-purple {
  background-color: var(--primary-purple);
  color: #fff;
  border-color: rgba(163, 24, 187, 0.45);
  box-shadow: 0 4px 15px rgba(54, 1, 63, 0.4);
}
.btn-purple:hover {
  background-color: var(--hover-purple);
  border-color: rgba(199, 58, 235, 0.7);
  box-shadow: 0 8px 25px rgba(133, 24, 156, 0.5);
}

.btn-discord {
  background-color: #5865F2;
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
  background-color: #4752c4;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-main);
  border: 1px solid var(--border-purple);
}
.btn-outline:hover {
  background: rgba(54, 1, 63, 0.35);
  border-color: var(--border-purple-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(54, 1, 63, 0.4);
}

/* FLOATING GLASSMORPHISM HEADER WITH ROUNDED CORNERS */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-floating-pill {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(14, 4, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(163, 24, 187, 0.32);
  border-radius: 20px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(54, 1, 63, 0.35);
  transition: all 0.3s ease;
}

.site-header.scrolled .header-floating-pill {
  background: rgba(10, 2, 14, 0.94);
  border-color: rgba(199, 58, 235, 0.5);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95);
  padding: 8px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease;
}
.brand-logo:hover {
  transform: scale(1.03);
}
.brand-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
  flex-shrink: 0;
}
.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #fff;
  line-height: 1.1;
}
.brand-text span {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
}

/* Nav links pill */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 6px;
  border-radius: 14px;
  border: 1px solid rgba(133, 24, 156, 0.25);
}
.nav-links a {
  padding: 7px 15px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
  color: #fff;
  background: rgba(54, 1, 63, 0.9);
  border: 1px solid rgba(163, 24, 187, 0.5);
  box-shadow: 0 4px 12px rgba(54, 1, 63, 0.5);
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #a855f7;
  cursor: pointer;
  background: #1a0820;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(163, 24, 187, 0.4);
}
.user-avatar-btn:hover {
  border-color: #d8b4fe;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(163, 24, 187, 0.7);
}
.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Dropdown with Smooth Animation */
.user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 220px;
  background: #120516;
  border: 1px solid var(--border-purple-hover);
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-purple);
}
.dropdown-header p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.dropdown-header h4 {
  font-size: 13px;
  color: #fff;
  margin-top: 2px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s ease;
}
.dropdown-menu a:hover {
  background: rgba(54, 1, 63, 0.5);
  color: #fff;
}
.dropdown-menu a.text-red {
  color: #f87171;
  border-top: 1px solid var(--border-purple);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* HERO SECTION WITH SMOOTH KEYFRAME ANIMATIONS */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.hero-purple-tint {
  position: absolute;
  inset: 0;
  background-color: #36013F;
  mix-blend-mode: color;
  opacity: 0.55;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 2, 10, 0.15) 0%, rgba(8, 2, 10, 0.7) 100%),
              linear-gradient(to bottom, rgba(8, 2, 10, 0.45) 0%, transparent 45%, rgba(8, 2, 10, 0.9) 85%, #08020a 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(20, 6, 26, 0.9);
  border: 1px solid rgba(199, 58, 235, 0.45);
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title-img {
  max-width: 520px;
  width: 90%;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 6px 25px rgba(54, 1, 63, 0.9));
  animation: floatSubtle 5s ease-in-out infinite;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.hero-title-img.logo-scrolled-away {
  animation: none !important;
  transform: translateY(-90px) scale(0.9) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 26px;
  color: #e9d5ff;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid rgba(133, 24, 156, 0.2);
  padding-top: 30px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.stat-card {
  background: rgba(18, 5, 22, 0.85);
  border: 1px solid var(--border-purple);
  padding: 16px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-purple-hover);
  background: rgba(24, 7, 30, 0.95);
}
.stat-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
  font-weight: 800;
}
.stat-card span {
  font-size: 10px;
  text-transform: uppercase;
  color: #c084fc;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}
.section-dark {
  background-color: #0b030e;
  border-top: 1px solid rgba(133, 24, 156, 0.15);
  border-bottom: 1px solid rgba(133, 24, 156, 0.15);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}
.section-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: #fff;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Cards Grid with Smooth Hover Lift */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}
.cards-grid-centered > * {
  width: 100%;
  max-width: 360px;
  flex: 0 1 360px;
}

.syndicate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.syndicate-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-purple-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(54, 1, 63, 0.45);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(54, 1, 63, 0.65);
  border: 1px solid rgba(163, 24, 187, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #d8b4fe;
  transition: transform 0.3s ease;
}
.syndicate-card:hover .card-icon {
  transform: scale(1.1);
}
.syndicate-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}
.syndicate-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Centered Members & Hierarchy System */
.rank-group {
  margin-bottom: 60px;
  text-align: center;
}

.rank-header-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rank-order-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #c084fc;
}

.rank-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.04em;
}

.rank-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #d8b4fe;
  background: rgba(54, 1, 63, 0.65);
  border: 1px solid rgba(163, 24, 187, 0.45);
  padding: 3px 12px;
  border-radius: 20px;
}

.rank-divider {
  width: 180px;
  height: 2px;
  margin: 0 auto 32px auto;
  background: radial-gradient(circle, rgba(199, 58, 235, 0.8) 0%, rgba(54, 1, 63, 0.3) 70%, transparent 100%);
}

.members-centered-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  margin: 0 auto;
  max-width: 1100px;
}

.member-card {
  width: 100%;
  max-width: 320px;
  flex: 0 1 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover {
  border-color: var(--border-purple-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -5px rgba(54, 1, 63, 0.45);
}

/* 1:1 Aspect Ratio Photo - No Zoom Cropping on Hover */
.member-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid rgba(163, 24, 187, 0.25);
}

.member-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: filter 0.3s ease;
}

.member-card:hover .member-photo img {
  filter: brightness(1.05);
}

.member-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 4, 20, 0.75) 0%, transparent 22%);
  pointer-events: none;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 2, 10, 0.9);
  border: 1px solid rgba(163, 24, 187, 0.5);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #d8b4fe;
  text-transform: uppercase;
}

.member-info {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.member-info h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 800;
  text-align: center;
}

.member-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #c084fc;
  font-weight: 600;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.member-social-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
  flex-wrap: wrap;
}

.member-social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(133, 24, 156, 0.25);
  border: 1px solid var(--border-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8b4fe;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.member-social-icon-btn:hover {
  background: var(--primary-purple);
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.45);
}

.member-social-icon-btn svg {
  width: 15px;
  height: 15px;
}

.member-bio {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
  text-align: center;
}

/* Application Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 18px;
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d8b4fe;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-purple);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
}
.form-control:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(163, 24, 187, 0.35);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* FOOTER EXACTLY MATCHING USER'S REFERENCE IMAGE (SOULCITY STYLE) */
.site-footer {
  background: #060108;
  border-top: 1px solid rgba(133, 24, 156, 0.2);
  padding: 55px 0 25px;
  margin-top: auto;
}

.footer-layout-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 35px;
}

.footer-brand-side {
  max-width: 480px;
}

.footer-tagline {
  font-size: 13px;
  color: #a39ea8;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Circular Social Buttons Matching Reference Image */
.footer-social-circles {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-circle-btn:hover {
  background: rgba(84, 8, 97, 0.6);
  border-color: rgba(199, 58, 235, 0.7);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(133, 24, 156, 0.45);
}

.social-circle-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Right side navigation links column */
.footer-links-side {
  min-width: 140px;
}

.footer-links-title {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
}
.footer-nav-list li {
  margin-bottom: 8px;
}
.footer-nav-list a {
  font-size: 13px;
  color: #9ca3af;
  transition: all 0.2s ease;
}
.footer-nav-list a:hover {
  color: #fff;
  padding-left: 3px;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(133, 24, 156, 0.12);
  padding-top: 22px;
  font-size: 12px;
  color: #6b7280;
}

/* ==========================================================================
   ADMIN DASHBOARD SIDEBAR LAYOUT
   ========================================================================== */
.admin-body {
  background: #08020a;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.admin-dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.admin-sidebar {
  width: 270px;
  min-width: 270px;
  background: rgba(14, 4, 20, 0.96);
  border-right: 1px solid rgba(163, 24, 187, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 90;
  transition: transform 0.3s ease;
}

.admin-sidebar-brand {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(163, 24, 187, 0.18);
}
.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.admin-brand-link h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #fff;
  line-height: 1.1;
}
.admin-brand-link span {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-profile-badge {
  margin: 16px 16px 12px;
  padding: 10px 14px;
  background: rgba(54, 1, 63, 0.35);
  border: 1px solid rgba(163, 24, 187, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-badge-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #c084fc;
}
.admin-badge-info {
  display: flex;
  flex-direction: column;
}
.admin-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.admin-badge-tag {
  font-size: 9px;
  text-transform: uppercase;
  color: #a855f7;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 10px 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.admin-nav-item:hover {
  background: rgba(54, 1, 63, 0.45);
  color: #fff;
  transform: translateX(3px);
}

.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(84, 8, 97, 0.9) 0%, rgba(54, 1, 63, 0.5) 100%);
  color: #fff;
  font-weight: 700;
  border-left: 3px solid #c084fc;
  box-shadow: 0 4px 15px rgba(54, 1, 63, 0.5);
}

.admin-nav-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.admin-badge-count {
  margin-left: auto;
  background: #eab308;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}

.admin-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(163, 24, 187, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-action-btn.text-danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}
.sidebar-action-btn.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.admin-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #08020a;
}

.admin-topbar {
  padding: 20px 36px;
  border-bottom: 1px solid rgba(163, 24, 187, 0.2);
  background: rgba(12, 3, 17, 0.7);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-purple);
  color: #fff;
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.topbar-subtitle {
  font-size: 10px;
  text-transform: uppercase;
  color: #a855f7;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: block;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #fff;
  margin-top: 2px;
}

.topbar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #6ee7b7;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.admin-content-inner {
  padding: 32px 36px 60px;
  flex: 1;
}

@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-toggle {
    display: block;
  }
  .admin-topbar {
    padding: 16px 20px;
  }
  .admin-content-inner {
    padding: 20px 16px 40px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-layout-row {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid-centered > * {
    max-width: 100%;
  }
  .member-card {
    max-width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-title-img {
    max-width: 320px;
  }
  .header-floating-pill {
    padding: 8px 14px;
    border-radius: 16px;
  }
}

/* GALLERY LIGHTBOX & INTERACTIVE WHEEL ZOOM */
.gallery-clickable-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery-clickable-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 35px rgba(54, 1, 63, 0.6), 0 0 20px rgba(163, 24, 187, 0.35);
  border-color: rgba(199, 58, 235, 0.55);
}
.gallery-clickable-card:hover .gallery-thumb-img {
  transform: scale(1.04);
}
.gallery-expand-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 2, 14, 0.88);
  border: 1px solid rgba(163, 24, 187, 0.45);
  color: #e9d5ff;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.gallery-clickable-card:hover .gallery-expand-hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 1, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.gallery-lightbox-wrapper {
  position: relative;
  z-index: 10;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalPopIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(22, 6, 29, 0.85);
  border: 1px solid rgba(163, 24, 187, 0.5);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.gallery-lightbox-close:hover {
  background: #a318bb;
  transform: rotate(90deg) scale(1.08);
  border-color: #d8b4fe;
}

.gallery-lightbox-view {
  width: auto;
  max-width: 86vw;
  height: 65vh;
  max-height: 720px;
  background: #0d0212;
  border: 1px solid rgba(163, 24, 187, 0.45);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(84, 8, 98, 0.45);
  user-select: none;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  cursor: grab;
  will-change: transform;
}
.gallery-lightbox-img:active {
  cursor: grabbing;
}

.gallery-lightbox-footer {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(14, 3, 19, 0.85);
  border: 1px solid rgba(163, 24, 187, 0.3);
  padding: 10px 18px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.gallery-lightbox-cat {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  color: #c084fc;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gallery-lightbox-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  margin: 2px 0 0;
}

.gallery-lightbox-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  max-width: 500px;
}

.gallery-lightbox-zoom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.zoom-badge {
  background: rgba(54, 1, 63, 0.8);
  border: 1px solid rgba(199, 58, 235, 0.4);
  color: #e9d5ff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.zoom-guide {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .gallery-lightbox-view {
    height: 55vh;
    max-width: 92vw;
  }
  .gallery-lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ESB AI FLOATING SUPPORT WIDGET & CHAT WINDOW
   ========================================================================== */
.esb-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(5, 1, 8, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.esb-ai-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.esb-ai-floating-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: inherit;
}

/* Floating Trigger Button */
.esb-ai-trigger-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2e063b 0%, #110217 100%);
  border: 1.5px solid rgba(199, 58, 235, 0.65);
  border-radius: 50px;
  padding: 10px 18px 10px 12px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 22px rgba(168, 85, 247, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
}
.esb-ai-trigger-btn:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: #d8b4fe;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.95), 0 0 28px rgba(168, 85, 247, 0.75);
}
.esb-ai-trigger-btn.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(24px) scale(0.7) !important;
  pointer-events: none !important;
}

.esb-ai-trigger-icon {
  width: 36px;
  height: 36px;
  background: rgba(84, 8, 98, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d8b4fe;
  border: 1px solid rgba(199, 58, 235, 0.4);
}

.esb-ai-badge-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.esb-ai-badge-label span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.esb-ai-pulse-dot {
  position: absolute;
  top: 8px;
  left: 36px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #110217;
  animation: pulseAiGreen 2s infinite;
}

@keyframes pulseAiGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Chat Window (Phone-sized) */
.esb-ai-chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 580px;
  max-height: calc(100vh - 48px);
  background: rgba(14, 3, 20, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(163, 24, 187, 0.55);
  border-radius: 22px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(84, 8, 98, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(25px) scale(0.9);
  transform-origin: bottom right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  z-index: 99999;
}

.esb-ai-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat Header */
.esb-ai-header {
  padding: 14px 18px;
  background: rgba(22, 5, 30, 0.95);
  border-bottom: 1px solid rgba(163, 24, 187, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.esb-ai-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.esb-ai-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  background: rgba(54, 1, 63, 0.5);
  border-radius: 50%;
  border: 1.5px solid rgba(199, 58, 235, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.esb-ai-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.esb-ai-online-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #16051e;
  border-radius: 50%;
}
.esb-ai-header-titles h3 {
  font-family: var(--font-heading, inherit);
  font-size: 16px;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}
.esb-ai-header-titles span {
  font-size: 10px;
  color: #c084fc;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.esb-ai-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(163, 24, 187, 0.3);
  color: #e9d5ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.esb-ai-close-btn:hover {
  background: #a318bb;
  color: #fff;
  transform: rotate(90deg);
}

/* Chat Messages */
.esb-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  scroll-behavior: smooth;
}
.esb-ai-messages::-webkit-scrollbar {
  width: 5px;
}
.esb-ai-messages::-webkit-scrollbar-thumb {
  background: rgba(163, 24, 187, 0.3);
  border-radius: 10px;
}

.esb-ai-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
  animation: fadeInMsg 0.25s ease;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.esb-ai-msg.bot {
  align-self: flex-start;
}
.esb-ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.esb-ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(54, 1, 63, 0.6);
  border: 1px solid rgba(199, 58, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.esb-ai-msg-avatar img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.esb-ai-msg-content {
  background: rgba(26, 7, 36, 0.9);
  border: 1px solid rgba(163, 24, 187, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  color: #f3e8ff;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.esb-ai-msg.user .esb-ai-msg-content {
  background: linear-gradient(135deg, #7e1291 0%, #4a0358 100%);
  border-color: rgba(199, 58, 235, 0.6);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.esb-ai-msg.bot .esb-ai-msg-content {
  border-bottom-left-radius: 3px;
}

/* Typing Indicator */
.esb-ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
}
.esb-ai-typing span {
  width: 6px;
  height: 6px;
  background: #c084fc;
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}
.esb-ai-typing span:nth-child(1) { animation-delay: -0.32s; }
.esb-ai-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Footer Input Bar */
.esb-ai-footer {
  padding: 12px 14px;
  background: rgba(20, 4, 28, 0.98);
  border-top: 1px solid rgba(163, 24, 187, 0.3);
  flex-shrink: 0;
}
.esb-ai-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 2, 12, 0.75);
  border: 1.5px solid rgba(163, 24, 187, 0.45);
  border-radius: 25px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.esb-ai-input-form:focus-within {
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(163, 24, 187, 0.4);
}
.esb-ai-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}
.esb-ai-input::placeholder {
  color: rgba(233, 213, 255, 0.45);
}
.esb-ai-send-btn {
  background: var(--primary-purple, #a318bb);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.esb-ai-send-btn:hover {
  background: #c084fc;
  transform: scale(1.06);
}
.esb-ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 500px) {
  .esb-ai-floating-container {
    bottom: 16px;
    right: 16px;
  }
  .esb-ai-chat-window {
    width: calc(100vw - 32px);
    bottom: 16px;
    right: 16px;
    height: 80vh;
    max-height: 560px;
  }
}
