/* =========================
   SPARTAMC • PROFESSIONAL SPARTAN UI
   - Gold / Red / Black
   - Motion + Glass + Section separation
========================= */

:root{
  --bg:#07070b;
  --bg2:#0b0b12;
  --panel:#0f101a;
  --panel2:#141528;

  --text:#f3f4f6;
  --muted: rgba(243,244,246,.70);

  --gold:#f5c542;
  --gold2:#ffdd73;
  --red:#e11d48;
  --red2:#ff3b6b;

  --line: rgba(255,255,255,.08);
  --radius: 20px;

  --shadow: 0 20px 70px rgba(0,0,0,.55);
  --shadow2: 0 12px 40px rgba(0,0,0,.45);
}

/* Base */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Poppins", Arial, system-ui, -apple-system, "Segoe UI",
               "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
html{ scroll-behavior:smooth; }

body{
  background:
    radial-gradient(1000px 700px at 20% 0%, rgba(245,197,66,.14), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(225,29,72,.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  overflow-x:hidden;
}

.fade{ animation: fade .45s ease; }
@keyframes fade{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* =========================
   Navbar (glass + premium)
========================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 9999;

  display:flex;
  align-items:center;
  justify-content:space-between;

  height: 74px;
  padding: 0 20px;

  background: rgba(7,7,11,.68);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--text);
}
.brand-logo{
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.55));
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-name{
  font-weight: 950;
  letter-spacing:.2px;
}
.brand-sub{
  font-weight: 800;
  font-size: 12px;
  color: rgba(243,244,246,.62);
  letter-spacing:.6px;
}

/* Menu */
.menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left:auto;
}
.menu a{
  text-decoration:none;
  color: rgba(243,244,246,.88);
  font-weight: 900;
  font-size: 14px;

  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: .18s ease;

  display:inline-flex;
  align-items:center;
  gap:10px;
}
.menu a:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(245,197,66,.18);
  color: var(--gold2);
}
.menu a.active{
  background: rgba(245,197,66,.12);
  border-color: rgba(245,197,66,.26);
  color: var(--gold);
}

/* Nav icons */
.nav-ico{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .92;
}
.nav-ico svg{
  width: 18px;
  height: 18px;
  display:block;
}

.nav-chip{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10) !important;
}
.nav-chip:hover{
  border-color: rgba(245,197,66,.22) !important;
}
.nav-danger{
  background: rgba(225,29,72,.10);
  border: 1px solid rgba(225,29,72,.24) !important;
}
.nav-danger:hover{
  background: rgba(225,29,72,.16);
  border-color: rgba(225,29,72,.35) !important;
  color:#ffd1dc;
}

.nav-discord{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.discord-img{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
}

/* Burger */
.burger{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius:14px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px;
  transition: .18s ease;
}
.burger:hover{ background: rgba(255,255,255,.06); }
.burger span{
  display:block;
  width:22px;
  height:2px;
  background:#e5e7eb;
  border-radius:2px;
  transition: .2s ease;
}
.burger.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* =========================
   Server status dot + tooltip
========================= */
.status-dot{
  position: relative;
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px;
  display: inline-block !important;
  margin-left: 10px;
  cursor: pointer;
}
.status-dot:not(.online):not(.offline){ background: #94a3b8; }
.status-dot.online{ background: #22c55e; animation: pulse-green 1.4s infinite; }
.status-dot.offline{ background: #ef4444; animation: pulse-red 1.4s infinite; }

.status-dot::after{
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%) translateX(-6px);

  background: rgba(15,16,26,.78);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);

  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 700;

  padding: 7px 10px;
  border-radius: 10px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.status-dot::before{
  content:"";
  position:absolute;
  top: 50%;
  left: calc(100% + 4px);
  transform: translateY(-50%) translateX(-6px) rotate(45deg);

  width: 10px;
  height: 10px;
  background: rgba(15,16,26,.78);
  border-left: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);

  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}
.status-dot:hover::after,
.status-dot:hover::before{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes pulse-green{
  0%{ box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  70%{ box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes pulse-red{
  0%{ box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
  70%{ box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100%{ box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* loading dots */
.status-dot.loading{
  width:auto;
  height:auto;
  background:transparent;
  animation:none;
}
.status-dot.loading::after{
  content:"   ";
  font-size:14px;
  letter-spacing:2px;
  color:#94a3b8;
  animation:dots 1.4s infinite steps(4);
}
.status-dot.loading::before{ display:none; }
@keyframes dots{
  0%{ content:""; }
  25%{ content:" "; }
  50%{ content:"  "; }
  75%{ content:"   "; }
}

/* =========================
   Hero (split + glow + motion)
========================= */
.hero-bg{
  position:relative;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 56px 18px 70px;
}

/* ✅ GIF BACKGROUND like old hero-gif */
.hero-gif::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("standard_1.gif") center/cover no-repeat;
  opacity: .18;              /* زيد/نقص حسب ذوقك */
  filter: saturate(1.1) contrast(1.05);
  pointer-events:none;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 700px at 20% 0%, rgba(245,197,66,.18), transparent 62%),
    radial-gradient(1100px 700px at 85% 10%, rgba(225,29,72,.16), transparent 60%),
    linear-gradient(180deg, rgba(7,7,11,.85), rgba(7,7,11,.72));
  backdrop-filter: blur(2px);
  pointer-events:none;
}

.hero-grid{
  position:relative;
  z-index:2;
  max-width: 1150px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  align-items:center;
  gap: 22px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,197,66,.16);
  box-shadow: 0 12px 40px rgba(0,0,0,.32);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(243,244,246,.82);
}
.pill-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(245,197,66,.10);
}

.hero-title{
  margin-top: 14px;
  font-size: 52px;
  font-weight: 980;
  line-height: 1.05;
  letter-spacing: .2px;
  text-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.gold{ color: var(--gold); }

.hero-desc{
  margin-top: 14px;
  color: rgba(243,244,246,.72);
  line-height: 1.7;
  font-size: 16px;
  max-width: 640px;
}

.hero-actions{
  margin-top: 20px;
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}

.ip-box{
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 55px rgba(0,0,0,.25);
  max-width: 460px;
}
.ip-label{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .8px;
  color: rgba(243,244,246,.60);
}
.ip-value{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 980;
  letter-spacing: 1.2px;
  color: var(--gold2);
}
.ip-hint{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(243,244,246,.58);
}

.hero-media{
  position:relative;
  border-radius: 26px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

/* ✅ right photo card */
.hero-photo img{
  width:100%;
  height: 420px;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .5s ease;
}
.hero-photo:hover img{
  transform: scale(1.06);
}

.hero-glow{
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(420px 240px at 20% 10%, rgba(245,197,66,.22), transparent 60%),
    radial-gradient(420px 240px at 90% 20%, rgba(225,29,72,.18), transparent 60%);
  pointer-events:none;
  filter: blur(10px);
}

/* =========================
   Buttons (3 variants)
========================= */
.btn{
  border:none;
  cursor:pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 980;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
  will-change: transform;
}

.btn-primary{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1205;
  box-shadow: 0 16px 42px rgba(245,197,66,.22);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(245,197,66,.28);
}

.btn-ghost{
  background: rgba(255,255,255,.04);
  color: rgba(243,244,246,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(245,197,66,.22);
  color: var(--gold2);
}

.btn-soft{
  background: rgba(225,29,72,.10);
  color: rgba(243,244,246,.92);
  border: 1px solid rgba(225,29,72,.20);
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.btn-soft:hover{
  transform: translateY(-2px);
  border-color: rgba(225,29,72,.34);
  color: #ffd1dc;
}

.btn-small{
  padding: 10px 14px;
  font-size: 13px;
}

/* Toast */
#copyToast{
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1205;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 980;
  display:flex;
  align-items:center;
  gap:10px;
  z-index: 99999;
  box-shadow: 0 18px 45px rgba(245,197,66,.22);
  transition: top .35s ease;
}
#copyToast.show{ top: 18px; }
#copyToast .check{
  background:#111;
  color: var(--gold2);
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

/* =========================
   Sections (distinct backgrounds)
========================= */
.section{
  padding: 72px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.section-inner{
  max-width: 1150px;
  margin: 0 auto;
}

.section-head{
  text-align:center;
  margin-bottom: 22px;
}
.section-head h2{
  font-size: 36px;
  font-weight: 980;
  color: var(--gold);
  letter-spacing: .2px;
}
.section-head p{
  margin-top: 10px;
  color: rgba(243,244,246,.70);
  line-height: 1.7;
}

/* Different section backgrounds */
.section-modes{
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(245,197,66,.10), transparent 60%),
    linear-gradient(180deg, rgba(10,10,16,.0), rgba(10,10,16,.35));
}
.section-services{
  background:
    radial-gradient(900px 600px at 90% 0%, rgba(225,29,72,.10), transparent 60%),
    linear-gradient(180deg, rgba(10,10,16,.0), rgba(10,10,16,.35));
}
.section-hub{
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(245,197,66,.08), transparent 60%),
    radial-gradient(900px 600px at 50% 10%, rgba(225,29,72,.08), transparent 60%),
    linear-gradient(180deg, rgba(10,10,16,.0), rgba(10,10,16,.35));
}
.section-top{
  background:
    radial-gradient(900px 600px at 20% 0%, rgba(245,197,66,.08), transparent 60%),
    linear-gradient(180deg, rgba(10,10,16,.0), rgba(10,10,16,.40));
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Cards (premium) */
.card{
  position:relative;
  background: linear-gradient(145deg, rgba(15,16,26,.92), rgba(20,21,40,.88));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}

/* Shine animation */
.card::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(120deg, transparent, rgba(245,197,66,.10), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events:none;
}
.card:hover::after{ transform: translateX(120%); }

.card:hover{
  transform: translateY(-6px);
  border-color: rgba(245,197,66,.18);
  box-shadow: 0 26px 80px rgba(0,0,0,.42);
}

.card-accent{
  border-color: rgba(245,197,66,.16);
}

.card-top{
  display:flex;
  align-items:center;
  gap: 12px;
}
.card-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(245,197,66,.10);
  border: 1px solid rgba(245,197,66,.18);
  font-size: 18px;
  flex: 0 0 auto;
}

/* ✅ SVG icons inside cards */
.card-icon-svg{
  color: var(--gold2);
}
.card-icon-svg svg{
  width: 22px;
  height: 22px;
  display:block;
}

.card-meta{ display:flex; flex-direction:column; }
.card-title{
  font-weight: 980;
  font-size: 16px;
  color: rgba(243,244,246,.92);
}
.card-sub{
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(243,244,246,.60);
  letter-spacing:.2px;
}

.card-desc{
  margin-top: 12px;
  color: rgba(243,244,246,.70);
  line-height: 1.7;
}

.card-footer{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.chip{
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(243,244,246,.78);
}
.chip-gold{
  background: rgba(245,197,66,.10);
  border-color: rgba(245,197,66,.18);
  color: var(--gold2);
}
.chip-red{
  background: rgba(225,29,72,.10);
  border-color: rgba(225,29,72,.20);
  color: #ffd1dc;
}

.card-actions{
  margin-top: 14px;
}

/* =========================
   Leaderboard
========================= */
.leaderboard-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.lb-card{
  background: linear-gradient(145deg, rgba(15,16,26,.92), rgba(20,21,40,.88));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
}
.lb-card:hover{
  transform: translateY(-5px);
  border-color: rgba(245,197,66,.18);
  box-shadow: 0 26px 80px rgba(0,0,0,.42);
}

.lb-rank{
  font-weight: 980;
  color: var(--gold2);
  font-size: 13px;
  letter-spacing:.6px;
}
.lb-name{
  margin-top: 8px;
  font-weight: 980;
  font-size: 16px;
  color: rgba(243,244,246,.92);
  word-break: break-word;
}
.lb-time{
  margin-top: 10px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(243,244,246,.70);
}

.empty-box{
  grid-column: 1 / -1;
  text-align:center;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(243,244,246,.78);
}

.center-cta{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* Footer */
.footer{
  text-align:center;
  padding: 28px 18px;
  color: rgba(243,244,246,.55);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* =========================
   Scroll Reveal
========================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible,
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 1020px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo img{ height: 360px; }
}

@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .leaderboard-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 800px){
  .burger{ display:inline-flex; }

  .menu{
    position:absolute;
    top: 78px;
    right: 16px;
    left: 16px;

    flex-direction:column;
    gap:10px;

    background: rgba(7,7,11,.92);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 55px rgba(0,0,0,.55);

    opacity:0;
    transform: translateY(-8px);
    pointer-events:none;
    transition: .18s ease;
    z-index: 99998;
  }

  .menu.is-open{
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
  }

  .menu a{
    width:100%;
    justify-content:center;
    text-align:center;
    padding: 12px 16px;
  }

  .hero-title{ font-size: 40px; }
}

@media (max-width: 520px){
  .leaderboard-grid{ grid-template-columns: 1fr; }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ADMIN PANEL: remove empty space under footer */
.admin-page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* خلي المحتوى ياخذ المساحة */
.admin-page .panel-wrap{
  flex: 1;
}

/* إذا كان الفوتر فيه padding/height زايد فـ style.css */
.admin-page .footer{
  margin-top: 0 !important;
  padding: 28px 18px !important;
  height: auto !important;
  min-height: 0 !important;
}


/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* stagger helper (optional) */
.reveal[data-delay]{
  transition-delay: var(--delay, 0ms);
}

