/* =========================
   RESET + THEME
========================= */
:root{
  --bg0:#050713;
  --bg1:#070b14;

  --text:#eaf0ff;
  --muted: rgba(234,240,255,.62);

  --panel: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.08);

  --radius: 18px;
  --radius2: 22px;

  --shadow: 0 18px 70px rgba(0,0,0,.55);

  --green: #70ff74;
  --aqua:  #5adcff;
  --violet:#7a46ff;

  --gradMain: linear-gradient(135deg, var(--green), var(--aqua));
  --gradHero: linear-gradient(135deg, rgba(122,70,255,.25), rgba(0,255,180,.09));
  --gradBanner: linear-gradient(135deg, rgba(160,40,255,.30), rgba(0,255,180,.10));
  --gradAction: linear-gradient(135deg, rgba(0,255,180,.14), rgba(80,80,255,.18));
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 60% -10%, rgba(120, 70, 255, .22), transparent 60%),
    radial-gradient(900px 600px at 10% 20%, rgba(0, 255, 180, .12), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, #060812 60%, #04070f 100%);
}

a{ color:inherit; text-decoration:none; }
button{ font: inherit; cursor:pointer; }
.container{
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   TOPBAR
========================= */
.topbar{
  position: sticky;
  top:0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(6,8,18,.78);
  backdrop-filter: blur(12px);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: .6px;
}
.brand__mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: var(--gradMain);
  color:#041014;
}
.brand__name{
  font-weight: 1000;
}

.topbar__actions{
  display:flex;
  gap: 10px;
}

.topbar__burger{
  display:none;
}

/* top nav pills */
.topnav{
  display:flex;
  gap: 10px;
  align-items:center;
}
.topnav__link{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.72);
}
.topnav__link.is-active{
  background: rgba(110,255,120,.10);
  border-color: rgba(110,255,120,.25);
  color: rgba(234,240,255,.96);
}

/* =========================
   APP LAYOUT
========================= */
.app{
  display:grid;
  grid-template-columns: 270px 1fr;
  min-height: calc(100vh - 70px);
}

/* =========================
   SIDEBAR
========================= */
.sidebar{
  border-right: 1px solid var(--line);
  padding: 16px;
  background: rgba(4,6,14,.55);
  backdrop-filter: blur(10px);
}

.sidebar__header{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 14px;
}

.sidebar__search{ flex: 1; }

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}
.input::placeholder{ color: rgba(234,240,255,.38); }

.snav{
  display:grid;
  gap: 6px;
}
.snav__item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: rgba(234,240,255,.86);
}
.snav__item:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
.snav__item.is-active{
  background: rgba(122,70,255,.18);
  border-color: rgba(122,70,255,.35);
}

.snav__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(112,255,116,.9);
}

.snav__divider{
  height:1px;
  background: var(--line);
  margin: 10px 0;
}

.langBox{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* =========================
   MAIN
========================= */
.main{
  padding: 20px 0 52px;
}

/* =========================
   BUTTONS + UI
========================= */
.btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.92);
  padding: 10px 14px;
  border-radius: 14px;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--primary{
  background: var(--gradMain);
  border-color: rgba(110,255,120,.25);
  color: #041014;
  font-weight: 1000;
}
.btn--ghost{
  background: rgba(255,255,255,.02);
}
.btn--sm{ padding: 8px 12px; border-radius: 12px; }
.btn--xl{ padding: 12px 18px; font-size: 15px; border-radius: 16px; }

.btn--pill{ border-radius: 999px; }
.btn--wide{ width: 100%; max-width: 240px; }

.iconBtn{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
  padding: 10px 12px;
  border-radius: 14px;
}

.muted{ color: var(--muted); font-size: 13px; }
.note{ color: rgba(234,240,255,.55); font-size: 12px; margin-top: 10px; }
.note--inCard{
  position:absolute;
  left: 14px;
  bottom: 10px;
  margin:0;
}

/* =========================
   HERO
========================= */
.hero{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--gradHero);
  box-shadow: var(--shadow);
  padding: 18px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}

.hero__left{
  padding: 6px;
}

.moneyTag{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  font-weight: 1000;
}

.hero__title{
  margin: 10px 0 14px;
  font-size: 34px;
  line-height: 1.05;
}

.hero__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chipsRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  font-size: 13px;
  color: rgba(234,240,255,.80);
}

/* right hero */
.hero__right{
  display:grid;
  align-items:center;
  justify-items:end;
}

.heroCard{
  width: 100%;
  height: 190px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(320px 220px at 18% 10%, rgba(122,70,255,.45), transparent 56%),
    radial-gradient(260px 180px at 88% 80%, rgba(110,255,120,.20), transparent 58%),
    linear-gradient(135deg, rgba(0,0,0,.30), rgba(0,0,0,.10));
  position:relative;
  overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.heroCard__win{
  position:absolute;
  right: 18px;
  top: 18px;
  font-weight: 1100;
  font-size: 48px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(110,255,120,.98);
  color:#041014;
  transform: rotate(-12deg);
  box-shadow: 0 22px 50px rgba(0,0,0,.45);
}

.heroCard__shine{
  position:absolute;
  left:-30%;
  top:-40%;
  width: 70%;
  height: 170%;
  background: rgba(255,255,255,.14);
  transform: rotate(20deg);
  filter: blur(1px);
  opacity:.45;
}

/* =========================
   BANNER (Exclusive Games)
========================= */
.banner{
  margin-top: 16px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--gradBanner);
  box-shadow: var(--shadow);
  padding: 18px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  overflow:hidden;
}

.banner__title{
  margin:0 0 6px;
  font-size: 26px;
}
.banner__subtitle{
  margin:0 0 12px;
  color: rgba(234,240,255,.78);
}

.bannerChars{
  width: 100%;
  height: 160px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  overflow:hidden;
  position:relative;
}
.bannerChars__placeholder{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(135deg, rgba(110,255,120,.18), rgba(122,70,255,.18));
}

/* =========================
   SECTION HEAD
========================= */
.section{
  margin-top: 18px;
}
.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section__title{
  margin:0;
  font-size: 18px;
}

.viewAll{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.82);
}

/* =========================
   GAMES GRID
========================= */
.games{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.gameCard{
  padding: 10px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: transform .12s ease, background .12s ease;
}
.gameCard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
}

.gameCard__thumb{
  height: 92px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.gameCard__name{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(234,240,255,.78);
}

/* colorful placeholders */
.g1{ background: linear-gradient(135deg, rgba(255,100,140,.35), rgba(122,70,255,.18)); }
.g2{ background: linear-gradient(135deg, rgba(255,200,120,.35), rgba(0,255,180,.12)); }
.g3{ background: linear-gradient(135deg, rgba(120,160,255,.35), rgba(122,70,255,.14)); }
.g4{ background: linear-gradient(135deg, rgba(120,255,200,.28), rgba(50,120,255,.12)); }
.g5{ background: linear-gradient(135deg, rgba(255,255,120,.20), rgba(0,255,180,.10)); }
.g6{ background: linear-gradient(135deg, rgba(255,120,220,.24), rgba(122,70,255,.18)); }
.g7{ background: linear-gradient(135deg, rgba(255,120,120,.22), rgba(122,70,255,.18)); }

/* =========================
   ACTION
========================= */
.action{
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: var(--gradAction);
  box-shadow: var(--shadow);
  padding: 18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  overflow:hidden;
}

.action__title{
  margin: 0 0 6px;
  font-size: 22px;
}
.action__subtitle{
  margin: 0 0 12px;
  color: rgba(234,240,255,.75);
}

.playerArt{
  width: 100%;
  height: 155px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(110,255,120,.18), transparent 55%),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.10));
}

/* =========================
   BETSLIP
========================= */
.betslip{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}

.betslip__bar{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items:center;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(140,70,255,.30), rgba(0,0,0,.12));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.betslip__match{ font-weight: 900; }
.betslip__odd{
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
}

.betslip__body{
  padding: 14px 16px;
  display:grid;
  gap: 10px;
  color: rgba(234,240,255,.78);
}
.betslip__line b{ color: rgba(234,240,255,.96); }

.betslip__tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* pills */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  color: rgba(234,240,255,.80);
}
.pill--green{
  border-color: rgba(110,255,120,.22);
  background: rgba(110,255,120,.10);
}

/* =========================
   ABOUT
========================= */
.about{
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 18px;
}

.about__title{
  margin: 0 0 10px;
  font-size: 18px;
}
.about__text{
  margin: 0 0 12px;
  color: rgba(234,240,255,.72);
  line-height: 1.55;
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 14px;
}

.footer__title{
  font-weight: 900;
  margin-bottom: 8px;
}

.footer__link{
  display:block;
  padding: 6px 0;
  color: rgba(234,240,255,.70);
}
.footer__link:hover{ color: rgba(234,240,255,.92); }

.footer__legal{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0 28px;
}

/* =========================
   MOBILE MENU OVERLAY
========================= */
.overlay{
  display:none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 70;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px){
  .games{ grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 92vw);
    z-index: 80;
    transform: translateX(-110%);
    transition: transform .18s ease;
    box-shadow: 0 40px 120px rgba(0,0,0,.7);
  }
  .sidebar.is-open{ transform: translateX(0); }

  .overlay.is-open{ display:block; }

  .topbar__burger{ display:inline-flex; }
  .topnav{ display:none; }

  .hero{ grid-template-columns: 1fr; }
  .banner{ grid-template-columns: 1fr; }
  .action{ grid-template-columns: 1fr; }

  .games{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px){
  .container{ width: calc(100% - 22px); }
  .topbar__actions .btn{ padding: 9px 10px; border-radius: 12px; }
  .hero__title{ font-size: 28px; }

  .games{ grid-template-columns: repeat(2, 1fr); }
}
