/* ==========================================================================
   MENA Elite Discord Servers Directory — Official Luxury Black & Gold Theme
   Harmonized with MENA Elite Group Hub & Links Platform
   ========================================================================== */

:root {
  /* MENA Elite Signature Gold & Dark Palette */
  --bg-deep: #060606;
  --bg-panel: #100f0d;
  --bg-panel-hover: #191714;
  --bg-input: #151411;

  --gold: #d4a843;
  --gold2: #f5d27a;
  --gold-glow: rgba(212, 168, 67, 0.35);
  --gold-border: rgba(212, 168, 67, 0.22);
  --gold-border-hover: rgba(245, 210, 122, 0.75);
  --gold-subtle: rgba(212, 168, 67, 0.12);

  /* Status Colors */
  --ok: #3ecf8e;
  --err: #ff5c5c;
  --blue-badge: #5ca1ff;

  /* Typography */
  --text-main: #f8f6f0;
  --text-secondary: #a9a295;
  --text-muted: #787165;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

img {
  max-width: 100%;
}

body.servers-body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 168, 67, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(245, 210, 122, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 15% 65%, rgba(212, 168, 67, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-arabic);
  min-height: 100vh;
  line-height: 1.6;
  direction: rtl;
}

/* Container */
.servers-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Luxury Header */
.servers-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 12px 0;
}

.servers-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.servers-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.servers-brand img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  display: block !important;
}

.servers-brand-text {
  display: flex;
  flex-direction: column;
}

.servers-brand-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  direction: ltr;
  gap: 6px;
  color: #fff;
}

.servers-brand-badge {
  font-size: 0.68rem;
  color: var(--gold2);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.servers-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Navigation Buttons */
.servers-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  font-family: var(--font-arabic);
  white-space: nowrap;
}

.servers-nav-btn.ghost {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.servers-nav-btn.ghost:hover {
  color: var(--gold2);
  border-color: var(--gold-border-hover);
  background: rgba(212, 168, 67, 0.08);
  transform: translateY(-1px);
}

.servers-nav-btn.gold,
.servers-nav-btn.blurple {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  color: #0c0a07 !important;
  font-weight: 900;
  box-shadow: 0 4px 18px var(--gold-glow);
  border: none;
}

.servers-nav-btn.gold:hover,
.servers-nav-btn.blurple:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.45);
}

/* Flash alerts */
.servers-flash {
  margin: 18px auto 0;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.servers-flash.ok {
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: #3ecf8e;
}

.servers-flash.err {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.35);
  color: #ff8585;
}

/* Hero Section */
.servers-hero {
  padding: 48px 0 28px;
  text-align: center;
}

.servers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold2);
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.12);
}

.servers-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.servers-hero-title span {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.servers-hero-desc {
  max-width: 660px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ==========================================================================
   Royal Billboard / Ads Rotator (لوحة الإعلانات المتغيرة)
   ========================================================================== */
.servers-billboard-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 28px;
}

.servers-billboard {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0;
  background: linear-gradient(135deg, #0e0e13 0%, #171722 50%, #0c0c11 100%);
  border: 1px solid var(--gold-border);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 168, 67, 0.2);
  min-height: 135px;
}

.servers-billboard-slides {
  position: relative;
  width: 100%;
  min-height: 135px;
}

.servers-billboard-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.985);
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.servers-billboard-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}

.billboard-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(1.2);
  z-index: 1;
}

.billboard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(8, 8, 11, 0.96) 0%, rgba(8, 8, 11, 0.8) 50%, rgba(8, 8, 11, 0.88) 100%);
  z-index: 2;
}

.billboard-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 34px 38px 24px;
}

.billboard-info {
  flex: 1;
  min-width: 0;
}

.billboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.billboard-badge.top-corner {
  position: absolute;
  top: 14px;
  right: 24px;
  z-index: 5;
  margin-bottom: 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.billboard-title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.billboard-desc {
  margin: 0;
  color: #c9cdd6;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 680px;
}

.billboard-action {
  flex-shrink: 0;
}

.billboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #070709;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.billboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.5);
  color: #000;
}

/* Billboard Arrow Buttons - Clean, outside the box without circular border */
.billboard-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  width: 34px;
  height: 48px;
  opacity: 0.75;
  transition: all 0.25s ease;
}

.billboard-arrow:hover {
  opacity: 1;
  color: #fff;
  transform: translateY(-50%) scale(1.25);
  filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.9));
  background: transparent;
}

.billboard-arrow.prev {
  right: -36px;
}

.billboard-arrow.next {
  left: -36px;
}

/* Billboard Dots */
.billboard-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}

.billboard-dot {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.billboard-dot.active {
  background: var(--gold);
  width: 32px;
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.6);
}

@media (max-width: 992px) {
  .billboard-arrow.prev {
    right: -24px;
  }
  .billboard-arrow.next {
    left: -24px;
  }
}

@media (max-width: 768px) {
  .billboard-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 20px 28px;
    gap: 14px;
  }
  .billboard-title {
    font-size: 1.1rem;
  }
  .billboard-desc {
    font-size: 0.84rem;
  }
  .billboard-arrow {
    display: none;
  }
  .billboard-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 18px;
  }
}

/* Directory Stats Counter Bar */
.servers-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.servers-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.servers-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-latin);
}

.servers-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Search Box */
.servers-search-box {
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: 22px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

.servers-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.servers-input-wrapper {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.servers-input-icon {
  position: absolute;
  right: 14px;
  font-size: 1rem;
  color: var(--gold);
  pointer-events: none;
}

.servers-input {
  width: 100%;
  padding: 11px 42px 11px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.servers-input:focus {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.05);
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.2);
}

.servers-sort-select {
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.servers-sort-select:focus {
  border-color: var(--gold);
}

.servers-search-btn {
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0c0a07;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: var(--transition);
}

.servers-search-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Category Filter Pills & Royal Slider */
.servers-categories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.servers-categories {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  width: 100%;
}

.servers-categories.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.servers-categories::-webkit-scrollbar {
  display: none;
}

.servers-cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.servers-cat-pill:hover {
  color: var(--gold2);
  background: var(--bg-panel-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.15);
}

.servers-cat-pill.active {
  background: linear-gradient(135deg, rgba(245, 210, 122, 0.22), rgba(212, 168, 67, 0.22));
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.28);
}

/* Category Navigation Arrows - Matching Billboard Arrows (Clean, outside the box without circular border) */
.servers-cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  width: 34px;
  height: 48px;
  opacity: 0.75;
  transition: all 0.25s ease;
}

.servers-cat-arrow:hover {
  opacity: 1;
  color: #fff;
  transform: translateY(-50%) scale(1.25);
  filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.9));
  background: transparent;
}

.servers-cat-arrow.prev {
  right: -36px;
}

.servers-cat-arrow.next {
  left: -36px;
}

.servers-cat-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 992px) {
  .servers-cat-arrow.prev {
    right: -24px;
  }
  .servers-cat-arrow.next {
    left: -24px;
  }
}

@media (max-width: 768px) {
  .servers-cat-arrow {
    display: none;
  }
}

/* Section Headings */
.servers-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.servers-section-title {
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

/* Cards Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

/* Server Card */
.server-card {
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.server-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 168, 67, 0.18);
}

.server-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.16);
}

.server-card.featured:hover {
  border-color: var(--gold2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 26px var(--gold-glow);
}

/* Card Banner */
.server-card-banner {
  height: 115px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #141311;
  position: relative;
}

.server-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(16, 15, 13, 0.96) 100%);
}

.server-badges-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.badge-featured {
  background: rgba(212, 168, 67, 0.25);
  border: 1px solid var(--gold);
  color: var(--gold2);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.25);
}

.badge-verified {
  background: rgba(212, 168, 67, 0.16);
  border: 1px solid rgba(212, 168, 67, 0.45);
  color: #fff;
}

.badge-partner {
  background: rgba(62, 207, 142, 0.18);
  border: 1px solid rgba(62, 207, 142, 0.45);
  color: #5ce3a6;
}

/* Card Body */
.server-card-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.server-header-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.server-icon {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  border-radius: 16px;
  border: 3px solid #141312;
  background: #141312;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.server-title-wrap {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.server-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.server-title:hover {
  color: var(--gold2);
}

.server-category {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.server-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

/* Tags */
.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.server-tag-item {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-muted);
}

/* Stats Row */
.server-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  font-size: 0.82rem;
}

.server-live-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
}

.server-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--ok);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--ok);
}

.server-rating-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffc107;
  font-weight: 800;
}

/* Card Actions */
.server-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.server-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-arabic);
}

.server-btn.join {
  flex: 1;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0c0a07;
  box-shadow: 0 4px 12px var(--gold-glow);
}

.server-btn.join:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.server-btn.bump {
  background: var(--gold-subtle);
  color: var(--gold2);
  border: 1px solid var(--gold-border);
}

.server-btn.bump:hover {
  background: rgba(212, 168, 67, 0.22);
  border-color: var(--gold);
  color: #fff;
}

.server-btn.details {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-btn.details:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Empty State */
.servers-empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-panel);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-lg);
}

.servers-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.servers-empty-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: #fff;
}

.servers-empty-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Details Page */
.server-detail-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 30px;
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
}

.server-detail-banner {
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.server-detail-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(16, 15, 13, 0.96) 100%);
}

.server-detail-header-content {
  padding: 0 26px 22px;
  position: relative;
  z-index: 2;
  margin-top: -50px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.server-detail-title-group {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.server-detail-icon {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  border-radius: 20px;
  border: 4px solid #141312;
  background: #141312;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.server-detail-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-detail-name {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.server-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.server-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

.server-detail-box {
  background: var(--bg-panel);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
}

.server-detail-box-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 12px;
  color: #fff;
}

.server-markdown-content {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Reviews */
.review-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  border: 1px solid var(--gold);
}

.review-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
}

.review-stars {
  color: #ffc107;
  font-size: 0.88rem;
  letter-spacing: 1px;
}

.review-comment {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.star-rating-select {
  display: flex;
  gap: 6px;
  direction: ltr;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.star-rating-select input {
  display: none;
}

.star-rating-select label {
  font-size: 1.5rem;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s;
}

.star-rating-select input:checked ~ label,
.star-rating-select label:hover,
.star-rating-select label:hover ~ label {
  color: #ffc107;
}

/* Form Controls */
.server-form-group {
  margin-bottom: 18px;
}

.server-label {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #fff;
}

.server-label small {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-right: 6px;
}

.server-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.server-control:focus {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.05);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.2);
}

/* Custom Select Dropdowns (Fixes ugly browser white background) */
select.server-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #121216 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 16px 16px !important;
  padding-left: 42px !important;
  padding-right: 14px !important;
  color: #fff !important;
  cursor: pointer;
}

select.server-control option {
  background-color: #141419 !important;
  color: #ffffff !important;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
}

select.server-control option:hover,
select.server-control option:focus,
select.server-control option:checked {
  background-color: #24242e !important;
  color: var(--gold) !important;
}

/* File Upload Component */
.upload-card-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(212, 168, 67, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-card-box:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.03);
}

.upload-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.upload-preview-thumb.banner {
  width: 120px;
  height: 56px;
  border-radius: 8px;
}

/* Interactive Hashtags Component */
.tag-interactive-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  min-height: 48px;
  position: relative;
  transition: var(--transition);
}

.tag-interactive-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.2);
}

.tag-pill-selected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 700;
}

.tag-pill-remove {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.15s;
}

.tag-pill-remove:hover {
  color: #ef4444;
}

.tag-live-input {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  padding: 4px 6px;
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

.quick-tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ddd;
  font-size: 0.78rem;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-arabic), sans-serif;
}

.quick-tag-chip:hover {
  background: rgba(212, 168, 67, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.tag-suggestions-box {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: #141419;
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.tag-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  transition: background 0.15s;
}

.tag-suggestion-item:hover,
.tag-suggestion-item.active {
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold);
}

textarea.server-control {
  resize: vertical;
  min-height: 110px;
}

/* Responsive */
@media (max-width: 900px) {
  .server-detail-layout {
    grid-template-columns: 1fr;
  }
  .servers-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }
  .servers-header-inner {
    flex-wrap: wrap;
  }
  .servers-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }
  .server-detail-header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .server-detail-title-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   👑 EXCLUSIVE OWNER BUTTON & EXECUTIVE CONTROL ROOM
   ============================================================ */

/* Owner Crown Navigation Button */
.owner-crown-btn {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.22) 0%, rgba(184, 134, 11, 0.35) 100%) !important;
  border: 1px solid rgba(212, 168, 67, 0.6) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.25) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.owner-crown-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.owner-crown-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light) !important;
  box-shadow: 0 4px 22px rgba(212, 168, 67, 0.5) !important;
  color: #fff !important;
}

.owner-crown-btn:hover::before {
  left: 100%;
}

/* Moderator Shield Navigation Button */
.mod-shield-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.6) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.mod-shield-btn:hover {
  transform: translateY(-2px);
  border-color: #93c5fd !important;
  box-shadow: 0 4px 22px rgba(59, 130, 246, 0.5) !important;
  color: #fff !important;
}

/* Owner VIP Pill */
.owner-vip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.18), rgba(212, 168, 67, 0.05));
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.15);
}

/* Owner Metrics Grid */
.owner-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.owner-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.owner-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 67, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.owner-stat-card.gold-border {
  border-color: rgba(212, 168, 67, 0.45);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.12) 0%, rgba(18, 18, 22, 0.85) 100%);
}

.owner-stat-card.alert-border {
  border-color: rgba(239, 68, 68, 0.4);
}

.owner-stat-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.owner-stat-content {
  display: flex;
  flex-direction: column;
}

.owner-stat-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-english);
  line-height: 1.1;
}

.owner-stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 600;
}

/* Filter Bar */
.owner-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: rgba(14, 14, 18, 0.85);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.owner-filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  background: transparent;
}

.owner-filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.owner-filter-tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #060606;
  box-shadow: 0 2px 10px rgba(212, 168, 67, 0.35);
}

/* Owner Table */
.owner-table-wrapper {
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.owner-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 860px;
}

.owner-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.owner-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.owner-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badge Badges Neutral */
.owner-badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #eee;
  white-space: nowrap;
}

/* 1-Click Toggle Badges */
.owner-toggle-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
  font-family: var(--font-arabic);
  white-space: nowrap;
}

.owner-toggle-badge.active-featured {
  background: rgba(212, 168, 67, 0.22);
  border-color: rgba(212, 168, 67, 0.75);
  color: #f7d277;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.3);
}

.owner-toggle-badge.active-partner {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.7);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.owner-toggle-badge.active-verified {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.7);
  color: #4ade80;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.owner-toggle-badge.inactive {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.75;
}

.owner-toggle-badge.inactive:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

/* Status Button */
.owner-status-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: var(--font-arabic);
  white-space: nowrap;
}

.owner-status-btn.active-status {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.owner-status-btn.suspended-status {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

/* Action Buttons */
.owner-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: var(--font-arabic);
}

.owner-action-btn.bump {
  background: rgba(212, 168, 67, 0.12);
  border-color: rgba(212, 168, 67, 0.35);
  color: var(--gold);
}

.owner-action-btn.bump:hover {
  background: var(--gold);
  color: #060606;
}

.owner-action-btn.edit {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.owner-action-btn.edit:hover {
  background: rgba(255, 255, 255, 0.12);
}

.owner-action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  cursor: pointer;
}

.owner-action-btn.delete:hover {
  background: #ef4444;
  color: #fff;
}

.owner-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.owner-btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

/* Reviews List */
.owner-reviews-list {
  display: flex;
  flex-direction: column;
}

.owner-review-item {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.owner-review-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Google-Style User Profile Menu */
.user-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-trigger:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 14px rgba(212, 168, 67, 0.45);
  transform: scale(1.05);
}

.user-menu-dropdown {
  animation: userMenuPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes userMenuPop {
  0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: translateX(-3px);
}


