/* ==========================================================================
   Roblox Competitions - Dark Gaming Theme (RTL)
   متوافق 100% مع الجوال والكمبيوتر ومصمم خصيصاً لجميع محبي الألعاب
   ========================================================================== */

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

:root {
  /* ألوان الـ Dark Gaming */
  --bg-main: #0b0e14;
  --bg-surface: #141923;
  --bg-card: #1a2230;
  --bg-card-hover: #222c3e;
  --border-color: #2b3548;
  --border-highlight: #3b4963;

  /* ألوان Roblox والـ Robux الجذابة */
  --robux-green: #00b06f;
  --robux-green-glow: rgba(0, 176, 111, 0.35);
  --gold-accent: #ffb703;
  --gold-glow: rgba(255, 183, 3, 0.35);
  --cyan-neon: #00d2ff;
  --purple-neon: #9d4edd;
  --danger-red: #ff3366;

  /* نصوص */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #d1d5db;

  /* قياسات وأنماط */
  --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 176, 111, 0.25);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  direction: rtl;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* خلفية جمالية بنمط ألعاب */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 176, 111, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(157, 78, 221, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.logo-cube {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e63946, #c1121f);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
  transform: rotate(-6deg);
  transition: var(--transition-fast);
}

.logo-cube:hover {
  transform: rotate(0deg) scale(1.06);
}

.cube-inner {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 4px;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-text .highlight {
  color: var(--gold-accent);
  text-shadow: 0 0 12px var(--gold-glow);
}

.brand-badge {
  display: block;
  font-size: 0.75rem;
  color: var(--robux-green);
  font-weight: 700;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: #fff;
  background-color: var(--bg-surface);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 176, 111, 0.25), rgba(0, 210, 255, 0.2));
  border: 1px solid var(--robux-green);
}

/* Floating Admin Button - Only visible when owner is logged in */
.floating-admin-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 183, 3, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.floating-admin-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--gold-accent);
  color: #0b0e14;
  box-shadow: 0 6px 25px rgba(255, 183, 3, 0.5);
}

/* Live Online Users Badge */
.online-users-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: #e0f2fe;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.15);
  user-select: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.online-users-pill:hover {
  background: rgba(0, 230, 118, 0.14);
  border-color: #00e676;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.online-dot-pulse {
  width: 9px;
  height: 9px;
  background-color: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e676;
  animation: onlineDotPulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes onlineDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.8);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(0, 230, 118, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.online-count-number {
  color: #00e676;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.online-count-number.count-updated {
  animation: countPop 0.35s ease;
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); color: #fff; text-shadow: 0 0 10px #00e676; }
  100% { transform: scale(1); }
}

.online-label-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 176, 111, 0.15);
  border: 1px solid var(--robux-green);
  color: #a7f3d0;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  animation: pulse 2.5s infinite;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 750px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-accent);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
}

/* ==========================================================================
   Buttons (Big Gaming & Kid Friendly)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(2px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #00b06f 0%, #008f5a 100%);
  color: #ffffff;
  border: 2px solid #00d687;
  box-shadow: 0 4px 15px var(--robux-green-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00c77e 0%, #00a366 100%);
  box-shadow: 0 6px 20px rgba(0, 176, 111, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  color: #111;
  border: 2px solid #ffd166;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #ffc425 0%, #ff951c 100%);
  box-shadow: 0 6px 22px rgba(255, 183, 3, 0.5);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: #fff;
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  border-color: var(--border-highlight);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-highlight);
}

.btn-outline:hover {
  background: var(--bg-surface);
  color: #fff;
  border-color: var(--robux-green);
}

.btn-danger {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f24e5a, #d61c2b);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-pulse {
  animation: buttonGlow 2s infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 0 12px var(--robux-green-glow);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 176, 111, 0.7);
  }
}

/* ==========================================================================
   Section Headers & Filter Tabs
   ========================================================================== */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.section-head-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.comp-filter-btn {
  background-color: var(--bg-surface);
  color: var(--text-light);
  border: 2px solid var(--border-color);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.comp-filter-btn:hover {
  border-color: var(--border-highlight);
  color: #fff;
}

.comp-filter-btn.active {
  background: linear-gradient(135deg, var(--robux-green), #008f5a);
  color: #fff;
  border-color: #00d687;
  box-shadow: 0 4px 12px var(--robux-green-glow);
}

/* ==========================================================================
   Competition Cards
   ========================================================================== */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.comp-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.comp-card:hover {
  transform: translateY(-6px);
  border-color: var(--robux-green);
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px var(--robux-green-glow);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #111;
}

.comp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.comp-card:hover .comp-card-img {
  transform: scale(1.05);
}

.comp-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.status-active {
  background-color: rgba(0, 176, 111, 0.9);
  color: #fff;
}

.status-upcoming {
  background-color: rgba(255, 183, 3, 0.9);
  color: #111;
}

.status-past {
  background-color: rgba(100, 116, 139, 0.9);
  color: #fff;
}

.comp-prize-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 14, 20, 0.88);
  border: 1px solid var(--gold-accent);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--gold-accent);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(6px);
}

.comp-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.comp-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  color: #fff;
}

.comp-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.comp-meta-item {
  display: flex;
  flex-direction: column;
}

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

.meta-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.highlight-gold {
  color: var(--gold-accent);
}

.comp-timer-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 210, 255, 0.1);
  border: 1px dashed rgba(0, 210, 255, 0.4);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--cyan-neon);
  font-weight: 700;
}

.comp-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   Winners Section & Cards
   ========================================================================== */
.winners-search-box {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--robux-green);
  box-shadow: 0 0 15px var(--robux-green-glow);
}

.winners-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.winner-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.winner-row-card:hover {
  border-color: var(--gold-accent);
  transform: translateX(-4px);
}

.winner-avatar-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(255, 183, 3, 0.05));
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.winner-main-info {
  flex-grow: 1;
}

.winner-player-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.winner-comp-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.winner-prize-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.prize-tag-gold {
  background: rgba(255, 183, 3, 0.15);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.05rem;
}

.winner-date-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals (Participation & Admin)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity var(--transition-fast);
}

.modal-dialog {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalEnter 0.25s ease-out;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-dialog-large {
  max-width: 780px;
}

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* المشاركة - تفاصيل المسابقة المصغرة */
.modal-comp-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-card);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.modal-comp-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.modal-security-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(0, 176, 111, 0.1);
  border: 1px solid var(--robux-green);
  color: #6ee7b7;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* حقول الإدخال */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--robux-green);
  box-shadow: 0 0 12px var(--robux-green-glow);
}

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

/* شاشة النجاح في المودال */
.modal-success-content {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon-badge {
  width: 80px;
  height: 80px;
  background: rgba(0, 176, 111, 0.15);
  border: 2px solid var(--robux-green);
  color: var(--robux-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
  animation: bounce 1s;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.success-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.success-username-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  color: var(--gold-accent);
  font-weight: 800;
  margin-top: 0.5rem;
}

/* Alert Boxes */
.alert-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.alert-error {
  background-color: rgba(255, 51, 102, 0.15);
  border: 1px solid var(--danger-red);
  color: #ff99b3;
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */
.admin-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.admin-login-box {
  max-width: 440px;
  margin: 3rem auto;
  text-align: center;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-stat-icon {
  font-size: 2.2rem;
}

.admin-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

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

.admin-table th, .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.comp-table-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-table-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.table-actions {
  display: flex;
  gap: 0.4rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-success { background: rgba(0, 176, 111, 0.2); color: #00b06f; }
.badge-warning { background: rgba(255, 183, 3, 0.2); color: #ffb703; }
.badge-muted { background: rgba(156, 163, 175, 0.2); color: #9ca3af; }

/* Participants Modal in Admin */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

.participant-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

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

.participant-name {
  font-weight: 800;
  color: var(--gold-accent);
}

.participant-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Random Draw in Admin */
.draw-anim-box {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(0, 210, 255, 0.1));
  border: 2px dashed var(--purple-neon);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.draw-anim-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-accent);
}

.drawn-winners-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.drawn-winner-card {
  background-color: var(--bg-card);
  border: 1px solid var(--gold-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.winner-rank {
  font-weight: 900;
  color: var(--gold-accent);
  font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #07090d;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--robux-green);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Empty States & Utilities
   ========================================================================== */
.empty-state-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 2rem auto;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-6 { padding: 1.5rem; }

/* ==========================================================================
   Responsive Breakpoints (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-stats-row {
    gap: 1.25rem;
    padding: 1rem;
  }

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

  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    width: 100vw;
    background-color: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5);
  }

  .main-nav.nav-menu-open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    font-size: 1.1rem;
  }

  .online-users-pill {
    margin-top: 0.5rem;
    justify-content: center;
  }

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

  .winner-row-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .winner-prize-badge {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Image Upload & Preview (PC Upload)
   ========================================================================== */
.file-upload-box {
  width: 100%;
  margin-top: 0.25rem;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  background-color: var(--bg-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.upload-dropzone:hover {
  border-color: var(--robux-green);
  background-color: rgba(0, 176, 111, 0.06);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.upload-text {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.image-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--bg-main);
  border: 2px solid var(--robux-green);
  border-radius: var(--radius-md);
  padding: 1rem;
  animation: modalEnter 0.2s ease;
}

.modal-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Roblox Avatar Verification Card in Modal
   ========================================================================== */
.input-spinner {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 1s linear infinite;
  font-size: 1.1rem;
}

@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.roblox-avatar-box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, rgba(0, 176, 111, 0.12), rgba(0, 210, 255, 0.08));
  border: 2px solid var(--robux-green);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  animation: modalEnter 0.25s ease-out;
  box-shadow: 0 4px 15px rgba(0, 176, 111, 0.2);
}

.avatar-circle-wrap {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold-accent);
  background-color: #0b0e14;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--gold-glow);
}

.roblox-avatar-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-profile-info {
  display: flex;
  flex-direction: column;
}

.avatar-badge-verified {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--robux-green);
  margin-bottom: 0.2rem;
}

.avatar-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.avatar-tag {
  font-size: 0.85rem;
  color: var(--cyan-neon);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.avatar-hint-confirm {
  font-size: 0.75rem;
  color: #a7f3d0;
  font-weight: 600;
}

.avatar-not-found {
  background-color: rgba(255, 183, 3, 0.12);
  border: 1px solid var(--gold-accent);
  color: #ffd166;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.75rem;
  animation: modalEnter 0.2s ease;
}

/* ==========================================================================
   Single Competition Page & Digital Ticking Countdown
   ========================================================================== */
.single-comp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.single-comp-hero-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.single-comp-media {
  position: relative;
  width: 100%;
  height: 340px;
  background-color: #0b0e14;
}

.single-comp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-comp-details {
  padding: 2.5rem;
}

.single-comp-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.single-comp-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 900px;
}

.single-comp-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.single-meta-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.single-meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.single-meta-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

/* Digital Ticking Countdown Clock */
.single-countdown-box {
  background: linear-gradient(135deg, rgba(14, 17, 23, 0.95), rgba(22, 27, 34, 0.95));
  border: 2px solid var(--robux-green);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 176, 111, 0.2);
}

.countdown-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 1.25rem;
}

.digital-countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  direction: ltr; /* أرقام بالإنجليزية من اليسار لليمين */
}

.countdown-digit-block {
  background: #090c10;
  border: 2px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}

.countdown-digit-block.highlight-pulse {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.digit-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.digit-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.4rem;
}

.digit-separator {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Participants Section on Single Page */
.single-participants-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.participants-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.participants-title {
  font-size: 1.5rem;
  font-weight: 900;
}

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

.single-participant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform var(--transition-fast);
}

.single-participant-card:hover {
  border-color: var(--robux-green);
  transform: translateY(-2px);
}

.single-participant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  object-fit: cover;
  flex-shrink: 0;
  background-color: #0b0e14;
}

.single-participant-info {
  display: flex;
  flex-direction: column;
}

.single-participant-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.single-participant-joined {
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .single-comp-media {
    height: 220px;
  }
  .single-comp-details {
    padding: 1.25rem;
  }
  .single-comp-title {
    font-size: 1.6rem;
  }
  .countdown-digit-block {
    min-width: 60px;
    padding: 0.6rem 0.7rem;
  }
  .digit-number {
    font-size: 1.7rem;
  }
  .digit-separator {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Robux Currency Icon - علامة Robux الرسمية الذهبية
   ========================================================================== */
.robux-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  margin-inline-end: 4px;
  filter: drop-shadow(0 0 5px rgba(255, 183, 3, 0.45));
  transition: transform 0.2s ease;
}

.robux-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.robux-icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-inline-end: 3px;
}

.robux-icon-lg {
  width: 1.5em;
  height: 1.5em;
}

.prize-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   روابط المجتمع (Community Hub Cards)
   ========================================================================== */
.community-hub-section {
  padding: 3rem 1rem;
}

.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-highlight);
  transition: all 0.3s ease;
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--border-highlight);
}

.community-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.community-card:hover .community-card-icon {
  transform: scale(1.15);
}

.community-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.community-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.community-card-action {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* بطاقات المنصات المخصصة بألوانها الأصلية */
.card-roblox::before { background: #e63946; }
.card-roblox:hover { border-color: #e63946; box-shadow: 0 12px 30px rgba(230, 57, 70, 0.25); }
.card-roblox .community-card-action { background: rgba(230, 57, 70, 0.15); color: #ff6b6b; border: 1px solid rgba(230, 57, 70, 0.4); }

.card-discord::before { background: #5865f2; }
.card-discord:hover { border-color: #5865f2; box-shadow: 0 12px 30px rgba(88, 101, 242, 0.25); }
.card-discord .community-card-action { background: rgba(88, 101, 242, 0.15); color: #7983f5; border: 1px solid rgba(88, 101, 242, 0.4); }

.card-youtube::before { background: #ff0000; }
.card-youtube:hover { border-color: #ff0000; box-shadow: 0 12px 30px rgba(255, 0, 0, 0.25); }
.card-youtube .community-card-action { background: rgba(255, 0, 0, 0.15); color: #ff4d4d; border: 1px solid rgba(255, 0, 0, 0.4); }

.card-tiktok::before { background: linear-gradient(90deg, #00f2fe, #fe0979); }
.card-tiktok:hover { border-color: #00f2fe; box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25); }
.card-tiktok .community-card-action { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.4); }

.card-instagram::before { background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045); }
.card-instagram:hover { border-color: #e1306c; box-shadow: 0 12px 30px rgba(225, 48, 108, 0.3); }
.card-instagram .community-card-action { background: rgba(225, 48, 108, 0.15); color: #f56040; border: 1px solid rgba(225, 48, 108, 0.4); }

/* ==========================================================================
   معرض إثباتات التسليم (Proof of Payouts Gallery)
   ========================================================================== */
.proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.proof-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.proof-img-wrap {
  position: relative;
  height: 180px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.proof-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proof-img-wrap:hover .proof-img {
  transform: scale(1.05);
}

.proof-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 176, 111, 0.9);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(4px);
}

.proof-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.proof-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proof-username {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.proof-amount {
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
}

.proof-comp-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-note {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   نافذة المشاركة السريعة ورابط الدعوة (Share Modal)
   ========================================================================== */
.share-apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.share-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.share-app-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-app-whatsapp {
  background: #25d366;
  color: #fff;
}

.share-app-discord {
  background: #5865f2;
  color: #fff;
}

.share-app-telegram {
  background: #0088cc;
  color: #fff;
}

.share-toast {
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 176, 111, 0.2);
  border: 1px solid var(--robux-green);
  color: var(--robux-green);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* زر بطاقة الفوز في قائمة الفائزين */
.winner-card-btn {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--gold-accent);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.winner-card-btn:hover {
  background: var(--gold-accent);
  color: #111;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header Notification Bell & Dropdown
   ========================================================================== */
.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bell-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.15rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.notif-bell-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-accent);
  transform: scale(1.05);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
  animation: pulse 1.5s infinite;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  max-width: 88vw;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  z-index: 1000;
  animation: modalEnter 0.2s ease;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.notif-enable-btn {
  background: rgba(0, 176, 111, 0.15);
  color: var(--robux-green);
  border: 1px solid var(--robux-green);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-enable-btn:hover {
  background: var(--robux-green);
  color: #000;
}

.notif-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: right;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
  background: rgba(255, 183, 3, 0.07);
  border-right: 3px solid var(--gold-accent);
}

.notif-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.notif-item-body {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Toast Alerts Container
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #181926;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #fff;
  animation: slideInUp 0.3s ease;
  transition: all 0.3s ease;
  text-align: right;
}

.toast-item.toast-success {
  border-right: 4px solid var(--robux-green);
}

.toast-item.toast-info {
  border-right: 4px solid var(--gold-accent);
}

.toast-content {
  font-size: 0.85rem;
  line-height: 1.45;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 0 0 10px;
  line-height: 1;
}

.toast-close:hover {
  color: #fff;
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

/* ==========================================================================
   Single Competition Winner Banner (Personalized)
   ========================================================================== */
.winner-congrats-banner {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.18) 0%, rgba(230, 57, 70, 0.14) 100%);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.2);
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 15px rgba(255, 183, 3, 0.15); }
  to { box-shadow: 0 0 30px rgba(255, 183, 3, 0.35); }
}

.winner-congrats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.winner-congrats-badge-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.winner-congrats-text {
  flex: 1;
  min-width: 250px;
}

.winner-congrats-headline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 0.3rem;
}

.winner-congrats-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.4;
}

.winner-congrats-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Winner Cards inside Single Competition Page
   ========================================================================== */
.single-winner-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.single-winner-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-accent);
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.15);
}

.single-winner-card.is-me {
  border: 2px solid var(--robux-green);
  background: linear-gradient(135deg, rgba(0, 176, 111, 0.12), var(--bg-card));
}

.single-winner-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.single-winner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  background: var(--bg-main);
  object-fit: cover;
}

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

.single-winner-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-winner-prize {
  font-size: 0.85rem;
  color: var(--gold-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.single-winner-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-winner-chat {
  background: rgba(0, 176, 111, 0.15);
  border: 1px solid var(--robux-green);
  color: var(--robux-green);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.btn-winner-chat:hover {
  background: var(--robux-green);
  color: #000;
}

.btn-winner-cert {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

.btn-winner-cert:hover {
  background: var(--gold-accent);
  color: #111;
}

/* ==========================================================================
   Chat Modal (Winner <-> Admin Chat)
   ========================================================================== */
.chat-modal-dialog {
  max-width: 600px;
  width: 95vw;
  height: 82vh;
  max-height: 680px;
  display: flex;
  flex-direction: column;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 183, 3, 0.18);
  border: 1px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.chat-modal-body {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  flex: 1;
  overflow: hidden;
}

.chat-notice-bar {
  background: rgba(0, 176, 111, 0.08);
  border-bottom: 1px solid rgba(0, 176, 111, 0.2);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--robux-green);
  text-align: center;
  line-height: 1.4;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #111219;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
  animation: fadeIn 0.2s ease;
}

.chat-bubble-admin {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble-winner {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--robux-green), #008f5a);
  color: #fff;
  border-bottom-left-radius: 2px;
}

.chat-msg-sender {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

.chat-msg-time {
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: 0.35rem;
  text-align: left;
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.chat-input-field {
  flex: 1;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.chat-send-btn {
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Admin Inbox Modal (Split View)
   ========================================================================== */
.admin-chat-dialog {
  max-width: 960px;
  width: 95vw;
  height: 85vh;
  max-height: 750px;
  display: flex;
  flex-direction: column;
}

.admin-inbox-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0 !important;
}

.admin-conv-sidebar {
  width: 320px;
  min-width: 260px;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.admin-conv-search-wrap {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-conv-list {
  flex: 1;
  overflow-y: auto;
}

.admin-conv-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
  position: relative;
}

.admin-conv-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-conv-item.active {
  background: rgba(255, 183, 3, 0.12);
  border-right: 4px solid var(--gold-accent);
}

.admin-conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.admin-conv-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.admin-conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.admin-conv-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.admin-conv-comp {
  font-size: 0.75rem;
  color: var(--gold-accent);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 0.15rem;
}

.admin-conv-last-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.admin-conv-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 6px var(--brand-red);
}

.admin-conv-chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #111219;
}

.admin-conv-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.admin-chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.winner-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.winner-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-badge-count {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 12px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.7);
}

@media (max-width: 768px) {
  .admin-inbox-body {
    flex-direction: column;
  }
  .admin-conv-sidebar {
    width: 100%;
    height: 40%;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }
  .winner-congrats-inner {
    flex-direction: column;
    text-align: center;
  }
}


