/* =========================
   Dominate – Premium Index
   Clean + modern + micro animations
   ========================= */

*, *::before, *::after { box-sizing: border-box; }

:root{
  /* spacing scale */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 34px;
  --s-7: 46px;

  /* surfaces */
  --bg: #050509;
  --panel: rgba(0,0,0,0.22);
  --panel-strong: rgba(10,10,12,0.70);
  --stroke: rgba(255,255,255,0.10);
  --stroke-soft: rgba(255,255,255,0.08);

  /* glow */
  --green: rgba(2, 207, 92, 1);
  --green-soft: rgba(2, 207, 92, 0.22);
  --green-line: rgba(2, 207, 92, 0.55);

  /* radius */
  --r-1: 12px;
  --r-2: 16px;
  --r-3: 18px;
  --r-4: 22px;

  /* shadow */
  --sh-1: 0 18px 45px rgba(0,0,0,0.55);
  --sh-2: 0 22px 60px rgba(0,0,0,0.70);
  --sh-3: 0 30px 90px rgba(0,0,0,0.85);

  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

html, body{
  margin: 0;
  padding: 0;
  font-family: var(--main-font);
  background: var(--bg);
  color: #fff;
}

.page { min-height: 100vh; }

.no-scroll{ overflow: hidden; }

/* nice selection */
::selection{
  background: rgba(2,207,92,0.25);
  color: #fff;
}

/* Utility */
.textGradient{
  background: linear-gradient(90deg, var(--servername-gradient));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

/* =========================
   Premium micro motion
   ========================= */

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   HERO
   ========================= */

.hero{
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  isolation: isolate;
}

.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  z-index: 0;
  filter: brightness(0.62) contrast(1.06) saturate(0.92);
}

/* overlays */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(75% 65% at 50% 40%,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.55) 72%,
      rgba(0,0,0,0.78) 100%
    ),
    linear-gradient(90deg,
      rgba(0,0,0,0.48) 0%,
      rgba(0,0,0,0.18) 44%,
      rgba(0,0,0,0.18) 56%,
      rgba(0,0,0,0.48) 100%
    );
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.04) 0%,
      rgba(0,0,0,0.38) 58%,
      rgba(0,0,0,0.95) 100%
    );
}

/* subtle noise layer (lightweight) */
.hero .noise{
  display:none;
}

.hero__inner{
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 72px));
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

/* panel base */
.hero__panel{
  border-radius: var(--r-2);
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--stroke);
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}

/* premium shine */
.hero__panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: radial-gradient(80% 60% at 50% 0%,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0) 55%);
  opacity: .55;
}

.hero__panel--left{
  padding: var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.hero__leftTop{
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.hero__logo{
  width: 112px;
  height: 112px;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.70));
  transform: translateY(0);
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.hero__panel--left:hover .hero__logo{
  transform: translateY(-2px);
  filter: drop-shadow(0 22px 55px rgba(0,0,0,0.80));
}

.hero__panel--right{
  padding: var(--s-5) var(--s-5);
  max-width: 740px;
}

.hero__title{
  margin: 0 0 var(--s-3);
  font-size: clamp(2.25rem, 4.7vw, 4.25rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 34px rgba(0,0,0,0.78);
}

.hero__lead{
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  text-shadow: 0 10px 34px rgba(0,0,0,0.78);
}

/* entrance */
.hero__panel--left{
  animation: riseIn .55s var(--ease) both;
}
.hero__panel--right{
  animation: riseIn .55s var(--ease) .06s both;
}
@keyframes riseIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================
   Buttons (premium)
   ========================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease),
    border-color .16s var(--ease), box-shadow .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.btn:active{ transform: translateY(1px); }

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(2,207,92,0.22), 0 0 0 1px rgba(2,207,92,0.10) inset;
}

.btn--primary{
  background: rgba(var(--discord-join));
  border-color: rgba(var(--discord-join-hover));
  color: #fff;
  box-shadow: 0 20px 44px rgba(1, 150, 67, 0.45);
}
.btn--primary:hover{
  background: rgba(2, 207, 92, 0.55);
  border-color: rgba(2, 207, 92, 0.95);
  box-shadow: 0 26px 60px rgba(0,0,0,0.72), 0 0 0 1px rgba(2,207,92,0.10) inset;
  transform: translateY(-2px);
}

.btn--ghost{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
}
.btn--ghost:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.btn--soft{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10, 10, 12, 0.55);
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--soft:hover:not(:disabled){
  background: rgba(2,207,92,0.16);
  border-color: rgba(2,207,92,0.52);
  box-shadow: 0 0 18px rgba(2,207,92,0.22);
  transform: translateY(-2px);
}

.btn--full{ width: 100%; }

.btn:disabled{
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* actions layout */
.hero__actions{
  margin-top: var(--s-4);
  display: inline-grid;
  grid-template-columns: repeat(3, max-content);
  gap: 12px;
  align-items: center;
  justify-content: start;
}

.hero__actionForm{ margin: 0; display: inline-flex; }
.hero__actionForm button{ font-family: inherit; }

/* =========================
   Status Card (premium)
   ========================= */

.statusCard{
  width: min(380px, 100%);
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: rgba(10,10,12,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}

.statusCard::before{
  content:"";
  position:absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(2,207,92,0.95), rgba(2,207,92,0.10));
  opacity: .45;
}

.statusCard__head{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
}

.statusDot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.statusCard.is-online .statusDot{
  background: rgba(2, 207, 92, 0.95);
  box-shadow: 0 0 18px rgba(2, 207, 92, 0.55);
}
.statusCard.is-offline .statusDot{
  background: rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.55);
}

.statusCard__numbers{
  display:flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}
.statusCard__current{
  font-size: 3.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.statusCard__slash{ font-size: 1.35rem; color: rgba(255,255,255,.55); }
.statusCard__max{ font-size: 1.05rem; color: rgba(255,255,255,.68); }
.statusCard__sub{ margin-top: 8px; font-size: .84rem; color: rgba(255,255,255,.72); }

/* =========================
   Flash (premium)
   ========================= */

.flash{
  grid-column: 1 / -1;
  width: 100%;
  margin: 6px 0 0;
  padding: 10px 14px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;

  position: relative;
  overflow: hidden;

  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.flash::after{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background: rgba(255,255,255,0.22);
}

.flash::before{
  content:"ℹ";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  font-size: 0.85rem;
  flex: 0 0 22px;
}

.flash-success::before{ content:"✓"; }
.flash-success::after{ background: rgba(34,197,94,0.9); }
.flash-error::before{ content:"!"; }
.flash-error::after{ background: rgba(248,113,113,0.95); }
.flash-info::after{ background: rgba(56,189,248,0.9); }

.flash.is-hidden{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* =========================
   Modal (player list) – premium
   ========================= */

.modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  z-index: 50;
  animation: fadeIn .16s var(--ease) both;
}

@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.modal[hidden]{ display: none; }

.modal__card{
  width: min(440px, calc(100% - 28px));
  background: rgba(6, 6, 12, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 18px 12px;
  max-height: 70vh;
  box-shadow: var(--sh-3);
  color: #fff;
  transform: translateY(0);
  animation: popIn .18s var(--ease) both;
}

@keyframes popIn{
  from{ opacity: 0; transform: translateY(8px) scale(.99); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.modal__title{ margin:0; font-size: 1rem; font-weight: 800; letter-spacing: .02em; }

.modal__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(248, 250, 252, 0.9);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: transform .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease);
}
.modal__close:hover{
  transform: translateY(-1px);
  background: rgba(2,207,92,0.10);
  border-color: rgba(2,207,92,0.30);
}

.modal__body{
  font-size: 0.88rem;
  color: rgba(226,232,240,0.96);
  overflow: auto;
  max-height: 55vh;
  padding-right: 6px;
}

.playerList{ list-style:none; margin:0; padding:0; }
.playerList li{
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.playerList li:last-child{ border-bottom: none; }
.modalEmpty{ margin: 0; color: rgba(226,232,240,0.85); }

/* nicer scrollbar */
.modal__body::-webkit-scrollbar{ width: 10px; }
.modal__body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.10);
  border: 3px solid rgba(0,0,0,0);
  background-clip: padding-box;
  border-radius: 999px;
}
.modal__body::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.16); }

/* =========================
   CONTENT
   ========================= */

.content{
  background:
    radial-gradient(55% 55% at 50% 0%,
      rgba(2,207,92,0.08),
      rgba(5,5,9,0) 55%),
    var(--bg);
  color: #fff;
  padding: 110px 0 120px;
  margin-top: -45px;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* section header */
.section{ margin-bottom: 86px; }

.section__header{ text-align: center; margin-bottom: 24px; }

.section__title{
  margin: 0 0 10px;
  font-size: clamp(2.0rem, 2.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.section__sub{
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.10rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

/* =========================
   Applications (premium)
   ========================= */

.appGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  margin-top: 28px;
}

.appCard{
  position: relative;
  display:block;
  min-height: 310px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color:#fff;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 16px 44px rgba(0,0,0,0.68);
  transform: translateY(0);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}

.appCard::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.12) 0%,
      rgba(0,0,0,0.48) 55%,
      rgba(0,0,0,0.90) 100%);
  transition: opacity .22s var(--ease);
}

.appChip{
  position:absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(11,12,18,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  z-index: 1;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}

.appCard:hover{
  transform: translateY(-6px);
  filter: brightness(1.03);
  box-shadow: 0 0 0 1px rgba(2,207,92,0.12) inset, 0 26px 70px rgba(0,0,0,0.86);
}

.appCard:hover::before{ opacity: 0.95; }

.appCard--politi{ background-image: url("../images/police.webp"); }
.appCard--ems{ background-image: url("../images/ems.webp"); }
.appCard--advokat{ background-image: url("../images/lawyer.webp"); }

/* =========================
   MAP (premium)
   ========================= */

.section--map{ margin-top: 40px; }

.mapGrid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.mapCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(11,12,18,0.86);
  box-shadow: 0 18px 50px rgba(0,0,0,0.75);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.mapCard::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: radial-gradient(70% 55% at 50% 0%,
    rgba(2,207,92,0.10),
    rgba(0,0,0,0) 60%);
  opacity: .65;
}

/* IMPORTANT: height */
.gtavMap{
  height: 640px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mapSide{ padding-top: 6px; }

.mapTitle{
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 2.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.mapLead{
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

/* accordion */
.mapAccordion{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.mapItem{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease),
    transform .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.mapItem:hover{
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.mapItem.is-active{
  border-color: rgba(2,207,92,0.55);
  box-shadow: 0 0 0 1px rgba(2,207,92,0.14) inset, 0 22px 60px rgba(0,0,0,0.60);
}

.mapLeft{
  display:inline-flex;
  align-items:center;
  gap: 10px;
}

.mapIco{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(2,207,92,0.95);
  font-size: 14px;
  line-height: 1;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.mapItem:hover .mapIco{
  background: rgba(2,207,92,0.10);
  border-color: rgba(2,207,92,0.35);
  transform: translateY(-1px);
}

.mapItem.is-active .mapIco{
  background: rgba(2,207,92,0.14);
  border-color: rgba(2,207,92,0.55);
  box-shadow: 0 0 18px rgba(2,207,92,0.22);
}

.mapArrow{
  opacity: .7;
  transform: rotate(0deg);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.mapItem.is-active .mapArrow{
  transform: rotate(180deg);
  opacity: .95;
}

/* panel w/ smooth open */
.mapPanel{
  display: none;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(2,207,92,0.32);
  background: rgba(2,207,92,0.06);
}

.mapPanel.is-open{
  display: block;
  animation: panelIn .18s var(--ease) both;
}
@keyframes panelIn{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.mapSub{
  color: rgba(2,207,92,0.95);
  font-weight: 900;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.mapText{
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* Leaflet tweaks */
.leaflet-container{ background: #0b0c12; }
#gtavMap, #gtavMap.leaflet-container { background: #0b0c12 !important; }
.leaflet-control-attribution{ display:none !important; }

.leaflet-control-zoom a{
  background: rgba(10,10,12,0.85) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.leaflet-control-zoom a:hover{
  background: rgba(2,207,92,0.14) !important;
  border-color: rgba(2,207,92,0.45) !important;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px){
  .hero{
    height: auto;
    min-height: 100svh;
    padding-top: 90px;
    padding-bottom: 44px;
    align-items: flex-start;
  }

  .hero__inner{
    grid-template-columns: 1fr;
    gap: 26px;
    width: min(980px, calc(100% - 40px));
  }

  .hero__panel--left{
    align-items: center;
    text-align: center;
  }

  .hero__leftTop{
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .hero__panel--right{
    text-align: center;
    margin: 0 auto;
  }

  .hero__actions{ justify-content: center; }
}

@media (max-width: 560px){
  .hero__actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero__actions .btn{ width: 100%; }
  .hero__actionForm button{ width: 100%; }
}

@media (max-width: 900px){
  .container{ padding: 0 20px; }
  .appGrid{ grid-template-columns: 1fr; }
  .appCard{ min-height: 260px; }

  .mapGrid{ grid-template-columns: 1fr; }
  .gtavMap{ height: 520px; }
}

.statusCard::before { display: none !important; }
